setlocale: Work around bug on Android 4.3.
[gnulib.git] / ChangeLog
bloba47fb01e43015a9136c5522791271b9a0f986d3e
1 2019-01-25  Bruno Haible  <bruno@clisp.org>
3         setlocale: Work around bug on Android 4.3.
4         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
5         the "C" locale.
6         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
7         * doc/posix-functions/setlocale.texi: Mention the Android bug.
9 2019-01-24  Bruno Haible  <bruno@clisp.org>
11         memchr: Work around bug on Android <= 5.0.
12         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
13         * doc/posix-functions/memchr.texi: Mention the Android bug.
15 2019-01-24  Bruno Haible  <bruno@clisp.org>
17         random: Fix compilation error on Android 4.3.
18         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
19         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
20         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
21         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
22         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
23         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
24         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
25         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
26         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
27         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
28         REPLACE_INITSTATE, REPLACE_SETSTATE.
29         * doc/posix-functions/random.texi: Correct the description of the
30         situation on Android.
31         * doc/posix-functions/srandom.texi: Likewise.
32         * doc/posix-functions/rand.texi: Likewise.
33         * doc/posix-functions/srand.texi: Likewise.
35 2019-01-24  Bruno Haible  <bruno@clisp.org>
37         mbtowc: Fix compilation error on Android 4.3.
38         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
39         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
40         HAVE_MBTOWC.
41         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
42         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
43         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
44         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
45         * doc/posix-functions/mbtowc.texi: Mention the change.
47 2019-01-24  Bruno Haible  <bruno@clisp.org>
49         fdatasync: Fix compilation error on Android 4.3.
50         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
51         test whether fdatasync() exists.
53 2019-01-24  Bruno Haible  <bruno@clisp.org>
55         unlinkat: Fix compilation error on Android 4.3.
56         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
57         also on Android.
58         * doc/posix-functions/unlinkat.texi: Mention the issue.
60 2019-01-24  Bruno Haible  <bruno@clisp.org>
62         renameat: Fix compilation error on Android 4.3.
63         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
64         * doc/posix-functions/renameat.texi: Mention the issue.
66 2019-01-24  Bruno Haible  <bruno@clisp.org>
68         fchownat: Fix compilation error on Android 4.3.
69         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
70         use.
71         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
72         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
73         * doc/posix-functions/fchownat.texi: Mention the issue.
75 2019-01-23  Bruno Haible  <bruno@clisp.org>
77         gnulib-tool: Support running testdirs on Android.
78         * build-aux/test-driver.diff: New file.
79         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
80         build-aux/test-driver after running automake.
82 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
84         relocatable-prog: avoid warnings from Automake
85         * modules/relocatable-prog: Don't declare PHONY dependencies in
86         Automake conditionals.
88 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
90         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
91         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
93 2019-01-23  Bruno Haible  <bruno@clisp.org>
95         threadlib: Revert commit from 2018-06-25. We now have a better fix.
96         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
97         preceding -Wl,--as-needed option. Don't check whether the linker
98         supports --as-needed/--no-as-needed and --push-state/--pop-state.
100 2019-01-23  Bruno Haible  <bruno@clisp.org>
102         thread: Force linking with -lpthread, even when --as-needed is in use.
103         Reported by Richard W.M. Jones <rjones@redhat.com> in
104         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
105         * lib/glthread/thread.h (pthread_create): Don't declare weak.
107 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
108             Bruno Haible  <bruno@clisp.org>
110         relocatable: avoid compiler warnings (-Wshadow)
111         * lib/relocatable.c (compute_curr_prefix): Rename local variables
112         to avoid name collisions with global variables.
114 2019-01-22  Bruno Haible  <bruno@clisp.org>
116         vasnprintf: Don't use %n on Android.
117         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
118         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
119         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
121 2019-01-22  Bruno Haible  <bruno@clisp.org>
123         *printf: Support cross-compilation to Android.
124         * m4/printf.m4: Add cross-compilation guesses for Android.
126 2019-01-21  Bruno Haible  <bruno@clisp.org>
128         diacrit: Mark deprecated.
129         * modules/diacrit (Status, Notice): Mark as deprecated.
130         * NEWS: Mention it.
132 2019-01-20  Bruno Haible  <bruno@clisp.org>
134         rintl: Override broken implementation on NetBSD.
135         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
136         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
137         REPLACE_RINTL.
138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
139         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
140         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
141         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
143 2019-01-20  Bruno Haible  <bruno@clisp.org>
145         log10l: Work around inaccurate implementation on NetBSD.
146         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
147         * lib/log10l.c: Comment out too simplistic override.
148         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
150 2019-01-20  Bruno Haible  <bruno@clisp.org>
152         logl: Work around inaccurate implementation on NetBSD.
153         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
154         * lib/logl.c: Comment out unused code.
155         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
157 2019-01-20  Bruno Haible  <bruno@clisp.org>
159         expm1l: Work around inaccurate implementation on NetBSD.
160         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
161         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
162         REPLACE_EXPM1L.
163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
164         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
165         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
166         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
168 2019-01-20  Bruno Haible  <bruno@clisp.org>
170         expl: Work around inaccurate implementation on NetBSD.
171         * lib/math.in.h (expl): Test also REPLACE_EXPL.
172         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
173         REPLACE_EXPL.
174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
175         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
176         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
177         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
179 2019-01-20  Bruno Haible  <bruno@clisp.org>
181         exp2l: Work around inaccurate implementation on NetBSD.
182         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
183         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
185 2019-01-20  Bruno Haible  <bruno@clisp.org>
187         floor, floorl: Avoid autoconf warnings.
188         * modules/floor (configure.ac): Use AC_REQUIRE.
189         * modules/floorl (configure.ac): Likewise.
191 2019-01-20  Bruno Haible  <bruno@clisp.org>
193         Defeat current GCC optimizations in math autoconf tests.
194         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
195         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
196         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
197         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
198         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
199         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
200         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
201         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
202         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
203         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
204         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
205         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
206         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
207         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
208         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
209         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
210         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
211         * m4/log.m4 (gl_FUNC_LOG): Likewise.
212         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
213         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
214         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
215         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
216         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
217         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
218         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
219         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
220         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
221         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
222         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
223         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
224         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
225         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
226         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
227         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
228         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
229         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
230         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
231         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
233 2019-01-19  Pádraig Brady  <P@draigBrady.com>
235         gettext: support disabling use of VLAs
236         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
238 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
240         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
241         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
243 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
245         fcntl: Fix syntax error (regression from 2018-10-05).
246         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
248 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
250         relocatable: improve documentation.
251         * doc/relocatable-maint.texi (Supporting Relocation): For
252         substitutions performed by config.status, we need more variables
253         (for instance datarootdir defaults to '${prefix}/share' so we need
254         prefix).
256 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
258         backup: update dependencies
259         * modules/backup-rename (Depends-on): It now depends on opendirat
260         instead of opendir.  It also uses stdint, and xalloc-oversized.
261         But no longer dirfd.
262         * modules/backupfile (Depends-on): Add xalloc-oversized.
264 2019-01-13  Bruno Haible  <bruno@clisp.org>
266         getcwd: Fix test failure when building on a Linux 9p file system.
267         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
268         EINVAL from mkdir like ENAMETOOLONG.
269         * tests/test-getcwd.c (test_long_name): Likewise.
271 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
273         Fix typos found by codespell.
274         * lib/*.[hc]: Fix typos in comments.
275         * pygnulib/*.py: Fix typos in error messages and comments.
277 2019-01-12  Bruno Haible  <bruno@clisp.org>
279         doc: Fix documentation about container data types.
280         Reported by Werner Lemberg <wl@gnu.org>.
281         * doc/containers.texi (Container data types): Fix typo.
283 2019-01-10  Bruno Haible  <bruno@clisp.org>
285         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
286         Reported by Reuben Thomas <rrt@sc3d.org>.
287         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
289 2019-01-06  Bruno Haible  <bruno@clisp.org>
291         maintainer-makefile: Make the configure.ac section optional.
292         * top/maint.mk (GREP, SED): Define if not defined.
294 2019-01-06  Bruno Haible  <bruno@clisp.org>
296         localename: Assume setlocale function.
297         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
298         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
300 2019-01-06  Bruno Haible  <bruno@clisp.org>
302         doc: Add documentation about container data types.
303         * doc/containers.texi: New file.
304         * doc/gnulib.texi (Particular Modules): Include it.
306 2019-01-06  Bruno Haible  <bruno@clisp.org>
308         doc: Update documentation about 'progname' module.
309         * doc/progname.texi: Rename from doc/error.texi. Change node name and
310         title. Rewrite.
311         * doc/gnulib.texi (Particular Modules): Update.
313 2019-01-06  Bruno Haible  <bruno@clisp.org>
315         doc: Document the xstdopen and *-safer modules.
316         * doc/xstdopen.texi: New file.
317         * doc/gnulib.texi (Particular Modules): Include it.
319 2019-01-06  Bruno Haible  <bruno@clisp.org>
321         xstdopen: Add tests.
322         * tests/test-xstdopen.c: New file.
323         * tests/test-xstdopen.sh: New file.
324         * modules/xstdopen-tests: New file.
326         xstdopen: New module.
327         * lib/xstdopen.h: New file.
328         * lib/xstdopen.c: New file.
329         * modules/xstdopen: New file.
331 2019-01-06  Bruno Haible  <bruno@clisp.org>
333         stdopen: Fix compilation error with IRIX cc.
334         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
336 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
338         xfreopen need not include stdio--.h
339         * lib/xfreopen.c: Do not include stdio--.h.
341         xfreopen need not depend on freopen-safer
342         * modules/xfreopen (Depends-on):
343         Depend on freopen, not freopen-safer.
345         stdopen: modernize and simplify
346         * lib/stdopen.c: Update copyright date
347         Do not include sys/types.h; no longer needed these days.
348         (stdopen): Use C99-style decl in loop.  Return int errno
349         value, rather than just a bool.  Do not worry about fd mismatches,
350         since the caller cares only if 0, 1, 2 are occupied.
351         * lib/stdopen.h: No need to include <stdbool.h>.
352         * m4/stdopen.m4: Remove.
353         * modules/stdopen: New file.
355         stdopen: copy from last use in coreutils
356         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
357         New files, taken from their last commit in coreutils
358         2007-07-23T12:35:58Z!jim@meyering.net
359         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
361 2019-01-05  Bruno Haible  <bruno@clisp.org>
363         argp: Don't pass an invalid argument to dgettext().
364         Reported by He X <xw897002528@gmail.com>.
365         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
366         dgettext().
368 2019-01-05  Bruno Haible  <bruno@clisp.org>
370         argp: Don't pass an invalid argument to dgettext().
371         Reported by He X <xw897002528@gmail.com>.
372         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
373         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
374         dgettext().
376 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
378         stdioext: port to newer 32-bit Android
379         Problem reported by Tom Yan in:
380         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
381         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
382         (fp_) [__ANDROID__]: Use it.
384 2019-01-04  Bruno Haible  <bruno@clisp.org>
386         lock: Fix link error with --enable-threads=pth.
387         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
388         Mark as weak.
390 2019-01-04  Bruno Haible  <bruno@clisp.org>
392         Fix link errors in unit tests.
393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
394         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
395         * modules/array-map-tests (Makefile.am): Link test-array_map against
396         libintl.
397         * modules/array-set-tests (Makefile.am): Link test-array_set against
398         libintl.
399         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
400         libintl.
401         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
402         libintl.
403         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
404         against libintl.
405         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
406         against libintl.
408 2019-01-04  Bruno Haible  <bruno@clisp.org>
410         Fix incorrect 'Link' sections.
411         * modules/regex (Link): Mention the link requirement of module 'lock'.
412         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
414 2019-01-04  Bruno Haible  <bruno@clisp.org>
416         Fix some 'Link' sections.
417         * modules/c-stack (Link): Add link directive from the 'gettext-h'
418         dependency.
419         * modules/getaddrinfo (Link): Likewise.
421 2019-01-04  Bruno Haible  <bruno@clisp.org>
423         Remove redundant 'Link' sections.
424         * modules/canon-host (Link): Remove section.
425         * modules/timevar (Link): Likewise.
427 2019-01-04  Bruno Haible  <bruno@clisp.org>
429         Remove incorrect 'Link' sections.
430         * modules/acl (Link): Remove section. Use combined 'Link' sections from
431         the dependencies instead.
432         * modules/crypto/md5 (Link): Likewise.
433         * modules/crypto/sha1 (Link): Likewise.
434         * modules/crypto/sha256 (Link): Likewise.
435         * modules/crypto/sha512 (Link): Likewise.
436         * modules/faccessat (Link): Likewise.
437         * modules/fdutimensat (Link): Likewise.
438         * modules/iconv_open-utf (Link): Likewise.
439         * modules/propername (Link): Likewise.
440         * modules/qacl (Link): Likewise.
441         * modules/unicodeio (Link): Likewise.
442         * modules/utimecmp (Link): Likewise.
443         * modules/utimensat (Link): Likewise.
444         * modules/xstriconv (Link): Likewise.
445         * modules/xstriconveh (Link): Likewise.
447 2019-01-04  Bruno Haible  <bruno@clisp.org>
449         gnulib-tool: New option --extract-recursive-link-directive.
450         * gnulib-tool (func_usage): Document the new options
451         --extract-recursive-dependencies, --extract-recursive-link-directive.
452         (func_verify_module): Document output variables.
453         (func_get_dependencies_recursively): New function.
454         (func_get_link_directive_recursively): New function.
455         Use them to implement the new options
456         --extract-recursive-dependencies, --extract-recursive-link-directive.
457         * doc/gnulib-tool.texi (Link-time requirements): New section.
459 2019-01-04  Bruno Haible  <bruno@clisp.org>
461         Clarify meaning of 'Link' section in module description.
462         * doc/gnulib.texi (Module description): Clarify the meaning of the
463         'Link' section versus the one of the dependencies.
464         * NEWS: Mention the change.
466 2019-01-04  Bruno Haible  <bruno@clisp.org>
468         pselect: Fix module description.
469         * modules/pselect (Link): Put one link option per line.
471 2019-01-04  Bruno Haible  <bruno@clisp.org>
473         cosl: Fix module description.
474         * modules/cosl (Link): Fix typo.
475         * modules/mathl (configure.ac): Likewise.
477 2019-01-04  Bruno Haible  <bruno@clisp.org>
479         c-xvasprintf: Fix module dependencies.
480         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
482 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
484         bootstrap: die when some submodules are not initialized
485         * build-aux/bootstrap: Make sure all submodules are initialized.
487 2019-01-04  Bruno Haible  <bruno@clisp.org>
489         bitsetv: Fix module dependencies.
490         * lib/bitsetv.c: Include xalloc.h.
491         * modules/bitsetv (Depends-on): Add 'xalloc'.
493 2019-01-04  Bruno Haible  <bruno@clisp.org>
495         xmemdup0: Remove redundant code.
496         * lib/xmemdup0.h (xalloc_die): Remove declaration.
498 2019-01-04  Bruno Haible  <bruno@clisp.org>
500         backupfile: Fix module dependencies.
501         * modules/backupfile (Depends-on): Add 'xalloc'.
503 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
505         bitset, crypto/gc: fix conflicts with Solaris 11
506         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
507         avoid clash with Solaris 11 <sys/bitset.h>.
508         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
509         with Solaris 11 <xorg/gc.h>.
511 2019-01-04  Bruno Haible  <bruno@clisp.org>
513         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
514         Reported by Andy Fiddaman <andy@omniosce.org>.
515         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
517 2019-01-03  Eric Blake  <eblake@redhat.com>
519         maintainer-makefile: fix typo in previous patch
520         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
521         of Roman's work.
523 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
525         maintainer-makefile: prefer $(GREP) over grep
526         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
527         defined.
528         * top/maint.mk: Use it everywhere.
530         maintainer-makefile: split long argument lines
531         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
532         it would be too long for exec limits on BSD.
534 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
536         mkfifo: bring back HAVE_MKFIFO macro
537         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
538         Problem reported by Andrew Janke in:
539         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
541 2018-12-21  Bruno Haible  <bruno@clisp.org>
543         Assume Autoconf >= 2.63.
544         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
545         versions < 2.60.
547 2018-12-21  Bruno Haible  <bruno@clisp.org>
549         memcmp: Mention the clang bug.
550         * tests/test-memcmp.c: Add comment about a known test failure.
551         * doc/posix-functions/memcmp.texi: Mention the clang bug.
553 2018-12-20  Jim Meyering  <meyering@fb.com>
555         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
556         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
557           echo '123-x'|LC_ALL=C grep -E '.\bx'
558         The goal is to revert the first, but reverting it requires to restore
559         the function deleted in the second. I ran this to restore the deleted
560         function:
561           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
562             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
563             | patch -R -p1
564         * lib/dfa.c (charclass_context): Restore deleted function.
565         Reverting the primary commit removes this change:
566         dfa: Simplify a building state
567         * lib/dfa.c (build_state): Simplify a building state.
569 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
571         version-etc: allow zero authors
572         * lib/version-etc.c (version_etc_arn): If no authors are given,
573         omit authorship info instead of dumping core.
575 2018-12-19  Bruno Haible  <bruno@clisp.org>
577         lchown tests: Be more permissive regarding errno values.
578         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
579         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
580         alternative to ENOSYS.
581         * modules/lchown-tests (Depends-on): Add 'errno'.
582         * modules/fchownat-tests (Depends-on): Likewise.
584 2018-12-18  Bruno Haible  <bruno@clisp.org>
586         duplocale: Avoid test failure on AIX 7.
587         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
588         (configure.ac): Invoke gt_FUNC_USELOCALE.
589         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
590         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
591         works.
593 2018-12-18  Bruno Haible  <bruno@clisp.org>
595         localename: Fix test failure on AIX 7.
596         Reported by Assaf Gordon in
597         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
598         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
599         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
600         instead of ac_cv_func_uselocale.
601         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
602         HAVE_USELOCALE.
603         * lib/localename-table.h: Likewise.
604         * lib/localename-table.c: Likewise.
605         * tests/test-localename.c: Likewise.
606         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
608 2018-12-18  Bruno Haible  <bruno@clisp.org>
610         localename: Update comments regarding Cygwin.
611         * lib/localename.c: Update comment.
612         * doc/posix-functions/uselocale.texi: Update platforms list.
613         * doc/posix-functions/newlocale.texi: Likewise.
614         * doc/posix-functions/duplocale.texi: Likewise.
615         * doc/posix-functions/freelocale.texi: Likewise.
617 2018-12-16  Bruno Haible  <bruno@clisp.org>
619         c-stack: Fix for Linux/sparc.
620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
621         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
623 2018-12-16  Bruno Haible  <bruno@clisp.org>
625         localename: Avoid test failure on some glibc systems.
626         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
627         Unset environment variables that might disturb the first setlocale call,
628         and verify that this setlocale call succeeds.
630 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
632         random: Fix build error on native Windows (regression from 2018-06-21).
633         * lib/random.c (__srandom, __initstate, __setstate, __random,
634         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
635         to the symbols without '__' prefix.
637 2018-12-16  Bruno Haible  <bruno@clisp.org>
639         obstack, libc-config: Support HP-UX cc in C99 mode.
640         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
641         compiler, even when in C99 mode.
642         * lib/cdefs.h (__flexarr): Likewise.
643         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
645 2018-12-16  Bruno Haible  <bruno@clisp.org>
647         localename: Fix test failure on OpenBSD >= 6.2.
648         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
649         locale system. Define HAVE_FAKE_LOCALES in this case.
650         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
651         HAVE_USELOCALE.
652         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
653         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
654         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
655         platforms list.
656         * doc/posix-functions/newlocale.texi: Likewise.
657         * doc/posix-functions/duplocale.texi: Update platforms list.
658         * doc/posix-functions/freelocale.texi: Likewise.
660 2018-12-16  Bruno Haible  <bruno@clisp.org>
662         duplocale tests: Re-enable the test on platforms without <monetary.h>.
663         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
664         of the test, on platforms without <monetary.h>.
666 2018-12-16  Bruno Haible  <bruno@clisp.org>
668         localename: Update comments.
669         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
671 2018-12-15  Jim Meyering  <meyering@fb.com>
673         regex: fix indentation
674         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
676 2018-12-15  Bruno Haible  <bruno@clisp.org>
678         openat-safer tests: Avoid test failure on NetBSD 8.
679         * tests/test-openat-safer.c (main): Execute a Linux specific test only
680         on Linux.
682 2018-12-15  Jim Meyering  <meyering@fb.com>
684         regex: work around a bug in glibc-2.27 and prior
685         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
686         assertion for /0|()0|\1|0/.
687         * tests/test-regex.c (main): Add the same test here.
689 2018-12-15  Bruno Haible  <bruno@clisp.org>
691         localename: Fix use of uninitialized shell variable.
692         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
693         gt_cv_locale_solaris114 always before use. Remove assignment without
694         effect.
696 2018-12-15  Bruno Haible  <bruno@clisp.org>
698         dfa tests: Avoid test failure on Alpine Linux.
699         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
700         command found on Alpine Linux.
702 2018-12-15  Jim Meyering  <meyering@fb.com>
704         dfa: avoid new warnings from gcc
705         These would prevent building with -Werror and a Dec snapshot of gcc.
706         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
707         Rename each inner instance to "p".
708         (charclass_context): Remove unused static function.
710 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
712         mkdir-p: improve diagnostic for FUSE mounts
713         Problem reported by Niklas Hambüchen in:
714         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
715         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
716         errno to mkdir errno if the stat errno is likely more interesting.
718 2018-12-14  Bruno Haible  <bruno@clisp.org>
720         hash-map: Add tests.
721         * tests/test-hash_map.c: New file.
722         * modules/hash-map-tests: New file.
724         linkedhash-map: Add tests.
725         * tests/test-linkedhash_map.c: New file.
726         * modules/linkedhash-map-tests: New file.
728         array-map: Add tests.
729         * tests/test-array_map.c: New file.
730         * modules/array-map-tests: New file.
732         xmap: New module.
733         * lib/gl_xmap.h: New file.
734         * lib/gl_xmap.c: New file.
735         * modules/xmap: New file.
737         hash-map: New module.
738         * lib/gl_hash_map.h: New file.
739         * lib/gl_hash_map.c: New file.
740         * modules/hash-map: New file.
742         linkedhash-map: New module.
743         * lib/gl_linkedhash_map.h: New file.
744         * lib/gl_linkedhash_map.c: New file.
745         * lib/gl_anyhash1.h: Update comments.
746         * lib/gl_anyhash2.h: Likewise.
747         * modules/linkedhash-map: New file.
749         array-map: New module.
750         * lib/gl_array_map.h: New file.
751         * lib/gl_array_map.c: New file.
752         * modules/array-map: New file.
754         map: New module.
755         * lib/gl_map.h: New file.
756         * lib/gl_map.c: New file.
757         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
758         conflict with gl_map.h.
759         * modules/map: New file.
761 2018-12-13  Bruno Haible  <bruno@clisp.org>
763         select tests: Avoid test failure on Cygwin.
764         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
766 2018-12-13  Bruno Haible  <bruno@clisp.org>
768         localtime-buffer: Avoid endless recursion in localtime and gmtime.
769         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
771 2018-12-13  Bruno Haible  <bruno@clisp.org>
773         localeconv tests: Avoid test failure on Cygwin.
774         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
775         'mon_grouping' tests.
777 2018-12-11  Bruno Haible  <bruno@clisp.org>
779         omap: Don't dispose the old value when the function returns it.
780         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
781         here.
782         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
783         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
784         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
785         here.
787         array-omap, avltree-omap, rbtree-omap: Tweak style.
788         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
789         false.
790         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
792         rbtree-omap: Add tests.
793         * tests/test-rbtree_omap.c: New file.
794         * modules/rbtree-omap-tests: New file.
796         avltree-omap: Add tests.
797         * tests/test-avltree_omap.c: New file.
798         * modules/avltree-omap-tests: New file.
800         array-omap: Add tests.
801         * tests/test-array_omap.c: New file.
802         * modules/array-omap-tests: New file.
804         xomap: New module.
805         * lib/gl_xomap.h: New file.
806         * lib/gl_xomap.c: New file.
807         * modules/xomap: New file.
809         rbtree-omap: New module.
810         * lib/gl_rbtree_omap.h: New file.
811         * lib/gl_rbtree_omap.c: New file.
812         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
813         Parameterize.
814         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
815         * modules/rbtree-omap: New file.
816         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
817         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
819         avltree-omap: New module.
820         * lib/gl_avltree_omap.h: New file.
821         * lib/gl_avltree_omap.c: New file.
822         * lib/gl_avltree_ordered.h: Code moved to here from
823         lib/gl_avltree_oset.c. Parameterize.
824         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
825         * lib/gl_anytree_omap.h: New file.
826         * modules/avltree-omap: New file.
827         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
828         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
830         array-omap: New module.
831         * lib/gl_array_omap.h: New file.
832         * lib/gl_array_omap.c: New file.
833         * modules/array-omap: New file.
835         omap: New module.
836         * lib/gl_omap.h: New file.
837         * lib/gl_omap.c: New file.
838         * modules/omap: New file.
840 2018-12-11  Bruno Haible  <bruno@clisp.org>
842         hash-set, linkedhash-set: Reduce code duplication.
843         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
844         lib/gl_anyhash_set1.h.
845         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
846         lib/gl_anyhash_set2.h. Parameterize.
847         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
848         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
849         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
850         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
851         * lib/gl_rbtreehash_list.c: Likewise.
852         * lib/gl_linkedhash_list.c: Likewise.
853         (hash_resize_after_add): Remove function.
854         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
855         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
856         * gl_hash_set.c: Likewise.
857         * modules/avltreehash-list (Files, Makefile.am): Update file list.
858         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
859         * modules/linkedhash-list (Files, Makefile.am): Likewise.
860         * modules/linkedhash-set (Files, Makefile.am): Likewise.
861         * modules/hash-set (Files, Makefile.am): Likewise.
863 2018-12-11  Bruno Haible  <bruno@clisp.org>
865         array-set: Optimize.
866         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
867         outside the loop, not inside the loop.
869 2018-12-11  Bruno Haible  <bruno@clisp.org>
871         times: Fix tests.
872         * tests/test-times.c (doublecmp): Implement a total order.
874 2018-12-11  Bruno Haible  <bruno@clisp.org>
876         array-set, linkedhash-set, hash-set: Fix tests.
877         * tests/test-array_set.c (cmp_objects_in_array): New function.
878         (check_equals): Use it.
879         * tests/test-hash_set.c: Likewise.
880         * tests/test-linkedhash_set.c: Likewise.
882 2018-12-08  Bruno Haible  <bruno@clisp.org>
884         Fix comments.
885         * lib/gl_list.h (gl_list_free): Clarify what it does.
886         * lib/gl_oset.h (gl_oset_free): Likewise.
887         * lib/gl_set.h (gl_set_free): Likewise.
888         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
889         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
890         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
891         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
893 2018-12-03  Bruno Haible  <bruno@clisp.org>
895         hash-set: Add tests.
896         * tests/test-hash_set.c: New file.
897         * modules/hash-set-tests: New file.
899         linkedhash-set: Add tests.
900         * tests/test-linkedhash_set.c: New file.
901         * modules/linkedhash-set-tests: New file.
903         array-set: Add tests.
904         * tests/test-array_set.c: New file.
905         * modules/array-set-tests: New file.
907         xset: New module.
908         * lib/gl_xset.h: New file.
909         * lib/gl_xset.c: New file.
910         * modules/xset: New file.
912         hash-set: New module.
913         * lib/gl_hash_set.h: New file.
914         * lib/gl_hash_set.c: New file.
915         * modules/hash-set: New file.
917         linkedhash-set: New module.
918         * lib/gl_linkedhash_set.h: New file.
919         * lib/gl_linkedhash_set.c: New file.
920         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
921         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
922         * lib/gl_anyhash_primes.h: New file, extracted from
923         lib/gl_anyhash_list2.h.
924         * lib/gl_anyhash_list2.h: Include it.
925         (primes, next_prime): Remove definitions.
926         * modules/linkedhash-set: New file.
927         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
928         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
929         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
930         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
931         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
932         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
934         array-set: New module.
935         * lib/gl_array_set.h: New file.
936         * lib/gl_array_set.c: New file.
937         * modules/array-set: New file.
939         set: New module.
940         * lib/gl_set.h: New file.
941         * lib/gl_set.c: New file.
942         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
943         gl_set.h.
944         * modules/set: New file.
946 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
948         bison: don't force the Yacc mode
949         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
950         errors when Bison features are used in the grammar file.  Some of
951         these features (such as %expect) were flagged non-yacc recently.  Most
952         of the time, -y is actually used to please Automake's ylwrap which
953         expects the output to be y.tab.c.
954         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
956 2018-12-01  Bruno Haible  <bruno@clisp.org>
958         gnupload: Document short options.
959         * build-aux/gnupload (usage): Document the short options.
961 2018-11-28  Ben Elliston  <bje@gnu.org>
963         gnupload: Support option -h as alias of --help.
964         * build-aux/gnupload: Support -h.
966 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
968         memrchr: port better to clang
969         * lib/memrchr.c (__memrchr): Cast to void * instead of to
970         longword *, to pacify clang -Wcast-align (Bug#33544).
972 2018-11-29  Eric Blake  <eblake@redhat.com>
974         docs: mention printf %m considerations
975         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
976         is not portable, and is easy enough to work around.
977         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
978         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
979         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
980         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
981         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
982         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
983         * doc/posix-functions/printf.texi (printf): Likewise.
984         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
985         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
986         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
987         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
988         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
989         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
990         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
991         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
992         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
993         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
994         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
995         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
997 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
999         bitset: rename ebitset/expandable.* as tbitset/table.*
1000         See
1001         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
1002         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
1003         * lib/bitset/table.h, lib/bitset/table.c: these.
1004         Rename all the ebitset* symbols as tbitset*.
1005         Adjust dependencies.
1007 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1009         bitset: check the operations
1010         * tests/test-bitset.c (bitset_random): New.
1011         Use it.
1012         * lib/bitset/expandable.c (ebitset_not): Fix typo.
1014 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1016         bitset: properly use false/true instead of 0/1 for Booleans
1017         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
1018         0/1, as Booleans.
1020 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1022         bitset: rename BITSET_VARRAY as BITSET_VECTOR
1023         For consistency with the name of the file.
1024         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
1025         * lib/bitset/stats.c, lib/bitset/vector.c
1026         (BITSET_VARRAY): Rename as...
1027         (BITSET_VECTOR): this.
1029 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1031         strerror_r-posix: memmove, not memcpy
1032         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
1033         since the source and destination might overlap in the call
1034         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
1035         Simplify.
1037 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1039         bitsetv: new module
1040         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
1042 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1044         bitset: add tests and doc
1045         First stabs at providing a documentation and test for the bitset
1046         module.
1047         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
1049 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1051         bitset: new module
1052         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
1053         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
1054         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
1055         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
1056         * lib/bitset/vector.h, modules/bitset:
1057         New.
1059 2018-11-23  Bruno Haible  <bruno@clisp.org>
1061         localename: Fix gettext test failures on mingw.
1062         * lib/localename.c (gl_locale_name_posix): Convert the result of
1063         gl_locale_name_environ to XPG syntax.
1065 2018-11-23  Karl Berry  <karl@freefriends.org>
1067         * config/srclistvars.txt,
1068         * config/srclist.txt: remove all gettext references;
1069         the gettext maintainers will sync as needed.
1071 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1073         mktime: add libc-config dependency
1074         I missed this when we synced from glibc.
1075         * modules/mktime (Depends-on): Add libc-config.
1077 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
1079         longlong: fix comment typo
1080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
1082 2018-11-11  Bruno Haible  <bruno@clisp.org>
1084         havelib: Remove the need to include asm-underscore.m4.
1085         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
1086         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
1087         gl_HOST_CPU_C_ABI.
1088         * modules/havelib (Files): Add host-cpu-c-abi.m4.
1089         (Depends-on): Remove host-cpu-c-abi.
1091 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1093         parse-datetime: simplify test for mktime failure
1094         * lib/parse-datetime.y (mktime_ok): Simplify.
1095         Remove args TZ and T; no longer needed.  Callers changed.
1097         posixtm: simplify test for mktime failure
1098         * lib/posixtm.c (posixtime): Simplify.
1100         nstrftime: simplify test for mktime failure
1101         * lib/nstrftime.c (__strftime_internal): Simplify.
1103 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1105         gnulib-common.m4: port _Noreturn to C++
1106         Problem reported by Akim Demaille in:
1107         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
1108         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
1109         Merge adjustments from _Noreturn.h and from glibc into the non-C++
1110         version.
1111         * lib/_Noreturn.h: Match gnulib-common.
1113 2018-10-30  Bruno Haible  <bruno@clisp.org>
1115         gnu-make: Fix for NetBSD 8 'make'.
1116         Reported by Reuben Thomas in
1117         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
1118         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
1119         output, ignoring exit codes.
1121 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
1123         maintainer-makefile: fix syntax-check rule for "same.h"
1124         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
1125         for 'same_nameat', too.
1127 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1129         havelib: fix nested ‘configure’ chatter
1130         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
1131         AC_CACHE_CHECK calls, which resulted in confusing output like
1132         “checking for the common suffixes of directories in the library
1133         search path... checking for 64-bit host... no lib,lib”.
1135         backupfile: tweak for better code
1136         * lib/backupfile.c: Sort include directives, and remove
1137         unnecessary <limits.h> include.
1138         (FALLTHROUGH): New macro, copied from other modules.
1139         (backupfile_internal): Use it to avoid code duplication.
1140         This lets GCC 8.2.1 generate better code by inlining the
1141         call to check_extension.
1143 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1145         backupfile: new dir_fd args
1146         New module opendirat with code taken from fts.
1147         Use this module to let backupfile use a directory file descriptor.
1148         * NEWS: Document the incompatible change.
1149         * lib/backup-find.c (find_backup_file_name):
1150         * lib/backup-rename.c (backup_file_rename):
1151         New arg DIR_FD.
1152         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
1153         (SIZE_MAX): Remove.
1154         Include opendirat.h rather than dirent--.h.
1155         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
1156         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
1157         (backupfile_internal): New arg DIR_FD.  All callers changed.
1158         * lib/fts.c: Include opendirat.h.
1159         (opendirat): Move to opendirat.c.
1160         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
1161         * modules/backupfile (Depends-on): Remove dirfd, opendir.
1162         Add opendirat.
1163         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
1164         Add opendirat.
1166 2018-10-23  Bruno Haible  <bruno@clisp.org>
1168         localename: Simplify support for per-thread locales on Solaris 11.4.
1169         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
1170         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
1171         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
1172         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
1173         specific code.
1174         * lib/localename-table.h: Update comments.
1175         * lib/localename-table.c: Update comments.
1176         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
1177         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
1178         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
1179         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
1180         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
1181         HAVE_NAMELESS_LOCALES here.
1182         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
1183         m4/intlsolaris.m4.
1184         * modules/gettext (Files): Likewise.
1186 2018-10-22  Bruno Haible  <bruno@clisp.org>
1188         std-gnu11: Support Autoconf versions < 2.64.
1189         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
1190         when _AC_DO_LIMIT does not exist.
1192 2018-10-22  Bruno Haible  <bruno@clisp.org>
1194         Assume Autoconf >= 2.63.
1195         * DEPENDENCIES: Mention the requirement.
1197         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
1198         (func_get_filelist): Don't list m4/onceonly.m4 any more.
1199         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
1200         * m4/onceonly.m4: Remove file.
1202         * m4/openmp.m4: Remove file.
1203         * modules/openmp (Files): Remove m4/openmp.m4.
1205         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
1206         htmldir, dvidir, pdfdir, psdir, localedir.
1207         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
1209         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
1210         Autoconf < 2.60.
1211         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
1212         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
1214         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
1215         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
1216         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
1218         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
1219         exists.
1220         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
1222         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
1223         Autoconf < 2.61.
1225         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
1226         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
1227         Autoconf >= 2.52.
1229         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
1230         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
1231         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
1233 2018-10-22  Bruno Haible  <bruno@clisp.org>
1235         Assume Automake >= 1.11.
1236         * m4/configmake.m4: Update comments.
1237         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
1238         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
1239         of 'eval'.
1240         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
1241         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
1242         requires Automake >= 1.11.
1244 2018-10-22  Bruno Haible  <bruno@clisp.org>
1246         localename: Fix typo in comment.
1247         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
1249 2018-10-22  Bruno Haible  <bruno@clisp.org>
1251         Fix failure of 'gnulib-tool --create-testdir' with all modules.
1252         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
1254 2018-10-21  Bruno Haible  <bruno@clisp.org>
1256         locale: Ease integration with GNU libintl.
1257         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
1258         GNULIB_defined_freelocale): New macros.
1260 2018-10-21  Bruno Haible  <bruno@clisp.org>
1262         localename: Fine-tune support for per-thread locales on Solaris 11.4.
1263         * lib/localename-table.h: New file, extracted from lib/localename.c.
1264         * lib/localename-table.c: Likewise.
1265         * lib/localename.c: Include localename-table.h.
1266         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
1267         locale_hash_function instead of pointer_hash.
1268         * modules/localename (Files): Add lib/localename-table.h,
1269         lib/localename-table.c.
1270         (lib_SOURCES): Add localename-table.c.
1271         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
1272         for Solaris 11.4 locale system only on Solaris. Test for it
1273         independently whether getlocalename_l exists.
1274         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
1275         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
1276         HAVE_NAMELESS_LOCALES.
1277         * modules/gettext (Files): Add m4/intlsolaris.m4.
1279 2018-10-21  Bruno Haible  <bruno@clisp.org>
1281         Small update from gettext.
1282         * m4/intl.m4: Update from gettext:
1283         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
1284         mode on AIX.
1285         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
1286         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
1288 2018-10-16  Bruno Haible  <bruno@clisp.org>
1290         mountlist: Remove support for Cray with UNICOS 9.
1291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1292         MOUNTED_LISTMNTENT.
1293         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
1295 2018-10-16  Bruno Haible  <bruno@clisp.org>
1297         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
1298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
1299         STAT_STATFS2_FS_DATA.
1300         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
1301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1302         MOUNTED_GETMNT.
1303         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
1304         * lib/getloadavg.c (decstation): Remove definition and case.
1305         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
1306         * lib/getgroups.c: Likewise.
1307         * doc/posix-functions/getgroups.texi: Likewise.
1308         * lib/time.in.h: Update comments.
1310 2018-10-16  Bruno Haible  <bruno@clisp.org>
1312         getloadavg: Remove support for ConvexOS.
1313         * lib/getloadavg.c: Remove convex case.
1315 2018-10-16  Bruno Haible  <bruno@clisp.org>
1317         getloadavg: Remove support for Sony NEWS.
1318         * lib/getloadavg.c: Remove sony_news case.
1320 2018-10-16  Bruno Haible  <bruno@clisp.org>
1322         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
1323         * lib/fsusage.c: Remove _SEQUENT_ case.
1324         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1325         * lib/mountlist.c: Don't test for MNTTABNAME.
1326         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
1327         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
1328         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
1329         * lib/stat-size.h: Don't mention the Sequent bug.
1330         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1332 2018-10-16  Bruno Haible  <bruno@clisp.org>
1334         fsusage: Remove support for AIX 3.
1335         * lib/fsusage.c: Remove code for AIX 3.
1336         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1338 2018-10-16  Bruno Haible  <bruno@clisp.org>
1340         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1341         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1342         * lib/fsusage.c: Remove code for AIX PS/2.
1343         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1344         * lib/getloadavg.c: Likewise.
1346 2018-10-16  Bruno Haible  <bruno@clisp.org>
1348         getloadavg: Remove support for HP-UX on m68k.
1349         * lib/getloadavg.c: Remove hp9000s300 case.
1351 2018-10-16  Bruno Haible  <bruno@clisp.org>
1353         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1354         * lib/fsusage.c: Remove DOLPHIN case.
1355         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1356         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1358 2018-10-16  Bruno Haible  <bruno@clisp.org>
1360         getloadavg: Remove support for Alliant FX/2800.
1361         * lib/getloadavg.c: Remove alliant case.
1363 2018-10-16  Bruno Haible  <bruno@clisp.org>
1365         getloadavg: Remove support for tek4300.
1366         * lib/getloadavg.c: Remove tek4300 case.
1368 2018-10-16  Bruno Haible  <bruno@clisp.org>
1370         getloadavg: Remove support for Ardent.
1371         * lib/getloadavg.c: Remove ardent case.
1373 2018-10-16  Bruno Haible  <bruno@clisp.org>
1375         mountlist: Remove support for SVR2.
1376         Reported by Andrew Borodin <aborodin@vmail.ru> in
1377         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1378         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1379         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1380         MOUNTED_FREAD.
1382 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1384         libc-config: merge from glibc
1385         * lib/cdefs.h (__glibc_has_attribute): New macro.
1387         regex: depend on libc-config
1388         * modules/regex (Depends-on): Add libc-config.
1389         This is needed after the recent autoupdate from glibc.
1391 2018-10-14  Bruno Haible  <bruno@clisp.org>
1393         localename: Add support for per-thread locales on Solaris 11.4.
1394         * lib/locale.in.h (newlocale, freelocale): New declarations.
1395         (duplocale): Declare also when the 'localename' module requests it.
1396         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1397         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1398         (struniq): Update.
1399         (struct locale_categories_names, struct locale_hash_node): New types.
1400         (LOCALE_HASH_TABLE_SIZE): New constant.
1401         (locale_hash_table, locale_lock): New variables.
1402         (pointer_hash, get_locale_t_name): New functions.
1403         (newlocale, duplocale, freelocale): New overridden functions.
1404         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1405         * m4/intlsolaris.m4: New file.
1406         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1407         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1408         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1409         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1410         declared.
1411         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1412         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1413         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1414         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1415         * modules/localename (Files): Add intlsolaris.m4.
1416         (Depends-on): Add 'locale'.
1417         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1418         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1419         the signatures.
1421 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1423         timevar: use gethrxtime to get wall clock time
1424         clock_gettime is not portable.  gethrxtime takes the best available
1425         option to get the wall clock time, including clock_gettime (monotonic
1426         clock), and gettime (non monotonic).
1427         Also, using xtime_t instead of float preserves the precision.
1428         Suggested by Bruno Haible.
1429         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1430         * modules/timevar (Depends-on): We need gethrxtime.
1431         We no longer use times().
1432         (Link): Update.
1433         * lib/timevar.h (timevar_time_def): Use xtime_t.
1434         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1435         (timevar_print): Instead of checking whether the timings themselves
1436         are large enough for the timevar to be printed, check the percentages.
1438 2018-10-14  Bruno Haible  <bruno@clisp.org>
1440         wcsnrtombs: Work around Solaris 11.4 bug.
1441         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1442         macro.
1443         (gl_FUNC_WCSNRTOMBS): Invoke it.
1444         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1446 2018-10-14  Bruno Haible  <bruno@clisp.org>
1448         mbsnrtowcs: Work around Solaris 11.4 bug.
1449         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1450         macro.
1451         (gl_FUNC_MBSNRTOWCS): Invoke it.
1452         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1454 2018-10-14  Bruno Haible  <bruno@clisp.org>
1456         doc: Update for Solaris 11.4.
1457         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1458         mention Solaris 11.4.
1459         * m4/printf.m4: Update comments about Solaris.
1460         * m4/log.m4: Likewise.
1461         * m4/log10.m4: Likewise.
1462         * m4/logb.m4: Likewise.
1463         * m4/logbf.m4: Likewise.
1464         * m4/logbl.m4: Likewise.
1465         * m4/rename.m4: Likewise.
1466         * m4/wcrtomb.m4: Likewise.
1467         * m4/hostent.m4: Likewise.
1468         * m4/servent.m4: Likewise.
1470 2018-10-14  Bruno Haible  <bruno@clisp.org>
1472         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1473         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1474         pointer.
1475         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1476         pointer.
1477         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1478         pointer.
1479         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1480         pointer.
1481         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1482         pointer.
1484 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1486         bootstrap: fix wget command for po files.
1487         * build-aux/bootstrap (po_download_command_format): Fix comment,
1488         and adjust callers.
1490 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1492         timevar: improve the output format
1493         Suggested by Bruno Haible.
1494         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1495         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1496         wall, since its resolution is much higher.
1498 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1500         timevar: expect that getrusage is available.
1501         Don't keep both times and getrusage as backend: both are guaranteed by
1502         gnulib, a single one suffices.  Using getrusage is open to possibly
1503         tracking other types of resources in the future.
1504         * modules/timevar (Depends-on): Add getrusage.
1505         (configure.ac): Remove gl_TIMEVAR.
1506         (Files): Remove m4/timevar.m4.
1507         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1508         * lib/timevar.h (timevar_enabled): Clarify documentation.
1509         * lib/timevar.c: Remove all the code about times.
1510         Remove all the CPP guards about getrusage: expect it to be present
1511         (courtesy of gnulib).
1513 2018-10-12  Bruno Haible  <bruno@clisp.org>
1515         mountlist: Improve support for Solaris in 64-bit mode.
1516         Reported by David Wood <David.Wood@deshaw.com> in
1517         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1518         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1519         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1520         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1522 2018-10-12  Bruno Haible  <bruno@clisp.org>
1524         mountlist: Add support for Minix.
1525         Reported by Assaf Gordon in
1526         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1527         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1528         AC_CHECK_FUNCS to check for 'getmntinfo'.
1529         * lib/mountlist.c: Update comments.
1531 2018-10-12  Bruno Haible  <bruno@clisp.org>
1533         Make better use of Autoconf.
1534         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1535         * m4/manywarnings.m4: Likewise.
1536         * m4/manywarnings-c++.m4: Likewise.
1537         * m4/socklen.m4: Likewise.
1538         * m4/sockpfaf.m4: Likewise.
1539         * m4/stdarg.m4: Likewise.
1540         * m4/visibility.m4: Likewise.
1541         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1542         indentation.
1543         * m4/ls-mntd-fs.m4: Likewise.
1545 2018-10-11  Bruno Haible  <bruno@clisp.org>
1547         mountlist: Modernize platform lists.
1548         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1549         platforms, deemphasizing the obsolete ones.
1550         * lib/mountlist.c: Likewise.
1552 2018-10-11  Bruno Haible  <bruno@clisp.org>
1554         getprogname: Add support for 32-bit programs on HP-UX.
1555         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1556         try the similar functions 32-bit programs on 64-bit HP-UX.
1558 2018-10-11  Bruno Haible  <bruno@clisp.org>
1560         getprogname: Work around program name truncation when possible.
1561         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1562         possibly use pst_cmd instead.
1564 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1566         fts: cleanup after FTS_NOATIME removal
1567         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1568         (FTS_STOP): Shrink to minimal values.  We don’t need to
1569         worry about binary compatibility in Gnulib, and the old way
1570         of doing things had a hole in the user options that caused
1571         FTS_OPTIONMASK to not work as desired.
1573 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1575         fts: remove FTS_NOATIME
1576         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1577         We cannot guarantee that O_NOATIME works: e.g. openat fails
1578         with EPERM if the effective user ID of the caller does not match
1579         the owner of the file and the caller is not privileged.
1580         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1581         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1582         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1583         (FTS_OPTIONMASK): Adjust.
1584         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1585         (fd_ring_check): Likewise.
1587 2018-10-08  Bruno Haible  <bruno@clisp.org>
1589         csharpcomp*, csharpexec*: Remove support for pnet.
1590         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1591         HAVE_CSCC.
1592         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1593         Don't test HAVE_CSCC.
1594         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1595         (compile_csharp_class): Don't invoke it.
1596         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1597         HAVE_ILRUN.
1598         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1599         Don't test HAVE_ILRUN.
1600         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1601         (execute_csharp_program): Don't invoke it.
1602         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1603         any more.
1605 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1607         renameatu: prefer renameat2 to syscall
1608         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1609         Use renameat2 instead of syscall (Bug#32796).
1610         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1612 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1614         bootstrap, gnulib-tool: use https instead of insecure rsync
1615         * build-aux/bootstrap (download_po_files, po_download_command_format):
1616         Don't try using rsync; always use wget over https to fetch PO files.
1617         * gnulib-tool (func_import): Likewise.
1618         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1620 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1622         bootstrap, gnulib-tool: correct the translations wget command
1623         * build-aux/bootstrap (po_download_command_format2): Restrict
1624         recursion to a single level.
1625         * gnulib-tool (func_import): Likewise.
1626         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1628 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1630         doc: the gnulib snapshots are not maintained
1631         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1633 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1635         timevar: add to lib_SOURCES
1636         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1638 2018-10-07  Bruno Haible  <bruno@clisp.org>
1640         dirent: Update documentation.
1641         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1643 2018-10-05  Bruno Haible  <bruno@clisp.org>
1645         strpbrk: Make it possible to namespace the defined symbol.
1646         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1648 2018-10-05  Bruno Haible  <bruno@clisp.org>
1650         strcspn: Make it possible to namespace the defined symbol.
1651         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1653 2018-10-05  Bruno Haible  <bruno@clisp.org>
1655         raise: Make it possible to namespace the defined symbol.
1656         * lib/raise.c (raise): Undefine only after the replacement function has
1657         been defined.
1658         (raise): Renamed from rpl_raise.
1659         (raise_nothrow): Move to the end of the compilation unit.
1661 2018-10-05  Bruno Haible  <bruno@clisp.org>
1663         memcmp: Make it possible to namespace the defined symbol.
1664         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1666 2018-10-05  Bruno Haible  <bruno@clisp.org>
1668         explicit_bzero: Make it possible to namespace the defined symbol.
1669         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1670         glibc.
1672 2018-10-05  Bruno Haible  <bruno@clisp.org>
1674         mkdir-p: Depend on 'mkdir'.
1675         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1677 2018-10-05  Bruno Haible  <bruno@clisp.org>
1679         tempname: Depend on 'mkdir'.
1680         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1681         at <https://savannah.gnu.org/bugs/?33379>.
1682         * modules/tempname (Depends-on): Add 'mkdir'.
1684 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1686         timevar: rely on gnulib modules for time portability.
1687         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1688         * m4/timevar.m4: Don't check for clock_t and struct tms,
1689         guaranteed by gnulib.
1690         * lib/timevar.h: Use extern "C" protection.
1691         Include <stdio.h> for FILE.
1692         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1693         they are guaranteed by gnulib.
1694         Remove uses of clock as (now useless) fallback.
1696 2018-10-04  Bruno Haible  <bruno@clisp.org>
1698         sh-filename: New module.
1699         * m4/sh-filename.m4: New file.
1700         * modules/sh-filename: New file.
1701         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1702         "/bin/sh".
1703         * tests/test-posix_spawn1.c (main): Likewise.
1704         * tests/test-posix_spawn2.c (main): Likewise.
1705         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1706         is_envjavac_gcj43): Likewise.
1707         * lib/javaexec.c (execute_java_class): Likewise.
1708         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1709         * modules/posix_spawnp-tests (Depends-on): Likewise.
1710         * modules/javacomp (Depends-on): Likewise.
1711         * modules/javaexec (Depends-on): Likewise.
1713 2018-10-04  Bruno Haible  <bruno@clisp.org>
1715         spawn-pipe tests: Avoid test failure on native Windows.
1716         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1717         that fd 2 is closed.
1719 2018-10-04  Bruno Haible  <bruno@clisp.org>
1721         fcntl: Make it possible to namespace the defined symbol.
1722         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1723         been defined.
1724         (fcntl): Renamed from rpl_fcntl.
1725         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1726         from fcntl.
1727         (klibc_fcntl): Move to the end of the compilation unit.
1729 2018-10-02  Bruno Haible  <bruno@clisp.org>
1731         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1732         * tests/test-vasnprintf.c (test_function): Change the test added on
1733         2018-09-23 to check only the 18 most significant digits.
1735         vasnprintf tests: Avoid test failure on Cygwin.
1736         * tests/test-vasnprintf.c (test_function): Change the test added on
1737         2018-09-23 to check only the 42 most significant digits.
1739 2018-10-01  Bruno Haible  <bruno@clisp.org>
1741         mkostemp, mkostemps: Update documentation.
1742         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1743         * doc/glibc-functions/mkostemps.texi: Likewise.
1745 2018-10-01  Tom Tromey  <tom@tromey.com>
1747         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1748         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1749         on OS X.
1751 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1753         hmac-*: refactor to remove repetitive code
1754         * lib/hmac.c: A new parameterized single implementation.
1755         * lib/hmac-md5.c: Define parameters and include implementation.
1756         * lib/hmac-sha1.c: Likewise.
1757         * lib/hmac-sha256.c: Likewise.
1758         * lib/hmac-sha512.c: Likewise.
1759         * modules/crypto/hmac-md5: Reference the new implementation file.
1760         * modules/crypto/hmac-sha1: Likewise.
1761         * modules/crypto/hmac-sha256: Likewise.
1762         * modules/crypto/hmac-sha512: Likewise.
1763         * tests/test-hmac-md5.c: Refactor common code to a single function.
1764         * tests/test-hmac-sha1.c: Likewise.
1765         * tests/test-hmac-sha256.c: Likewise.
1766         * tests/test-hmac-sha512.c: Likewise.
1768 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1770         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1771         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1772         key length to that output by sha512, not the blocksize.
1773         Otherwise uninitialized data from the stack
1774         is used when computing the hash.
1775         * tests/test-hmac-sha512.c: Add a shortened key test case.
1776         Reported at https://github.com/coreutils/gnulib/pull/5
1778 2018-09-30  Bruno Haible  <bruno@clisp.org>
1780         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1781         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1782         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1783         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1784         'unsigned int' before comparison with an unsigned value.
1786 2018-09-30  Bruno Haible  <bruno@clisp.org>
1788         grantpt: Remove unnecessary dependency.
1789         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1791 2018-09-30  Bruno Haible  <bruno@clisp.org>
1793         timevar: Small tweaks.
1794         * lib/timevar.h: Fix comments. Add parameter names to function
1795         declarations.
1796         * lib/timevar.c: Include timevar.h immediately after config.h.
1797         * lib/timevar.def: Fix comments.
1798         * modules/timevar (Maintainer): List Akim Demaille.
1800 2018-09-30  Bruno Haible  <bruno@clisp.org>
1802         timevar: Include documentation in gnulib manual.
1803         * doc/timevar.texi: Change node and section name to 'Profiling of
1804         program phases'.
1805         In the code snippets, tweak the #includes and use GNU coding style.
1806         * doc/gnulib.texi: Include timevar.texi.
1808 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1810         timevar: import from Bison.
1811         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1812         New files.
1813         * lib/timevar.def: New file.
1814         * doc/timevar.texi: New file.
1816 2018-09-26  Bruno Haible  <bruno@clisp.org>
1818         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1819         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1820         * lib/javacomp.c (default_target_version): Likewise.
1822 2018-09-26  Bruno Haible  <bruno@clisp.org>
1824         javacomp-script, javacomp: Add support for Java 11.
1825         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1826         target-version 11.
1827         * lib/javaversion.h: Update comments.
1828         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1829         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1830         TARGET_VERSION_BOUND, target_version_index,
1831         corresponding_classfile_version): Accept source_version 11 and
1832         target_version 11.
1833         * lib/javacomp.h: Update comments accordingly.
1835 2018-09-23  Bruno Haible  <bruno@clisp.org>
1837         vasnprintf: Fix heap memory overrun bug.
1838         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1839         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1840         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1841         memory.
1842         * tests/test-vasnprintf.c (test_function): Add another test.
1844 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1846         maint: mktime.c now shared with glibc
1847         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1848         are now the same in Gnulib and glibc.
1850         mktime: fix _LIBC typo
1851         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1853 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1855         dfa: optimization for state merge
1856         * lib/dfa.c (merge2): New function.
1857         (merge_nfa_state): Use it.
1859 2018-09-18  Jim Meyering  <meyering@fb.com>
1861         dfa: trivial comment fix: s/is/if/
1862         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1864 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1866         dfa: use more-informative function name
1867         * lib/dfa.c (maybe_disable_superset_dfa):
1868         Rename from dfautf8noss.  Use change.
1870         dfa: tweak allocation performance
1871         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1872         Prefer ptrdiff_t for indexes some more.
1873         Use char for flags, as it’s wide enough.
1874         Allocate queue and flags together, with one malloc call.
1875         No need to use xnmalloc since the multiplication and
1876         addition cannot overflow (it’s already been checked by
1877         earlier allocation).  Prefer memset to open-coding.
1879         dfa: prune states as we go
1880         * lib/dfa.c (prune): Remove.
1881         dfa: reorder enum for efficiency
1882         (merge_nfa_state): Prune as we go instead of at the end.
1883         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1885         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1886         of the enumeration to make it easier for GCC to generate
1887         efficient code by using fewer comparisons to check for
1888         ranges of values.
1889         (atom): Take advantage of the reordering.
1891 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1893         dfa: optimize alternation in NFA
1894         Even when similar states exist in alternation, the DFA treats them
1895         as separate items, which may complicate the transition in NFA and
1896         cause slowdown.  This change assembles the states into one.  For
1897         example, ab|ac is changed into a(b|c).  This change speeds-up
1898         matching for many branched patterns.  For example, grep speeds up
1899         more than 30× in:
1901           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1902           time -p env LC_ALL=C grep -vf in in
1904         * lib/dfa.c (prune): New function.
1905         (merge_nfa_state): New function.  It merges similar NFA states.
1906         (dfaoptimize): New function.  It seeks merged and removed nodes.
1907         (dfaanalyze): Call new function.
1908         (dfautf8noss): Change name from dfaoptimize because of addition of new
1909         function.
1910         (dfacomp): Update caller.
1912         dfa: simplify initial state
1913         Simplifying the initial state enables easier optimization of the NFA.
1914         * lib/dfa.c (enum token): Add new element BEG.
1915         (prtok): Adjust due to adding element BEG.
1916         (dfaparse): Put BEG at a head of tokens.
1917         (state_index): Adjust due to adding element BEG.
1918         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1919         build initial state.
1920         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1922 2018-09-18  Bruno Haible  <bruno@clisp.org>
1924         file-has-acl: Fix test failure on Cygwin 2.9.
1925         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1926         * lib/acl-internal.h: Likewise.
1927         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1928         * lib/acl-internal.c: Update comments regarding Cygwin.
1929         * lib/acl_entries.c: Likewise.
1930         * lib/file-has-acl.c: Likewise.
1931         (file_has_acl): For Cygwin, use a different way to determine whether
1932         the "default" ACL of a directory is nontrivial.
1933         * lib/get-permissions.c: Update comments regarding Cygwin.
1934         * lib/set-permissions.c: Likewise.
1936 2018-09-18  Bruno Haible  <bruno@clisp.org>
1938         stat-time tests: Fix test failure on Cygwin.
1939         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1941 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1943         doc: OS X 10.11 lacked ns time functions
1944         According to <https://github.com/zeromq/libzmq/issues/2175>,
1945         nanosecond-resolution timestamp functions were introduced
1946         in macOS 10.12, so document the last version (OS X 10.11)
1947         where they were absent.
1949         gettime: nanotime never existed
1950         Problem reported by Bruno Haible in:
1951         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1952         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1953         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1955 2018-09-18  Bruno Haible  <bruno@clisp.org>
1957         doc: Update statement about target platforms.
1958         Reported by Simon Sobisch.
1959         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1960         restrictions on MSVC versions.
1962 2018-09-18  Bruno Haible  <bruno@clisp.org>
1964         posix_spawn tests: Fix link error on 64-bit Cygwin.
1965         * tests/test-posix_spawn1.c (environ): Remove declaration.
1966         * tests/test-posix_spawn2.c (environ): Likewise.
1967         * tests/test-posix_spawn3.c (environ): Likewise.
1968         * tests/test-posix_spawn4.c (environ): Likewise.
1969         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1970         * modules/posix_spawnp-tests (Depends-on): Likewise.
1972 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1974         timespec: new function current_timespec
1975         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1976         and don’t worry about it failing on a CLOCK_REALTIME arg.
1977         POSIX requires it to succeed and I don’t know of any
1978         counterexamples where the fallbacks would work.
1979         (current_timespec): New function, taken from Emacs.  It is more
1980         convenient than gettime, and can help register allocation.
1981         * lib/timespec.h: Include arg-nonnull.h.
1982         (current_timespec): New declaration.
1983         (gettime, settime): Declare args to be nonnull.
1984         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1986 2018-09-16  Bruno Haible  <bruno@clisp.org>
1988         setlocale: Improve locale handling on macOS 10.12 or newer.
1989         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1990         gl_locale_name_canonicalize.
1991         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1992         and LC_MESSAGES.
1993         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1995 2018-09-16  Bruno Haible  <bruno@clisp.org>
1997         Update list of locale names with scripts on macOS.
1998         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1999         match Mac OS X 10.13 and recent glibc.
2001 2018-09-16  Bruno Haible  <bruno@clisp.org>
2003         gettext: Use newer macOS APIs when possible.
2004         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
2005         CFLocaleCopyPreferredLanguages.
2007 2018-09-16  Bruno Haible  <bruno@clisp.org>
2009         localename: Revisit macOS specific code.
2010         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
2011         Fix comments about Mac OS X versions.
2013 2018-09-15  Bruno Haible  <bruno@clisp.org>
2015         setlocale: Improve support for locales not supported by libc.
2016         Reported by Dapeng Gao <peter@dpgao.cc> at
2017         <https://savannah.gnu.org/bugs/?54479>.
2018         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
2019         (libintl_setlocale): Use a more error-tolerant strategy when the locale
2020         to be set is not supported by libc: Emit warnings instead of failing.
2022 2018-09-15  Bruno Haible  <bruno@clisp.org>
2024         strstr, strcasestr: Add workaround against glibc-2.28 bug.
2025         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
2026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
2027         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
2028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
2029         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
2030         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
2031         * doc/glibc-functions/strcasestr.texi: Likewise.
2033 2018-09-14  Bruno Haible  <bruno@clisp.org>
2035         doc: Fix bottom of top-level page.
2036         Reported by Akim Demaille <akim.demaille@gmail.com> in
2037         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
2038         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
2039         mode.
2040         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
2041         accordingly.
2043 2018-09-12  Bruno Haible  <bruno@clisp.org>
2045         Add test case from a recent glibc bug.
2046         * tests/test-strstr.c (main): Add test of long needle.
2047         * tests/test-strcasestr.c (main): Likewise.
2048         * tests/test-c-strstr.c (main): Likewise.
2049         * tests/test-c-strcasestr.c (main): Likewise.
2050         * tests/test-memmem.c (main): Likewise.
2052 2018-09-12  Bruno Haible  <bruno@clisp.org>
2054         Apply Eric Blake's improvements from 2011-02-25 to more tests.
2055         * tests/test-c-strstr.c (main): Add the same tests here as well.
2057 2018-09-12  Bruno Haible  <bruno@clisp.org>
2059         Apply Jim Meyering's fix from 2015-01-11 to more tests.
2060         * tests/test-memmem.c (main): Free haystack.
2061         * tests/test-strcasestr.c (main): Likewise.
2062         * tests/test-c-strcasestr.c (main): Likewise.
2064 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
2066         xstrtol: fix missing-TYPE_SIGNED typo
2067         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
2069 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2071         timespec: fix resolution confusion
2072         In normal usage, clock resolution is given in seconds, but the
2073         code was mistakenly using inverse seconds and calling it
2074         “resolution”.  Fix this, partly by renaming two identifiers.
2075         The old names will be kept for a bit, to ease transition.
2076         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
2077         New constants, replacing TIMESPEC_RESOLUTION and
2078         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
2079         All uses changed.
2081 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2083         mktime: simplify in prep for glibc merge
2084         * lib/mktime.c, lib/timegm.c [_LIBC]:
2085         Include mktime-internal.h (a small file just for glibc)
2086         instead of using a typedef.
2088 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2090         intprops: minor clarification of code
2091         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
2092         Use _GL_INT_CONVERT rather than reinventing it.
2094 2018-09-07  Bruno Haible  <bruno@clisp.org>
2096         Fix a comment.
2097         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
2099 2018-09-07  Bruno Haible  <bruno@clisp.org>
2101         posix_spawn_file_actions_addchdir: Add tests.
2102         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
2103         * tests/test-posix_spawn4.c: New file.
2104         * modules/posix_spawn_file_actions_addchdir-tests: New file.
2106 2018-09-07  Bruno Haible  <bruno@clisp.org>
2108         posix_spawn_file_actions_addchdir: New module.
2109         Suggested by Eric Blake in
2110         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
2111         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
2112         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
2113         union member 'chdir_action'.
2114         * lib/spawn_faction_addchdir.c: New file.
2115         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
2116         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
2117         HAVE_WORKING_POSIX_SPAWN.
2118         * lib/spawn_faction_adddup2.c: Likewise.
2119         * lib/spawn_faction_addopen.c: Likewise.
2120         * m4/posix_spawn_faction_addchdir.m4: New file.
2121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
2122         'posix_spawn_file_actions_addchdir' is present and whether
2123         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
2124         instead of HAVE_WORKING_POSIX_SPAWN.
2125         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
2126         posix_spawn_file_actions_addchdir is declared.
2127         (gl_SPAWN_H_DEFAULTS): Initialize
2128         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2129         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2130         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2131         * modules/spawn (Makefile.am): Substitute
2132         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2133         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2135         * modules/posix_spawn_file_actions_addchdir: New file.
2136         * modules/posix_spawn_file_actions_addclose (Depends-on,
2137         configure.ac): Test also REPLACE_POSIX_SPAWN.
2138         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
2139         configure.ac): Likewise.
2140         * modules/posix_spawn_file_actions_addopen (Depends-on,
2141         configure.ac): Likewise.
2142         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
2143         signature.
2144         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2145         * doc/posix-functions/posix_spawnp.texi: Likewise.
2147 2018-09-06  Bruno Haible  <bruno@clisp.org>
2149         stddef: Override max_align_t on NetBSD 8.0/x86.
2150         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
2151         the value of __alignof__ (max_align_t).
2152         * doc/posix-headers/stddef.texi: Mention the issue.
2154 2018-09-06  Bruno Haible  <bruno@clisp.org>
2156         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
2157         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
2158         system fcntl.
2159         * doc/posix-functions/fcntl.texi: Document the issue.
2161 2018-09-06  Bruno Haible  <bruno@clisp.org>
2163         count-trailing-zeros tests: Rely on limits-h module.
2164         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
2165         definition.
2166         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
2168 2018-09-06  Bruno Haible  <bruno@clisp.org>
2170         count-leading-zeros tests: Rely on limits-h module.
2171         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
2172         definition.
2173         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
2175 2018-09-06  Bruno Haible  <bruno@clisp.org>
2177         count-one-bits tests: Rely on limits-h module.
2178         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
2179         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
2181 2018-09-06  Bruno Haible  <bruno@clisp.org>
2183         xstrtoll: Rely on limits-h module.
2184         * lib/xstrtol.c: Don't include intprops.h.
2185         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2186         * modules/xstrtol (Depends-on): Remove 'intprops'.
2187         * modules/xstrtoll (Depends-on): Add 'limits-h'.
2189 2018-09-06  Bruno Haible  <bruno@clisp.org>
2191         strtoll, strtoull: Rely on limits-h module.
2192         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
2193         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2194         * modules/strtoll (Depends-on): Add limits-h.
2195         * modules/strtoull (Depends-on): Likewise.
2197 2018-09-06  Bruno Haible  <bruno@clisp.org>
2199         intprops tests: Fix compilation error with pre-C99 compiler.
2200         * tests/test-intprops.c (verify_stmt): New macro.
2201         (VERIFY, main): Use it.
2203 2018-09-06  Bruno Haible  <bruno@clisp.org>
2205         limits-h: Provide numerical limits macros.
2206         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
2207         IRIX and for GCC.
2208         (WORD_BIT, LONG_BIT): Define.
2209         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
2210         <limits.h> does not define LLONG_MAX or WORD_BIT.
2211         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
2212         TYPE_MAXIMUM): New macros, from intprops.h.
2213         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
2214         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
2215         provides.
2217 2018-09-05  Bruno Haible  <bruno@clisp.org>
2219         fcntl: Don't access nonexistent optional argument.
2220         Reported by Frank Busse <f.busse@imperial.ac.uk> in
2221         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
2222         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
2223         don't consume an argument. For actions that take an 'int' argument,
2224         consume an 'int' argument.
2226 2018-09-05  Eric Blake  <eblake@redhat.com>
2228         doc: mention environ pitfall
2229         * doc/posix-functions/environ.texi (environ): Assigning NULL to
2230         environ is a glibc extension.
2232 2018-09-03  Bruno Haible  <bruno@clisp.org>
2234         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
2235         Reported by Antoine Luong <antoine.luong@c-s.fr> in
2236         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
2237         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
2238         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
2239         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
2241 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2243         mktime: fix unlikely race+overflow bug
2244         Problem reported by Alexandre Oliva in:
2245         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
2246         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
2247         to avoid an unlikely race if the compiler delays a load and
2248         if this cascades into a signed integer overflow.
2250 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2252         mktime, timegm: simplify glibc time64_t
2253         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
2254         Now long int, not time_t, since long int is the longstanding type
2255         for this in glibc and there is no need to change it even if time_t
2256         becomes 64 bits - even int would do, though this would be a change
2257         to the glibc generated code.  When this change is merged into
2258         glibc, it should simplify the time_t vs time64_t situation.
2260         mktime, timegm: simplify merge to glibc
2261         Move code around to make a merge to glibc easier to audit.
2262         This should not change behavior.
2263         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2264         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2265         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2266         simplify later conditionals; default the others to zero.  In uses
2267         of these conditionals, explicitly spell out how _LIBC affects
2268         things, so it’s easier to review from a glibc viewpoint.
2269         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2270         compartmentalize tzset issues.  Move system-dependent tzsettish
2271         code here from mktime.
2272         (mktime): Move tzsettish code to my_tzset, and move
2273         localtime_offset to within mktime so that it doesn’t
2274         need a separate ifdef.
2276 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2278         intprops: avoid evaluation of some expressions
2279         This makes EXPR_SIGNED (e) easier to use, as it no longer
2280         evaluates the expression E.  Formerly, E was required to be free
2281         of side effects.
2282         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
2283         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
2284         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
2286 2018-08-23  Bruno Haible  <bruno@clisp.org>
2288         getcwd: Add cross-compilation guesses.
2289         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
2290         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
2291         Based on a patch by Paul Eggert.
2292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
2293         guesses for all GNU systems.
2295 2018-08-19  Bruno Haible  <bruno@clisp.org>
2297         glob-h: Formalize side effects from other modules.
2298         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
2299         * m4/glob.m4 (gl_GLOB): Invoke it.
2301         fnmatch-h: Formalize side effects from other modules.
2302         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
2303         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
2305         limits-h: Formalize side effects from other modules.
2306         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
2307         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
2309 2018-08-19  Bruno Haible  <bruno@clisp.org>
2311         getpass: Move declaration to <unistd.h>.
2312         * lib/unistd.in.h (getpass): New declaration.
2313         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
2314         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
2315         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
2316         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
2317         On glibc systems, don't set REPLACE_GETPASS to 1.
2318         * modules/getpass (Depends-on): Add 'unistd'.
2319         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
2320         (Include): Specify <unistd.h> instead of "getpass.h".
2321         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
2322         (configure.ac): Sync with the configure.ac section of modules/getpass.
2323         (Include): Specify <unistd.h> instead of "getpass.h".
2324         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
2325         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
2326         REPLACE_GETPASS.
2327         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
2328         REPLACE_GETPASS.
2329         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2330         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2331         and musl.
2332         * NEWS: Mention the change.
2334 2018-08-19  Bruno Haible  <bruno@clisp.org>
2336         glob: Fix over-optimization due to attribute __nonnull__.
2337         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2339 2018-08-19  Bruno Haible  <bruno@clisp.org>
2341         glob: Fix another compilation error when glob.h is not replaced.
2342         Reported by Reuben Thomas <rrt@sc3d.org> in
2343         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2344         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2345         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2347 2018-08-18  Bruno Haible  <bruno@clisp.org>
2349         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2350         Reported by Reuben Thomas <rrt@sc3d.org> in
2351         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2352         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2353         in config.h.
2355 2018-08-18  Bruno Haible  <bruno@clisp.org>
2357         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2358         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2359         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2360         Solution proposed by Eli Zaretskii.
2361         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2362         * lib/gettimeofday.c (GetProcAddress): Likewise.
2363         * lib/link.c (GetProcAddress): Likewise.
2364         * lib/physmem.c (GetProcAddress): Likewise.
2365         * lib/poll.c (GetProcAddress): Likewise.
2366         * lib/select.c (GetProcAddress): Likewise.
2367         * lib/stat-w32.c (GetProcAddress): Likewise.
2369 2018-08-18  Bruno Haible  <bruno@clisp.org>
2371         glob: Fix another compilation error when glob.h is not replaced.
2372         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2373         * lib/globfree.c: Include <libc-config.h>.
2375 2018-08-18  Bruno Haible  <bruno@clisp.org>
2377         glob: Fix compilation error when glob.h is not replaced.
2378         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2379         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2380         * lib/glob_pattern_p.c: Include <libc-config.h>.
2381         * modules/glob (Depends-on): Add libc-config.
2383 2018-08-18  Bruno Haible  <bruno@clisp.org>
2385         scratch_buffer: Add tests.
2386         * tests/test-scratch-buffer.c: New file.
2387         * modules/scratch_buffer-tests: New file.
2389 2018-08-18  Bruno Haible  <bruno@clisp.org>
2391         scratch_buffer: Fix include file.
2392         Reported by Reuben Thomas <rrt@sc3d.org> in
2393         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2394         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2395         double-inclusion guard.
2397 2018-08-18  Bruno Haible  <bruno@clisp.org>
2399         glob-h: Revert Paul Eggert's revert.
2400         * m4/glob_h.m4: Revert to previous state.
2401         * modules/glob-h: Likewise.
2403 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2405         glob-h: always build glob.h
2406         This works around a problem reported by Reuben Thomas in:
2407         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2408         This workaround always builds glob.h, even on platforms that
2409         do not need it; perhaps this could be improved someday.
2410         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2411         is always created now.
2412         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2414 2018-08-13  Bruno Haible  <bruno@clisp.org>
2416         monetary: Simplify m4 code.
2417         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2418         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2420 2018-08-13  Bruno Haible  <bruno@clisp.org>
2422         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2423         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2424         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2425         and by Paul J. Lucas <paul@lucasmail.org> in
2426         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2427         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2429 2018-08-11  Bruno Haible  <bruno@clisp.org>
2431         setlocale: Trivial simplification.
2432         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2434 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2436         verify: port 'assume' to traditional tools
2437         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2438         and other tools that use /*NOTREACHED*/ comments.
2440 2018-08-10  Bruno Haible  <bruno@clisp.org>
2442         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2443         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2444         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2445         'fnmatch-gnu' is in use.
2447 2018-08-07  Bruno Haible  <bruno@clisp.org>
2449         glob-h: Add tests.
2450         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2451         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2452         tests/test-glob-h.c.
2453         * modules/glob-h-tests: New file.
2454         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2455         conditions.
2456         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2457         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2459 2018-08-07  Bruno Haible  <bruno@clisp.org>
2461         glob-h: New module.
2462         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2463         replacements.
2464         * lib/glob.c: Include <config.h>.
2465         * m4/glob_h.m4: New file.
2466         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2467         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2468         REPLACE_GLOB_PATTERN_P as appropriate.
2469         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2470         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2471         * modules/glob-h: New file.
2472         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2473         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2474         lstat, sys_stat. Change conditions.
2475         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2476         REPLACE_GLOB_PATTERN_P. Set module indicator.
2477         (Makefile.am): Remove code that is moved to glob-h.
2478         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2479         * modules/posixcheck (Depends-on): Add glob-h.
2481 2018-08-06  Bruno Haible  <bruno@clisp.org>
2483         Force generation of substitute .h file when C++ support is enabled.
2484         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2485         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2486         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2487         FNMATCH_H to non-empty.
2488         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2489         ICONV_H to non-empty.
2490         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2491         MONETARY_H to non-empty.
2492         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2493         non-empty.
2495 2018-08-06  Bruno Haible  <bruno@clisp.org>
2497         fnmatch-h: Fix test compilation error on mingw (regression from today).
2498         * lib/fnmatch.in.h: Fix conditions.
2500 2018-08-06  Bruno Haible  <bruno@clisp.org>
2502         sys_resource: Relicense under LGPLv2+.
2503         John Malmberg's approval is in
2504         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2505         * modules/sys_resource (License): Change to LGPLv2+.
2507 2018-08-06  Bruno Haible  <bruno@clisp.org>
2509         fnmatch-h: Add tests.
2510         * tests/test-fnmatch-h.c: New file.
2511         * modules/fnmatch-h-tests: New file.
2512         * tests/test-fnmatch-h-c++.cc: New file.
2513         * modules/fnmatch-h-c++-tests: New file.
2515 2018-08-06  Bruno Haible  <bruno@clisp.org>
2517         fnmatch-h: New module.
2518         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2519         replacements.
2520         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2521         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2522         'posixcheck' warning.
2523         * m4/fnmatch_h.m4: New file.
2524         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2525         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2526         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2527         as appropriate.
2528         * modules/fnmatch-h: New file.
2529         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2530         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2531         conditions.
2532         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2533         indicator.
2534         (Makefile.am): Remove code that is moved to fnmatch-h.
2535         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2536         REPLACE_FNMATCH.
2537         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2538         * modules/posixcheck (Depends-on): Add fnmatch-h.
2540 2018-08-06  Bruno Haible  <bruno@clisp.org>
2542         Enable more C++ tests.
2543         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2544         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2545         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2546         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2547         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2549 2018-08-06  Bruno Haible  <bruno@clisp.org>
2551         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2552         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2553         getopt.h.
2554         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2556 2018-08-05  Bruno Haible  <bruno@clisp.org>
2558         utime-h: Generate header file when module 'posixcheck' is in use.
2559         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2560         UTIME_H to non-empty.
2562 2018-08-05  Bruno Haible  <bruno@clisp.org>
2564         monetary: Generate header file when module 'posixcheck' is in use.
2565         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2566         use, set MONETARY_H to non-empty.
2568 2018-08-05  Bruno Haible  <bruno@clisp.org>
2570         iconv-h: Generate header file when module 'posixcheck' is in use.
2571         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2572         set ICONV_H to non-empty.
2574 2018-08-05  Bruno Haible  <bruno@clisp.org>
2576         Optimize the "checking whether ... is declared without a macro" checks.
2577         Suggested by Paul Eggert in
2578         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2579         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2580         Gnulib module 'posixcheck' is not in use.
2582 2018-08-05  Bruno Haible  <bruno@clisp.org>
2584         iconv-h: Enable 'posixcheck' warnings.
2585         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2586         iconv_open.
2587         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2589 2018-08-05  Bruno Haible  <bruno@clisp.org>
2591         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2592         * m4/extern-inline.m4: Add more comments.
2593         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2594         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2595         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2597 2018-08-04  Bruno Haible  <bruno@clisp.org>
2599         New module 'posixcheck'.
2600         * modules/posixcheck: New file.
2601         * m4/posixcheck.m4: New file.
2602         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2603         (Which modules?): Reference it.
2605 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2607         dfa: fix memory leak
2608         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2610 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2612         ieee754-h: new module
2613         It looks like Emacs can use this for some NaN processing.
2614         Emacs uses it only on double NaNs so it should be safe.
2615         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2616         * config/srclist.txt: Mention ieee754.h in a comment.
2617         * doc/glibc-headers/ieee754.texi (ieee754.h):
2618         Gnulib now has a substitute that should work
2619         except for long double and for non-IEEE platforms.
2620         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2621         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2623 2018-07-27  Bruno Haible  <bruno@clisp.org>
2625         iswcntrl: Mention minor problem on macOS.
2626         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2628 2018-07-26  Colin Watson  <cjwatson@debian.org>
2630         bootstrap, gnulib-tool: fix translations rsync
2631         Previously, we created files such as $pobase/Makefile.in.in and then the
2632         subsequent rsync would immediately delete them.
2633         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2634         non-.po files in target directory when rsyncing translations.
2635         * gnulib-tool (func_import): Likewise.
2636         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2638 2018-07-25  Jim Meyering  <meyering@fb.com>
2640         bootstrap: reinstate definition fo gnulib_mk.
2641         That variable is used at least by cppi.
2642         * build-aux/bootstrap (gnulib_mk): Restore definition.
2643         This reverts the deletion from v0.1-1844-gc66dba9ba.
2645 2018-07-23  Bruno Haible  <bruno@clisp.org>
2647         doc: For module names, use texinfo markup @code{} or @samp{}.
2648         * doc/alloca.texi: Mark gnulib module names with @code.
2649         * doc/alloca-opt.texi: Likewise.
2650         * doc/quote.texi: Likewise.
2651         * doc/posix-functions/freopen.texi: Likewise.
2652         * doc/posix-functions/open.texi: Likewise.
2653         * doc/posix-functions/readlink.texi: Likewise.
2654         * doc/posix-functions/readlinkat.texi: Likewise.
2655         * doc/posix-functions/stdout.texi: Likewise.
2656         * doc/posix-functions/stderr.texi: Likewise.
2657         * doc/posix-functions/unlink.texi: Likewise.
2658         * doc/posix-functions/unlinkat.texi: Likewise.
2659         * doc/posix-functions/utime.texi: Likewise.
2660         * doc/posix-functions/utimensat.texi: Likewise.
2661         * doc/posix-functions/utimes.texi: Likewise.
2662         * doc/posix-headers/stdint.texi: Likewise.
2663         * doc/glibc-functions/futimesat.texi: Likewise.
2664         * doc/glibc-functions/lutimes.texi: Likewise.
2665         * doc/glibc-functions/memmem.texi: Likewise.
2667 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2669         doc: Avoid some overfull lines in the TeX output.
2670         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2671         @example.
2672         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2673         newline before the long URL.
2674         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2675         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2676         Add line breaks in code snippets.
2678 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2680         hard-locale: simplify by removing hard-locale.m4
2681         * m4/hard-locale.m4: Remove.
2682         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2683         (configure.ac): Do not call gl_HARD_LOCALE.
2685         gnulib-tool: limit line length for git send-email
2686         * gnulib-tool (func_import): Break actioncmd log line
2687         into multiple lines.
2689 2018-07-16  Bruno Haible  <bruno@clisp.org>
2691         ffs: Ensure declaration on mingw.
2692         Reported by Daniel P. Berrangé <berrange@redhat.com>
2693         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2694         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2695         also declared.
2697 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2699         regex-tests: add dependency
2700         * modules/regex-tests (Depends-on): Add gettext-h.
2701         This is needed given the recent changes to regex,
2702         which no longer depends on gettext-h.
2704 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2706         regex: now in sync with glibc
2707         * config/srclist.txt: Gnulib and glibc regex code
2708         are synchronized again.
2710 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2712         renameatu: rename from renameat2
2713         It's looking like Glibc will add a renameat2 function
2714         that is incompatible with Gnulib renameat2; see:
2715         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2716         To help avoid future confusion, rename renameat2 to something else.
2717         Use the name 'renameatu', as the Gnulib function is close to the
2718         Glibc function.  Perhaps someday there will also be a renameat2
2719         Gnulib module, which mimicks the future glibc renameat2, but that
2720         can wait as nobody seems to need such a module now.
2721         * NEWS: Mention this.
2722         * lib/renameatu.c: Rename from lib/renameat2.c.
2723         * lib/renameatu.h: Rename from lib/renameat2.h.
2724         * modules/renameatu: Rename from modules/renameat2.
2725         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2726         All uses of "renameat2" in identifiers or file name
2727         changed to "renameatu", except for two instances in
2728         lib/renameatu.c that deal with the Linux kernel's
2729         renameat2 syscall.
2731 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2733         gnulib-tool: minor tweaks for --gnu-make
2734         * gnulib-tool: Do not allow --gnu-make in test modes,
2735         since they all require automake.
2736         (func_emit_lib_Makefile_am): Don’t emit automake comment
2737         if --gnu-make.
2739         regex: work around conditional-dependencies glitch
2740         * modules/regex (Depends-on): Add langinfo.
2741         Without this change, I had problems building an experimental
2742         version of GNU Emacs.  The symptom of the bug was a message
2743         ‘./configure: line 12726: test: =: unary operator expected’.
2744         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2745         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2746         was unset.  Although gl_FUNC_NL_LANGINFO has
2747         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2748         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2749         --conditional-dependencies sometimes arranges for the
2750         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2751         code.  Since the regex code includes <langinfo.h> it should be
2752         depending on the langinfo module anyway, and this happens to work
2753         around the bug, so install that as a workaround for now.  To
2754         reproduce the original problem, run the following shell script on
2755         the version of Gnulib just before this patch was installed.
2756                 rm -fr foo
2757                 mkdir foo
2758                 cat >foo/configure.ac <<'EOF'
2759                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2760                 gl_EARLY
2761                 gl_INIT
2762                 AC_OUTPUT
2763                 EOF
2764                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2765                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2766                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2767                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2768                 cd foo
2769                 aclocal -I m4
2770                 autoconf
2771                 ./configure --with-included-regex
2773 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2775         wchar: fix bug when checking for ‘inline’
2776         I discovered this when looking into using the regex module
2777         with Emacs.
2778         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2779         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2780         conftest1.c and conftest2.c but these files were not created.
2781         As far as I can see, this check never worked and nobody reported
2782         it until now, which is a bit worrisome.
2784 2018-06-30  Jim Meyering  <meyering@fb.com>
2786         bootstrap: s/--option val/--option=val/
2787         * build-aux/bootstrap (gnulib_tool_options): Change the
2788         spelling of "--option val" pairs to "--option=val", for
2789         aesthetics, and also so that this file no longer triggers
2790         a common help2man syntax-check warning when copied into
2791         projects like grep, gzip, etc.
2793 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2795         manywarnings: omit -Wswitch-default
2796         This should make things more consistent, as we already ignore
2797         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2798         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2799         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2800         Add -Wswitch-default.
2801         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2802         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2803         Remove -Wswitch-default.
2805         regex: revert most trimming
2806         Problems reported by Bruno Haible in:
2807         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2808         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2809         and wctype back in.  lock because regex users shouldn’t
2810         need to know that regex needs locking, and the rest because
2811         gnulib-tool should ordinarily ignore them anyway.
2813 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2815         regex: trim module dependencies
2816         * modules/regex (Depends-on): Remove gettext-h and lock,
2817         since the regex code should work OK without these modules,
2818         and Emacs uses it that way.  Also remove memcmp, memmove,
2819         and wctype, as these modules are obsolete and should not be
2820         needed any more.
2822 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2824         regex: glibc does not use intprops.h
2825         Maybe we can talk glibc into using intprops.h someday, but
2826         now doesn’t seem to be a good time.
2827         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2828         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2829         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2831 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2833         regex: port to recently proposed glibc regex merge
2834         This patch is inspired by Adhemerval Zanella's recent proposal
2835         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2836         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2837         the glibc side, without keeping Gnulib portable.
2838         * lib/regex.h: Fix a problem with glibc installed-header checking,
2839         as follows:
2840         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2841         (_Restrict_arr_): Prefer __restrict_arr if defined,
2842         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2843         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2844         (build_wcs_upper_buffer, build_upper_buffer)
2845         (re_string_translate_buffer, re_string_context_at):
2846         Move decls here from lib/regex_internal.h, for glibc internal tests.
2847         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2848         glibc BZ #18496.
2849         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2850         -Wunused-value.
2851         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2852         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2853         (bitset_mask): Now static inline, and without any __attribute__
2854         ((unused)) decoration, for glibc internal tests.
2856 2018-06-25  Bruno Haible  <bruno@clisp.org>
2858         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2859         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2860         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2861         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2862         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2863         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2864         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2865         / -lthread / -lpth does not get optimized away by a preceding
2866         --as-needed option.
2868 2018-06-25  Bruno Haible  <bruno@clisp.org>
2870         Continue to use spaces for indentation, not tabs.
2871         * MODULES.html.sh: Untabify.
2872         * doc/regex.texi: Likewise.
2873         * lib/acl-internal.c: Likewise.
2874         * lib/dfa.c: Likewise.
2875         * lib/exclude.c: Likewise.
2876         * lib/exclude.h: Likewise.
2877         * lib/get-permissions.c: Likewise.
2878         * lib/gettimeofday.c: Likewise.
2879         * lib/parse-datetime.y: Likewise.
2880         * lib/pselect.c: Likewise.
2881         * lib/set-permissions.c: Likewise.
2882         * lib/time.in.h: Likewise.
2883         * m4/canonicalize.m4: Likewise.
2884         * m4/gc.m4: Likewise.
2885         * m4/gnulib-common.m4: Likewise.
2886         * m4/pthread_sigmask.m4: Likewise.
2887         * m4/vararrays.m4: Likewise.
2888         * tests/test-digest.h: Likewise.
2889         * tests/test-fcntl-h.c: Likewise.
2890         * tests/test-timespec.c: Likewise.
2891         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2893 2018-06-25  Bruno Haible  <bruno@clisp.org>
2895         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2896         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2897         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2898         -Wjump-misses-init.
2900 2018-06-25  Jim Meyering  <meyering@fb.com>
2902         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2903         * lib/acl-internal.h (free_permission_context): Remove that
2904         attribute directive.  Otherwise, it would provoke this from GCC 9:
2905         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2906           returning 'void' [-Werror=attributes]
2908 2018-06-24  Jim Meyering  <meyering@fb.com>
2910         parse-datetime: accommodate gcc-4.8.5
2911         Bruno Haible reported the build failure in
2912         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2913         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2914         on declaration of new local.
2916 2018-06-24  Bruno Haible  <bruno@clisp.org>
2918         af_alg: Fail in continuable manner on Linux/powerpc64le.
2919         Reported by Assaf Gordon <assafgordon@gmail.com>
2920         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2921         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2922         byte send() as the first round.
2924 2018-06-24  Bruno Haible  <bruno@clisp.org>
2926         af_alg: Fix state of stream after sendfile() succeeds.
2927         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2928         the stream is correctly positioned afterwards.
2929         * modules/crypto/af_alg (Depends-on): Add fflush.
2930         * tests/test-digest.h (test_digest_on_files): Verify that after the
2931         operation the stream is positioned at end of file.
2933 2018-06-24  Jim Meyering  <meyering@fb.com>
2935         canon-host: take GCC9's advice rather than ignoring warning
2936         Pádraig Brady suggested not to ignore this GCC9 advice.
2937         * lib/canon-host.c: Undo preceding change.
2938         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2940         parse-datetime.y: avoid spurious GCC 9 warning
2941         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2942         a function local prior to the first "goto fail".  The prior use would
2943         evoke this:
2944         parse-datetime.y: In function 'parse_datetime2':
2945         parse-datetime.y:1791:19: error: jump skips variable initialization \
2946           [-Werror=jump-misses-init]
2947         parse-datetime.y:2385:2: note: label 'fail' defined here
2948         parse-datetime.y:188:43: note: '({anonymous})' declared here
2949         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2951         canon-host.c: avoid spurious GCC 9 warning
2952         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2954         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2955         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2956         * m4/manywarnings.m4: Remove them.
2957         Otherwise, building coreutils, I would see this:
2958         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2959         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2960         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2961           which is also used by default
2962         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2964 2018-06-24  Bruno Haible  <bruno@clisp.org>
2966         af_alg tests: Add another test.
2967         * tests/test-digest.h (test_digest_on_files): Also check a large file
2968         with a skipped header.
2969         * tests/test-md5.c: Include macros.h.
2970         * tests/test-sha1.c: Likewise.
2971         * tests/test-sha256.c: Likewise.
2972         * tests/test-sha512.c: Likewise.
2973         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2974         * modules/crypto/sha1-tests (Files): Likewise.
2975         * modules/crypto/sha256-tests (Files): Likewise.
2976         * modules/crypto/sha512-tests (Files): Likewise.
2978 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2980         maint: clarify comments about sticky EOF
2981         * lib/af_alg.c: Be more direct that we can't
2982         assume stickiness of EOF for portability reasons.
2983         * lib/md5.c: Clarify that this isn't just a glibc issue.
2984         * lib/sha1.c: Likewise.
2985         * lib/sha256.c: Likewise.
2986         * lib/sha512.c: Likewise.
2988 2018-06-24  Bruno Haible  <bruno@clisp.org>
2990         af_alg: Comment and style improvements.
2991         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2992         (afalg_buffer, afalg_stream): Improve comments.
2994 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2996         af_alg: disable kernel hash functions by default
2997         All the kernel routines were seen to be significantly slower
2998         with these relatively recent components on an i3-2310M system:
2999           kernel-4.10.6-200.fc25.x86_64
3000           openssl-1.0.2m-1.fc25.x86_64
3001         sha1 was nearly twice as slow in the kernel for example.
3002         Further considerations why this should not be the default, at:
3003         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
3005         * m4/af_alg.m4: Require --with-linux-crypto to enable.
3006         * m4/gl-openssl.m4: Tweak accordingly.
3008 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3010         af_alg: avoid hangs when reading from streams
3011         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
3012         and thus avoid doing a fread() when feof() is set.
3013         * lib/md5.c: Ensure feof() is called before fread().
3014         * lib/sha1.c: Likewise.
3015         * lib/sha256.c: Likewise.
3016         * lib/sha512.c: Likewise.
3018 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3020         af_alg: fix error handling when hash not returned
3021         * lib/af_alg.c (afalg_stream): Handle the case where we've
3022         successfully written data to the kernel in the read/write loop,
3023         but the kernel doesn't respond with the hash.
3025 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3027         libc-config: merge from glibc
3028         * lib/cdefs.h (__inline, __restrict):
3029         Copy from current glibc.  This fixes glibc bug 17721,
3030         which Gnulib had already fixed in a different way.
3031         (__nonnull): Lessen the distance from glibc by using the
3032         glibc definition inside an ‘#ifndef __nonnull’.
3033         (__attribute_nonstring__): New macro, copied from
3034         current glibc.
3035         * lib/libc-config.h (__attribute_nonstring__): New undef.
3036         (__restrict): Remove; workaround no longer needed.
3037         Keep the __inline workaround, though, as it uses HAVE___INLINE to
3038         support more compilers than the glibc __inline can.
3040 2018-06-24  Bruno Haible  <bruno@clisp.org>
3042         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
3043         * lib/mbrtowc.c (enc_t): New enum type.
3044         (locale_enc, locale_enc_cached): New functions.
3045         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
3046         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
3047         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
3048         instead.
3049         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
3050         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
3051         * modules/wcwidth (configure.ac): Invoke it.
3053 2018-06-24  Bruno Haible  <bruno@clisp.org>
3055         wchar-single: Fix test failure in wcwidth tests.
3056         * tests/test-wcwidth.c (main): If the wchar-single module is present,
3057         skip the tests in the C locale.
3059 2018-06-23  Pádraig Brady  <P@draigBrady.com>
3061         crypto: mention --without-linux-crypto in --with-openssl --help
3062         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
3063         routines take precedence in --with-openssl help output.
3065 2018-06-23  Pádraig Brady  <P@draigBrady.com>
3067         wchar-single: a new module to enable optimizations in wchar replacements
3068         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
3069         GNULIB_WCHAR_SINGLE is enabled.
3070         * lib/wcwidth.c (wcwidth): Likewise.
3072 2018-06-23  Bruno Haible  <bruno@clisp.org>
3074         libc-config: Fix conflict with FreeBSD include files.
3075         * lib/cdefs.h (__nonnull): Remove definition.
3076         * lib/libc-config.h (__nonnull): Remove undefinition.
3078 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3080         random_r: do not crash if state is unaligned
3081         Problem reported by Bruce Korb in:
3082         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
3083         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
3084         with 'cc -O2 -xmemalign=8s'.
3085         * lib/random_r.c: Include string.h, for memcpy.
3086         (get_int32, set_int32): New functions.
3087         (__srandom_r, __initstate_r, __setstate_r, __random_r):
3088         Use them to avoid assumption that state pointer is aligned.
3089         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
3090         * tests/test-random_r.c (test_failed): New function.
3091         (main): Use it, to test for alignment bugs.
3093         random_r: omit unnecessary include
3094         * lib/random_r.c: Do not include limits.h.
3096         random, random_r: merge from glibc
3097         * lib/random.c, lib/random_r.c:
3098         Include libc-config.h if !_LIBC, not config.h unilaterally.
3099         * lib/random.c:
3100         Do not include stdint.h or time.h; not needed.
3101         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
3102         (unsafe_state): Rename from generator.  All uses changed.
3103         Use C99-style initializers.
3104         (__random, __srandom, __initstate, __setstate): Rename from
3105         non-underscored version, but define it to non-underscored version
3106         on Gnulib.  Add a lock.
3107         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
3108         Likewise.
3109         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
3110         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
3111         (__srandom_r): Use int32_t instead of long int where int32_t will do.
3112         (__random_r): Use uint32 to fix glibc bug 17343.
3113         * modules/random, modules/random_r (Depends-on): Add libc-config.
3114         Depend on stdint only if $HAVE_RANDOM = 0.
3116 2018-06-19  Jim Meyering  <meyering@fb.com>
3118         README-release: also run any check-very-expensive tests
3119         * top/README-release: Adjust instructions so they run the
3120         check-very-expensive tests when there is such a target.
3122 2018-06-18  Bruno Haible  <bruno@clisp.org>
3124         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
3125         * m4/pthread_rwlock_rdlock.m4: Add comment.
3126         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
3127         are reader-preferring in glibc.
3128         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
3129         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
3131 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3133         crypto: use byteswap
3134         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3135         * lib/sm3.c: Include <byteswap.h>.
3136         (SWAP): Use its macros rather than reinventing the wheel.
3137         * modules/crypto/md4, modules/crypto/md5-buffer:
3138         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
3139         * modules/crypto/sha512-buffer, modules/crypto/sm3:
3140         (Depends-on): Add byteswap.
3142 2018-06-17  Pádraig Brady  <P@draigBrady.com>
3144         gendocs.sh: fix support for legacy --texi2html
3145         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
3146         to the default makeinfo invocation.
3147         Reported by Bruce Korb
3149 2018-06-17  Bruno Haible  <bruno@clisp.org>
3151         gettext po infrastructure: Update from current gettext git.
3152         Reported by Akim Demaille <akim@lrde.epita.fr>.
3153         * build-aux/po/Makefile.in.in: Update from current gettext git.
3154         * build-aux/po/remove-potcdate.sin: Likewise.
3155         * config/srclist.txt: Temporarily disable sync for these files.
3157 2018-06-17  Bruno Haible  <bruno@clisp.org>
3159         getloadavg: Return 0 on Windows without Cygwin.
3160         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
3162 2018-06-17  Paul Smith  <psmith@gnu.org>
3164         getloadavg: Allow building on Windows without Cygwin
3165         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
3166         * m4/getloadavg.m4: Check for unistd.h.
3168 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
3170         Port crypto/af_alg to GCC 4.8.4
3171         Problem reported by Peter Simons in:
3172         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
3173         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
3175 2018-05-27  Colin Watson  <cjwatson@debian.org>
3177         bootstrap: document source fetching in --help
3178         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
3180 2018-04-09  Colin Watson  <cjwatson@debian.org>
3182         bootstrap: allow non-submodule control of gnulib
3183         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
3184         bootstrap.conf when fetching gnulib using "git clone" or via
3185         GNULIB_SRCDIR.
3187 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3189         crypto: omit stream ops Emacs doesn’t need
3190         * lib/md5.c (md5_stream):
3191         * lib/sha1.c (sha1_stream):
3192         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
3193         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3194         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
3195         defined.  Emacs needs this, as it does not use the stream
3196         operations and doesn’t need all the af_alg stuff we’ve recently
3197         added.  Perhaps a similar change is needed to the other crypto
3198         modules, but this patch changes only those needed for Emacs.
3199         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
3200         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
3201         New modules, used by Emacs.
3202         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3203         * modules/crypto/sha512: Rewrite to depend on the new modules.
3205 2018-05-20  Pádraig Brady  <P@draigBrady.com>
3207         fts: avoid a memory leak edge case
3208         * lib/fts.c (fts_open): Set an appropriate fts_level
3209         so that an immediate fts_close() will free the allocation.
3210         * tests/test-fts.c (fts_dealloc): Add a test case which
3211         will trigger under valgrind or address sanitizer.
3212         Fixes https://bugs.gnu.org/31439
3214 2018-05-20  Bruno Haible  <bruno@clisp.org>
3216         wcwidth tests: Fix link error.
3217         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
3218         $(LIBUNISTRING).
3220 2018-05-20  Bruno Haible  <bruno@clisp.org>
3222         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
3223         * modules/regex (Files): Add m4/glibc21.m4.
3225 2018-05-20  Bruno Haible  <bruno@clisp.org>
3227         localcharset: Optimize.
3228         * lib/localcharset.c (alias_table): Comment out no-op mappings for
3229         platforms where these don't matter. This reduces the table size,
3230         which in turn reduces the lookup time.
3232 2018-05-19  Bruno Haible  <bruno@clisp.org>
3234         localcharset: Map the locale encodings found in newer OSes.
3235         * lib/localcharset.c (alias_table): Add mapping for locale encodings
3236         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
3237         IRIX 6.5, Minix 3.3.
3238         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
3240 2018-05-19  Bruno Haible  <bruno@clisp.org>
3242         localcharset: Move mapping tables into the code. Use a binary search.
3243         * lib/localcharset.h: Document the GNU canonical names for character
3244         encodings here.
3245         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
3246         relocatable.h, configmake.h.
3247         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
3248         macros.
3249         (charset_aliases): Remove variable.
3250         (get_charset_aliases): Remove function.
3251         (struct table_entry): New type.
3252         (alias_table, locale_table): New constants.
3253         (locale_charset): Use the alias_table or locale_table to get the
3254         canonicalized encoding name.
3255         * lib/config.charset: Remove file.
3256         * lib/ref-add.sin: Remove file.
3257         * lib/ref-del.sin: Remove file.
3258         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
3259         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
3260         * modules/localcharset (Notice): Remove.
3261         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
3262         glibc21.m4.
3263         (Depends-on): Remove configmake.
3264         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
3265         (Makefile.am): Simplify.
3266         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
3268 2018-05-19  Bruno Haible  <bruno@clisp.org>
3270         localcharset: Add a manual test.
3271         * tests/test-localcharset.c: New file.
3272         * modules/localcharset-tests: New file.
3274 2018-05-19  Bruno Haible  <bruno@clisp.org>
3276         localcharset: Remove support for obsolete platforms.
3277         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
3278         Mac OS X 10.2. Comment out dubious entry for Solaris.
3280 2018-05-19  Jim Meyering  <meyering@fb.com>
3282         gnupload: adjust comment
3283         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
3284         more likely we'll remove the just-added code in a year or two.
3286 2018-05-19  Bruno Haible  <bruno@clisp.org>
3288         gnupload: Fix "gpg-agent is not available in this session" error.
3289         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
3291 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3293         crypto/af_alg: fix --help
3294         * m4/af_alg.m4: Avoid spurious newline in --help output.
3296 2018-05-13  Bruno Haible  <bruno@clisp.org>
3298         nl_langinfo: Fix compilation error on Android.
3299         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
3300         INT_CURR_SYMBOL, etc. only if these items are defined.
3302 2018-05-13  Bruno Haible  <bruno@clisp.org>
3304         truncate: Fix compilation error on Android.
3305         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
3306         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
3307         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
3308         HAVE_TRUNCATE.
3309         * modules/truncate: Likewise.
3310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
3311         not HAVE_TRUNCATE.
3312         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
3313         HAVE_TRUNCATE.
3314         * doc/posix-functions/truncate.texi: Mention the issue.
3316 2018-05-13  Bruno Haible  <bruno@clisp.org>
3318         pthread: Fix compilation error on Android.
3319         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
3320         recursive inclusion of this file.
3322 2018-05-13  Bruno Haible  <bruno@clisp.org>
3324         posix_spawn: Fix compilation error on Android.
3325         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
3326         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
3327         (posix_spawn_file_actions_t): Consider also the case
3328         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3330 2018-05-13  Bruno Haible  <bruno@clisp.org>
3332         tsearch: Move from K&R C to ANSI C.
3333         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3335 2018-05-13  Bruno Haible  <bruno@clisp.org>
3337         tsearch: Fix compilation error on Android.
3338         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3339         is 0.
3340         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3341         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3342         GNULIB_defined_tsearch is true.
3343         (twalk): Define only if GNULIB_defined_twalk is true.
3344         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3345         is 0.
3346         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3347         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3348         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3350 2018-05-13  Bruno Haible  <bruno@clisp.org>
3352         imaxdiv: Fix compilation error on Android.
3353         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3354         is not defined.
3355         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3356         HAVE_DECL_IMAXDIV, is 0.
3357         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3358         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3360 2018-05-13  Bruno Haible  <bruno@clisp.org>
3362         Support selective inclusion mechanism of recent mingw.org header files.
3363         Reported by Eli Zaretskii <eliz@gnu.org>.
3364         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3365         __need_ssize_t, or __need_time_t is defined, just include the system's
3366         <sys/types.h>.
3367         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3368         include the system's <locale.h>.
3370 2018-05-13  Bruno Haible  <bruno@clisp.org>
3372         Avoid compilation error due to 'mmap' on Android.
3373         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3374         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3375         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3376         Undefine on Android.
3378 2018-05-13  Bruno Haible  <bruno@clisp.org>
3380         Add cross-compilation guesses for Linux systems without glibc.
3381         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3383         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3384         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3385         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3386         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3387         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3388         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3389         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3390         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3391         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3392         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3393         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3394         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3395         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3396         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3397         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3398         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3400 2018-05-13  Bruno Haible  <bruno@clisp.org>
3402         getpagesize: Fix compilation error on Android.
3403         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3404         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3405         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3406         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3407         HAVE_GETPAGESIZE accordingly.
3408         * modules/getcwd (Files): Add m4/getpagesize.m4.
3410 2018-05-13  Bruno Haible  <bruno@clisp.org>
3412         tcgetsid: Fix compilation error on Android.
3413         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3414         AC_CHECK_FUNC.
3416 2018-05-13  Bruno Haible  <bruno@clisp.org>
3418         getpass: Fix configure test for Android.
3419         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3420         AC_CHECK_FUNC.
3422 2018-05-13  Bruno Haible  <bruno@clisp.org>
3424         ffs: Fix compilation error on Android.
3425         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3427 2018-05-13  Bruno Haible  <bruno@clisp.org>
3429         mkfifo: Fix compilation error on Android.
3430         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3431         AC_CHECK_FUNC.
3433 2018-05-13  Bruno Haible  <bruno@clisp.org>
3435         c-strtod: Fix configure test for Android.
3436         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3437         AC_CHECK_FUNC.
3439 2018-05-13  Bruno Haible  <bruno@clisp.org>
3441         random: Fix compilation error on Android.
3442         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3443         AC_CHECK_FUNC.
3445 2018-05-13  Bruno Haible  <bruno@clisp.org>
3447         grantpt: Fix compilation error on Android.
3448         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3449         AC_CHECK_FUNC.
3451 2018-05-13  Bruno Haible  <bruno@clisp.org>
3453         stdioext: Fix compilation errors with newer Android headers.
3454         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3455         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3456         fallbacks for Android.
3457         * lib/fpending.c: Update comments.
3458         * lib/fpurge.c: Likewise.
3459         * lib/freadable.h: Likewise.
3460         * lib/freadable.c: Likewise.
3461         * lib/freadahead.c: Likewise.
3462         * lib/freading.h: Likewise.
3463         * lib/freadptr.c: Likewise.
3464         * lib/fseterr.c: Likewise.
3465         * lib/fwritable.h: Likewise.
3466         * lib/fwritable.c: Likewise.
3467         * lib/fwriting.h: Likewise.
3468         * lib/fwriting.c: Likewise.
3470 2018-05-13  Bruno Haible  <bruno@clisp.org>
3472         doc: Add info about Android versions 2.0 to 8.1.
3473         * doc/**/*.texi: Add info about functions in all released versions of
3474         Bionic.
3476 2018-05-12  Bruno Haible  <bruno@clisp.org>
3478         fseeko: On mingw, don't use the hidden function _fseeki64.
3479         Reported by Eli Zaretskii <eliz@gnu.org>.
3480         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3481         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3483 2018-05-12  Bruno Haible  <bruno@clisp.org>
3485         glob: Choose 'dirent_type' in a way that works better on mingw.
3486         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3487         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3489 2018-05-12  Bruno Haible  <bruno@clisp.org>
3491         execute, spawn-pipe: Avoid warning about redefining 'close'.
3492         Reported by Eli Zaretskii <eliz@gnu.org>.
3493         * lib/execute.c: Undefine 'close' before redefining it.
3494         * lib/spawn-pipe.c: Likewise.
3496 2018-05-12  Bruno Haible  <bruno@clisp.org>
3498         nanosleep: Avoid test failure on mingw when it has nanosleep.
3499         Reported by Eli Zaretskii <eliz@gnu.org>.
3500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3501         If it does not exist, use a simpler test program that does not call
3502         alarm().
3504 2018-05-10  Bruno Haible  <bruno@clisp.org>
3506         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3507         Reported by Devin Hussey <husseydevin@gmail.com>.
3508         Based on a patch by Paul Eggert.
3509         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3510         as witness of libpthread.
3511         * lib/glthread/cond.h (pthread_in_use): Likewise.
3512         * lib/glthread/thread.h (pthread_in_use): Likewise.
3513         * lib/glthread/tls.h (pthread_in_use): Likewise.
3515 2018-05-10  Bruno Haible  <bruno@clisp.org>
3517         cond tests: Fix compilation error on Solaris.
3518         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3519         macro.
3521 2018-05-10  Bruno Haible  <bruno@clisp.org>
3523         doc: Add partial info about Android 4.3.
3524         * doc/*-functions/*.texi: Add info about functions that were added
3525         to Bionic between Android 4.3 and Android 9.0.
3527 2018-05-10  Bruno Haible  <bruno@clisp.org>
3529         doc: Add info about Android 9.0.
3530         * doc/**/*.texi: Add info about functions and headers in Bionic from
3531         Android 9.0.
3533 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3535         af_alg: fix my typo in afalg_buffer
3536         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3537         (afalg_stream): Simplify and avoid the need for a runtime test
3538         at the end.
3540         af_alg: recover better from crypto failures
3541         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3542         input stream is seekable, by repositioning the stream back to
3543         where it was, possibly by just calling sendfile with an offset
3544         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3545         cases, which lets our callers try again with user-mode code.
3546         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3547         instead of on fflush and lseek.
3549         af_alg: distiguish I/O errors better
3550         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3551         not -EIO, if it’s OK for the caller to try again with user-mode code.
3552         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3553         some other error number) if fflush fails, as the caller should not
3554         try again that case.
3556         af_alg: avoid gotos
3557         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3558         gotos, as they were a source of unreliability and made the code a
3559         bit harder to follow.
3561         af_alg: don’t leak file descriptors into children
3562         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3563         This code should be compiled only on recent GNU/Linux platforms
3564         so we shouldn’t have to also depend on the accept4 module.
3566         af_alg: coalesce socket creation
3567         * lib/af_alg.c (alg_socket): New function.
3568         (afalg_buffer, afalg_stream): Use it.  This avoids some
3569         code duplication and gotos.
3571         af_alg: fix file descriptor leak
3572         * lib/af_alg.c (afalg_stream): Close leak.
3574         af_alg: Pacify --enable-gcc-warnings on GCC 8
3575         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3576         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3578 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3580         af_alg: Pacify --enable-gcc-warnings
3581         Problem reported by Assaf Gordon in:
3582         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3583         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3584         gcc -Wjump-misses-init.
3585         * lib/sha512.c (shaxxx_stream): Now static.
3587 2018-05-06  Bruno Haible  <bruno@clisp.org>
3589         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3590         * lib/af_alg.h (afalg_buffer): New declaration.
3591         * lib/af_alg.c (afalg_buffer): New function.
3593 2018-05-06  Bruno Haible  <bruno@clisp.org>
3595         af_alg: Avoid warnings.
3596         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3597         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3599 2018-05-06  Bruno Haible  <bruno@clisp.org>
3601         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3602         * tests/bench-digest.h: New file.
3603         * tests/bench-md5.c: New file.
3604         * tests/bench-sha1.c: New file.
3605         * tests/bench-sha224.c: New file.
3606         * tests/bench-sha256.c: New file.
3607         * tests/bench-sha384.c: New file.
3608         * tests/bench-sha512.c: New file.
3609         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3610         tests/bench-digest.h.
3611         (Depends-on): Add getrusage, gettimeofday.
3612         (Makefile.am): Add variables to build bench-md5.
3613         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3614         tests/bench-digest.h.
3615         (Depends-on): Add getrusage, gettimeofday.
3616         (Makefile.am): Add variables to build bench-sha1.
3617         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3618         tests/bench-sha256.c, tests/bench-digest.h.
3619         (Depends-on): Add getrusage, gettimeofday.
3620         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3621         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3622         tests/bench-sha512.c, tests/bench-digest.h.
3623         (Depends-on): Add getrusage, gettimeofday.
3624         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3626 2018-05-06  Bruno Haible  <bruno@clisp.org>
3628         af_alg: Fix a resource leak.
3629         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3630         New local variable 'result'.
3632 2018-05-06  Bruno Haible  <bruno@clisp.org>
3634         af_alg: Fix bug with streams that are not at position 0.
3635         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3636         assume that the stream is positioned at position 0.
3637         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3638         of the stream.
3639         * lib/md5.h (md5_stream): Likewise.
3640         * lib/sha1.h (sha1_stream): Likewise.
3641         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3642         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3643         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3645         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3646         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3647         stream that is not positioned at the beginning.
3649 2018-05-06  Bruno Haible  <bruno@clisp.org>
3651         af_alg: Add configure option to enable/disable use of Linux crypto API.
3652         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3653         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3654         USE_LINUX_CRYPTO_API.
3655         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3656         * lib/af_alg.c: Likewise.
3658 2018-05-06  Bruno Haible  <bruno@clisp.org>
3660         Followup to 'af_alg: New module.'.
3661         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3662         * modules/crypto/sha1 (Depends-on): Likewise.
3663         * modules/crypto/sha256 (Depends-on): Likewise.
3664         * modules/crypto/sha512 (Depends-on): Likewise.
3666 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3668         crypto/{md5,sha1,sha256,sha512}: simplify
3669         * lib/md5.c (md5_stream):
3670         * lib/sha1.c (sha1_stream):
3671         * lib/sha256.c (shaxxx_stream):
3672         Simplify, partly by assuming C99.
3673         * lib/sha256.c (shaxxx_stream):
3674         New function, which implements both sha256 and sha224.
3675         Simplify, partly by assuming C99.
3676         (sha256_stream, sha224_stream):
3677         Use it to avoid code duplication, removing a FIXME.
3678         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3679         Likewise.
3681         af_alg: Improve comments.
3682         * lib/af_alg.h: Use imperatives and tighten up wording.
3684 2018-05-05  Bruno Haible  <bruno@clisp.org>
3686         af_alg: Improve comments.
3687         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3689 2018-05-05  Bruno Haible  <bruno@clisp.org>
3691         af_alg: New module.
3692         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3693         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3694         * lib/md5.c: Include "af_alg.h" unconditionally.
3695         (md5_stream): Invoke afalg_stream unconditionally.
3696         * lib/sha1.c: Include "af_alg.h" unconditionally.
3697         (sha1_stream): Invoke afalg_stream unconditionally.
3698         * lib/sha256.c: Include "af_alg.h" unconditionally.
3699         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3700         * lib/sha512.c: Include "af_alg.h" unconditionally.
3701         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3702         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3703         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3704         * modules/crypto/af_alg: New file.
3705         * modules/crypto/md5 (Files): Remove files that are now in the
3706         'crypto/af_alg' module.
3707         (Depends-on): Add crypto/af_alg.
3708         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3709         (Makefile.am): Don't mention af_alg.c here.
3710         * modules/crypto/sha1 (Files): Remove files that are now in the
3711         'crypto/af_alg' module.
3712         (Depends-on): Add crypto/af_alg.
3713         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3714         (Makefile.am): Don't mention af_alg.c here.
3715         * modules/crypto/sha256 (Files): Remove files that are now in the
3716         'crypto/af_alg' module.
3717         (Depends-on): Add crypto/af_alg.
3718         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3719         (Makefile.am): Don't mention af_alg.c here.
3720         * modules/crypto/sha512 (Files): Remove files that are now in the
3721         'crypto/af_alg' module.
3722         (Depends-on): Add crypto/af_alg.
3723         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3724         (Makefile.am): Don't mention af_alg.c here.
3726 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3728         crypto tests: pacify GCC
3729         * tests/test-digest.h (test_digest_on_files):
3730         Don’t assume digest size fits in int (!).
3732         af_alg: minor style improvements
3733         * lib/af_alg.c (afalg_stream): Prefer C99 style
3734         decl-after-statement, since we’re already assuming C99.  Clarify
3735         by strengthening the bind test and omit unnecessary assignment.
3737 2018-05-05  Bruno Haible  <bruno@clisp.org>
3739         af_alg: Fix bug on empty files.
3740         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3741         stream is empty.
3743 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3745         sys-limits.h: new file for crypto and safe I/O
3746         * lib/af_alg.c: Include sys-limits.h.
3747         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3748         (afalg_stream): Also reject negative sizes for sendfile; they
3749         should not happen and the code is a bit cleaner and faster this way.
3750         * lib/safe-read.c: Include sys-limits.h.
3751         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3752         * lib/sys-limits.h: New file, with values and commentary derived
3753         from the old safe-read.c and from GNU Emacs sysdep.c.
3754         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3755         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3756         Add lib/sys-limits.h to Files section.
3758 2018-05-05  Bruno Haible  <bruno@clisp.org>
3760         af_alg: Improve function signature.
3761         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3762         * lib/af_alg.c (afalg_stream): Likewise.
3763         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3765 2018-05-05  Bruno Haible  <bruno@clisp.org>
3767         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3768         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3769         * modules/crypto/sha1 (Depends-on): Likewise.
3770         * modules/crypto/sha256 (Depends-on): Likewise.
3771         * modules/crypto/sha512 (Depends-on): Likewise.
3773 2018-05-05  Bruno Haible  <bruno@clisp.org>
3775         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3776         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3777         * modules/crypto/sha1 (Depends-on): Likewise.
3778         * modules/crypto/sha256 (Depends-on): Likewise.
3779         * modules/crypto/sha512 (Depends-on): Likewise.
3781 2018-05-05  Bruno Haible  <bruno@clisp.org>
3783         af_alg: Add documentation.
3784         * lib/af_alg.h: Add comments.
3786 2018-05-05  Bruno Haible  <bruno@clisp.org>
3788         sha512: Add tests.
3789         * tests/test-sha512.c: New file.
3790         * modules/crypto/sha512-tests: New file.
3792 2018-05-05  Bruno Haible  <bruno@clisp.org>
3794         sha256: Add tests.
3795         * tests/test-sha256.c: New file.
3796         * modules/crypto/sha256-tests: New file.
3798 2018-05-05  Bruno Haible  <bruno@clisp.org>
3800         sha1 tests: Add test for sha1_stream.
3801         * tests/test-sha1.c: Include test-digest.h.
3802         (main): Invoke test_digest_on_files on 'sha1_stream'.
3803         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3805 2018-05-05  Bruno Haible  <bruno@clisp.org>
3807         md5 tests: Add test for md5_stream.
3808         * tests/test-digest.h: New file.
3809         * tests/test-md5.c: Include test-digest.h.
3810         (main): Invoke test_digest_on_files on 'md5_stream'.
3811         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3813 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3815         md5sum: Use AF_ALG when available.
3816         * lib/md5.c: Include af_alg.h.
3817         (md5_stream): Use afalg_stream when available.
3818         * modules/crypto/md5 (Files): Add the af_alg files.
3819         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3820         (Makefile.am): Add af_alg.c.
3822 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3824         sha512sum: Use AF_ALG when available.
3825         * lib/sha512.c: Include af_alg.h.
3826         (sha512_stream, sha384_stream): Use afalg_stream when available.
3827         * modules/crypto/sha512 (Files): Add the af_alg files.
3828         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3829         (Makefile.am): Add af_alg.c.
3831 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3833         sha256sum: Use AF_ALG when available.
3834         * lib/sha256.c: Include af_alg.h.
3835         (sha256_stream, sha224_stream): Use afalg_stream when available.
3836         * modules/crypto/sha256 (Files): Add the af_alg files.
3837         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3838         (Makefile.am): Add af_alg.c.
3840 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3842         sha1sum: Use AF_ALG when available.
3843         * lib/af_alg.h: New file.
3844         * lib/af_alg.c: New file.
3845         * lib/sha1.c: Include af_alg.h.
3846         (sha1_stream): Use afalg_stream when available.
3847         * m4/linux-if-alg.m4: New file.
3848         * modules/crypto/sha1 (Files): Add the new files.
3849         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3850         (Makefile.am): Add af_alg.c.
3852 2018-05-05  Bruno Haible  <bruno@clisp.org>
3854         all: Replace more http URLs by https URLs.
3855         * lib/localename.c: Use https: URL.
3856         * lib/timespec.h: Likewise.
3858 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3860         maint: port more modules to GCC 8
3861         * lib/dirname.h (base_name):
3862         * lib/exclude.h (new_exclude):
3863         * lib/xstrndup.h (xstrndup):
3864         Add malloc attribute.
3865         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3866         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3867         This pacifies GCC 8.
3868         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3869         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3871 2018-05-03  Bruno Haible  <bruno@clisp.org>
3873         Simplify code. Drop support for Borland C++ on Windows.
3874         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3875         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3876         'defined _WIN32'.
3877         * lib/canonicalize-lgpl.c: Likewise.
3878         * lib/classpath.c: Likewise.
3879         * lib/clean-temp.c: Likewise.
3880         * lib/csharpexec.c: Likewise.
3881         * lib/ctime.c: Likewise.
3882         * lib/dosname.h: Likewise.
3883         * lib/dup2.c: Likewise.
3884         * lib/errno.in.h: Likewise.
3885         * lib/error.c: Likewise.
3886         * lib/euidaccess.c: Likewise.
3887         * lib/execute.c: Likewise.
3888         * lib/fcntl.in.h: Likewise.
3889         * lib/fcntl.c: Likewise.
3890         * lib/filename.h: Likewise.
3891         * lib/findprog.c: Likewise.
3892         * lib/flock.c: Likewise.
3893         * lib/fopen.c: Likewise.
3894         * lib/freopen.c: Likewise.
3895         * lib/fstat.c: Likewise.
3896         * lib/fsync.c: Likewise.
3897         * lib/gc-gnulib.c: Likewise.
3898         * lib/get-rusage-data.c: Likewise.
3899         * lib/getaddrinfo.c: Likewise.
3900         * lib/getdelim.c: Likewise.
3901         * lib/getdtablesize.c: Likewise.
3902         * lib/gethostname.c: Likewise.
3903         * lib/getlogin.c: Likewise.
3904         * lib/getlogin_r.c: Likewise.
3905         * lib/getopt.c: Likewise.
3906         * lib/getpagesize.c: Likewise.
3907         * lib/getpass.c: Likewise.
3908         * lib/getrusage.c: Likewise.
3909         * lib/gettimeofday.c: Likewise.
3910         * lib/glob.c: Likewise.
3911         * lib/inttypes.in.h: Likewise.
3912         * lib/isapipe.c: Likewise.
3913         * lib/javaexec.c: Likewise.
3914         * lib/link.c: Likewise.
3915         * lib/localcharset.c: Likewise.
3916         * lib/localename.h: Likewise.
3917         * lib/localename.c: Likewise.
3918         * lib/localtime.c: Likewise.
3919         * lib/lseek.c: Likewise.
3920         * lib/mbsinit.c: Likewise.
3921         * lib/mkdir.c: Likewise.
3922         * lib/msvc-nothrow.h: Likewise.
3923         * lib/nanosleep.c: Likewise.
3924         * lib/nl_langinfo.c: Likewise.
3925         * lib/nonblocking.c: Likewise.
3926         * lib/nproc.c: Likewise.
3927         * lib/open.c: Likewise.
3928         * lib/openpty.c: Likewise.
3929         * lib/pathmax.h: Likewise.
3930         * lib/pipe-filter-aux.c: Likewise.
3931         * lib/pipe-filter-gi.c: Likewise.
3932         * lib/pipe-filter-ii.c: Likewise.
3933         * lib/pipe.c: Likewise.
3934         * lib/pipe2.c: Likewise.
3935         * lib/poll.c: Likewise.
3936         * lib/popen.c: Likewise.
3937         * lib/posix_openpt.c: Likewise.
3938         * lib/printf-parse.c: Likewise.
3939         * lib/progreloc.c: Likewise.
3940         * lib/putenv.c: Likewise.
3941         * lib/read.c: Likewise.
3942         * lib/relocatable.c: Likewise.
3943         * lib/rename.c: Likewise.
3944         * lib/same-inode.h: Likewise.
3945         * lib/secure_getenv.c: Likewise.
3946         * lib/select.c: Likewise.
3947         * lib/sethostname.c: Likewise.
3948         * lib/setlocale.c: Likewise.
3949         * lib/sigaction.c: Likewise.
3950         * lib/sigprocmask.c: Likewise.
3951         * lib/sleep.c: Likewise.
3952         * lib/spawn-pipe.h: Likewise.
3953         * lib/spawn-pipe.c: Likewise.
3954         * lib/spawni.c: Likewise.
3955         * lib/stat-time.h: Likewise.
3956         * lib/stat-w32.c: Likewise.
3957         * lib/stat.c: Likewise.
3958         * lib/stdio.in.h: Likewise.
3959         * lib/stdio-impl.h: Likewise.
3960         * lib/stdio-read.c: Likewise.
3961         * lib/stdio-write.c: Likewise.
3962         * lib/stdlib.in.h: Likewise.
3963         * lib/strerror_r.c: Likewise.
3964         * lib/strftime-fixes.c: Likewise.
3965         * lib/sys_stat.in.h: Likewise.
3966         * lib/sys_types.in.h: Likewise.
3967         * lib/sys_wait.in.h : Likewise.
3968         * lib/system-quote.h: Likewise.
3969         * lib/system-quote.c: Likewise.
3970         * lib/tmpdir.c: Likewise.
3971         * lib/tzset.c: Likewise.
3972         * lib/uname.c: Likewise.
3973         * lib/unistd.in.h: Likewise.
3974         * lib/utime.in.h: Likewise.
3975         * lib/utime.c: Likewise.
3976         * lib/utimecmp.c: Likewise.
3977         * lib/utimens.c: Likewise.
3978         * lib/vasnprintf.c: Likewise.
3979         * lib/vma-iter.h: Likewise.
3980         * lib/vma-iter.c: Likewise.
3981         * lib/wait-process.c: Likewise.
3982         * lib/wcsftime.c: Likewise.
3983         * lib/wctype.in.h: Likewise.
3984         * lib/write.c: Likewise.
3985         * tests/nap.h: Likewise.
3986         * tests/test-cloexec.c: Likewise.
3987         * tests/test-dup-safer.c: Likewise.
3988         * tests/test-dup2.c: Likewise.
3989         * tests/test-dup3.c: Likewise.
3990         * tests/test-fcntl.c: Likewise.
3991         * tests/test-get-rusage-data.c: Likewise.
3992         * tests/test-getaddrinfo.c: Likewise.
3993         * tests/test-getlogin.h: Likewise.
3994         * tests/test-isatty.c: Likewise.
3995         * tests/test-localename.c: Likewise.
3996         * tests/test-mbrtowc-w32.c: Likewise.
3997         * tests/test-nonblocking.c: Likewise.
3998         * tests/test-nonblocking-pipe-main.c: Likewise.
3999         * tests/test-nonblocking-socket-main.c: Likewise.
4000         * tests/test-nonblocking-socket.h: Likewise.
4001         * tests/test-pipe.c: Likewise.
4002         * tests/test-pipe2.c: Likewise.
4003         * tests/test-poll.c: Likewise.
4004         * tests/test-pthread_sigmask1.c: Likewise.
4005         * tests/test-select.h: Likewise.
4006         * tests/test-sethostname2.c: Likewise.
4007         * tests/test-sigprocmask.c: Likewise.
4008         * tests/test-spawn-pipe-child.c: Likewise.
4009         * tests/test-stat-time.c: Likewise.
4010         * tests/test-system-quote-main.c: Likewise.
4011         * tests/test-utimens-common.h: Likewise.
4012         * tests/test-wcrtomb-w32.c: Likewise.
4013         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4014         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4015         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4016         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4017         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
4018         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4019         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4020         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4022         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
4023         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
4024         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
4025         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4026         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4027         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
4028         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4030 2018-05-02  Bruno Haible  <bruno@clisp.org>
4032         localename: Fix test failures on mingw.
4033         * lib/localename.c (gl_locale_name_thread): Remove code specific to
4034         native Windows.
4035         (gl_locale_name_posix): Move code specific to native Windows here.
4036         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
4037         Accept result without charset suffix, as it appears on mingw.
4039 2018-04-28  Paul Smith  <psmith@gnu.org>
4041         bootstrap: Avoid gnulib operations if not needed
4042         * build-aux/bootstrap: Remove unused variable gnulib_mk.
4043         Set $gnulib_extra_files early so it can be overridden in .conf.
4044         Remove redundant --import flag from $gnulib_tool_options.
4045         Set $use_gnulib to false if no gnulib modules or files are needed.
4046         If $use_gnulib is false, don't do anything related to gnulib.
4047         A lot of this is just whitespace (indentation) changes.
4049 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
4051         manywarnings: port to GCC 8.0
4052         * build-aux/gcc-warning.spec: Add -Wcatch-value,
4053         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
4054         fact that the GCC help message now mentions operands for
4055         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
4056         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
4057         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
4058         and -Wunused-const-variable.
4059         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
4060         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
4061         -Wmissing-attributes, -Wmultistatement-macros,
4062         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
4063         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
4065 2018-04-24  Bruno Haible  <bruno@clisp.org>
4067         sys_socket: Make SO_REUSEPORT available across platforms.
4068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4069         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
4070         * doc/posix-headers/sys_socket.texi: Mention the issue.
4071         * tests/test-poll.c (SO_REUSEPORT): Remove.
4072         * tests/test-select.h: Include <sys/socket.h>.
4073         (SO_REUSEPORT): Remove.
4074         * modules/select-tests (Depends-on): Add 'sys_socket'.
4076 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
4078         localcharset: short-circuit the search for an alias on a Mac
4079         * lib/localcharset.c (get_charset_aliases): Add a tautological
4080         UTF-8 entry to speed up the search for this case.
4081         Most machines default to a UTF-8 locale nowadays, so begin the
4082         list of aliases with a dummy UTF-8 entry so it will be found
4083         immediately and a time-consuming search through the rest of
4084         the list is avoided.
4086 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
4088         fts: add comment
4089         * lib/fts.c (fts_build): Explain why ==, not >.
4090         See remark by Bernhard Voelker in:
4091         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
4093         fts: fix bug in find across filesystems
4094         This fixes a bug I introduced last summer.
4095         Problem reported by Kamil Dudka in:
4096         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
4097         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
4098         (leaf_optimization):
4099         New arg for file descriptor.  All callers changed.
4100         (fts_build): Check for whether inodes should be sorted
4101         before closing the directory.
4103 2018-04-07  Bruno Haible  <bruno@clisp.org>
4105         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
4106         Reported by Genki Sky <sky@genki.is>.
4107         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
4108         version 0.9.10 or newer.
4109         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
4110         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
4111         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
4112         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
4113         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
4115 2018-04-07  Bruno Haible  <bruno@clisp.org>
4117         execute: Update comment.
4118         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
4120 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4122         fts: treat CIFS like NFS
4123         Problem reported by Kamil Dudka in:
4124         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
4125         * lib/fts.c (S_MAGIC_CIFS): New macro.
4126         (dirent_inode_sort_may_be_useful, leaf_optimization):
4127         Treat CIFS like NFS.
4129 2018-03-28  Bruno Haible  <bruno@clisp.org>
4131         c-stack: Fix possible build failure on some platforms.
4132         * lib/c-stack.c (die): Define whenever this function is referenced.
4134 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
4136         time_rz: fix workaround for Mac OS X 10.6 infloop
4137         Problems reported by Charles A. Roelli (Bug#27736#117).
4138         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
4139         Also, discard output, which clutters the 'configure' log.
4141 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4143         havelib: port to Solaris 10 /bin/sh
4144         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
4145         instead of '! test EXPR'.
4147 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
4149         time_rz: work around Mac OS X 10.6 infloop
4150         * doc/posix-functions/localtime.texi:
4151         * doc/posix-functions/localtime_r.texi: Mention the bug.
4152         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
4153         better to fix localtime and localtime_r instead, but that would be
4154         more work and is not needed to fix the Emacs problem.
4155         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
4157 2018-03-24  Jim Meyering  <meyering@fb.com>
4159         test-version-etc.sh: don't use diff directly: use init.sh's compare
4160         We'd rather not sacrifice readable "diff -u" output even for
4161         "diff -c" output (not supported by busybox) or for even less
4162         readable ed-style "diff" output.  So use init.sh's compare function
4163         * tests/test-version-etc.sh: Source init.sh and add "." to path.
4164         Remove "./" from invocation of test-version-etc, so we use path.
4165         And s/diff/compare/.
4166         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
4167         to get init.sh.
4168         Prompted by Eric Blake's comments in
4169         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
4171 2018-03-24  Bruno Haible  <bruno@clisp.org>
4173         javacomp-script, javacomp: Add support for Java 10.
4174         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
4175         target-version 10.
4176         * lib/javaversion.h: Update comments.
4177         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4178         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4179         TARGET_VERSION_BOUND, target_version_index,
4180         corresponding_classfile_version): Accept source_version 10 and
4181         target_version 10.
4182         * lib/javacomp.h: Update comments accordingly.
4184 2018-03-24  Bruno Haible  <bruno@clisp.org>
4186         javacomp-script, javacomp: Update comments.
4187         * m4/javacomp.m4: Update comments regarding gcj.
4188         * lib/javacomp.h: Likewise.
4190 2018-03-24  Bruno Haible  <bruno@clisp.org>
4192         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
4193         * lib/javaversion.h: Update comments.
4194         * lib/javacomp.h: Likewise.
4195         * lib/javacomp.c (default_target_version, source_version_index,
4196         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
4197         "1.9".
4198         (TARGET_VERSION_BOUND): Bump to 9.
4199         (target_version_index, corresponding_classfile_version): Recognize "9"
4200         instead of "1.9".
4201         (get_source_version_for_javac): New function.
4202         (is_envjavac_nongcj_usable, is_javac_usable): Add
4203         source_version_for_javac argument.
4204         (compile_java_class): Determine and pass source_version_for_javac.
4205         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
4206         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
4207         appropriate.
4209 2018-03-23  Jim Meyering  <meyering@fb.com>
4211         test-version-etc.sh: port to diff without -c
4212         * tests/test-version-etc.sh: Don't use diff's -c option.
4213         This caused spurious test failure on Alpine Linux, which
4214         uses busybox's diff. Reported by Assaf Gordon in
4215         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
4217 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4219         c-stack: port to recent GCC build
4220         Problem reported by The Fireplace (Bug#30913).
4221         * lib/c-stack.c (die): Define only if used.
4223 2018-03-20  Bruno Haible  <bruno@clisp.org>
4225         euidaccess: Port to native Windows.
4226         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
4227         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
4229 2018-03-19  Bruno Haible  <bruno@clisp.org>
4231         javacomp: Add support for Java 7, 8, 9.
4232         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4233         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4234         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
4235         and target_version 1,7, 1.8, 1.9.
4236         * lib/javacomp.h: Update comments accordingly.
4238 2018-03-19  Bruno Haible  <bruno@clisp.org>
4240         javacomp-script: Add support for Java 9.
4241         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
4242         target-version 1.9.
4244 2018-03-16  Bruno Haible  <bruno@clisp.org>
4246         glob: Don't compile replacements on recent glibc systems.
4247         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
4248         REPLACE_GLOB is 0, include the system's <glob.h> and use
4249         _GL_CXXALIAS_SYS.
4250         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
4251         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
4252         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
4253         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
4254         Remove snippet/warn-on-use.
4255         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
4256         (Makefile.am): Create glob.h always. Update list of substitutions in
4257         glob.h. Don't depend on $(WARN_ON_USE_H).
4259 2018-03-16  Bruno Haible  <bruno@clisp.org>
4261         glob: Fix link error on native Windows.
4262         * modules/glob (Depends-on): Add 'lstat'.
4264 2018-03-15  Bruno Haible  <bruno@clisp.org>
4266         glob: Fix compilation error in C++ mode.
4267         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
4269 2018-03-15  Bruno Haible  <bruno@clisp.org>
4271         host-cpu-c-abi: Support for RISC-V CPU.
4272         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
4273         riscv32 and riscv64 ABIs.
4274         References:
4275         https://github.com/riscv/riscv-toolchain-conventions
4276         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
4277         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
4279 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4281         fflush: be more paranoid about libio.h change
4282         Suggested by Eli Zaretskii in:
4283         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
4284         * lib/fbufmode.c (fbufmode):
4285         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4286         (disable_seek_optimization, rpl_fflush):
4287         * lib/fpending.c (__fpending):
4288         * lib/fpurge.c (fpurge):
4289         * lib/freadable.c (freadable):
4290         * lib/freadahead.c (freadahead):
4291         * lib/freading.c (freading):
4292         * lib/freadptr.c (freadptr):
4293         * lib/freadseek.c (freadptrinc):
4294         * lib/fseeko.c (fseeko):
4295         * lib/fseterr.c (fseterr):
4296         * lib/fwritable.c (fwritable):
4297         * lib/fwriting.c (fwriting):
4298         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
4300 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4302         maint: write-file-hooks -> before-save-hook
4303         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
4304         it's time to use the recommended replacement.
4305         Problem reported by Glenn Morris in:
4306         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
4307         * build-aux/announce-gen, build-aux/bootstrap:
4308         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
4309         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
4310         * build-aux/gnu-web-doc-update, build-aux/gnupload:
4311         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4312         * build-aux/update-copyright, build-aux/useless-if-before-free:
4313         * build-aux/vc-list-files:
4314         Update hook usage for files where Gnulib is the canonical source.
4316 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4318         binary-io: pacify gcc -Wunused-parameter
4319         Problem reported by Reuben Thomas in:
4320         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
4321         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
4322         Use _GL_UNUSED where appropriate.
4324         fflush: adjust to glibc 2.28 libio.h removal
4325         Problem reported by Daniel P. Berrangé in:
4326         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
4327         * lib/fbufmode.c (fbufmode):
4328         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4329         (disable_seek_optimization, rpl_fflush):
4330         * lib/fpending.c (__fpending):
4331         * lib/fpurge.c (fpurge):
4332         * lib/freadable.c (freadable):
4333         * lib/freadahead.c (freadahead):
4334         * lib/freading.c (freading):
4335         * lib/freadptr.c (freadptr):
4336         * lib/freadseek.c (freadptrinc):
4337         * lib/fseeko.c (fseeko):
4338         * lib/fseterr.c (fseterr):
4339         * lib/fwritable.c (fwritable):
4340         * lib/fwriting.c (fwriting):
4341         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4342         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4343         Define if not already defined.
4345 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4347         environ: fix link error on 32-bit Cygwin
4348         Problem reported for GNU Emacs by Ken Brown in:
4349         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4350         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4352 2018-02-24  Bruno Haible  <bruno@clisp.org>
4354         mbrtowc tests: Fix regression on glibc.
4355         Reported by Bernhard Voelker.
4356         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4358 2018-02-24  Bruno Haible  <bruno@clisp.org>
4360         striconveha, uniconv/*: Avoid test failures on musl libc.
4361         * tests/iconvsupport.c: New file.
4362         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4363         does not support the ISO-2022-JP-2 encoding.
4364         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4365         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4366         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4367         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4368         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4369         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4370         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4371         (Makefile.am): Link test-striconveha with iconvsupport.o.
4372         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4373         tests/iconvsupport.c.
4374         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4375         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4376         tests/iconvsupport.c.
4377         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4378         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4379         tests/iconvsupport.c.
4380         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4381         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4382         tests/iconvsupport.c.
4383         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4384         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4385         tests/iconvsupport.c.
4386         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4387         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4388         tests/iconvsupport.c.
4389         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4391 2018-02-24  Bruno Haible  <bruno@clisp.org>
4393         localename: Add support for musl libc.
4394         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4395         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4396         on Linux platforms which define NL_LOCALE_NAME.
4398 2018-02-24  Bruno Haible  <bruno@clisp.org>
4400         mbrtowc tests: Don't make assumptions about the charset the C locale.
4401         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4402         particular mapping in the C locale.
4404 2018-02-24  Bruno Haible  <bruno@clisp.org>
4406         ptsname_r: Don't expect that this function sets errno.
4407         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4408         from ptsname_r().
4409         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4411 2018-02-23  Bruno Haible  <bruno@clisp.org>
4413         xmalloca: pacify gcc -Wbad-function-cast
4414         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4416 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4418         nl_langinfo: pacify gcc -Wunused-function
4419         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4420         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4421         this case.  Without this change, I got a diagnostic when building
4422         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4424         same: pacify gcc -Wunused-variable
4425         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4426         Omit unused variable.
4428         malloca: pacify gcc -Wbad-function-cast
4429         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4430         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4431         To pacify GCC, I had to cast alloca’s result to some type other
4432         than void * before casting that to uintptr_t.
4434 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4436         utimecmp: new function utimecmpat
4437         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4438         Do not include utimens.h.
4439         (utimecmpat): New function, generalizing utimecmp.
4440         (utimecmp): Now a thin layer around utimecmpat.
4441         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4442         utimensat instead of on lstat and utimens.
4444         same: new function same_nameat
4445         * lib/same.c: Include fcntl.h.
4446         * lib/same.c (same_nameat): New function, generalizing same_name.
4447         (same_name): Now a thin layer around same_nameat.
4448         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4449         * modules/same (Depends-on): Depend on fstatat, openat.
4451 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4453         warnings: Add support for Objective C.
4454         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4455         macro.
4457 2018-02-17  Bruno Haible  <bruno@clisp.org>
4459         lock: Fix test-once1 crash on FreeBSD11.
4460         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4461         'pthread_create', not 'pthread_cancel'.
4463 2018-02-17  Bruno Haible  <bruno@clisp.org>
4465         lock: Add test of gl_once.
4466         * tests/test-once.c: New file.
4467         * modules/lock-tests (Files): Add it.
4468         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4470 2018-02-17  Bruno Haible  <bruno@clisp.org>
4472         thread: Fix compilation error on IRIX.
4473         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4474         needed; include it outside the C++ extern "C" {} block.
4475         * doc/posix-headers/pthread.texi: Mention the problem with
4476         pthread_atfork on IRIX.
4478 2018-02-04  Bruno Haible  <bruno@clisp.org>
4480         nl_langinfo: Override the system's nl_langinfo() when needed.
4481         Reported by Jim Meyering.
4482         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4483         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4485 2018-02-04  Bruno Haible  <bruno@clisp.org>
4487         signal-h, monetary, strings: Fix build failure in some cases.
4488         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4489         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4490         as delimiter in sed command, not '|'.
4491         * modules/monetary (Makefile.am): Likewise.
4492         * modules/strings (Makefile.am): Likewise.
4494 2018-02-03  Jim Meyering  <meyering@fb.com>
4496         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4497         * top/maint.mk (sc_file_system): Don't complain about
4498         "/proc/filesystems".
4500 2018-02-03  Bruno Haible  <bruno@clisp.org>
4502         stdlib: Fix compilation error on OpenIndiana.
4503         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4504         <sys/time.h>.
4505         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4506         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4508 2018-02-03  Bruno Haible  <bruno@clisp.org>
4510         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4511         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4512         and use $EGREP instead of 'grep -E'.
4513         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4514         'grep -E'.
4516 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4518         malloca: Add a compile-time verification.
4519         * lib/malloca.c (small_t): Verify that it is wide enough.
4520         * modules/malloca (Depends-on): Add verify.
4522 2018-02-02  Bruno Haible  <bruno@clisp.org>
4524         malloca: Add an argument check.
4525         Suggested by Paul Eggert.
4526         * lib/malloca.c (freea): Check against an invalid argument.
4528 2018-02-02  Bruno Haible  <bruno@clisp.org>
4530         localename: Add support for OpenIndiana.
4531         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4532         Solaris 11 variants with uselocale() but without getlocalename_l().
4534 2018-02-02  Bruno Haible  <bruno@clisp.org>
4536         malloca, xmalloca: Make multithread-safe.
4537         Reported by Florian Weimer <fweimer@redhat.com>.
4538         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4539         * lib/malloca.h (malloca): In the stack allocation case, return a
4540         pointer that is a multiple of 2 * sa_alignment_max.
4541         (sa_increment): Remove enum item.
4542         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4543         a pointer that is a multiple of 2 * sa_alignment_max.
4544         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4545         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4546         HASH_TABLE_SIZE, mmalloca_results): Remove.
4547         (small_t): New type.
4548         (mmalloca, free): Rewritten.
4549         * lib/malloca.valgrind: Remove file.
4550         * modules/malloca (Files): Remove it.
4551         (Depends-on): Remove verify.
4553 2018-01-31  Bruno Haible  <bruno@clisp.org>
4555         environ: Fix link error on 64-bit Cygwin.
4556         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4557         __declspec(dllimport) attribute.
4558         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4560 2018-01-30  Bruno Haible  <bruno@clisp.org>
4562         get-rusage-data: Add support for Minix 3.
4563         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4565 2018-01-30  Bruno Haible  <bruno@clisp.org>
4567         vma-iter: Add support for Minix 3.
4568         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4569         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4571 2018-01-27  Bruno Haible  <bruno@clisp.org>
4573         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4574         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4575         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4576         _HPUX_ALT_XOPEN_SOCKET_API.
4577         * modules/accept (Depends-on): Add 'extensions'.
4578         * modules/getpeername (Depends-on): Likewise.
4579         * modules/getsockname (Depends-on): Likewise.
4580         * modules/getsockopt (Depends-on): Likewise.
4581         * modules/recvfrom (Depends-on): Likewise.
4582         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4583         * doc/posix-functions/getpeername.texi: Likewise.
4584         * doc/posix-functions/getsockname.texi: Likewise.
4585         * doc/posix-functions/getsockopt.texi: Likewise.
4586         * doc/posix-functions/recvfrom.texi: Likewise.
4588 2018-01-27  Bruno Haible  <bruno@clisp.org>
4590         getsockname tests: More tests.
4591         * tests/test-getsockname.c (open_server_socket): New function, mostly
4592         copied from test-poll.c.
4593         (main): Check that getsockname fills in addr.
4594         * modules/getsockname-tests (Depends-on): Add the necessary
4595         dependencies.
4596         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4598 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4600         manywarnings: fix maintainer comment
4601         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4602         it does not mistakenly think that ‘-1)’ is an option.
4604 2018-01-26  Bruno Haible  <bruno@clisp.org>
4606         langinfo: Fix last commit.
4607         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4608         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4610 2018-01-24  Bruno Haible  <bruno@clisp.org>
4612         langinfo, nl_langinfo: Add support for alternative month names.
4613         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4614         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4615         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4616         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4617         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4618         * doc/posix-functions/nl_langinfo.texi: Likewise.
4620 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4622         Merge strftime.c changes from glibc
4623         This incorporates:
4624         2017-11-14 [BZ #10871] Implement alternative month names
4625         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4626         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4627         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4628         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4629         Use locale_t, not __locale_t.
4630         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4631         (__strftime_internal): Add support for alternate months.
4633 2018-01-23  Bruno Haible  <bruno@clisp.org>
4635         doc: Mention another prerequisite for using Gnulib.
4636         Reported at <https://stackoverflow.com/questions/48378214/>.
4637         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4638         AC_CONFIG_HEADERS.
4640 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4642         build: GuixSD doesn't have /bin/bash
4643         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4645 2018-01-21  Bruno Haible  <bruno@clisp.org>
4647         Avoid test failures on Microsoft Windows Subsystem for Linux.
4648         * tests/test-fcntl.c (main): Allow a different errno.
4649         * tests/test-rename.h (test_rename): Likewise.
4650         * tests/test-renameat.c (main): Likewise.
4651         * tests/test-renameat2.c (main): Likewise.
4653 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4655         filenamecat: make base a suffix of result
4656         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4657         (mfile_name_concat): Always make BASE a suffix of the result, as
4658         cp expects this.  To implement this, separate with '.' instead of
4659         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4660         * tests/test-filenamecat.c (main): Adjust tests to match
4661         current behavior.  Check that BASE_IN_RESULT points to
4662         a copy of BASE and is a suffix of the resultk, and that DIR
4663         is a prefix of the result that is no longer than the prefix
4664         indicated by BASE_IN_RESULT.
4666 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4668         update-copyright: Handle use of ©
4669         * build-aux/update-copyright ($circle_c_re): Update regex to
4670         handle use of © in headers.
4672 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4674         Fix -Wundef warning in user-included header lib/cdefs.h.
4675         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4677 2018-01-04  Bruno Haible  <bruno@clisp.org>
4679         pthread_sigmask: Avoid compilation error on mingw.
4680         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4681         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4682         macro.
4684 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4686         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4687         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4688         Suggested by Bob Proulx (Bug#29968).
4689         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4691 2018-01-02  Eric Blake  <eblake@redhat.com>
4693         stat-time: silence -Wunused-parameter regression
4694         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4695         Prefer attribute over cast-to-void.
4696         (stat_time_normalize): Mark st as potentially unused.
4698 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4700         test-framework-sh: avoid netstat
4701         Problem reported by Kristýna Streitová (Bug#29947).
4702         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4703         deprecated on SuSE and it's not that important anyway.
4705 2018-01-01  Jim Meyering  <meyering@fb.com>
4707         update-copyright: add code to handle more special cases
4708         After running "make update-copyright" this year, five files
4709         required additional manual changes.  Automate those adjustments
4710         for next year.
4711         * Makefile (_year_and_prev): Define.
4712         (update-copyright): Add perl commands to induce this year's post-
4713         update-copyright adjustments.
4715 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4717         version-etc: new year
4718         * build-aux/gendocs.sh (version):
4719         * doc/gendocs_template:
4720         * doc/gendocs_template_min:
4721         * doc/gnulib.texi:
4722         * lib/version-etc.c (COPYRIGHT_YEAR):
4723         Update copyright dates by hand in templates and the like.
4725         maint: fix 'make update-copyright'
4726         * Makefile (update-copyright): Adjust to 2016-11-23 change
4727         to config/srclist-update, which changed the format of srclist.txt.
4729 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4731         chdir-safer: remove this module
4732         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4733         * NEWS: Document removal.
4734         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4735         * modules/chdir-safer: Remove these files.
4737 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4739         Add cross-compilation results for GNU/Hurd.
4740         * m4/calloc.m4: Add GNU/Hurd guess.
4741         * m4/cbrtl.m4: Likewise.
4742         * m4/ceil.m4: Likewise.
4743         * m4/ceilf.m4: Likewise.
4744         * m4/ceill.m4: Likewise.
4745         * m4/chown.m4: Likewise.
4746         * m4/duplocale.m4: Likewise.
4747         * m4/exp2l.m4: Likewise.
4748         * m4/expm1.m4: Likewise.
4749         * m4/fchdir.m4: Likewise.
4750         * m4/floor.m4: Likewise.
4751         * m4/floorf.m4: Likewise.
4752         * m4/fmod.m4: Likewise.
4753         * m4/fmodf.m4: Likewise.
4754         * m4/fmodl.m4: Likewise.
4755         * m4/getcwd.m4: Likewise.
4756         * m4/getgroups.m4: Likewise.
4757         * m4/gettimeofday.m4: Likewise.
4758         * m4/hypot.m4: Likewise.
4759         * m4/hypotf.m4: Likewise.
4760         * m4/hypotl.m4: Likewise.
4761         * m4/link-follow.m4: Likewise.
4762         * m4/link.m4: Likewise.
4763         * m4/linkat.m4: Likewise.
4764         * m4/log.m4: Likewise.
4765         * m4/log10.m4: Likewise.
4766         * m4/log10f.m4: Likewise.
4767         * m4/log1p.m4: Likewise.
4768         * m4/log1pf.m4: Likewise.
4769         * m4/log1pl.m4: Likewise.
4770         * m4/log2.m4: Likewise.
4771         * m4/log2f.m4: Likewise.
4772         * m4/logf.m4: Likewise.
4773         * m4/lstat.m4: Likewise.
4774         * m4/malloc.m4: Likewise.
4775         * m4/mbrlen.m4: Likewise.
4776         * m4/mbrtowc.m4: Likewise.
4777         * m4/mkdir.m4: Likewise.
4778         * m4/mkfifo.m4: Likewise.
4779         * m4/mknod.m4: Likewise.
4780         * m4/mkstemp.m4: Likewise.
4781         * m4/modf.m4: Likewise.
4782         * m4/modff.m4: Likewise.
4783         * m4/modfl.m4: Likewise.
4784         * m4/printf.m4: Likewise.
4785         * m4/pselect.m4: Likewise.
4786         * m4/ptsname.m4: Likewise.
4787         * m4/putenv.m4: Likewise.
4788         * m4/readlink.m4: Likewise.
4789         * m4/realloc.m4: Likewise.
4790         * m4/remainder.m4: Likewise.
4791         * m4/remainderf.m4: Likewise.
4792         * m4/remainderl.m4: Likewise.
4793         * m4/rmdir.m4: Likewise.
4794         * m4/round.m4: Likewise.
4795         * m4/roundf.m4: Likewise.
4796         * m4/roundl.m4: Likewise.
4797         * m4/select.m4: Likewise.
4798         * m4/setenv.m4: Likewise.
4799         * m4/signbit.m4: Likewise.
4800         * m4/sleep.m4: Likewise.
4801         * m4/stat.m4: Likewise.
4802         * m4/strerror.m4: Likewise.
4803         * m4/strtok_r.m4: Likewise.
4804         * m4/symlink.m4: Likewise.
4805         * m4/symlinkat.m4: Likewise.
4806         * m4/trunc.m4: Likewise.
4807         * m4/truncf.m4: Likewise.
4808         * m4/truncl.m4: Likewise.
4809         * m4/tzset.m4: Likewise.
4810         * m4/ungetc.m4: Likewise.
4811         * m4/usleep.m4: Likewise.
4812         * m4/wcwidth.m4: Likewise.
4814 2017-12-28  Bruno Haible  <bruno@clisp.org>
4816         gnulib-tool: Make --conditional-dependencies work better.
4817         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4818         * gnulib-tool (Options): Don't reject the combination of
4819         --conditional-dependencies with --with-tests.
4820         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4821         Don't reference $modules.
4822         (func_import, func_create_testdir): Pass it.
4824 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4826         regex: use re_malloc etc. consistently
4827         Problem and original patch reported by Arnold Robbins in:
4828         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4829         * lib/regcomp.c (re_comp):
4830         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4831         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4833 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4834             Paul Eggert  <eggert@cs.ucla.edu>
4836         glob: Silence warning about void pointer arithmetic.
4837         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4838         arithmetic.
4840 2017-12-15  Bruno Haible  <bruno@clisp.org>
4842         spawn-pipe: Silence a clang warning.
4843         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4844         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4845         in this file.
4847 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4849         explicit_bzero: port to macOS + Clang 9.0.0
4850         Problem reported by Marcus Johnson (Bug#29658).
4851         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4852         Don’t use asm.
4854 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4856         doc: Improve explanation of supporting relocatable libraries.
4857         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4858         properly how to build the relocatable module for
4859         libraries. (Method and example code from Bruno Haible.)
4861 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4863         doc: Use better texinfo tags in a few cases.
4864         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4865         instead of @samp in a few places.
4867 2017-12-11  Bruno Haible  <bruno@clisp.org>
4869         unistr/base: Update comment.
4870         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4872 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4874         test-faccessat.c: unlink temp file to avoid subsequent test failure
4875         * tests/test-faccessat.c: Remove the file to avoid failure
4876         to open the file on subsequent runs due to being created
4877         with no permissions.
4879 2017-12-10  Bruno Haible  <bruno@clisp.org>
4881         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4882         * doc/gnulib-tool.texi (Modified build rules): New node.
4884 2017-12-10  Bruno Haible  <bruno@clisp.org>
4886         doc: Tweak wording.
4887         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4888         "binaries".
4890 2017-12-05  Sam Steingold  <sds@gnu.org>
4891             Bruno Haible  <bruno@clisp.org>
4893         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4894         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4895         AC_EGREP_CPP pattern.
4897 2017-12-03  Bruno Haible  <bruno@clisp.org>
4899         all: Replace more http URLs by https URLs.
4900         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4901         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4902         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4903         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4905 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4907         Port better to CentOS 5
4908         Problems reported by Tom G. Christensen in:
4909         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4910         * doc/glibc-functions/strverscmp.texi (strverscmp):
4911         Document strverscmp bug with glibc 2.9 and earlier.
4912         * doc/posix-functions/tzset.texi (tzset):
4913         Document that TZ with angle brackets is POSIX-2001 and later.
4914         * tests/test-nstrftime.c: Include unistd.h.
4915         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4916         (TZ): Use it to skip tests with angle brackets in TZ,
4917         for older systems.
4919         stat: add missing module dependencies
4920         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4921         Add stat-time.
4923 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4925         stat: fix compilation failure on macOS Sierra
4926         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4927         https://savannah.gnu.org/bugs/?52546
4928         * lib/stat.c: Add missing include of stat-time.h.
4930 2017-11-28  Jim Meyering  <meyering@fb.com>
4932         test-faccessat.c: correct BASE definition to avoid parallel test failure
4933         * tests/test-faccessat.c (BASE): Define using this file's name, not
4934         that of test-lstat.c.  Using the latter caused this test to fail
4935         sometimes when run concurrently with test-lstat.
4937 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4939         unicase: fix VPATH build
4940         * modules/unicase/special-casing (Makefile.am): Ensure that the
4941         base directory is created when generating
4942         unicase/special-casing.h.
4944 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4946         libunistring: update to Unicode 9.0.0
4947         * lib/gen-uni-tables.c (fill_properties): Recognize
4948         Sentence_Terminal and Prepended_Concatenation_Mark.
4949         (is_property_default_ignorable_code_point): Exclude U+08E2.
4950         (fill_arabicshaping): Allow missing whitespace when parsing;
4951         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4952         (output_blocks): Increase the element size of the level1 table to
4953         accommodate more blocks.
4954         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4955         Update each class according to the standard.
4956         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4957         E_Base_GAZ characters.
4958         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4959         Glue_After_Zwj, and E_Base_GAZ characters.
4960         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4961         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4962         enum value.
4963         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4964         value.
4965         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4966         LBP_ZWJ, LBP_EB, and LBP_EM.
4967         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4968         enum value.
4969         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4970         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4971         declaration.
4972         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4973         (uniwbrk_table): Implement WB14.
4974         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4975         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4976         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4977         uc-is-grapheme-break.
4978         * modules/unigbrk/uc-grapheme-breaks: New module.
4979         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4980         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4981         enum value.
4982         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4983         * lib/unigbrk/u-grapheme-breaks.h: New file.
4984         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4985         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4986         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4987         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4988         29.
4989         * tests/unigbrk/test-uc-gbrk-prop.c
4990         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4991         GBP_GAZ, and GBP_EBG.
4992         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4993         * tests/unigbrk/test-uc-is-grapheme-break.c
4994         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4995         GBP_GAZ, and GBP_EBG.
4996         (main): Skip unsupported rules involving 3 or more characters,
4997         namely GB10, GB12, and GB13.
4998         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4999         * all generated files under lib/uni* and tests/uni*: Regenerate.
5000         * all the affected modules: Bump version.
5002 2017-11-26  Bruno Haible  <bruno@clisp.org>
5004         strfmon_l: Fix compilation error with glibc 2.5.
5005         Reported by Tom G. Christensen <tgc@jupiterrise.com>
5006         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
5007         * lib/monetary.in.h: Include also <locale.h>.
5009 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5011         posixtm: remove PDS_LEADING_YEAR
5012         This changes the API slightly, in a hopefully-innocuous way.
5013         Without this change the code had undefined behavior when a
5014         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
5015         Problem reported by Pádraig Brady in:
5016         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
5017         * NEWS: Mention this.
5018         * lib/posixtm.c (posix_time_parse): Treat the absence of
5019         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
5020         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
5021         present, but define it as zero, for compatibility with existing
5022         source code).  All other PDS_* values moved up.
5023         * tests/test-posixtm.c (LY): New macro.
5024         (T): Use it.  Do not expect a particular numeric encoding
5025         for PDS_CENTURY etc.
5027 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
5029         stat: work around Solaris bug with tv_nsec < 0
5030         * doc/posix-functions/fstat.texi (fstat):
5031         * doc/posix-functions/fstatat.texi (fstatat):
5032         * doc/posix-functions/lstat.texi (lstat):
5033         * doc/posix-functions/stat.texi (stat):
5034         Mention Solaris 11 bug.
5035         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
5036         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
5037         * lib/lstat.c (rpl_lstat):
5038         * lib/stat.c (rpl_stat):
5039         Normalize resulting timestamps.
5040         * lib/fstatat.c (normal_fstatat): New function.
5041         (rpl_fstatat): Use it.
5042         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
5043         (stat_time_normalize): New function.
5044         * m4/fstat.m4 (gl_FUNC_FSTAT):
5045         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
5046         * m4/lstat.m4 (gl_FUNC_LSTAT):
5047         * m4/stat.m4 (gl_FUNC_STAT):
5048         Replace on Solaris.
5049         * modules/fstat (Depends-on):
5050         * modules/fstatat (Depends-on):
5051         Add stat-time.
5052         * modules/stat-time (Depends-on): Add errno, intprops.
5054 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
5056         regex: merge from glibc
5057         * lib/regcomp.c (init_word_char): Add comments.
5059 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5061         regex: merge from glibc
5062         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
5063         * lib/regex_internal.h (internal_function): Remove.
5064         All uses removed.
5066 2017-11-20  Bruno Haible  <bruno@clisp.org>
5068         crypto/gc-sm3: Fix buffer overrun.
5069         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
5070         Reported by Coverity.
5072 2017-11-12  Jim Meyering  <meyering@fb.com>
5074         maint: shorten https://lists.gnu.org/archive/html/... links
5075         Each /archive/html/ part can be replace with /r/.
5076         Run this to induce the change:
5077         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
5078         * ChangeLog: Perform that substitution.
5079         * Makefile: Likewise.
5080         * STATUS-libposix: Likewise.
5081         * build-aux/bootstrap: Likewise.
5082         * doc/maintain.texi: Likewise.
5083         * gnulib-tool: Likewise.
5084         * lib/allocator.h: Likewise.
5085         * lib/argp-ba.c: Likewise.
5086         * lib/argp-pv.c: Likewise.
5087         * lib/canon-host.c: Likewise.
5088         * lib/canonicalize-lgpl.c: Likewise.
5089         * lib/float.in.h: Likewise.
5090         * lib/fstat.c: Likewise.
5091         * lib/getdelim.c: Likewise.
5092         * lib/getprogname.c: Likewise.
5093         * lib/glthread/thread.h: Likewise.
5094         * lib/intprops.h: Likewise.
5095         * lib/mbsrtowcs-state.c: Likewise.
5096         * lib/safe-read.c: Likewise.
5097         * lib/signal.in.h: Likewise.
5098         * lib/stat.c: Likewise.
5099         * lib/stdbool.in.h: Likewise.
5100         * lib/stdio-impl.h: Likewise.
5101         * lib/stdio.in.h: Likewise.
5102         * lib/sysexits.in.h: Likewise.
5103         * lib/timespec.h: Likewise.
5104         * lib/wcsrtombs-state.c: Likewise.
5105         * m4/alloca.m4: Likewise.
5106         * m4/extern-inline.m4: Likewise.
5107         * m4/fstatat.m4: Likewise.
5108         * m4/gnulib-common.m4: Likewise.
5109         * m4/lib-ignore.m4: Likewise.
5110         * m4/printf.m4: Likewise.
5111         * m4/regex.m4: Likewise.
5112         * m4/stat-size.m4: Likewise.
5113         * m4/std-gnu11.m4: Likewise.
5114         * m4/stdbool.m4: Likewise.
5115         * m4/sys_types_h.m4: Likewise.
5116         * m4/threadlib.m4: Likewise.
5117         * m4/vararrays.m4: Likewise.
5118         * pygnulib/GLImport.py: Likewise.
5119         * tests/test-exp.h: Likewise.
5120         * tests/test-exp2.h: Likewise.
5121         * tests/test-expm1.h: Likewise.
5122         * tests/test-fflush2.c: Likewise.
5123         * tests/test-getopt_long.h: Likewise.
5124         * tests/test-intprops.c: Likewise.
5125         * tests/test-log.h: Likewise.
5126         * tests/test-log10.h: Likewise.
5127         * tests/test-log1p.h: Likewise.
5128         * tests/test-log2.h: Likewise.
5129         * tests/test-printf-posix.h: Likewise.
5130         * tests/test-regex.c: Likewise.
5131         * tests/test-snprintf-posix.h: Likewise.
5132         * tests/test-sprintf-posix.h: Likewise.
5133         * tests/test-stdalign.c: Likewise.
5134         * tests/test-stdbool.c: Likewise.
5135         * tests/test-vasnprintf-posix.c: Likewise.
5136         * tests/test-vasprintf-posix.c: Likewise.
5137         * top/maint.mk: Likewise.
5139 2017-11-12  Bruno Haible  <bruno@clisp.org>
5141         faccessat: Make the last change more robust.
5142         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
5143         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
5145 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5147         faccessat: port to macOS (Bug#29231)
5148         macOS faccessat has the same bug that lstat does: if the file
5149         name ends in '/' it ignores the trailing slash.
5150         Problem reported for Emacs by Vincent Zhang.
5151         * doc/posix-functions/faccessat.texi (faccessat): Document this.
5152         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
5153         around the initial includes.  Include errno.h, string.h, sys/stat.h.
5154         (orig_faccessat) [HAVE_FACCESSAT]: New function.
5155         Include "unistd.h" after defining it.
5156         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
5157         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
5158         Handle in the usual way.
5159         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
5160         lstat dereferences symlinks, since faccessat is likely to
5161         have the same problem.
5162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
5163         * modules/faccessat (Depends-on): Add fstatat.
5164         Depend if REPLACE_FACCESSAT is 1, too.
5165         (configure.ac): Link if REPLACE_FACCESSAT is 1.
5166         * modules/faccessat-tests (Depends-on): Add symlink.
5167         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
5168         * tests/test-faccessat.c (main): Test for the bug.
5170 2017-11-11  Bruno Haible  <bruno@clisp.org>
5172         getprogname: Fix compilation error on IRIX.
5173         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
5174         'namesize'.
5176 2017-11-11  Bruno Haible  <bruno@clisp.org>
5178         year2038: Tweak last patch.
5179         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
5181 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5183         year2038: be more insistent about 64-bit time_t
5184         Applications requiring access to arbitrary files should not be
5185         built with 32-bit time_t on hosts that have 64-bit timestamps,
5186         as this can lead to real trouble at runtime.
5187         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
5188         Check on all systems, not just MinGW.  Use a heuristic involving
5189         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
5190         output a failure or just a warning, to make it more likely that
5191         builders will select 64-bit time_t.
5193 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
5195         havelib: fix typo in previous change
5196         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
5198         Don’t use AC_EGREP_CPP if affected by CFLAGS
5199         * m4/float_h.m4 (gl_FLOAT_H):
5200         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
5201         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
5202         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
5203         * m4/year2038.m4 (gl_YEAR2038):
5204         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
5205         likely to be affected by the choice of CFLAGS, since CFLAGS are
5206         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
5207         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
5209         fstatat: pacify GCC on unusual platform
5210         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
5211         Omit, as it’s unused in this case.
5213 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
5215         timespec: prefer ‘assume’ to ‘assure’
5216         This avoids some runtime tests.  The rest of the module makes
5217         similar assumptions and there is little point to testing here.
5218         * lib/timespec.h: Include verify.h instead of assure.h.
5219         (timespec_cmp): Use ‘assume’, not ‘assure’.
5220         Also, remove an unnecessary cast to ‘int’, as lots of other
5221         code in this module now causes -Wconversion to complain, and
5222         this is a problem with -Wconversion not with the code.
5224         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
5226         Port recent gnulib-tool change to Dash
5227         * gnulib-tool (func_create_testdir): Don't assume that the shell
5228         retokenizes after expanding "$@" inside the call to
5229         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
5231 2017-10-27  Jim Meyering  <meyering@fb.com>
5233         timespec.h: use "assure" to avoid a spurious warning
5234         * lib/timespec.h: Include "assure.h" and use it to help
5235         gcc7's -Wstrict-overflow avoid a false positive warning
5236         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
5237         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
5238         * modules/timespec (Depends-on): Add assure.
5240 2017-10-29  Bruno Haible  <bruno@clisp.org>
5242         Avoid several test failures with traditional locales on Haiku.
5243         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
5244         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
5245         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
5246         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
5247         LOCALE_ZH_CN=none.
5249 2017-10-29  Bruno Haible  <bruno@clisp.org>
5251         strerror_r-posix: Fix behaviour and test failure on Haiku.
5252         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
5253         are positive. Work around return value 0 instead of ERANGE on Haiku.
5254         For unknown error numbers, use a format string consistent with perror().
5255         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
5256         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
5257         are positive.
5259 2017-10-29  Bruno Haible  <bruno@clisp.org>
5261         get-rusage-data: Avoid crash on Haiku.
5262         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
5264 2017-10-29  Bruno Haible  <bruno@clisp.org>
5266         get-rusage-as: Avoid crash on Haiku.
5267         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
5269 2017-10-29  Bruno Haible  <bruno@clisp.org>
5271         ilogbl: Ensure replacement on Haiku.
5272         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
5273         REPLACE_ILOGBL if ilogbl does not work.
5274         (gl_FUNC_ILOGBL_WORKS): New macro.
5275         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
5276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
5277         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
5278         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
5279         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
5281 2017-10-29  Bruno Haible  <bruno@clisp.org>
5283         expl: Ensure replacement on Haiku.
5284         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
5285         zero.
5286         * doc/posix-functions/expl.texi: Mention the Haiku problem.
5288 2017-10-29  Bruno Haible  <bruno@clisp.org>
5290         math: Fix test failure on Haiku.
5291         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
5292         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
5293         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5294         * doc/posix-headers/math.texi: Mention the Haiku problem.
5296 2017-10-29  Bruno Haible  <bruno@clisp.org>
5298         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
5299         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
5300         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
5302 2017-10-29  Bruno Haible  <bruno@clisp.org>
5304         crypto/*: Verify that the header file is self-contained.
5305         * tests/test-gc-*.c: Include the module's header file immediately after
5306         <config.h>.
5307         * tests/test-hmac-*.c: Likewise.
5308         * tests/test-arcfour.c: Likewise.
5309         * tests/test-arctwo.c: Likewise.
5310         * tests/test-des.c: Likewise.
5311         * tests/test-md2.c: Likewise.
5312         * tests/test-md4.c: Likewise.
5313         * tests/test-md5.c: Likewise.
5314         * tests/test-rijndael.c: Likewise.
5315         * tests/test-sha1.c: Likewise.
5316         * tests/test-sm3.c: Likewise.
5318 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5319             Bruno Haible  <bruno@clisp.org>
5321         crypto/gc: fix build failure with -Werror=suggest-attribute=const
5322         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
5324 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5326         New module: crypto/gc-sm3
5327         * lib/gc.h: Declare SM3-related stuffs.
5328         * lib/gc-gnulib.c: Support sm3 in internal functions.
5329         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5330         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5331         * modules/crypto/gc-sm3: Define gc-sm3 module.
5332         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5333         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5334         * MODULES.html.sh: List gc-sm3 module.
5336 2017-10-29  Bruno Haible  <bruno@clisp.org>
5338         random, random_r: Mention different prototypes on Haiku.
5339         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5340         * doc/glibc-functions/random_r.texi: Likewise.
5341         * doc/glibc-functions/initstate_r.texi: Likewise.
5342         * doc/glibc-functions/setstate_r.texi: Likewise.
5344 2017-10-28  Bruno Haible  <bruno@clisp.org>
5346         posix_spawn: Avoid spurious message in configure output.
5347         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5348         'cmp' command.
5350 2017-10-28  Bruno Haible  <bruno@clisp.org>
5352         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5353         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5354         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5356 2017-10-28  Bruno Haible  <bruno@clisp.org>
5358         ioctl: Override non-POSIX declaration on Haiku.
5359         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5360         * lib/sys_ioctl.in.h: Add comment about Haiku.
5361         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5362         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5364 2017-10-28  Bruno Haible  <bruno@clisp.org>
5366         crypto/sm3: Add overview documentation to the .h file.
5367         * lib/sm3.h: Add comments.
5369 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5371         New module: crypto/sm3
5372         This new module can be used to compute SM3 message digest of files or
5373         memory blocks according to the specification GM/T 004-2012
5374         Cryptographic Hash Algorithm SM3, published by State Cryptography
5375         Administration, China.
5376         The official SM3 cryptographic hash algorithm specification is
5377         available at
5378         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5379         * lib/sm3.h: Declare the APIs of sm3 module.
5380         * lib/sm3.c: Implement SM3 hash algorithm.
5381         * m4/sm3.m4: m4 file for sm3 module.
5382         * modules/crypto/sm3: Define sm3 module.
5383         * tests/test-sm3.c: Implement SM3 test case.
5384         * modules/crypto/sm3-tests: Define sm3 test module.
5385         * MODULES.html.sh: List sm3 module.
5387 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5389         gc-libgcrypt: fix undefined enum type in switch statement
5390         Resolve the following build failure:
5391         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5392         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5393         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5394              case 0:
5395              ^~~~
5396         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5397         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5399 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5401         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5402         Resolve the following build failure:
5403         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5404         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5405         in signedness [-Werror=pointer-sign]
5406             digest = gcry_md_read (ctx->gch, 0);
5407                    ^
5408         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5410 2017-10-26  Bruno Haible  <bruno@clisp.org>
5412         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5413         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5414         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5416 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5418         glob: fix another heap buffer overflow
5419         Problem reported by Tim Rühsen in:
5420         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5421         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5423 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5425         quotearg: pacify compiler re unsigned
5426         * lib/quotearg.c (quotearg_n_options):
5427         Rewrite to avoid diagnostic from overly-picky compiler.
5428         Problem reported by Sami Kerola in:
5429         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5431         glob: fix heap buffer overflow
5432         * lib/glob.c (glob): Fix off-by-one error introduced into
5433         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5434         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5435         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5436         Fix suggested by Bruno Haible.
5438 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5440         glob: pacify fuzzer for mempcpy
5441         Problem reported by Tim Rühsen in:
5442         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5443         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5445 2017-10-12  Bruno Haible  <bruno@clisp.org>
5447         doc: Fix syntax error (regression from 2017-10-03).
5448         * doc/posix-functions/strncpy.texi: Fix syntax error.
5450 2017-10-12  Bruno Haible  <bruno@clisp.org>
5452         doc: Update for Solaris 11.3.
5453         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5454         mention Solaris 11.3.
5455         * m4/log2.m4: Fix comments.
5456         * m4/log2f.m4: Likewise.
5457         * m4/printf.m4: Update comments.
5458         * m4/rename.m4: Likewise.
5459         * m4/strncat.m4: Likewise.
5461         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5463 2017-10-10  Bruno Haible  <bruno@clisp.org>
5465         doc: Improve doc about ioctl.
5466         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5467         prototype.
5469 2017-10-09  Bruno Haible  <bruno@clisp.org>
5471         wcwidth: Don't use obsolete syntax of 'test'.
5472         Reported by Eric Blake.
5473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5474         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5476 2017-10-09  Bruno Haible  <bruno@clisp.org>
5478         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5479         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5480         and Daniel P. Berrange <berrange@redhat.com>.
5481         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5482         on glibc systems. The getopt-pfx-core.h file declares exactly what
5483         unistd.h needs, nothing more.
5485 2017-10-08  Bruno Haible  <bruno@clisp.org>
5487         vma-iter: Improve support for FreeBSD.
5488         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5489         vma_iterate.
5490         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5492 2017-10-08  Bruno Haible  <bruno@clisp.org>
5494         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5495         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5497 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5499         test-framework-sh: Fix 'invalid path dir' error.
5500         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5501         separator between a drive letter and directory parts.
5502         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5503         treated as an invalid path dir.
5504         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5505         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5506         instead of hard coded ':'.
5508 2017-10-07  Bruno Haible  <bruno@clisp.org>
5510         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5511         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5512         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5513         (rof_open): On Linux, do multiple read() calls and make sure
5514         MIN_LEFTOVER bytes are left when read() returns.
5516 2017-10-07  Bruno Haible  <bruno@clisp.org>
5518         vma-iter: Improve support for GNU/Hurd.
5519         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5520         API, not the /proc file system.
5522 2017-10-07  Bruno Haible  <bruno@clisp.org>
5524         test-framework-sh: Don't require bash on Windows and OS/2.
5525         Reported by KO Myung-Hun.
5526         * tests/test-init.sh: Use 'shopt' only when running in bash.
5528 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5530         wcwidth: check a macro version of wcwidth () as well
5531         * lib/wchar.in.h: Revert commit from 2016-01-14.
5532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5534 2017-10-06  Bruno Haible  <bruno@clisp.org>
5536         getopt-posix: Clarify copyright header.
5537         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5538         * lib/getopt-pfx-core.h: Likewise.
5539         * lib/getopt-pfx-ext.h: Likewise.
5540         * lib/getopt-cdefs.in.h: Likewise.
5542 2017-10-03  Bruno Haible  <bruno@clisp.org>
5544         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5545         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5546         gl_HOST_CPU_C_ABI.
5548 2017-10-03  Bruno Haible  <bruno@clisp.org>
5550         doc: warn about misuse of strncpy and wcsncpy.
5551         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5552         memory allocation.
5553         * doc/posix-functions/wcscpy.texi: Likewise.
5554         * doc/posix-functions/strncpy.texi: Describe what this function is not
5555         useful for.
5556         * doc/posix-functions/wcsncpy.texi: Likewise.
5558 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5560         fsuage: fix typo in previous change
5561         * lib/fsusage.c: Remove stray include of full-read.h.
5562         Problem reported by Sam Steingold for macOS (Bug#28669).
5564 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5566         fsusage: remove SVR2 support
5567         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5568         and its code was getting in the way of use of this module by
5569         Emacs, which has its own ‘read’ function anyway.
5570         * lib/fsusage.c: Do not include sys/filsys.h.
5571         (get_fs_usage): Remove SVR2-specific code.
5572         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5573         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5574         * modules/fsusage (Depends-on): Do not depend on full-read.
5576         Simplify autoupdate of licenses
5577         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5578         place.
5580 2017-10-01  Bruno Haible  <bruno@clisp.org>
5582         vma-iter: Add support for GNU/Hurd.
5583         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5584         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5586 2017-09-30  Bruno Haible  <bruno@clisp.org>
5588         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5589         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5590         fail when module 'largefile' is in use.
5591         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5592         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5593         Don't test HAVE_SYS_PROCFS_H.
5595 2017-09-30  Bruno Haible  <bruno@clisp.org>
5597         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5598         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5599         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5600         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5602 2017-09-30  Bruno Haible  <bruno@clisp.org>
5604         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5605         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5606         scope of local variables.
5608 2017-09-28  Bruno Haible  <bruno@clisp.org>
5610         string: code style
5611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5612         substitutable variables.
5613         * modules/string (Makefile.am): Likewise.
5615 2017-09-26  Bruno Haible  <bruno@clisp.org>
5617         uniname/uniname-tests: Tighten code.
5618         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5619         local variables into one.
5621 2017-09-26  Bruno Haible  <bruno@clisp.org>
5623         vma-iter: Improvements for Linux and BSD platforms.
5624         - Add support for DragonFly BSD.
5625         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5626         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5627         Read the entire file into memory in a single system call.
5628         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5629         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5631 2017-09-26  Bruno Haible  <bruno@clisp.org>
5633         vma-iter: Provide the protection flags on FreeBSD.
5634         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5635         skip three fields between the addresses and the protection flags.
5637 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5639         glob: remove bogus extern decl
5640         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5641         extern declaration.  Problem reported by Adhemerval Zanella in:
5642         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5644 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5646         uniname/uniname-tests: integer overflow fix
5647         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5648         Check for integer overflow.
5650         duplocale-tests: fix unlikely crash
5651         * tests/test-duplocale.c (get_locale_dependent_values):
5652         Don’t crash with absurdly long month names.
5654         maint: fix overflow checking in nap.h
5655         * modules/chown-tests:
5656         * modules/fchownat-tests, modules/fdutimensat-tests:
5657         * modules/futimens-tests, modules/lchown-tests:
5658         * modules/stat-time-tests, modules/utime-tests:
5659         * modules/utimens-tests, modules/utimensat-tests:
5660         Depend on intprops.
5661         * tests/nap.h: Include intprops.h.
5662         (diff_timespec): Handle overflow properly.
5664         sys_types: update URL
5665         * m4/sys_types_h.m4: Use https: URL.
5667         parse-datetime: fix dependency
5668         * modules/parse-datetime (Depends-on): Depend
5669         on nstrftime, not strftime.
5671         parse-datetime, posixtm: avoid uninit access
5672         * lib/parse-datetime.y (parse_datetime2):
5673         * lib/posixtm.c (posixtime):
5674         Do not access uninitialized storage, even though the resulting
5675         value is never used.
5677 2017-09-25  Bruno Haible  <bruno@clisp.org>
5679         vma-iter: Improvements for BSD platforms.
5680         - Add support for GNU/kFreeBSD.
5681         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5682         - Speed up on OpenBSD.
5683         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5684         (vma_iterate_bsd): New function.
5685         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5686         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5687         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5688         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5690 2017-09-23  Bruno Haible  <bruno@clisp.org>
5692         strfmon_l: New module.
5693         * modules/strfmon_l: New file.
5694         * lib/strfmon_l.c: New file.
5695         * m4/strfmon_l.m4: New file.
5696         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5697         * modules/strfmon_l-tests: New file.
5698         * tests/test-strfmon_l.c: New file.
5700         monetary: New module.
5701         * modules/monetary: New file.
5702         * lib/monetary.in.h: New file.
5703         * m4/monetary_h.m4: New file.
5704         * doc/posix-headers/monetary.texi: Mention the new module.
5705         * modules/monetary-tests: New file.
5706         * tests/test-monetary.c: New file.
5707         * modules/monetary-c++-tests: New file.
5708         * tests/test-monetary-c++.cc: New file.
5709         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5711 2017-09-23  Bruno Haible  <bruno@clisp.org>
5713         duplocale tests: Fix test crash on Linux/x86.
5714         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5715         locale from the current thread before freeing it.
5717 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5719         mktime: port to OpenVMS
5720         Problem reported by John E. Malmberg in:
5721         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5722         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5724 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5726         manywarnings: port to GCC on 64-bit MS-Windows
5727         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5728         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5729         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5731 2017-09-13  Bruno Haible  <bruno@clisp.org>
5733         all: Replace many more http URLs by https URLs. Update stale URLs.
5734         * users.txt: Remove mention of 'newts'.
5735         * lib/localename.c: Update comment about LANG_SOTHO.
5737 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5739         all: Replace many http URLs by https URLs.
5741 2017-09-12  Bruno Haible  <bruno@clisp.org>
5743         doc: Prefer https URLs where possible.
5744         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5745         * doc/ld-output-def.texi: Remove unavailable URL.
5747 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5749         maintainer-makefile: FTP -> HTTPS
5750         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5751         of FTP, which is planned to be decommissioned on 2017-11-01.
5753 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5755         libc-config: Fix __GNUC_PREREQ macro.
5756         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5757         __GNUC_MINOR.
5759 2017-09-09  Bruno Haible  <bruno@clisp.org>
5761         gnulib-tool: Simplify commit from 2015-08-20.
5762         * gnulib-tool (func_add_or_update): Remove local variable
5763         is_binary_file.
5765 2017-09-08  Bruno Haible  <bruno@clisp.org>
5767         stddef: Avoid conflict with system-defined max_align_t.
5768         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5769         Reported by Werner Lemberg <wl@gnu.org> in
5770         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5771         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5772         (max_align_t): Define as a macro.
5773         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5774         definitions of rpl_max_align_t in different copies of gnulib-generated
5775         <stddef.h>.
5777 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5779         libc-config: port to MSVC
5780         Problems reported by Gisle Vanem in:
5781         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5782         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5783         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5784         * m4/__inline.m4: New file.
5785         * modules/libc-config (Files): Add it.
5786         (Depends-on): Use it.
5788         glob: Use enum for __glob_pattern_type result
5789         From a patch proposed by Adhemerval Zanella in:
5790         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5791         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5792         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5793         * lib/glob_internal.h (__glob_pattern_type):
5794         * lib/glob.c (glob):
5795         * lib/glob_pattern_p.c (__glob_pattern_p):
5796         Use them.
5798         glob: fix for use in glibc
5799         Problem reported by Adhemerval Zanella in:
5800         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5801         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5802         Do not redefine if _LIBC.
5804 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5806         glob: fix bugs with long login names
5807         Problem reported by Adhemerval Zanella in:
5808         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5809         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5810         (glob): Use the same scratch buffer for both getlogin_r and
5811         getpwnam_r.  Don’t require preallocation of the login name.  This
5812         simplifies storage allocation, and corrects the handling of
5813         long login names.
5815 2017-09-02  Bruno Haible  <bruno@clisp.org>
5817         dirent: Update doc.
5818         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5820 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5822         glob: fix getpwnam_r errno typo
5823         * lib/glob.c (glob): Fix longstanding misuse of errno after
5824         getpwnam_r, which returns an error number rather than setting
5825         errno.
5827         glob: fix typo in recent change
5828         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5829         Fix recently-introduced typo.
5831 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5833         glob: don't save and restore errno unnecessarily
5834         * lib/glob.c (glob): Don't save and restore errno
5835         merely because we have getpwnam_r.
5837         glob: don't assume getpwnam_r
5838         * lib/glob.c (glob): Port recent patches to platforms
5839         lacking getpwnam_r.
5841         scratch_buffer: don’t use private glibc API
5842         Suggested by Florian Weimer in:
5843         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5844         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5845         * lib/scratch_buffer_grow.c: Rename to
5846         lib/malloc/scratch_buffer_grow.c.
5847         * lib/scratch_buffer_grow_preserve.c: Rename to
5848         lib/malloc/scratch_buffer_grow_preserve.c.
5849         * lib/scratch_buffer_set_array_size.c: Rename to
5850         lib/malloc/scratch_buffer_set_array_size.c.
5851         * lib/scratch_buffer.h: New file.
5852         * modules/scratch_buffer (Files, Makefile.am):
5853         Adjust to source-file renaming.
5855 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5857         glob: use scratch_buffer instead of extend_alloca
5858         Much of the lib/glob.c part of this patch comes from a glibc patch
5859         proposed by Adhemerval Zanella in:
5860         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5861         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5862         included via glob.h, does this for us now.
5863         (__set_errno): Remove, as libc-config does this for us now.
5864         Include <scratch_buffer.h>.
5865         (GETPW_R_SIZE_MAX): Remove.
5866         (glob): Use struct scratch_buffer instead of extend_alloca.
5867         * lib/glob.in.h: Include libc-config.h rather than
5868         including <sys/cdefs.h> conditionally.
5869         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5870         (__glibc_unlikely, __restrict, weak_alias):
5871         Remove, as libc-config does this for us now.
5872         * m4/glob.m4 (gl_PREREQ_GLOB):
5873         Remove sys/cdefs.h tests; no longer needed.
5874         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5875         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5877         scratch_buffer: new module
5878         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5879         * lib/scratch_buffer_grow_preserve.c:
5880         * lib/scratch_buffer_set_array_size.c:
5881         New files, copied from glibc with very minor changes that can be
5882         copied back.
5883         * modules/scratch_buffer: New file.
5885         libc-config: new module
5886         * MODULES.html.sh: Add libc-config.
5887         * lib/cdefs.h: New file, copied from the GNU C Library with very
5888         minor changes that can be copied back.
5889         * lib/libc-config.h, modules/libc-config: New files.
5891 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5893         glob: match dangling symlinks
5894         This fixes a bug I inadvertently introduced to Gnulib when I
5895         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5896         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5897         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5898         * doc/posix-functions/glob.texi: Update list of affected platforms.
5899         * lib/glob.c (__lstat64): New macro.
5900         (is_dir): New function.
5901         (glob, glob_in_dir): Match symlinks even if they are dangling.
5902         (link_stat, link_exists_p): Remove.  All uses removed.
5903         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5904         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5905         * modules/glob-tests (Depends-on): Add symlink.
5906         * tests/test-glob.c: Include errno.h, unistd.h.
5907         (BASE): New macro.
5908         (main): Test dangling symlinks, if symlinks are supported.
5910         glob, backupfile: inode 0 is a valid inode number
5911         * doc/posix-functions/readdir.texi (readdir):
5912         * doc/posix-headers/dirent.texi (dirent.h):
5913         Document more readdir portability issues.
5914         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5915         (numbered_backup): Don’t treat inode 0 any differently from
5916         other inode values.
5917         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5918         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5919         All uses removed.
5920         * modules/glob (Depends-on): Remove d-ino.
5922         glob: simplify symlink detection
5923         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5924         uint8_t, as C99 does not require uint8_t.
5925         (struct readdir_result): Use it.  Do not define skip_entry unless
5926         it is needed; this saves a byte on platforms lacking d_ino.
5927         (readdir_result_type, readdir_result_skip_entry):
5928         New functions, replacing ...
5929         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5930         ... these functions, which were removed.  This makes the callers
5931         easier to read.  All callers changed.
5932         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5934 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5936         fts-tests: tag as a longrunning-test so not included by default
5937         * modules/fts-tests: This test takes about 20s on current systems,
5938         and uses about 285M of space on ext4.
5940 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5942         renameat2: fix compilation on alpine linux
5943         * m4/renameat.m4: Check for <linux/fs.h> presence.
5944         * lib/renameat2.h: Only include <linux/fs.h> if present.
5945         Reported by Assaf Gordon on Alpine Linux.
5947 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5949         glob: try to port recent changes to MS-Windows
5950         Problem reported by Bruno Haible in:
5951         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5952         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5953         * lib/glob.in.h (__glob_pattern_p): ... to here.
5955 2017-08-24  Eric Blake  <eblake@redhat.com>
5957         warnings: fix compilation with old autoconf
5958         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5959         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5960         AC_DEFUN.
5961         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5962         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5964 2017-08-24  Bruno Haible  <bruno@clisp.org>
5966         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5967         * modules/glob (Depends-on): Add c99.
5969 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5971         glob: fix typo that broke platforms lacking d_ino
5972         This typo also hurt performance on GNU/Linux and similar hosts.
5973         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5974         in previous change.
5976 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5978         glob: merge from glibc with Zanella glob changes
5979         Merge glob from glibc, with changes for glob proposed
5980         by Adhemerval Zanella in the thread starting here:
5981         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5982         plus some fixes for this merge.
5983         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5984         New files, ported from glibc.
5985         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5986         with __restrict.
5987         (__size_t): Remove.  All uses replaced by size_t.
5988         (size_t): Define by defining __need_size_t and including <stddef.h>.
5989         This should work even in non-glibc platforms, where any name
5990         pollution is OK.
5991         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5992         (struct stat64): Don’t worry about __GLOB_GNULIB.
5993         (glob, globfree, glob_pattern_p): Remove macros for
5994         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5995         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5996         but set errno.
5997         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5998         removed since the glibc behavior works on null pointers.
5999         Do not include stdio.h; old SunOS is irrelevant now.
6000         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
6001         Include glob_internal.h.
6002         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
6003         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
6004         worked only coincidentally.
6005         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
6006         Remove macros; now done in glob.in.h.
6007         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
6008         (glob): Properly initialize glob structure with
6009         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
6010         Remove old code using SHELL since Bash no longer
6011         uses this.
6012         (glob, prefix_array): Separate MS code better.
6013         (glob, glob_in_dir): Use C99 decls before statements when glibc
6014         does.
6015         (glob_in_dir): Remove old Amiga and VMS code.
6016         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6017         separate files.
6018         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
6019         (__glibc_unlikely):
6020         Move here from glob.c.
6021         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
6022         (weak_alias): New macro.
6023         (__size_t): Remove.  All uses replaced by size_t.
6024         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
6025         * modules/glob (Files): Add +lib/glob_internal.h,
6026         lib/glob_pattern_p.c, lib/globfree.c.
6027         (Depends-on): Remove snippet/arg-nonnull.
6029 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
6031         glob: port to clang's Undefined Sanitizer
6032         Problem reported by Tim Rühsen in:
6033         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
6034         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
6035         (glob_in_dir): Do not rely on undefined behavior in accessing
6036         struct members beyond their bounds.  Use a flexible array member
6037         instead.
6039 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
6041         vc-list-files: port to Solaris 10
6042         * build-aux/vc-list-files: Don't assume test -e works.
6044 2017-08-21  Karl Berry  <karl@freefriends.org>
6046         * doc/posix-functions/srandom.texi (srandom): typo }.
6048 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6050         git-version-gen: port to Solaris 10
6051         Problem reported by Dagobert Michelsen in:
6052         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
6053         * build-aux/git-version-gen (v_from_git):
6054         Use expr instead of shell substitution.
6056 2017-08-19  Bruno Haible  <bruno@clisp.org>
6058         host-cpu-c-abi: Improve detection of MIPS ABI.
6059         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
6060         _MIPS_SIM.
6062 2017-08-17  Bruno Haible  <bruno@clisp.org>
6064         hypot tests: Fix test failure on FreeBSD 11.0/x86.
6065         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
6067 2017-08-17  Bruno Haible  <bruno@clisp.org>
6069         float: Fix LDBL_MIN value on FreeBSD/x86.
6070         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
6072 2017-08-17  Bruno Haible  <bruno@clisp.org>
6074         random: Fix test compilation failure on Cygwin 1.5.25.
6075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
6076         HAVE_DECL_SETSTATE.
6077         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
6078         declared.
6079         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
6080         HAVE_DECL_SETSTATE.
6081         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
6082         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
6083         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
6084         * doc/posix-functions/random.texi: Likewise.
6085         * doc/posix-functions/setstate.texi: Likewise.
6086         * doc/posix-functions/srandom.texi: Likewise.
6088 2017-08-16  Bruno Haible  <bruno@clisp.org>
6090         stdnoreturn: Fix test compilation failure on Cygwin.
6091         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
6092         <stdnoreturn.h> replacement.
6093         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
6094         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
6096 2017-08-16  Bruno Haible  <bruno@clisp.org>
6098         thread: Fix conflict with pthread_sigmask module.
6099         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
6100         it's defined as a macro.
6101         * modules/thread (Depends-on): Add pthread_sigmask.
6103 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6105         rename: port better to NetBSD
6106         * doc/posix-functions/rename.texi (rename): NetBSD 7
6107         does not have the link-count bug.
6108         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
6109         broken merely because rename ("a", "b") removes "a" when the two
6110         names are hard links to the same file.
6112 2017-08-16  Bruno Haible  <bruno@clisp.org>
6114         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
6115         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
6116         the target file names with '$(srcdir)/'.
6117         * modules/unicase/locale-language (Makefile.am): Likewise.
6118         * modules/unicase/special-casing (Makefile.am): Likewise.
6119         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
6120         * modules/unictype/category-byname (Makefile.am): Likewise.
6121         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
6122         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
6123         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
6124         * modules/unictype/property-byname (Makefile.am): Likewise.
6125         * modules/unictype/scripts (Makefile.am): Likewise.
6126         * modules/uninorm/composition (Makefile.am): Likewise.
6128 2017-08-16  Bruno Haible  <bruno@clisp.org>
6130         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
6131         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
6132         value for OpenBSD.
6134 2017-08-16  Bruno Haible  <bruno@clisp.org>
6136         rename, renameat: Update doc regarding NetBSD.
6137         * doc/posix-functions/rename.texi: Clarify that when using
6138         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
6139         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
6140         version.
6142 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6144         renameat2: port better to macOS
6145         * lib/renameat2.c (renameat2): Use renameatx_np if available.
6147         futimens: don’t assume struct timespec layout
6148         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
6149         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
6150         * tests/test-fdutimensat.c (main):
6151         * tests/test-futimens.h (test_futimens):
6152         * tests/test-lutimens.h (test_lutimens):
6153         * tests/test-utimens.h (test_utimens):
6154         * tests/test-utimensat.c (main):
6155         Don’t assume that struct timespec is a two-member structure in
6156         tv_sec, tv_nsec order.  Although this is true on all platforms we
6157         know about, POSIX does not guarantee it.
6159         rename: document+test NetBSD rename
6160         Test failure reported by Bruno Haible in:
6161         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
6162         This is an area where NetBSD is better-behaved than POSIX,
6163         so allow the NetBSD behavior in tests.
6164         * doc/posix-functions/rename.texi:
6165         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
6166         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
6168 2017-08-15  Bruno Haible  <bruno@clisp.org>
6170         renameat: Ensure declaration in <stdio.h> on NetBSD.
6171         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
6172         * doc/posix-functions/renameat.texi: Mention this problem.
6174 2017-08-15  Bruno Haible  <bruno@clisp.org>
6176         duplocale: Work around NetBSD 7.0 bug.
6177         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
6178         * lib/duplocale.c: Add comment about NetBSD problem.
6179         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
6181 2017-08-15  Bruno Haible  <bruno@clisp.org>
6183         duplocale tests: Verify use with *_l functions.
6184         * modules/duplocale-tests (configure.ac): Test for uselocale and
6185         some *_l functions.
6186         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
6187         from main.
6188         (get_locale_dependent_values_from, test_with_locale_parameter): New
6189         functions.
6190         (main): Test both test_with_uselocale and test_with_locale_parameter.
6192 2017-08-15  Bruno Haible  <bruno@clisp.org>
6194         extensions: Enable NetBSD specific extensions.
6195         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
6197 2017-08-14  Bruno Haible  <bruno@clisp.org>
6199         open, openat: Update doc about O_CLOEXEC.
6200         * doc/posix-functions/open.texi: More concrete list of platforms.
6201         * doc/posix-functions/openat.texi: Likewise.
6203 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6205         open: support O_CLOEXEC
6206         * NEWS, doc/posix-functions/open.texi:
6207         * doc/posix-functions/openat.texi: Document this.
6208         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
6209         (GNULIB_defined_O_CLOEXEC): New symbol.
6210         * lib/open.c: Include cloexec.h.
6211         (open): Support O_CLOEXEC.
6212         * lib/openat.c: Include cloexec.h.
6213         (rpl_openat): Support O_CLOEXEC.
6214         * lib/popen-safer.c: Do not include cloexec.h.
6215         (open_noinherit): Remove.
6216         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
6217         * lib/save-cwd.c: Do not include cloexec.h.
6218         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
6219         * m4/open-cloexec.m4: New file.
6220         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
6221         Replace 'open' if O_CLOEXEC is not present.
6222         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
6223         Replace 'openat' if O_CLOEXEC is not present.
6224         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
6225         * modules/open (Files): Add m4/open-cloexec.m4.
6226         (Depends-on): Depend on cloexec if replacing 'open'.
6227         * modules/openat (Files): Add m4/open-cloexec.m4.
6228         (Depends-on): Depend on cloexec if replacing openat.
6229         * modules/popen-safer (Depends-on): Remove cloexec.
6230         * modules/save-cwd (Depends-on): Remove cloexec, and add
6231         fd-safer-flag and 'open'.
6233 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
6235         reallocarray: minor fixes
6236         * doc/glibc-functions/reallocarray.texi: Update version numbers.
6237         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
6238         * modules/reallocarray (License): Change from GPL to LGPL.
6239         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
6240         Indent properly and don't use tabs.
6242 2017-08-13  Darshit Shah  <darnir@gnu.org>
6244         reallocarray: New module
6245         reallocarray is a new function in glibc 2.26 to safely allocate an array
6246         of memory locations with integer overflow protection.
6247         * MODULES.html.sh: Add reallocarray.
6248         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
6249         * lib/reallocarray.c: New file to implement module reallocarray.
6250         * lib/stdlib.in.h: Add function declarations for reallocarray.
6251         * m4/reallocarray.m4: New file.
6252         * m4/stdlib_h.m4: Declare reallocarray.
6253         * modules/reallocarray: New file.
6254         * modules/reallocarray-test: New file.
6255         * modules/stdlib: Coerce stdlib.h to export reallocarray.
6256         * tests/test-reallocarray.c: New test.
6258 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6260         dirent-safer: fix cloexec race
6261         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
6262         (opendir_safer): Use F_DUPFD_CLOEXEC.
6263         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
6264         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
6265         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
6266         instead of dup_safer.
6268         fts: fix cloexec races
6269         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
6270         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
6271         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
6272         (fd_ring_check): Set cloexec flag on new file descriptors.
6273         (fts_build, fd_ring_check): While we’re at it, make sure the
6274         resulting file descriptor is not 0, 1, or 2, since that is easy.
6276 2017-08-11  Bruno Haible  <bruno@clisp.org>
6278         fts tests: Fix link error.
6279         Reported by Tom G. Christensen in
6280         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
6281         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
6283 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6285         fts: port recent changes to CentOS 6
6286         Problem reported by Tom G. Christensen in:
6287         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
6288         * lib/fts.c (fsword): New type.
6289         (struct dev_type, filesystem_type): Use it.
6290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
6291         Also, check for f_type only if fstatfs and sys/vfs.h work.
6293 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6295         tempname: do not depend on secure_getenv
6296         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
6297         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
6298         * modules/tempname (Depends-on): Remove secure_getenv.
6300 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6302         extensions: add _OPENBSD_SOURCE
6303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
6305 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
6306             Bruno Haible  <bruno@clisp.org>
6308         manywarnings: Add support for C++.
6309         * build-aux/g++-warning.spec: New file.
6310         * m4/manywarnings-c++.m4: New file.
6311         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
6312         redirects to manywarnings-c++.m4.
6313         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
6315 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6317         git-version-gen: another fix for tags with "-"
6318         * build-aux/git-version-gen: Improve fix for tags containing "-".
6319         Suggested by Markus Armbruster in:
6320         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
6322 2017-08-06  Bruno Haible  <bruno@clisp.org>
6324         warnings, manywarnings: Add support for multiple languages, not just C.
6325         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
6326         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
6327         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
6328         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
6329         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6330         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6331         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6332         of the current language. If C++ is the current language, modify
6333         WARN_CXXFLAGS instead of WARN_CFLAGS.
6334         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6335         gl_MANYWARN_ALL_GCC.
6336         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6338 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6340         git-version-gen: Fix for tags containing '-'
6342         Really old versions of git-describe (before v1.5.0, Feb 2007)
6343         don't have the number of commits in their long format output,
6344         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6345         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6346         recognizes both patterns, and normalizes the old format to the new one.
6348         Unfortunately, this normalization code gets confused when the tag
6349         contains '-'.  Reproducer:
6351             $ git-tag -m test v0.2-rc1
6352             $ build-aux/git-version-gen .tarball-version; echo
6353             build-aux/git-version-gen: WARNING: git rev-list failed
6354             UNKNOWN
6356         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6357         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6358         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6360         * git-version-gen: We could perhaps drop support for versions from
6361         more than a decade ago.  But tightening the pattern match is easy
6362         enough, so do that.  Still breaks when you use version tags ending in
6363         something matching -g????, but you arguably get what you deserve then.
6365 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6367         valgrind-tests: use ls, and cache
6368         * m4/valgrind-tests.m4: Test ls, not bash.
6369         Problem reported by Reuben Thomas.
6370         Also, cache the result so that it can be overridden.
6372 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6374         manywarnings: port to 64-bit GCC builds of Emacs
6375         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6376         object size rather than hardwiring 2147483647.  This is needed to
6377         build GNU Emacs, which has one conditional (and used
6378         only-in-theory) call to malloc with a literal greater than
6379         2147483647.
6381 2017-08-04  Bruno Haible  <bruno@clisp.org>
6383         Relax the license of some modules with no runtime code.
6384         * modules/std-gnu11 (License): Set to 'unlimited'.
6385         * modules/c99 (License): Likewise.
6386         Reported by Reuben Thomas <rrt@sc3d.org>.
6387         * modules/d-ino (License): Set to 'LGPL'.
6388         * modules/host-os (License): Likewise.
6389         * modules/longlong (License): Likewise.
6391 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6393         renameat2: port to RHEL 7 + NFS
6394         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6395         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6396         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6398 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6400         renameat2: port to non-renameat platforms
6401         Problem reported for MSVC-2015 by Gisle Vanem in:
6402         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6403         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6404         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6406 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6408         manywarnings: port to 32-bit GCC bug
6409         Problem reported by Pino Toscano in:
6410         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6411         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6412         not 2**63 - 1, to work around the following GCC bug:
6413         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6415 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6417         backupfile: new function to validate backup suffix
6418         * lib/backupfile.c (set_simple_backup_suffix): New function.
6419         (backupfile_internal): Use it.
6421         canonicalize: fix EOVERFLOW commentary
6422         Problem reported by Bruno Haible in:
6423         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6424         * lib/canonicalize.c (canonicalize_filename_mode):
6425         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6427         Don't interpret EOVERFLOW to mean nonexistence
6428         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6429         may be EOVERFLOW; this is likely more useful than reporting the
6430         stat errno.
6431         * lib/glob.c (link_stat): Rename from link_exists2_p and
6432         return -1/0 instead of 0/1.  Caller changed.
6433         * lib/glob.c (link_exists_p):
6434         * lib/renameat2.c (rename_noreplace, renameat2):
6435         * lib/tempname.c (try_nocreate):
6436         If errno == EOVERFLOW then the directory entry exists, so do not
6437         act as if it does not exist.
6439         backup-rename: new module
6440         It is like backupfile, except it avoids some race conditions,
6441         and it does not output to stderr or exit.
6442         * MODULES.html.sh: Add backup-rename.
6443         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6444         * modules/backup-rename: New files.
6445         * lib/backupfile.c: Turn this into an internals file, which
6446         contains code common to backupfile and backup_rename.  Include
6447         backupfile-internal.h instead of backupfile.h.  Do not include
6448         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6449         renameat2.h and fcntl.h.
6450         (BACKUP_NOMEM): New constant.
6451         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6452         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6453         (backupfile_internal): Rename from find_backup_file_name.
6454         Support new arg RENAME.
6455         (backup_args, backup_types, get_version, xget_version):
6456         Move to lib/backup-find.c.
6457         * lib/backupfile.h (backup_file_rename): New decl.
6458         * modules/backupfile (Files): Add lib/backup-internal.h,
6459         lib/backup-find.c.
6460         (Depends-on): Add dirfd, fcntl, renameat2.
6461         (lib_SOURCES): Add backup-find.c.
6463         renameat2: port better to older Solaris
6464         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6465         Add goto to use a label, to silence picky compilers.
6467         fts-tests: port to gcc -Wwrite-strings
6468         * tests/test-fts.c (base, base_d): New static vars.
6469         (argv, remove_tree, main): Use them.
6471 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6473         relocatable-lib{,-lgpl}: improve documentation
6474         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6475         Various other updates.
6477 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6478             Bruno Haible  <bruno@clisp.org>
6480         relocatable-lib{,-lgpl}: add Valgrind suppressions
6481         * lib/relocatable.valgrind: New file.
6482         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6483         * modules/relocatable-lib-lgpl: Likewise.
6485 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6487         relocatable: Make the license on the sources the GPL.
6488         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6489         LGPL, which was a special case so that the relocatable source files
6490         could be used without gnulib-tool, to GPL. They can still be used under
6491         the LGPL, using the --lgpl option to gnulib-tool.
6493 2017-07-30  Bruno Haible  <bruno@clisp.org>
6495         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6496         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6497         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6498         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6499         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6501 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6503         faccessat: document AT_SYMLINK_NOFOLLOW issue
6504         * doc/posix-functions/faccessat.texi: Modernize platform list.
6505         Document AT_SYMLINK_NOFOLLOW limitation.
6507         renameat2: port to Solaris 10
6508         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6509         with AT_SYMLINK_NOFOLLOW (which is not portable).
6510         (renameat): Undef before using, to avoid endless recursion when
6511         the replacement renameat calls renameat2 which calls the
6512         replacement renameat.
6513         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6514         * modules/renameat2 (Depends-on): Remove faccessat.
6515         * modules/renameat-tests (test_renameat_LDADD):
6516         * modules/renameat2-tests (test_renameat2_LDADD):
6517         Remove $(LIB_EACCESS).
6519         renameat2: new module
6520         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6521         useful to have access to its RENAME_NOREPLACE flag.
6522         * MODULES.html.sh (func_all_modules): Add renameat2.
6523         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6524         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6525         * lib/renameat.c (renameat): Move most of the implementation
6526         to renameat2, and just call renameat2.
6527         * modules/renameat (Files): Remove lib/at-func2.c.
6528         (Depends-on): Depend only on renameat2.
6529         (Include): Remove <fcntl.h>.
6530         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6531         since renameat (via renameat2) might use faccessat.
6533 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6535         vc-list-files: Adjust the script to support git worktrees
6536         * build-aux/vc-list-files: Require existence, not directory.
6538 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6540         doc: bring MODULES.html.sh up to date
6541         Somehow a few months ago we stopped updating MODULES.html.sh.
6542         I don’t recall explicitly deciding this, so I updated it now.
6543         Alternatively I suppose we could remove it.
6544         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6545         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6546         truncate, utime, utime-h, windows-stat-inodes,
6547         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6549 2017-07-26  Jim Meyering  <meyering@fb.com>
6551         fprintftime: fix build-break caused by recent renaming
6552         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6553         "strftime.c".
6554         * modules/fprintftime: Depend directly on nstrftime.
6556 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6558         regex: work with GCC7's -Werror=implicit-fallthrough=
6559         * lib/regex_internal.h (FALLTHROUGH): New macro.
6560         * lib/regcomp.c (peek_token_bracket, parse_expression):
6561         * lib/regexec.c (check_node_accept): Use it.
6563 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6565         fts: simplify fts_build
6566         * lib/fts.c (fts_build): Simplify, and be lazier about
6567         calling leaf_optimization.
6569         fts: three levels of leaf optimization
6570         * lib/fts.c (enum leaf_optimization): New type with three values.
6571         (S_MAGIC_AFS): New macro.  Sort them.
6572         (leaf_optimization): Rename from leaf_optimization_applies, and
6573         return enum leaf_optimization instead of bool.  All uses changed.
6574         Add cases for unknown type and for AFS.
6575         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6577         fts: cache dirent_inode_sort_may_be_useful too
6578         * lib/fts.c (struct dev_type): New struct.
6579         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6580         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6581         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6582         Now takes FTSENT const *, not int.  All uses changed.  Use
6583         filesystem_type to cache.
6584         (link_count_optimize_ok): Remove.  Caller changed to use
6585         leaf_optimization_applies, which now uses shared cache.
6587         fts: introduce MIN_DIR_NLINK
6588         * lib/fts.c (MIN_DIR_NLINK): New constant.
6589         Use it instead of 2, whenever we are talking about link counts.
6591         fts: nlink_t signedness fixups
6592         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6593         so that root need not be a special case later.
6594         (fts_read): Remove now-redundant test for fts_level.
6595         Do not assume that nlink_t is signed.
6596         (fts_build): Remove useless decrement of nlinks.
6597         (fts_stat): Avoid unlikely signed integer overflow later, if
6598         nlink_t is signed.
6600         fts-tests: new module
6601         * modules/fts-tests, tests/test-fts.c: New files.
6603 2017-07-23  Bruno Haible  <bruno@clisp.org>
6605         Rename module 'strftime' to 'nstrftime'.
6606         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6607         * lib/nstrftime.c: Renamed from lib/strftime.c.
6608         * modules/nstrftime: Renamed from modules/strftime.
6609         (Files, Makefile.am): Update.
6610         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6611         Fix comment.
6612         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6613         (Files, Makefile.am): Update.
6614         * modules/strftime: New file, an obsolete indirection.
6615         * doc/posix-functions/strftime.texi: Update reference.
6616         * config/srclist.txt: Update info.
6617         * NEWS: Mention the change.
6619 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6621         malloca: Silence a warning from clang's memory sanitizer.
6622         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6623         (freea): Use it.
6625 2017-07-18  Bruno Haible  <bruno@clisp.org>
6627         host-cpu-c-abi: Fix detection of MIPS ABI.
6628         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6629         ABI, not the CPU instruction set.
6631 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6633         explicit_bzero: new module
6634         The explicit_bzero function has been added to glibc.
6635         This module is intended to supports its use in GNU programs.
6636         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6637         * m4/explicit_bzero.m4, modules/explicit_bzero:
6638         New files.
6639         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6640         * lib/string.in.h (explicit_bzero): Declare.
6641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6642         * modules/string (string.h): Substitute its vars.
6644 2017-07-16  Bruno Haible  <bruno@clisp.org>
6646         threadlib: Support static linking.
6647         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6648         set gl_cv_have_weak to 'no'.
6650 2017-07-16  Bruno Haible  <bruno@clisp.org>
6652         unicase/locale-language: Fix link dependencies.
6653         * modules/unicase/locale-language (Link): New section.
6654         * modules/unicase/locale-language-tests (Makefile.am): Link
6655         test-locale-language program with $(LIBTHREAD).
6657 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6659         sys_socket: Add support for OpenVMS.
6660         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6661         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6663 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6665         sys_resource: Add support for OpenVMS.
6666         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6667         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6669 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6670             Bruno Haible  <bruno@clisp.org>
6672         math: Add support for OpenVMS.
6673         * lib/math.in.h [__VMS]: Include <fp.h>.
6674         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6676 2017-07-15  Bruno Haible  <bruno@clisp.org>
6678         getdtablesize: Add minimal support for OpenVMS.
6679         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6680         * modules/getdtablesize (Description): Fix.
6681         * lib/getdtablesize.c: Fix comment.
6682         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6683         getdtablesize() function, even though the test fails.
6684         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6685         limitation on OpenVMS.
6687 2017-07-13  Bruno Haible  <bruno@clisp.org>
6689         Revisit cross-compilation guesses.
6690         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6692 2017-07-13  Bruno Haible  <bruno@clisp.org>
6694         Improve cross-compilation guesses for native Windows.
6695         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6696         Windows.
6697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6698         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6699         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6700         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6701         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6702         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6703         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6704         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6705         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6706         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6707         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6708         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6709         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6710         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6711         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6712         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6713         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6715         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6716         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6717         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6718         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6719         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6720         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6721         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6722         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6723         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6724         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6725         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6726         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6727         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6729         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6730         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6731         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6732         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6733         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6734         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6735         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6736         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6737         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6739         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6740         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6741         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6742         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6743         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6744         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6745         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6746         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6747         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6748         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6749         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6750         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6751         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6752         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6753         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6754         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6755         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6756         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6757         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6758         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6759         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6760         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6761         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6763         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6764         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6765         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6766         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6767         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6768         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6769         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6770         * m4/regex.m4 (gl_REGEX): Likewise.
6771         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6772         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6773         gl_FUNC_REMAINDERF_WORKS): Likewise.
6774         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6775         gl_FUNC_REMAINDERL_WORKS): Likewise.
6776         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6777         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6778         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6779         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6780         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6781         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6782         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6783         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6784         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6785         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6786         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6787         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6788         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6789         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6791         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6792         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6793         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6794         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6795         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6796         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6797         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6798         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6799         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6800         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6801         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6802         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6803         Likewise.
6804         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6805         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6806         Windows. Enable also on Autoconf 2.70.
6807         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6808         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6809         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6810         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6811         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6812         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6813         for native Windows.
6814         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6815         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6817 2017-07-13  Bruno Haible  <bruno@clisp.org>
6819         Improve cross-compilation guesses for native Windows.
6820         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6821         Windows.
6822         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6823         memchr.m4.
6824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6826 2017-07-13  Bruno Haible  <bruno@clisp.org>
6828         Improve cross-compilation guesses for native Windows.
6829         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6830         native Windows.
6831         (gl_FUNC_FFLUSH): Update accordingly.
6832         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6833         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6835 2017-07-11  Bruno Haible  <bruno@clisp.org>
6837         More systematic m4 quoting and indentation.
6838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6839         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6840         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6841         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6842         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6843         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6844         gl_WINSIZE_IN_PTEM): Likewise.
6845         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6846         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6847         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6848         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6849         Correct indentation.
6850         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6852         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6853         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6854         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6855         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6857 2017-07-10  Bruno Haible  <bruno@clisp.org>
6859         round, roundf: Avoid compiler warning in configure test.
6860         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6861         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6863 2017-07-10  Bruno Haible  <bruno@clisp.org>
6865         getlogin tests: Avoid #ifdefs when sharing code between modules.
6866         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6867         * modules/getlogin-tests (Files): Likewise. Remove
6868         tests/test-getlogin_r.c.
6869         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6870         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6871         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6872         getlogin().
6874 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6876         getlogin: don’t assume one name per uid
6877         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6878         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6879         (ttyname): Remove test.
6880         * modules/getlogin_r-tests (ttyname): Remove test.
6881         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6882         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6883         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6884         getlogin rather than getlogin_r.  This avoids code duplication.
6885         (main): Use isatty and fstat rather than ttyname and stat.
6886         Use getpwnam instead of getpwuid, to be portable to test platforms
6887         that have multiple login names for the same uid.
6889 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6890             Bruno Haible  <bruno@clisp.org>
6892         glob: Fix more memory leaks.
6893         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6894         returning.
6895         Reported by Tim Rühsen.
6897 2017-07-10  Bruno Haible  <bruno@clisp.org>
6899         Make sure $host and $host_os are defined when used.
6900         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6901         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6902         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6903         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6904         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6905         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6906         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6907         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6908         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6909         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6910         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6911         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6912         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6913         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6914         m4_ifdef block.
6916 2017-07-09  Bruno Haible  <bruno@clisp.org>
6918         *printf: Fix cross-compilation guess for Solaris.
6919         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6920         2010-12-21.
6922 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6923             Bruno Haible  <bruno@clisp.org>
6925         vasnprintf: port to macOS 10.13
6926         Problem reported by comex in:
6927         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6928         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6930 2017-07-06  Bruno Haible  <bruno@clisp.org>
6932         imaxdiv tests: Fix logic.
6933         * tests/test-imaxdiv.c (main): Use == instead of =.
6934         Reported by Coverity.
6936 2017-07-06  Bruno Haible  <bruno@clisp.org>
6938         uninorm/filter: Fix use-after-free bug.
6939         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6940         sortbuf == filter->sortbuf invariant.
6941         Reported by Coverity.
6943 2017-07-06  Bruno Haible  <bruno@clisp.org>
6945         glob: Fix more memory leaks.
6946         * lib/glob.c (glob): Free dirname before returning.
6947         Reported by Coverity and Tim Rühsen.
6949 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6951         parse-datetime: fix uninit var bug
6952         Reported by Bruno Haible in:
6953         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6954         * lib/parse-datetime.y (parse_datetime2): Do not use
6955         uninitialized.
6957 2017-07-05  Bruno Haible  <bruno@clisp.org>
6959         doc: Update for MSVC 14.
6960         * doc/posix-headers/*.texi: Add info about MSVC 14.
6961         * doc/posix-functions/*.texi: Likewise.
6962         * doc/pastposix-functions/*.texi: Likewise.
6963         * doc/glibc-headers/*.texi: Likewise.
6964         * doc/glibc-functions/*.texi: Likewise.
6966 2017-07-05  Bruno Haible  <bruno@clisp.org>
6968         sched: Fix build failure on native Windows (regression from 2017-06-19).
6969         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6971 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6973         stdioext: Port to OpenVMS.
6974         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6975         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6976         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6977         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6978         * lib/fpurge.c (fpurge): Likewise.
6979         * lib/freadable.c (freadable): Likewise.
6980         * lib/freadahead.c (freadahead): Likewise.
6981         * lib/freading.c (freading): Likewise.
6982         * lib/freadptr.c (freadptr): Likewise.
6983         * lib/freadseek.c (freadseek): Likewise.
6984         * lib/fseeko.c (fseeko): Likewise.
6985         * lib/fseterr.c (fseterr): Likewise.
6986         * lib/fwritable.c (fwriteable): Likewise.
6987         * lib/fwriting.c (fwriting): Likewise.
6989 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6991         glob: Declare variables at the very start of their scope.
6992         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6993         its separate scope, so the functions will compile on Haiku.
6995 2017-07-01  Bruno Haible  <bruno@clisp.org>
6997         logbl: Work around a glibc bug on PowerPC64LE.
6998         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6999         numbers.
7000         * doc/posix-functions/logbl.texi: Update.
7002 2017-06-29  Bruno Haible  <bruno@clisp.org>
7004         stat, fstat: Compile stat-w32.c only on platforms that need it.
7005         Suggested by Paul Eggert.
7006         * modules/stat (configure.ac): Request stat-w32.o only on native
7007         Windows.
7008         * modules/fstat (configure.ac): Likewise.
7010 2017-06-25  Bruno Haible  <bruno@clisp.org>
7012         stat: Improve last change.
7013         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
7015 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7017         stat: port to xlc 12.01
7018         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
7019         12.01 complains "Compilation unit is empty."
7021 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7023         xalloc-oversized: port to icc
7024         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
7025         __builtin_mul_overflow if ICC is defined, as this results in
7026         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
7027         20170213.
7029 2017-06-19  Bruno Haible  <bruno@clisp.org>
7031         classpath: Avoid including config.h twice, as it produces warnings.
7032         Reported by John E. Malmberg <wb8tyw@gmail.com>.
7033         * lib/classpath.h: Conditionalize the include of config.h.
7035 2017-06-19  Bruno Haible  <bruno@clisp.org>
7036             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
7038         sched: Fix compilation failure on OpenVMS.
7039         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
7040         test whether <pthread.h> exists and defines struct sched_param.
7041         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
7043 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7045         diffseq: port to GCC 7 with --enable-gcc-warnings
7046         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
7047         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
7048         not complain about big_snake being defined but not used.
7050 2017-06-15  Bruno Haible  <bruno@clisp.org>
7052         gettext-h: Update theoretical condition for use of variable size arrays.
7053         Reported by Paul Eggert.
7054         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
7055         to include the theoretical condition for availability of variable size
7056         arrays, if we could trust the value of __STDC_VERSION__.
7058 2017-06-12  Bruno Haible  <bruno@clisp.org>
7060         Relicense some modules under LGPLv2+.
7061         Daiki Ueno's approval is in
7062         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
7063         * modules/uniwidth/base (License): Change to LGPLv2+.
7064         * modules/uniwidth/width (License): Likewise.
7066 2017-06-11  Bruno Haible  <bruno@clisp.org>
7068         localename: Fix test failure on DragonFly BSD.
7069         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
7070         like FreeBSD.
7072 2017-06-11  Bruno Haible  <bruno@clisp.org>
7074         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
7075         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
7076         * lib/float.in.h: Likewise.
7077         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
7079 2017-06-11  Bruno Haible  <bruno@clisp.org>
7081         gnulib-tool: Clean up after autotools.
7082         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
7083         useless directory left over by the Autotools.
7085 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7087         getopt-posix: port to glibc 2.25.90
7088         Problem reported by Daniel P. Berrange in:
7089         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
7090         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
7091         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
7092         #undef if __GETOPT_PREFIX is defined.
7094 2017-06-11  Bruno Haible  <bruno@clisp.org>
7096         strtod-obsolete: Fix license.
7097         * modules/strtod-obsolete (License): Change to LGPL.
7099 2017-06-10  Jim Meyering  <meyering@fb.com>
7101         maint: update to work with GCC7's -Werror=implicit-fallthrough=
7102         * lib/savewd.c (FALLTHROUGH): Define.
7103         (savewd_save, savewd_restore): Use this, rather than a comment,
7104         whenever one switch case falls through into the next.
7106 2017-06-08  Bruno Haible  <bruno@clisp.org>
7108         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
7109         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
7110         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
7111         case.
7113 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7115         doc: remove robots, add prereqs
7116         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
7117         builds.  Simon's robot site does not seem to be up, so remove
7118         mentions of it for now.
7120 2017-06-08  Bruno Haible  <bruno@clisp.org>
7122         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
7123         * gnulib-tool (func_symlink_target): New function, extracted from
7124         func_symlink.
7125         (func_symlink, func_symlink_if_changed): Use it.
7127 2017-06-08  Bruno Haible  <bruno@clisp.org>
7129         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
7130         * gnulib-tool (func_ln_s): Determine cp_src correctly.
7132 2017-06-07  Bruno Haible  <bruno@clisp.org>
7134         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
7135         Reported by John E. Malmberg <wb8tyw@gmail.com> in
7136         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
7137         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
7138         override, pass 2 arguments to getcwd, not 3.
7140 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7142         same-inode: port better to VMS 8.2 and later
7143         Problem reported by John E. Malmberg in:
7144         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
7145         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
7146         Use the usual POSIX definition.
7147         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
7149 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7151         error: fix POSIX violation for va_end
7152         Problem reported by Bruno Haible in:
7153         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
7154         * lib/error.c (error_tail): Do not call va_end here.
7155         (error, error_at_line): Call it here instead.
7157 2017-05-28  Bruno Haible  <bruno@clisp.org>
7159         c-strtod: Make it usable in C++ mode.
7160         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
7162 2017-05-25  Jim Meyering  <meyering@fb.com>
7164         quotearg: fix compilation failure due to FALLTHROUGH misuse
7165         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
7166         macro back to /* fall through */ comment.  The macro can apply only
7167         to a following case statement.  Reported by Assaf Gordon.
7169 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7171         intprops: port to recent icc
7172         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
7173         but does not support __builtin_add_overflow etc.
7174         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
7175         Define to 0.
7177 2017-05-23  Karl Berry  <karl@freefriends.org>
7179         * config/srclist.txt (iconv.m4): sync broken, comment out
7180         until (hopefully) the next gettext release.
7182 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7184         Remove repeated words in comments.
7186 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
7188         fallthrough: reinstate a FALLTHROUGH instance in quotearg
7189         quotearg.c: Reinstate this instance which is significant
7190         when the if branch is not taken.
7192 2017-05-21  Bruno Haible  <bruno@clisp.org>
7194         gnulib-tool: Add options to create hard links.
7195         * gnulib-tool (func_usage): Document options --hardlink,
7196         --local-hardlink, --more-hardlinks.
7197         (func_symlink): Renamed from func_ln.
7198         (func_symlink_if_changed): Renamed from func_ln_if_changed.
7199         (func_hardlink): New function.
7200         (copymode, lcopymode): New variables.
7201         (symbolic, lsymbolic): Remove variables.
7202         (Options): Implement options --hardlink, --local-hardlink,
7203         --more-hardlinks.
7204         (func_should_link): Renamed from func_should_symlink. Set copyaction.
7205         (func_add_file, func_update_file): Update invocation of
7206         func_should_link. Invoke func_hardlink when appropriate.
7207         (func_import): Update comments.
7208         (func_create_testdir): Update invocation of func_should_link. Invoke
7209         func_hardlink when appropriate.
7210         Finally, invoke 'git update-index --refresh' to mitigate the effects of
7211         the hard links on git.
7213 2017-05-20  Bruno Haible  <bruno@clisp.org>
7215         argp: Simplify bit manipulation.
7216         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
7217         on a signed integer type.
7219 2017-05-20  Bruno Haible  <bruno@clisp.org>
7221         Avoid wrong configure results with gcc -fsanitize=address.
7222         This completes the work done on 2016-02-06 on this topic.
7223         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
7224         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7226         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7227         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
7228         returning.
7229         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
7230         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
7231         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7232         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7233         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7234         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
7235         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
7236         free allocated memory before returning.
7237         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7238         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
7239         objects before returning.
7240         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
7241         returning.
7243 2017-05-20  Bruno Haible  <bruno@clisp.org>
7245         gnulib-tool: Don't create hard links between gnulib and its testdirs.
7246         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
7248 2017-05-20  Bruno Haible  <bruno@clisp.org>
7250         argp, tsearch tests: Fix file list.
7251         * modules/argp-tests (Files): Add tests/macros.h.
7252         * modules/tsearch-tests (Files): Likewise.
7254 2017-05-20  Bruno Haible  <bruno@clisp.org>
7256         getopt-posix tests: Remove redundant include.
7257         * tests/test-getopt.h: Don't include "macros.h". It's already included
7258         by tests/test-getopt-main.h.
7260 2017-05-19  Jim Meyering  <meyering@fb.com>
7262         dfa: two small simplifications
7263         * lib/dfa.c (build_state): Avoid repeating longer expressions.
7265 2017-05-18  Jim Meyering  <meyering@fb.com>
7267         fallthrough: update for GCC 7/8
7268         * lib/quotearg.c (FALLTHROUGH): New macro.
7269         Use it whenever one switch case falls through into the next,
7270         replacing "/* Fall through */" comments.  This exposed one
7271         instance of an unwarranted "fall through" comment: unwarranted
7272         because it preceded a "goto" label not a case statement.
7273         * lib/freopen-safer.c (freopen_safer): Likewise.
7274         * lib/fts.c (leaf_optimization_applies): Likewise.
7275         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7276         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
7277         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
7278         tests/macros.h for the definition.
7279         * tests/test-argp.c (group1_parser): Likewise.
7280         * tests/test-getopt.h (getopt_loop): Likewise.
7282 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7284         argp: fix shift bug
7285         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
7286         behavior on shift overflow, caught by gcc -fsanitize=undefined.
7288         argp: fix pointer-subtraction bug
7289         * lib/argp-help.c (hol_append): Don’t subtract pointers to
7290         different arrays, as this can run afoul of -fcheck-pointer-bounds.
7291         See the thread containing Bruno Haible’s report in:
7292         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
7294 2017-05-19  Bruno Haible  <bruno@clisp.org>
7296         printf-posix tests: Avoid test failure with "gcc --coverage".
7297         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7298         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
7299         than 5000000.
7300         * tests/test-fprintf-posix2.c (main): Likewise.
7302 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7304         closeout: don’t close stderr when sanitizing
7305         * NEWS: Document this.
7306         * lib/closeout.c (__has_feature): New macro, if not already defined.
7307         (SANITIZE_ADDRESS): New constant.
7308         (close_stdout): Don’t close stderr if sanitizing addresses.
7310 2017-05-19  Bruno Haible  <bruno@clisp.org>
7312         get-rusage-data tests: Avoid failure on Linux/glibc.
7313         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
7314         on glibc systems.
7316 2017-05-18  Bruno Haible  <bruno@clisp.org>
7318         localename: Include necessary header files on Cygwin.
7319         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
7320         where NL_LOCALE_NAME is defined.
7322 2017-05-18  Bruno Haible  <bruno@clisp.org>
7324         gettext: Update macros from gettext git.
7325         * m4/intldir.m4: Require Autoconf >= 2.60.
7326         * m4/progtest.m4: Fix typos in copyright notice.
7328 2017-05-18  Bruno Haible  <bruno@clisp.org>
7330         copy-file tests: Fix link error (regression from 2017-05-01).
7331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7332         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7333         $(LIB_CLOCK_GETTIME).
7335 2017-05-18  Bruno Haible  <bruno@clisp.org>
7337         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7338         (regression from 2017-02-13).
7339         * lib/unicase/special-casing.in.h: Renamed from
7340         lib/unicase/special-casing.h.
7341         * modules/unicase/special-casing (Files): Add
7342         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7343         (Makefile.am): Add rule for generating unicase/special-casing.h.
7344         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7345         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7346         not "special-casing.h".
7347         * lib/unicase/u*.c: Likewise.
7349 2017-05-17  Bruno Haible  <bruno@clisp.org>
7351         README: Don't ask people to read a TeXinfo file.
7352         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7353         * README: Tell people how to read the HTML formatted manual.
7355 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7357         parse-datetime: Fix memleak
7358         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7359         localtime_rz() failure.
7361 2017-05-16  Bruno Haible  <bruno@clisp.org>
7363         javacomp: Fix handle leak.
7364         Found by Coverity.
7365         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7367 2017-05-16  Bruno Haible  <bruno@clisp.org>
7369         relocate: Make it easier to reclaim allocated memory.
7370         * lib/relocatable.h (relocate2): New declaration/macro.
7371         * lib/relocatable.c (relocate2): New function.
7372         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7373         relocate2 function.
7374         * lib/localcharset.c (relocate2): Define fallback.
7375         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7376         allocated memory.
7377         * lib/javaversion.c (relocate2): Define fallback.
7378         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7379         allocated memory.
7381 2017-05-16  Bruno Haible  <bruno@clisp.org>
7383         relocate: Simplify EMX specific code.
7384         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7385         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7387 2017-05-16  Bruno Haible  <bruno@clisp.org>
7389         sigpipe tests: Fix file list.
7390         * modules/sigpipe-tests (Files): Add tests/macros.h.
7392 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7394         manywarnings: update for GCC 7
7395         * build-aux/gcc-warning.spec:
7396         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7397         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7398         requires a non-comment fallthrough attribute.  This is a bit
7399         cleaner than the comment versions.
7400         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7401         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7402         Use it whenever one switch case falls through into the next.
7403         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7404         Use FALLTHROUGH macro.
7406 2017-05-15  Bruno Haible  <bruno@clisp.org>
7408         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7409         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7410         @ALLOCA@, not @LTALLOCA@.
7412 2017-05-15  Bruno Haible  <bruno@clisp.org>
7414         sys_select: Avoid "was expanded before it was required" warning.
7415         * modules/sys_select (configure.ac): Require, not invoke,
7416         gl_HEADER_SYS_SELECT.
7418 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7420         gnulib-tool: improve GNU Make debugging
7421         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7422         Report autoconf diagnostics when it fails, in the output makefile.
7424 2017-05-14  Bruno Haible  <bruno@clisp.org>
7426         stat-time tests: Improve comment.
7427         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7429 2017-05-14  Bruno Haible  <bruno@clisp.org>
7431         same-inode: Adapt for windows-stat-inodes.
7432         * lib/same-inode.h: Include <sys/types.h>.
7433         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7434         * modules/same-inode (Depends-on): Add sys_types.
7436 2017-05-14  Bruno Haible  <bruno@clisp.org>
7438         windows-stat-inodes: New module.
7439         * m4/windows-stat-inodes.m4: New file.
7440         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7441         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7442         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7443         (_GL_WINDOWS_STAT_INODES): New macro.
7444         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7445         (GetFileInformationByHandleExFunc): New variable.
7446         (initialize): Initialize it.
7447         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7448         st_ino appropriately.
7449         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7450         a fallback, because it does not provide st_dev and st_ino values.
7451         * modules/fstat (Depends-on): Add 'verify'.
7452         * modules/windows-stat-inodes: New file.
7453         * doc/windows-stat-inodes.texi: New file.
7454         * doc/gnulib.texi: Include it.
7455         * doc/posix-headers/sys_stat.texi: Mention the new module.
7457 2017-05-14  Bruno Haible  <bruno@clisp.org>
7459         stat-time tests: Workaround for native Windows.
7460         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7461         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7462         New variables.
7463         (initialize_filenames): New function.
7464         (main): Invoke it.
7465         (cleanup, prepare_test): Update.
7467 2017-05-14  Bruno Haible  <bruno@clisp.org>
7469         stat-time: Adapt for windows-stat-timespec.
7470         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7471         entire st_ctim field.
7473 2017-05-13  Jim Meyering  <meyering@fb.com>
7475         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7476         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7477         file that uses the assume macro, claiming that verify.h is unused.
7479 2017-05-13  Bruno Haible  <bruno@clisp.org>
7481         Use symbolic values for _WIN32_WINNT.
7482         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7483         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7485 2017-05-13  Bruno Haible  <bruno@clisp.org>
7487         year2038: New module.
7488         * m4/year2038.m4: New file.
7489         * modules/year2038: New file.
7490         * doc/year2038.texi: New file.
7491         * doc/gnulib.texi: Include it.
7493 2017-05-13  Bruno Haible  <bruno@clisp.org>
7495         largefile: Simplify.
7496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7497         of _GL_WINDOWS_64_BIT_ST_SIZE.
7499 2017-05-13  Bruno Haible  <bruno@clisp.org>
7501         largefile: Improve and document.
7502         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7503         the mingw headers already define 'stat' appropriately.
7504         * modules/largefile (Description): Clarify.
7505         * doc/largefile.texi: New file.
7506         * doc/gnulib.texi: Include it.
7507         * doc/posix-headers/sys_types.texi: Update.
7509 2017-05-13  Bruno Haible  <bruno@clisp.org>
7511         truncate: New module.
7512         * lib/unistd.in.h (truncate): New declaration.
7513         * lib/truncate.c: New file.
7514         * m4/truncate.m4: New file.
7515         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7516         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7517         REPLACE_TRUNCATE.
7518         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7519         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7520         * modules/truncate: New file.
7521         * tests/test-unistd-c++.cc (truncate): Test signature.
7522         * doc/posix-functions/truncate.texi: Mention the new module.
7524         * tests/test-truncate.c: New file.
7525         * modules/truncate-tests: New file.
7527 2017-05-13  Bruno Haible  <bruno@clisp.org>
7529         windows-stat-timespec: New module.
7530         * modules/windows-stat-timespec: New file.
7531         * m4/windows-stat-timespec.m4: New file.
7532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7533         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7534         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7535         fields st_atim, st_mtim, st_ctim.
7536         (st_atime, st_mtime, st_ctime): Define as macros.
7537         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7538         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7539         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7540         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7541         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7542         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7543         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7544         FILETIME to 'struct timespec', not 'time_t'.
7545         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7546         FILETIME to 'struct timespec', not 'time_t'.
7547         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7548         _GL_WINDOWS_STAT_TIMESPEC.
7549         * doc/windows-stat-timespec.texi: New file.
7550         * doc/gnulib.texi: Include it.
7552 2017-05-13  Bruno Haible  <bruno@clisp.org>
7554         windows-stat-override: New module.
7555         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7556         definition. Define GNULIB_defined_struct_stat.
7557         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7558         link error if this symbol is used and the corresponding module is not
7559         in use.
7560         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7561         GNULIB_OVERRIDES_STRUCT_STAT.
7562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7563         GNULIB_OVERRIDES_STRUCT_STAT.
7564         * modules/sys_stat (Makefile.am): Substitute
7565         GNULIB_OVERRIDES_STRUCT_STAT.
7566         * modules/windows-stat-override: New file.
7568 2017-05-13  Bruno Haible  <bruno@clisp.org>
7570         fstat: Fix module dependency conditions.
7571         * modules/fstat (Depends-on): Fix typo.
7573 2017-05-13  Bruno Haible  <bruno@clisp.org>
7575         stat, fstat: Complete removal of old native Windows code.
7576         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7577         * lib/fstat.c: Likewise.
7578         * lib/stat-w32.c: Likewise.
7580 2017-05-13  Bruno Haible  <bruno@clisp.org>
7582         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7583         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7585 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7587         getopt-posix: port to mingw
7588         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7589         Problem reported by Daniel P. Berrage in:
7590         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7592 2017-05-11  Bruno Haible  <bruno@clisp.org>
7594         gettimeofday: Increase precision on mingw.
7595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7596         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7597         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7598         GetSystemTimePreciseAsFileTime based implementation always.
7599         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7600         mingw.
7602 2017-05-11  Bruno Haible  <bruno@clisp.org>
7604         poll: Fix confusion between SOCKETs and FDs on native Windows.
7605         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7606         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7608 2017-05-11  Bruno Haible  <bruno@clisp.org>
7610         doc: Clarify doc about socket functions on native Windows.
7611         This reworks doc that was added on 2008-09-29.
7612         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7613         clearer wording.
7614         * doc/posix-functions/accept.texi: Use clearer wording.
7615         * doc/posix-functions/bind.texi: Likewise.
7616         * doc/posix-functions/connect.texi: Likewise.
7617         * doc/posix-functions/getpeername.texi: Likewise.
7618         * doc/posix-functions/getsockname.texi: Likewise.
7619         * doc/posix-functions/getsockopt.texi: Likewise.
7620         * doc/posix-functions/ioctl.texi: Likewise.
7621         * doc/posix-functions/listen.texi: Likewise.
7622         * doc/posix-functions/recv.texi: Likewise.
7623         * doc/posix-functions/recvfrom.texi: Likewise.
7624         * doc/posix-functions/send.texi: Likewise.
7625         * doc/posix-functions/sendto.texi: Likewise.
7626         * doc/posix-functions/setsockopt.texi: Likewise.
7627         * doc/posix-functions/shutdown.texi: Likewise.
7628         * doc/posix-functions/socket.texi: Likewise.
7630 2017-05-10  Bruno Haible  <bruno@clisp.org>
7632         poll: Fix link error on native Windows.
7633         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7635 2017-05-10  Bruno Haible  <bruno@clisp.org>
7637         time: Fix missing initialization of HAVE_TIMEZONE_T.
7638         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7639         here...
7640         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7641         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7642         gl_HEADER_SYS_TIME_H_DEFAULTS.
7643         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7644         (configure.ac): Remove useless quoting.
7646 2017-05-10  Bruno Haible  <bruno@clisp.org>
7648         Implement a way to opt out from MSVC support, part 2.
7649         * modules/msvc-inval (Include): Document recommended idiom.
7650         * modules/msvc-nothrow (Include): Likewise.
7652         Implement a way to opt out from MSVC support.
7653         This is useful for Emacs.
7654         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7655         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7656         * lib/error.c: Likewise.
7657         * lib/fcntl.c: Likewise.
7658         * lib/flock.c: Likewise.
7659         * lib/fstat.c: Likewise.
7660         * lib/fsync.c: Likewise.
7661         * lib/ioctl.c: Likewise.
7662         * lib/isapipe.c: Likewise.
7663         * lib/lseek.c: Likewise.
7664         * lib/nonblocking.c: Likewise.
7665         * lib/poll.c: Likewise.
7666         * lib/select.c: Likewise.
7667         * lib/sockets.h: Likewise.
7668         * lib/sockets.c: Likewise.
7669         * lib/stdio-read.c: Likewise.
7670         * lib/stdio-write.c: Likewise.
7671         * lib/utimens.c: Likewise.
7672         * lib/w32sock.h: Likewise.
7673         * lib/w32spawn.h: Likewise.
7674         * tests/test-cloexec.c: Likewise.
7675         * tests/test-dup-safer.c: Likewise.
7676         * tests/test-dup2.c: Likewise.
7677         * tests/test-dup3.c: Likewise.
7678         * tests/test-fcntl.c: Likewise.
7679         * tests/test-pipe.c: Likewise.
7680         * tests/test-pipe2.c: Likewise.
7681         * lib/ftruncate.c: Likewise.
7682         (chsize_nothrow): Renamed from chsize.
7683         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7684         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7685         * lib/close.c: Likewise.
7686         * lib/dup.c: Likewise.
7687         * lib/fclose.c: Likewise.
7688         * lib/raise.c: Likewise.
7689         * tests/test-fgetc.c: Likewise.
7690         * tests/test-fputc.c: Likewise.
7691         * tests/test-fread.c: Likewise.
7692         * tests/test-fwrite.c: Likewise.
7693         * lib/getdtablesize.c: Likewise.
7694         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7695         * lib/isatty.c: Don't include msvc-inval.h if
7696         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7697         Include <io.h> as an alternative to msvc-nothrow.h.
7698         * lib/read.c: Likewise.
7699         * lib/write.c: Likewise.
7700         * lib/dup2.c: Likewise.
7701         (dup2_nothrow): New function.
7702         (ms_windows_dup2): Use it.
7703         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7704         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7705         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7706         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7707         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7708         * m4/read.m4 (gl_FUNC_READ): Likewise.
7709         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7710         * doc/windows-without-msvc.texi: New file.
7711         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7712         section.
7714 2017-05-10  Bruno Haible  <bruno@clisp.org>
7716         wait-process: Adjust native Windows support.
7717         * lib/wait-process.c: Use the usual condition for recognizing a native
7718         Windows platform.
7720 2017-05-10  Bruno Haible  <bruno@clisp.org>
7722         doc: New chapter "Native Windows Support".
7723         * doc/gnulib.texi (Native Windows Support): New chapter.
7724         * doc/windows-libtool.texi: Small wording changes.
7725         * doc/windows-sockets.texi: Small wording and formatting changes.
7727 2017-05-10  Bruno Haible  <bruno@clisp.org>
7729         doc: Move section "Library version handling".
7730         * doc/gnulib.texi: Move section "Library version handling"
7731         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7733 2017-05-10  Bruno Haible  <bruno@clisp.org>
7735         doc: Move section "Running self-tests under valgrind".
7736         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7737         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7739 2017-05-10  Bruno Haible  <bruno@clisp.org>
7741         doc: New chapter "Build Infrastructure Modules".
7742         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7744 2017-05-10  Bruno Haible  <bruno@clisp.org>
7746         Prepare for reordering sections in the manual.
7747         * doc/gnulib.texi: Move several sections to separate files. Include
7748         these files.
7749         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7750         * doc/obsolete.texi: Likewise.
7751         * doc/extra-tests.texi: Likewise.
7752         * doc/transversal.texi: Likewise.
7753         * doc/namespace.texi: Likewise.
7754         * doc/check-version.texi: Likewise.
7755         * doc/windows-sockets.texi: Likewise.
7756         * doc/windows-libtool.texi: Likewise.
7757         * doc/licenses-texi.texi: Likewise.
7758         * doc/build-automation.texi: Likewise.
7759         * doc/c-locale.texi: Likewise.
7761 2017-05-10  Bruno Haible  <bruno@clisp.org>
7763         Fix instructions how to update manual on www.gnu.org.
7764         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7766 2017-05-09  Bruno Haible  <bruno@clisp.org>
7768         tzset: Expand comment about TZ problem on native Windows.
7769         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7770         Paul Eggert.
7771         * lib/ctime.c (rpl_ctime): Likewise.
7772         * lib/localtime.c (rpl_localtime): Likewise.
7773         * lib/mktime.c (mktime): Likewise.
7774         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7775         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7777 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7779         intprops: don’t depend on ‘verify’
7780         Problem reported by Ævar Arnfjörð Bjarmason in:
7781         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7782         * lib/intprops.h: Do not include verify.h, and move compile-time
7783         checks from here ...
7784         * tests/test-intprops.c (main): ... to here, if they’re not here
7785         already.  Check widths of other standard integer types.
7786         * modules/intprops (Depends-on): Remove ‘verify’.
7788 2017-05-07  Bruno Haible  <bruno@clisp.org>
7790         utimens: On native Windows, support 100ns resolution also if fd < 0.
7791         * lib/utime.in.h: Include <time.h>.
7792         (_gl_utimens_windows): New declaration.
7793         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7794         (utime): Invoke it.
7795         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7796         instead of utime.
7797         * modules/utime (Depends-on): Add 'time'.
7799 2017-05-07  Bruno Haible  <bruno@clisp.org>
7801         utimens: Improve error code on native Windows.
7802         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7803         error code EACCES, not EINVAL.
7805 2017-05-07  Bruno Haible  <bruno@clisp.org>
7807         utime: Handle more Windows error codes.
7808         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7809         Based on explanations by Billy O'Neal.
7811 2017-05-05  Bruno Haible  <bruno@clisp.org>
7813         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7814         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7815         union.
7816         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7817         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7818         value of cipher->IV.
7820 2017-05-05  Bruno Haible  <bruno@clisp.org>
7822         wctype-h-c++-tests: Update.
7823         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7825 2017-05-05  Bruno Haible  <bruno@clisp.org>
7827         wchar-c++-tests: Update.
7828         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7830 2017-05-05  Bruno Haible  <bruno@clisp.org>
7832         utime-h-c++-tests: New module.
7833         * tests/test-utime-h-c++.cc: New file.
7834         (utime): Declare, missing since 2017-04-30.
7835         * modules/utime-h-c++-tests: New file.
7837 2017-05-05  Bruno Haible  <bruno@clisp.org>
7839         unistd-c++-tests: Update.
7840         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7841         (read): Declare, missing since 2011-04-15.
7842         (sethostname): Declare, missing since 2011-12-03.
7844 2017-05-05  Bruno Haible  <bruno@clisp.org>
7846         time-c++-tests: Update.
7847         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7848         (localtime, gmtime): Declare, missing since 2017-04-30.
7849         (ctime): Declare, missing since 2017-04-30.
7850         (strftime): Declare, missing since 2017-04-30.
7851         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7852         2015-07-24.
7854 2017-05-05  Bruno Haible  <bruno@clisp.org>
7856         sys_resource-c++-tests: New module.
7857         * tests/test-sys_resource-c++.cc: New file.
7858         (getrusage): Declare, missing since 2012-04-13.
7859         * modules/sys_resource-c++-tests: New file.
7861 2017-05-05  Bruno Haible  <bruno@clisp.org>
7863         strings-c++-tests: New module.
7864         * tests/test-strings-c++.cc: New file.
7865         (ffs): Declare, missing since 2011-07-12.
7866         * modules/strings-c++-tests: New file.
7868 2017-05-05  Bruno Haible  <bruno@clisp.org>
7870         string-c++-tests: Update.
7871         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7872         (ffsll): Declare, missing since 2011-07-15.
7874 2017-05-05  Bruno Haible  <bruno@clisp.org>
7876         stdlib-c++-tests: Update.
7877         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7878         2011-10-18.
7879         (ptsname_r): Declare, missing since 2011-11-07.
7880         (qsort_r): Declare, missing since 2014-08-29.
7881         (random, srandom, initstate, setstate): Declare, missing since
7882         2012-01-14.
7883         (secure_getenv): Declare, missing since 2013-02-05.
7885 2017-05-05  Bruno Haible  <bruno@clisp.org>
7887         stdio-c++-tests: Update.
7888         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7890 2017-05-05  Bruno Haible  <bruno@clisp.org>
7892         signal-h-c++-tests: Update.
7893         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7895 2017-05-05  Bruno Haible  <bruno@clisp.org>
7897         math-c++-tests: Update.
7898         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7899         (fma): Declare, missing since 2011-10-17.
7900         (fmal): Declare, missing since 2011-10-17.
7902 2017-05-05  Bruno Haible  <bruno@clisp.org>
7904         locale-c++-tests: Update.
7905         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7906         2012-03-25.
7908 2017-05-05  Bruno Haible  <bruno@clisp.org>
7910         inttypes-c++-tests: New module.
7911         * tests/test-inttypes-c++.cc: New file.
7912         (strtoimax): Declare, missing since 2012-01-05.
7913         (strtoumax): Declare, missing since 2012-01-05.
7914         * modules/inttypes-c++-tests: New file.
7916 2017-05-05  Bruno Haible  <bruno@clisp.org>
7918         dirent-c++-tests: Update.
7919         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7920         (rewinddir): Declare, missing since 2011-09-13.
7921         (dirfd): Declare, missing since 2010-03-08.
7923 2017-05-04  Bruno Haible  <bruno@clisp.org>
7925         argp: Fix mistake in 2017-04-23 commit.
7926         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7927         assume that strerror_r returns 'int', not 'char *'.
7929 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7931         argp: Fix typo.
7932         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7934 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7936         utimens: port to Emacs + MS-Windows
7937         Skip the new MS-Windows-specific code if Emacs.
7938         * lib/utimens.c [EMACS_CONFIGUATION]:
7939         Avoid new MS-Windows-specific code.
7940         (USE_SETFILETIME): New macro.
7941         (fdutimens): Use it.
7943 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7945         tzset: update doc for TZ problems on MS-Windows
7946         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7947         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7948         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7949         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7950         * doc/posix-functions/wcsftime.texi:
7951         Mention some issues with TZ under MS-Windows.
7953 2017-05-01  Bruno Haible  <bruno@clisp.org>
7955         copy-file: Fix build error on mingw.
7956         * modules/copy-file (Depends-on): Add 'close'.
7958 2017-05-01  Bruno Haible  <bruno@clisp.org>
7960         tzset: Work around TZ problem on native Windows.
7961         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7962         Windows, set REPLACE_TZSET to 1.
7963         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7964         invoke '_tzset' instead of 'tzset'.
7965         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7967         * modules/time_rz (Depends-on): Add tzset.
7968         * lib/time_rz.c (tzset): Remove fallback definition.
7969         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7971 2017-05-01  Bruno Haible  <bruno@clisp.org>
7973         mktime: Fix dependencies.
7974         * modules/mktime (Depends-on): Add 'time'.
7976 2017-05-01  Bruno Haible  <bruno@clisp.org>
7978         New module 'localtime-buffer', split off from module 'gettimeofday'.
7979         * lib/localtime-buffer.h: New file.
7980         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7981         * lib/time.in.h (tzset): New declaration.
7982         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7983         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7984         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7985         moved to lib/localtime-buffer.c or lib/tzset.c.
7986         * m4/localtime-buffer.m4: New file.
7987         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7988         HAVE_TZSET, REPLACE_TZSET.
7989         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7990         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7991         gl_LOCALTIME_BUFFER_NEEDED.
7992         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7993         since 2007-01-18.
7994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7995         tzset.
7996         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7997         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7998         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7999         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
8000         * modules/localtime-buffer: New file.
8001         * modules/time (Depends-on): Remove 'gettimeofday'.
8002         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
8003         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
8004         * modules/tzset (Description): Enable hyperlink to POSIX spec.
8005         (Files): Add lib/tzset.c.
8006         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
8007         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
8008         gl_TIME_MODULE_INDICATOR.
8009         * modules/gettimeofday (Depends-on): Add localtime-buffer.
8011 2017-05-01  Bruno Haible  <bruno@clisp.org>
8013         copy-file: Preserve sub-second time stamps.
8014         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
8015         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
8016         transport the time stamps from the original file to the destination
8017         file.
8018         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
8019         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
8020         utime-h.
8022 2017-05-01  Bruno Haible  <bruno@clisp.org>
8024         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
8025         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
8026         also on MSVC.
8027         Reported by Eli Zaretskii <eliz@gnu.org>.
8029 2017-05-01  Bruno Haible  <bruno@clisp.org>
8031         wchar: Fix compilation error with the original mingw.org mingw.
8032         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8033         <stddef.h> instead.
8034         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
8035         gl_WCTYPE_H.
8036         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
8037         gl_TYPE_WINT_T_PREREQ instead.
8038         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
8039         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
8040         Reported by Eli Zaretskii <eliz@gnu.org>.
8042 2017-04-30  Bruno Haible  <bruno@clisp.org>
8044         utimecmp: Add support for native Windows.
8045         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
8047 2017-04-30  Bruno Haible  <bruno@clisp.org>
8049         utimens: Add support for native Windows.
8050         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
8051         (fdutimens): Provide a native Windows implementation, like utime.c with
8052         added tv_nsec support.
8053         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
8054         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
8056 2017-04-30  Bruno Haible  <bruno@clisp.org>
8058         wcsftime: New module.
8059         * lib/wchar.in.h (wcsftime): New declaration.
8060         * lib/wcsftime.c: New file.
8061         * m4/wcsftime.m4: New file.
8062         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
8063         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
8064         HAVE_WCSFTIME, REPLACE_WCSFTIME.
8065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
8066         HAVE_WCSFTIME, REPLACE_WCSFTIME.
8067         * modules/wcsftime: New file.
8068         * doc/posix-functions/wcsftime.texi: Mention the new module.
8070 2017-04-30  Bruno Haible  <bruno@clisp.org>
8072         strftime-fixes: New module.
8073         * lib/time.in.h (strftime): New declaration.
8074         * lib/strftime-fixes.c: New file.
8075         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
8076         (gl_FUNC_STRFTIME): Remove macro.
8077         * m4/strftime-fixes.m4: New file.
8078         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
8079         REPLACE_STRFTIME.
8080         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
8081         REPLACE_STRFTIME.
8082         * modules/strftime-fixes: New file.
8083         * doc/posix-functions/strftime.texi: Mention the new module.
8085 2017-04-30  Bruno Haible  <bruno@clisp.org>
8087         mktime: Work around TZ problem on native Windows.
8088         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
8089         from the native Windows workaround.
8090         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
8091         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
8092         'guessing no'.
8093         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
8094         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
8095         NEED_MKTIME_WINDOWS.
8096         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
8097         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
8098         NEED_MKTIME_INTERNAL.
8099         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
8100         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
8101         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
8102         not REPLACE_MKTIME.
8103         * doc/posix-functions/mktime.texi: Mention the native Windows
8104         workaround.
8106 2017-04-30  Bruno Haible  <bruno@clisp.org>
8108         localtime: New module.
8109         * lib/time.in.h (localtime): Declare also if requested by module
8110         'localtime'.
8111         * lib/localtime.c: New file.
8112         * m4/localtime.m4: New file.
8113         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
8114         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
8115         * modules/localtime: New file.
8116         * doc/posix-functions/localtime.texi: Mention the new module.
8118 2017-04-30  Bruno Haible  <bruno@clisp.org>
8120         ctime: New module.
8121         * lib/time.in.h (ctime): New declaration.
8122         * lib/ctime.c: New file.
8123         * m4/ctime.m4: New file.
8124         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
8125         REPLACE_CTIME.
8126         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
8127         * modules/ctime: New file.
8128         * doc/posix-functions/ctime.texi: Mention the new module.
8130 2017-04-30  Bruno Haible  <bruno@clisp.org>
8132         gettimeofday: Provide higher resolution on native Windows.
8133         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
8134         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
8135         (initialize): Initialize it.
8136         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
8137         'struct timeval'. Don't use _ftime().
8138         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
8139         <sys/timeb.h> and _ftime.
8141 2017-04-30  Bruno Haible  <bruno@clisp.org>
8143         Document the problem with the Cygwin environment variable TZ.
8144         * doc/posix-functions/tzset.texi: Add note about TZ.
8145         * doc/posix-functions/ctime.texi: Likewise.
8146         * doc/posix-functions/localtime.texi: Likewise.
8147         * doc/posix-functions/mktime.texi: Likewise.
8148         * doc/posix-functions/strftime.texi: Likewise.
8149         * doc/posix-functions/wcsftime.texi: Likewise.
8150         * doc/pastposix-functions/ftime.texi: Likewise.
8152 2017-04-30  Bruno Haible  <bruno@clisp.org>
8154         utime-tests: New module.
8155         * tests/test-utime.c: New file, based on tests/test-utimens.h.
8156         * tests/test-utimens-common.h: Include <sys/stat.h>.
8157         * modules/utime-tests: New file.
8159 2017-04-29  Bruno Haible  <bruno@clisp.org>
8161         utime: New module.
8162         * lib/utime.in.h: Add comment for snippets.
8163         (utime): New declaration.
8164         * lib/utime.c: New file.
8165         * m4/utime.m4: New file.
8166         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
8167         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
8168         REPLACE_UTIME.
8169         * modules/utime-h (Depends-on): Add snippets.
8170         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
8171         Insert snippets.
8172         * modules/utime: New file.
8173         * doc/posix-functions/utime.texi: Mention the new module.
8175 2017-04-29  Bruno Haible  <bruno@clisp.org>
8177         utime-h: Modernize handling of 'struct utimbuf'.
8178         * lib/utime.in.h: Include next <utime.h> if it exists.
8179         (utimbuf): Define to _utimbuf on native Windows.
8180         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
8181         Set UTIME_H on native Windows.
8182         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
8183         * modules/utime-h (Depends-on): Add include_next.
8184         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
8185         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
8187         * lib/utimens.c (utimbuf): Remove fallback definition.
8188         * m4/utimens.m4 (gl_UTIMENS): Don't require
8189         gl_CHECK_TYPE_STRUCT_UTIMBUF.
8190         * m4/utimbuf.m4: Remove file.
8191         * modules/utimens (Files): Remove m4/utimbuf.m4.
8193 2017-04-29  Bruno Haible  <bruno@clisp.org>
8195         Make use of module 'utime-h'.
8196         * modules/copy-file (Depends-on): Add utime-h.
8197         * lib/copy-file.c: Assume that <utime.h> exists.
8198         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
8200         * modules/utimens (Depends-on): Add utime-h.
8201         * lib/utimens.c: Assume that <utime.h> exists.
8203 2017-04-29  Bruno Haible  <bruno@clisp.org>
8205         utime-h: New module.
8206         * m4/utime_h.m4: New file.
8207         * lib/utime.in.h: New file.
8208         * modules/utime-h: New file.
8209         * doc/posix-headers/utime.texi: Mention the new module.
8211         * tests/test-utime-h.c: New file.
8212         * modules/utime-h-tests: New file.
8214 2017-04-30  Bruno Haible  <bruno@clisp.org>
8216         Fix a few typos.
8217         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
8218         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
8219         * doc/posix-functions/fstat.texi: Fix a plural typo.
8220         * doc/posix-functions/stat.texi: Likewise.
8221         * m4/include_next.m4: Update comments.
8223 2017-04-29  Bruno Haible  <bruno@clisp.org>
8225         error: Fix mistake in 2017-04-23 commit.
8226         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
8227         assume that strerror_r returns 'int', not 'char *'.
8229 2017-04-29  Bruno Haible  <bruno@clisp.org>
8231         stat: Fix time_t values and other problems on native Windows platforms.
8232         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
8233         implementations of stat().
8234         * lib/stat.c: Include filename.h instead of dosname.h. Include
8235         malloca.h, stat-w32.h.
8236         (is_unc_root): New function.
8237         (rpl_stat): New implementation for native Windows. Remove
8238         REPLACE_FUNC_STAT_DIR code.
8239         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
8240         Don't define REPLACE_FUNC_STAT_DIR.
8241         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
8242         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8243         (Depends-on): Remove dosname. Add filename, malloca.
8244         (configure.ac): Also compile lib/stat-w32.c.
8246 2017-04-29  Bruno Haible  <bruno@clisp.org>
8248         fstat: Fix time_t values on native Windows platforms.
8249         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
8250         * lib/stat-w32.h: New file.
8251         * lib/stat-w32.c: New file.
8252         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
8253         stat-w32.h instead.
8254         (fstat_nothrow): Remove function.
8255         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
8256         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
8257         always.
8258         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
8259         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8260         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
8261         (configure.ac): Also compile lib/stat-w32.c.
8263 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8265         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
8266         Problem reported by Assaf Gordon and Gavin Smith in:
8267         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
8268         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
8269         #define this, too.
8271 2017-04-29  Bruno Haible  <bruno@clisp.org>
8273         strerror_r-posix: Fixes for MSVC 14.
8274         * lib/strerror_r.c: Include <stdarg.h>.
8275         (strerror_r): Provide error messages for errno values 100...140.
8276         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8278 2017-04-28  Bruno Haible  <bruno@clisp.org>
8280         noreturn: New module.
8281         * lib/noreturn.h: New file.
8282         * modules/noreturn: New file.
8283         * tests/test-noreturn.c: New file.
8284         * modules/noreturn-tests: New file.
8285         * tests/test-noreturn-c++.cc: New file.
8286         * modules/noreturn-c++-tests: New file.
8288 2017-04-27  Bruno Haible  <bruno@clisp.org>
8290         wctype-h: Fix compilation error with the original mingw.org mingw.
8291         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
8292         HAVE_CRTDEFS_H.
8293         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
8294         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8295         <stddef.h> instead.
8296         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
8298 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8300         nap.h: Fix compilation on non windows platforms
8301         * tests/nap.h: Move misplaced endif.
8303 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8304         and Paul Eggert  <eggert@cs.ucla.edu>
8306         time_rz: fix heap buffer overflow vulnerability
8307         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
8308         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
8309         whether there is enough buffer space available, thus avoiding
8310         the problematic promotion of signed to unsigned causing an invalid
8311         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
8312         the start of the buffer.
8313         * tests/test-parse-datetime.c (main): Add a test case written by
8314         Paul Eggert, which overwrites enough of the heap so that
8315         standard glibc will fail with "free(): invalid pointer"
8316         without the patch applied.
8318 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8320         xalloc: add missing integer overflow check
8321         * lib/xalloc.h (x2nrealloc): Also check for multiplication
8322         overflow when P is null.
8324 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8326         parse-datetime: make it standalone
8327         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
8328         (_GL_ATTRIBUTE_FORMAT): New macro.
8329         These are needed to get './gnulib-tool --test parse-datetime' to work.
8331 2017-04-23  Bruno Haible  <bruno@clisp.org>
8333         nap.h: Port to native Windows.
8334         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8335         use nap_fd instead. On native Windows, close and reopen nap_fd.
8336         (nap_works): Don't compare the ctimes, because on native Windows, these
8337         are the creation times.
8338         (nap): Update.
8340 2017-04-23  Bruno Haible  <bruno@clisp.org>
8342         nap.h: Fix logic.
8343         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8345 2017-04-23  Bruno Haible  <bruno@clisp.org>
8347         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8348         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8349         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8350         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8351         * lib/argp-help.c (__argp_failure): Likewise.
8353 2017-04-23  Bruno Haible  <bruno@clisp.org>
8355         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8356         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8357         * lib/strerror_r.c: Likewise.
8359 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8361         Target a C99 subset, not a C89 subset
8362         For many years Gnulib has targeted C89 and has resisted using C99
8363         features, as some Gnulib-using programs still wanted to target
8364         C89.  As this no longer seems to be the case, relax the porting
8365         requirements to allow some C99 features.  This is merely a change
8366         to the documentation, to give other Gnulib developers a chance to
8367         weigh in on the topic.
8368         * doc/extern-inline.texi (extern inline):
8369         * doc/gnulib-readme.texi (Portability guidelines):
8370         * doc/gnulib-tool.texi (Initial import):
8371         * doc/gnulib.texi (Header files):
8372         Modernize to talk about C99 and C11 instead of C89 and C99.
8373         * doc/gnulib-readme.texi (Portability guidelines):
8374         Now a section, not merely a subsection, so that it
8375         can be split up.  Modernize a bit.
8376         (C language versions, C99 features assumed)
8377         (C99 features avoided):
8378         New sections.
8380 2017-04-23  Bruno Haible  <bruno@clisp.org>
8382         doc: New section "Modules that modify the way other modules work".
8383         * doc/gnulib.texi (Modules that modify the way other modules work): New
8384         section.
8386 2017-04-23  Bruno Haible  <bruno@clisp.org>
8388         stat-time: Update comments.
8389         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8390         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8391         Windows.
8393 2017-04-01  Bruno Haible  <bruno@clisp.org>
8395         glob: Fix more memory leaks.
8396         * lib/glob.c (glob): Free allocated memory before returning.
8397         Reported by Coverity via Tim Rühsen.
8399 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8401         poll: improve fast check for out-of-range NFD
8402         * lib/poll.c: Do not include intprops.h.
8403         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8404         * modules/poll (Depends-on): Remove intprops.
8406         ftoastr: cite a newer paper
8407         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8408         instead of Loitsch 2010.
8410 2017-04-22  Bruno Haible  <bruno@clisp.org>
8412         poll: Enable argument check also in the Windows implementation.
8413         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8414         Reported by Paul Eggert.
8416 2017-04-22  Bruno Haible  <bruno@clisp.org>
8418         getlogin_r: Work around bug in Mac OS X 10.12.
8419         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8420         bug.
8421         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8422         given size minus 1, call getlogin_r a second time, on a larger buffer.
8423         * modules/getlogin_r (Depends-on): Add malloca.
8424         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8426 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8428         parse-datetime: fix %z and prefer signed int
8429         %z problem reported by Pádraig Brady in:
8430         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8431         While fixing it, I decided to prefer signed ints to size_t, as
8432         they are less error-prone (e.g., ubsan catches overflow).
8433         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8434         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8435         counts, since signed integers make for better debugging.
8436         (date): Don’t assume %z works in printf formats.
8437         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8438         sizes of buffers known to be small, e.g., because we’re using snprintf.
8439         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8441 2017-04-22  Bruno Haible  <bruno@clisp.org>
8443         *printf: Work around rounding bug on Mac OS X.
8444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8445         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8446         Mac OS X and FreeBSD.
8447         * doc/glibc-functions/*printf.texi: Likewise.
8449 2017-04-22  Bruno Haible  <bruno@clisp.org>
8451         vasnprintf tests: Avoid warnings.
8452         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8453         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8454         test.
8456 2017-04-22  Bruno Haible  <bruno@clisp.org>
8458         sys_file tests: Avoid warning.
8459         * tests/test-sys_file.c (main): Add a default clause to the switch
8460         statement.
8462 2017-04-22  Bruno Haible  <bruno@clisp.org>
8464         sethostname: Update doc.
8465         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8466         Mac OS X.
8468 2017-04-22  Bruno Haible  <bruno@clisp.org>
8470         quotearg tests: Avoid warnings.
8471         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8472         false.
8474 2017-04-22  Bruno Haible  <bruno@clisp.org>
8476         poll: Enable argument check.
8477         * lib/poll.c: Include intprops.h.
8478         (poll): Check value of nfd correctly.
8479         * modules/poll (Depends-on): Add intprops.
8481 2017-04-22  Bruno Haible  <bruno@clisp.org>
8483         get-rusage-data: Avoid warnings on Mac OS X.
8484         * lib/get-rusage-data.c: On Mac OS X, don't define
8485         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8486         (get_rusage_data) [Mac OS X]: Just return 0.
8488 2017-04-22  Bruno Haible  <bruno@clisp.org>
8490         xbinary-io: Fix build error.
8491         * modules/xbinary-io (Depends-on): Add gettext-h.
8492         * lib/xbinary-io.c: Include gettext.h and define _().
8493         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8494         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8496 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8498         parse-datetime: overflow and debug cleanups
8499         This long patch was triggered by this bug report from Ruediger Meier:
8500         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8501         I fixed the bug he noted, then found some others nearby, and then
8502         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8503         up some of the code to follow GNU standards while I was at it.
8504         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8505         use c_isdigit.
8506         (EPOCH_YEAR): Remove; unused.
8507         (TM_YEAR_BASE): Now an enum rather than a macro.
8508         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8509         time zone offset, since timezones now are in terms of seconds and
8510         not minutes.
8511         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8512         appropriate.  Verify that intmax_t is wide enough.
8513         (time_overflow, time_zone_str): New functions, used to deal
8514         more reliably with overflow.
8515         (dbg_printf): Add printf attribute, to help catch integer width errors.
8516         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8517         (%union, to_hour, yylex, parse_datetime2):
8518         Use intmax_t instead of long int and/or long_time_t.
8519         All uses changed.
8520         (DBGBUFSIZE): Move earlier.
8521         (relative_time, set_hhmmss, parser_control):
8522         Just use int for nanoseconds and for time zones; that’s wide enough.
8523         (parser_control): Use bool for members like year_seen that can
8524         be booleans instead of counters.  All uses changed.
8525         Remove debug_default_input_timezone; no longer needed.
8526         All uses removed.
8527         (apply_relative_time): Return a bool overflow flag.
8528         All uses changed to check for overflow.
8529         (apply_relative_time, zone, date, relunit, relunit_snumber)
8530         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8531         Check for integer overflow portably.
8532         (str_days): Use just int for N, as it’s wide enough.
8533         Prefer 2D char arrays to arrays of char * when it looks like
8534         2D is a win on typical platforms.
8535         Prefer snprintf to strncpy/strncat, for simplicity;
8536         all buffers are smaller than INT_MAX so this is safe.
8537         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8538         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8539         as this is not true on x32.  Output "." before any nanoseconds.
8540         (debug_print_current_time, parse_datetime2):
8541         Output local zones using a more-consistent format.
8542         (debug_print_current_time, date, parse_datetime2):
8543         (main) [TEST]:
8544         Don’t assume time_t is the same width as long.
8545         (print_rel_part): New function, replacing ...
8546         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8547         (debug_print_relative_time): Use bool for boolean.
8548         (local_zone): dsts_seen now counts only tDST instances.
8549         (date): Fix printf of size_t to use %z.  Do not assume numeric
8550         tokens have negative values merely because the context suggests
8551         a syntax with "-" separating tokens.
8552         (time_zone_hhmm): Return bool success indicator, which checks for
8553         overflow.  Store result into PC->time_zone instead.  All callers
8554         changed.
8555         (tm_year_str): New function.  Return a bool success indicator and
8556         store the result into a buffer.  All callers changed.  Output the
8557         numerically correct string even if adding 1900 to the year would
8558         overflow.
8559         (to_tm_year): New function, replacing the old to_year.  All
8560         callers changed.
8561         (tm_diff): Sync with glibc.
8562         (lookup_word): Use to_uchar instead of doing it by hand.
8563         (TZBUFSIZE): Now local to the only function that needs it.
8564         (debug_strfdatetime): Simplify now that time zones are int seconds.
8565         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8566         (get_effective_timezone): Remove.  All uses removed.
8567         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8568         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8569         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8570         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8571         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8572         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8573         * modules/parse-datetime (Depends-on): Add inttypes.
8575 2017-04-21  Bruno Haible  <bruno@clisp.org>
8577         gettext-h: Avoid -Wundef warning.
8578         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8579         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8580         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8582 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8584         error: Avoid "function declaration isn't a prototype" warning.
8585         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8587 2017-04-21  Bruno Haible  <bruno@clisp.org>
8589         vasnprintf: Fix for MSVC 14.
8590         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8591         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8592         of !HAVE_SNPRINTF_RETVAL_C99.
8594 2017-04-21  Bruno Haible  <bruno@clisp.org>
8596         mbrtowc tests: Fix test failures on MSVC 14.
8597         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8598         behaviour for invalid input.
8600 2017-04-21  Bruno Haible  <bruno@clisp.org>
8602         mbsinit: Fix for MSVC 14.
8603         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8604         implementation that is in sync with mbrtowc.c. On other platforms, use
8605         an adequate ad-hoc implementation.
8607 2017-04-21  Bruno Haible  <bruno@clisp.org>
8609         Fix test-mbrtowc5.sh failure on native Windows.
8610         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8611         "C".
8613 2017-04-21  Bruno Haible  <bruno@clisp.org>
8615         Avoid accidental use of native Windows APIs on Cygwin.
8616         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8617         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8618         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8620 2017-04-20  Bruno Haible  <bruno@clisp.org>
8622         Remove red warnings from the generated MODULES.html.
8623         * modules/fcntl (Description): Disambiguate function references.
8624         * modules/getcwd-lgpl (Description): Likewise.
8625         * modules/hostent (Description): Likewise.
8626         * modules/servent (Description): Likewise.
8627         * modules/tempname (Description): Likewise.
8629 2017-04-20  Bruno Haible  <bruno@clisp.org>
8631         verify tests: Fix spurious failure with parallel make.
8632         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8633         EXTRA_PROGRAMS.
8634         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8635         * tests/test-verify-try.c: New file.
8636         * modules/verify-tests (Files): Add it.
8637         (EXTRA_PROGRAMS): Add test-verify-try.
8638         (MOSTLYCLEANFILES): Update accordingly.
8639         Reported by Adam James Stewart <ajstewart@anl.gov>.
8641 2017-04-18  Bruno Haible  <bruno@clisp.org>
8643         vma-iter: Fix compilation error on Solaris 7.
8644         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8645         like on IRIX, OSF/1.
8646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8648 2017-04-18  Bruno Haible  <bruno@clisp.org>
8650         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8651         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8652         included.
8653         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8654         <sys/procfs.h>.
8655         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8656         <sys/procfs.h> cannot be included.
8657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8659 2017-04-18  Bruno Haible  <bruno@clisp.org>
8661         getopt-gnu: Add comments.
8662         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8663         * modules/getopt-gnu (configure.ac): Likewise.
8665 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8667         regex: port better to Solaris 10
8668         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8669         gettext, and this causes a double #define.
8670         Problem reported by Gavin Smith in:
8671         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8672         * lib/regex_internal.h (gettext): #undef before #defining.
8674 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8676         intprops: improve comments
8677         * lib/intprops.h: Improve and shorten commentary.
8678         For the record, if we ever run into a pedantic compiler that
8679         behaves differently from GCC when converting an out-of-range value
8680         to a signed integer, we can work around the problem with something
8681         like the following code, where UCT is the signed counterpart of T
8682         (UCT is sometimes narrower than UT) and all callers are changed
8683         accordingly:
8684         #if __SUNPRO_C <= 0x5120
8685         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8686            ((t) ((ut) (a) op (ut) (b)))
8687         #else
8688         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8689            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8690             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8691                + TYPE_MINIMUM (t)) \
8692             : (t) (uct) ((ut) (a) op (ut) (b)))
8693         #endif
8695 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8697         intprops: try to avoid tickling similar bugs
8698         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8699         needs to be the same width as T; it can be wider.
8700         Change callers so that UT is at least as wide as unsigned int,
8701         as I suspect that this is less likely to run into compiler bugs.
8703         intprops: port to Oracle Studio 12.3 x86
8704         Problem reported by Gavin Smith in:
8705         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8706         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8707         Convert unsigned to signed via the usual rather than the standard way,
8708         to avoid a compiler bug in Oracle Studio 12.3 x86.
8710 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8712         getopt: prefer - to _ in new file names
8713         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8714         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8715         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8716         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8717         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8718         All uses changed.
8720         getopt: port recent getopt changes to macOS
8721         Problem reported by Harald Maier (Bug#26398).
8722         The macOS C compiler uses __nonnull for its own purposes and that
8723         clashes with glibc's __nonnull.
8724         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8725         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8726         * lib/getopt_core.h (getopt):
8727         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8728         Use _GL_ARG_NONNULL, not __nonnull.
8729         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8730         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8731         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8732         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8734 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8736         getopt-gnu: omit some duplicate code
8737         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8738         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8739         gnulib-tool already does this.
8740         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8741         getopt-posix, which we depend on.
8743         getopt-posix: use angle-bracket include
8744         * lib/getopt1.c: Include <config.h>, not "config.h".
8746 2017-04-06  Zack Weinberg  <zackw@panix.com>
8748         getopt: annotate files with relationship to glibc
8750         As the final act in this patchset, adjust the message at the top of
8751         each file to indicate which files are synced with glibc.  (This has
8752         already been done for most of the headers.)
8754         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8755         Mention in top-of-file boilerplate that these files are shared
8756         between glibc and gnulib.
8759         getopt: split up getopt.in.h and eliminate __need_getopt
8761         Over in glibc, all of the __need macros are being phased out in favor
8762         of small headers that declare only the necessary components, as this
8763         is much simpler and less prone to bugs.  As getopt is shared with
8764         glibc, gnulib needs to do the same for __need_getopt.
8766         __need_getopt is misnamed; what it really means is "we want only the
8767         getopt features specified in POSIX, not the GNU extensions".  glibc
8768         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8769         these files can be shared verbatim with gnulib.  The portability
8770         wrapper, on the other hand, they have renounced altogether; glibc's
8771         getopt.h will no longer be shared with gnulib at all.  In exchange,
8772         certain glibc-specific quirks (having to do with __posix_getopt) no
8773         longer need appear in gnulib's headers at all.
8775         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8776         splits up the current gnulib-side portability wrapper into three
8777         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8778         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8779         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8780         unistd.in.h just use them.  All new files are clearly marked with
8781         whether they are shared with glibc.
8783         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8784         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8785         with glibc, and ...
8786         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8787         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8788         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8789         instead of defining __need_getopt and including the full getopt.h.
8791         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8792         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8793         * modules/getopt-posix (Files): Add new headers and sort list.
8794         (Depends-on): No longer need snippet/arg-nonnull.
8795         (Makefile.am): Generate getopt_cdefs.h.
8798         getopt: better handling of ambiguous options
8800         glibc's getopt uses alloca to construct a linked list of possibilities
8801         for an "ambiguous" long option.  In gnulib, malloc should be used
8802         instead.  Providing for both cases complicates things a fair bit.
8804         This patch rewrites ambiguous-option handling to use a boolean vector
8805         instead of a linked list.  There is then only one allocation that
8806         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8807         and in gnulib we define __libc_use_alloca to always be false, so we
8808         don't need ifdefs in the middle of the function.  This should also be
8809         slightly more efficient in the normal case of long options being fully
8810         spelled out -- I think most people aren't even aware they _can_
8811         sometimes abbreviate long options.
8813         One interesting consequence is that the list of possibilities is now
8814         printed in exactly the order they appear in the list of long options,
8815         instead of the first possibility being shuffled to the end.
8817         (The patch looks bigger than it really is because there's a fair bit
8818         of reindentation and code rearrangement.)
8820         * lib/getopt.c: When used standalone, define __libc_use_alloca
8821         as always false and alloca to abort if called.
8822         (process_long_option): Rewrite handling of ambiguous long options
8823         to use a single boolean vector, not a linked list; use
8824         __libc_use_alloca to decide whether to allocate this using alloca.
8827         getopt: refactor long-option handling
8829         There were two copies of the bulk of the code to handle long options.
8830         Now there is only one.
8832         This change temporarily removes the logic to avoid using alloca when
8833         standalone; the next patch in the series will restore it.
8835         * lib/getopt.c (process_long_option): New function split out
8836         from _getopt_internal_r.
8837         (_getopt_internal_r): Replace both copies of the long-option
8838         processing code with calls to process_long_option.
8841         getopt: tidy up _getopt_initialize a bit
8843         _getopt_data.__posixly_correct is completely redundant to
8844         _getopt_data.__ordering, and some work that logically belongs in
8845         _getopt_initialize was being done by _getopt_internal_r, making the
8846         code harder to understand.
8848         As a side effect, getenv will no longer be called if the first
8849         character of the options string is '+' or '-', which is probably a
8850         Good Thing.  (Perhaps we should have a flag character that
8851         specifically asks for the permutation behavior?)
8853         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8854         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8855         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8858         getopt: merge from glibc: repetition reduction
8860         The definitions of the entry point functions 'getopt' and
8861         '__posix_getopt' can be made substantially less repetitive with a
8862         helper macro.
8864         While I was merging the const-correctness changes from gnulib into
8865         glibc I noticed there are still some unnecessary casts in
8866         _getopt_internal_r.
8868         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8869         a macro.  Consistently cast 'argv' to 'char **' when calling
8870         _getopt_internal.
8871         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8874         getopt: clean up error reporting
8876         getopt can print a whole bunch of error messages, and when used
8877         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8878         cancellation point and getopt isn't, and also applying fprintf to a
8879         stream in wide-character mode is not allowed.  So every single error
8880         reporting case has an #ifdef _LIBC block in which it calls internal
8881         libc functions instead.  The counterpart patch series in glibc makes
8882         it possible to simplify all of that down to a set of #defines at the
8883         top of the file; core code is written as if it is safe to just call
8884         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8885         call any *other* stdio functions.)
8887         * lib/getopt.c: When _LIBC is defined, define fprintf to
8888         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8889         to _IO_funlockfile.  When neither _LIBC nor
8890         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8891         funlockfile as no-ops.
8892         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8893         standalone error-printing code can now be used for libc as well.
8894         Add an flockfile/funlockfile pair around one case where the error
8895         message is printed in several chunks.  Don't use fputc.
8898         getopt: fix fencepost error in ambiguous-W-option handling
8900         getopt_long contains an undocumented (AFAICT) feature in which, if you
8901         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8902         treated as equivalent to '--foo'.  This is implemented with a partial
8903         second copy of the code for handling long options, and that code
8904         increments optind one too many times when recovering from an ambiguous
8905         abbreviated option, which can cause the main loop to walk past the end
8906         of argv and crash.
8908         I discovered this while writing a test case that tries to exercise all
8909         of getopt's error reporting paths; I wouldn't be surprised to learn
8910         that this feature is never used by real applications.
8912         * lib/getopt.c (_getopt_internal_r): Don't increment
8913         d->optind a second time when reporting ambiguous -W options.
8916         getopt: clean up getopt.c and getopt1.c file headers
8918         In getopt.c, there is no need to include wchar.h at all, and it is
8919         safe nowadays to assume that stdlib.h does declare getenv (several
8920         other gnulib modules make this assumption).
8922         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8923         by using "" inclusions consistently, and there is no actual need to
8924         include stdlib.h (except in the #ifdef TEST block, where it should be
8925         unconditional), nor to provide a backup definition of NULL at all.
8927         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8928         Move inclusion of stdlib.h to #ifdef TEST block and make
8929         unconditional.  Do not define NULL.
8930         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8931         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8932         * modules/getopt-gnu, modules/getopt-posix: Don't call
8933         gl_PREREQ_GETENV.
8936         getopt: harmonize comments with glibc
8938         The comments explaining how the behavior of 'getopt' varies depending
8939         on whether it's the standalone version and whether there are special
8940         characters at the beginning of the options string were inconsistent
8941         between gnulib and glibc, and also out of sync with the code.
8943         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8946         getopt: remove USE_NONOPTION_FLAGS
8948         getopt includes code to parse an environment variable named
8949         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8950         in decimal); but all of it has been #ifdefed out since 2001, with no
8951         official way to turn it back on.
8953         According to commentary in glibc's config.h.in, bash version 2.0
8954         set this environment variable to indicate argv elements that were
8955         the result of glob expansion and therefore should not be treated
8956         as options, but the feature was "disabled later" because "it
8957         caused problems".  According to bash's CHANGES file, "later" was
8958         release 2.01; it gives no more detail about what the problems
8959         were.
8961         Version 2.0 of bash was released on the last day of 1996, and version
8962         2.01 in June of 1997.  Twenty years later, I think it is safe to
8963         assume that this environment variable isn't coming back.
8965         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8966         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8967         __libc_argc and __libc_argv externs, which were only used by
8968         #ifdef USE_NONOPTION_FLAGS blocks.
8971         getopt: tabify, in preparation for merge with glibc
8973         glibc sticks to the GNU default of indenting with a mix of
8974         8-column tabs and spaces; make the gnulib copy match.
8976         getopt.h is not included because it is *not* going to be merged in its
8977         present form.
8979         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8981 2017-04-02  Bruno Haible  <bruno@clisp.org>
8983         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8984         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8985         like it was done in modules/relocatable-lib on 2011-05-21 and in
8986         modules/relocatable-prog on 2011-08-15.
8987         Reported by Reuben Thomas <rrt@sc3d.org>.
8989 2017-03-31  Bruno Haible  <bruno@clisp.org>
8991         glob: Fix invalid free() call.
8992         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8993         static storage to home_dir.
8994         Reported by Coverity via Tim Rühsen.
8996 2017-03-31  Bruno Haible  <bruno@clisp.org>
8998         glob: Fix memory leaks.
8999         * lib/glob.c (glob): Free allocated memory before returning.
9000         Reported by Coverity via Tim Rühsen.
9002 2017-03-31  Bruno Haible  <bruno@clisp.org>
9004         md5, sha1, sha256, sha512: Add comments regarding correctness.
9005         * lib/md5.h (buflen): Add comments regarding range.
9006         * lib/sha1.h (buflen): Likewise.
9007         * lib/sha256.h (buflen): Likewise.
9008         * lib/sha512.h (buflen): Likewise.
9009         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
9010         * lib/sha1.c (sha1_process_bytes): Likewise.
9011         * lib/sha256.c (sha256_process_bytes): Likewise.
9012         * lib/sha512.c (sha512_process_bytes): Likewise.
9013         Reported by Coverity via Tim Rühsen.
9015 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9017         getopt: merge from glibc
9018         This does not change anything substantial; it merely simplifies
9019         hypothetical merges back to glibc.
9020         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
9021         Change copyright notice to match what is in glibc.
9022         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
9023         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
9024         __open_memstream rather than open_memstream and __glibc_likely
9025         instead of __builtin_expect.
9026         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
9028 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9030         dfa: make [0-9] faster in non-C locales
9031         Problem reported by John P. Linderman (Bug#26193).
9032         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
9033         If both ends of the range are ASCII digits, do not worry about
9034         multi-character collating sequences and the like.  Be consistent
9035         about using isalpha as a precondition for setbit_case_fold_c.
9037 2017-03-19  Bruno Haible  <bruno@clisp.org>
9039         lock: Fix compilation error with HP-UX IA64 cc.
9040         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
9041         weak on non-glibc platforms.
9043 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9045         stdalign: tweak version# and test for HP-UX IA64
9046         Problems reported by Bruno Haible in:
9047         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
9048         * lib/stdalign.in.h (_Alignas):
9049         * m4/stdalign.m4 (gl_STDALIGN_H):
9050         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
9051         used octal (as that is how they document it), but it is decimal in
9052         practice now and the ancient implementations no longer matter.
9053         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
9055 2017-03-19  Bruno Haible  <bruno@clisp.org>
9057         vma-iter: Add support for Solaris.
9058         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
9059         approach.
9060         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
9061         * lib/get-rusage-as.c: Update comment about Solaris.
9062         * lib/get-rusage-data.c: Likewise.
9064 2017-03-19  Bruno Haible  <bruno@clisp.org>
9066         vma-iter: Prefer HP-UX specific API on HP-UX.
9067         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
9068         * lib/vma-iter.h: Update.
9069         Just in case HP-UX ever implements mquery().
9071 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
9073         stdalign: restore previous behavior for HP-UX IA64
9074         See Bruno Haible's email in:
9075         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
9076         which cites p 150 of a manual saying that 'aligned' works on Itanium.
9077         * lib/stdalign.in.h (_Alignas):
9078         Assume the '061200' applies to Itanium, not to PA-RISC.
9079         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
9081 2017-03-17  Bruno Haible  <bruno@clisp.org>
9083         stat-time, timespec: Support use of the header files in C++ mode.
9084         * lib/stat-time.h: Add "C" linkage declaration.
9085         * lib/timespec.h: Likewise.
9087 2017-03-17  Bruno Haible  <bruno@clisp.org>
9089         stdalign: Make it work with HP-UX cc.
9090         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
9091         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
9092         for HP-UX cc.
9094 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
9096         flexmember: try to detect HP-UX 11.31 cc bug
9097         Problem reported by Bruno Haible in:
9098         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
9099         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9100         Attempt to detect bug in HP-UX 11.31 cc.
9102 2017-03-16  Bruno Haible  <bruno@clisp.org>
9104         stdint: Fix test compilation failure with HP-UX 11 cc.
9105         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
9106         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
9107         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
9108         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
9110 2017-03-14  Bruno Haible  <bruno@clisp.org>
9112         gnulib-tool: Don't produce a tests directory with only snippet .h files.
9113         * gnulib-tool (func_modules_transitive_closure_separately): If
9114         testsrelated_modules ends up with no "real" modules, aside from
9115         modules with applicability 'all', set it to empty.
9117 2017-03-14  Bruno Haible  <bruno@clisp.org>
9119         vma-iter: Add support for HP-UX.
9120         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
9121         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
9122         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
9123         * lib/get-rusage-as.c: Update comment about HP-UX.
9124         * lib/get-rusage-data.c: Likewise.
9125         (get_rusage_data): Use get_rusage_data_via_setrlimit.
9127 2017-03-14  Bruno Haible  <bruno@clisp.org>
9129         limits-h: Make it work with HP-UX cc.
9130         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
9131         defined.
9133 2017-03-14  Bruno Haible  <bruno@clisp.org>
9135         Fix test failures on DragonFlyBSD.
9136         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
9137         * tests/test-select.h (test_bad_fd): Likewise.
9138         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
9140 2017-03-14  Bruno Haible  <bruno@clisp.org>
9142         freadahead: Silence warning on DragonFlyBSD.
9143         * lib/freadahead.c (__sreadahead): Declare ourselves.
9145 2017-03-14  Bruno Haible  <bruno@clisp.org>
9147         vma-iter: Add comment about AIX.
9148         * lib/vma-iter.c: Add comment about why this module is not implemented
9149         on AIX.
9151 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9153         snippets: move unadjusted snippet sources to lib
9154         Problem reported by Michal Privoznik in:
9155         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
9156         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
9157         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
9158         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
9159         * lib/unused-parameter.h: Rename from
9160         build-aux/snippet/unused-parameter.h.
9161         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
9162         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
9163         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
9164         * modules/snippet/c++defs (Files:, CXXDEFS_H):
9165         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
9166         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
9167         Adjust to file renamings.
9169 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
9171         gnulib-tool: don't automatically distribute files from top/
9172         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
9173         not distribute top/README-release by default, don't distribute files
9174         from top/ unconditionally.
9175         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
9176         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
9178 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9180         gnulib-tool: fix typo in comment output
9181         * gnulib-tool (func_import): Fix typo with previous change.
9183         snippets: work around GNU Make 3.82 VPATH
9184         When using 'gnulib-tool --gnu-make' on Emacs, and building
9185         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
9186         an out-of-source (VPATH) build failed because the sans-copyright
9187         snippet file was not built before the file that used it.
9188         Presumably this is some sort of VPATH thing.  Work around the
9189         problem by using the original snippet, i.e., don’t bother to
9190         remove its copyright notice.
9191         * modules/snippet/_Noreturn, modules/snippet/link-warning:
9192         Don’t assume Automake in comments.  Omit long-incorrect comment.
9193         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
9194         (MOSTLYCLEANFILES):
9195         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
9196         (MOSTLYCLEANFILES):
9197         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
9198         (MOSTLYCLEANFILES):
9199         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
9200         (MOSTLYCLEANFILES):
9201         Remove.
9202         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
9203         * modules/snippet/c++defs (CXXDEFS_H):
9204         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
9205         * modules/snippet/warn-on-use (WARN_ON_USE_H):
9206         Don’t bother to remove the copyright notice; just use the
9207         original snippet as-is.
9209 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9211         gnulib-tool: minor --gnu-make fixups
9212         * gnulib-tool (func_emit_lib_Makefile_am):
9213         Remove useless code that was a blind alley during implementation.
9214         Problem reported by Thien-Thi Nguyen in:
9215         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
9216         (func_import): Note the "--gnu-make" option in the output comment.
9218 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
9220         gnulib-tool: new option --gnu-make
9221         This is for applications like GNU Emacs that use GNU Make
9222         features instead of Automake.
9223         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
9224         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
9225         Do not assume Automake.
9226         * gnulib-tool (func_determine_path_separator)
9227         (func_modules_transitive_closure, func_update_file)
9228         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9229         (func_import): Add support for --gnu-make.
9231 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9233         gnulib-common.m4: avoid aclocal.m4 bloat
9234         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
9235         Hide AM_PROG_AR from aclocal, so that aclocal does not
9236         install irrelevant macro definitions into aclocal.m4.
9238 2017-03-10  Bruno Haible  <bruno@clisp.org>
9240         vma-iter: Let callers know about error.
9241         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
9242         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
9244 2017-03-05  Bruno Haible  <bruno@clisp.org>
9246         Fix value of LD for 64-bit compilers on AIX.
9247         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
9248         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
9250 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
9252         dtotimespec: simplify
9253         * lib/dtotimespec.c (dtotimespec): Simplify.
9255 2017-03-04  Bruno Haible  <bruno@clisp.org>
9257         test-calloc-gnu: Reenable test also for GCC 7.
9258         * tests/test-calloc-gnu.c (eight): New function.
9259         (main): Don't skip test; use eight() instead.
9261 2017-03-04  Jim Meyering  <meyering@fb.com>
9263         test-calloc-gnu: port to GCC7
9264         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
9265         that attempts to calloc more than SIZE_MAX bytes, because GCC7
9266         and newer would detect that at compilation time.
9268 2017-03-04  Bruno Haible  <bruno@clisp.org>
9270         tests: Avoid compiler warning about uses of null_ptr.
9271         * tests/null-ptr.h: New file.
9272         * tests/test-canonicalize.c: Include null-ptr.h.
9273         (null_ptr): Remove function.
9274         * tests/test-canonicalize-lgpl.c: Likewise.
9275         * tests/test-memmem.c: Likewise.
9276         * tests/test-ptsname_r.c: Likewise.
9277         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
9278         * modules/canonicalize-lgpl-tests: Likewise.
9279         * modules/memmem-tests: Likewise.
9280         * modules/ptsname_r-tests: Likewise.
9281         Reported by Jim Meyering.
9283 2017-03-03  Bruno Haible  <bruno@clisp.org>
9285         doc: Mention Mac OS X deficiencies regarding semaphores.
9286         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
9287         * doc/posix-functions/sem_destroy.texi: Likewise.
9288         * doc/posix-functions/sem_getvalue.texi: Likewise.
9290 2017-03-03  Bruno Haible  <bruno@clisp.org>
9292         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
9293         Reported by Assaf Gordon <assafgordon@gmail.com> via
9294         Pádraig Brady <P@draigBrady.com>.
9295         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
9296         semaphores.
9297         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
9298         (atomic_int_semaphore): New macro.
9300 2017-02-28  Bruno Haible  <bruno@clisp.org>
9302         perror tests: Tweak for z/OS.
9303         Reported by Daniel Richard G. <skunk@iskunk.org>.
9304         * tests/test-perror.sh: Don't fail z/OS style perror output.
9306 2017-02-26  Bruno Haible  <bruno@clisp.org>
9308         nproc: Refactor large function.
9309         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
9310         from num_processors.
9311         (num_processors): In this function, only deal with OMP.
9313 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9315         nproc: adjust handling of OpenMP environment variables
9316         to match the return value from omp_get_num_threads(), i.e.:
9317          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
9318          - Treat 0 as an invalid value and ignore
9319         Also remove the call to omp_get_num_threads() because
9320         it's ineffective without the omp pragmas in place.
9321         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
9322         so that it can be ignored.
9323         (num_processors): Honor OMP_THREAD_LIMIT even without
9324         OMP_NUM_THREADS being set.  Also fix a typo in the environment
9325         variable being checked, from the previous recent commit.
9327 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9329         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9330         * lib/nproc.c (parse_omp_threads): A new function refactored
9331         from num_processors() to support parsing both of the
9332         above environment variables.
9333         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9334         to accurately reflect the current OpenMP nesting level.
9335         Also support the OMP_THREAD_LIMIT environment variable
9336         to limit the max value determined from OMP_NUM_THREADS.
9337         * modules/nproc: Depend on minmax header.
9338         Suggested by Oliver Heimlich.
9340 2017-02-25  Bruno Haible  <bruno@clisp.org>
9342         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9343         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9345 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9347         ftoastr: port to -Wdouble-promotion
9348         Work around -Wdouble-promotion false alarm in recent GCCs.
9349         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9350         (ftoastr_snprintf, FTOASTR): Use it.
9352 2017-02-21  Bruno Haible  <bruno@clisp.org>
9354         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9355         Reported by Rene Saavedra <rennes@openmailbox.org> in
9356         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9357         * lib/glthread/lock.h: On glibc systems without
9358         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9359         implementation of rwlocks.
9360         * lib/glthread/lock.c: Likewise.
9362 2017-02-20  Bruno Haible  <bruno@clisp.org>
9364         lock tests: Fix build failure on z/OS.
9365         Reported by Daniel Richard G. <skunk@iskunk.org>.
9366         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9367         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9368         exist.
9370 2017-02-19  Bruno Haible  <bruno@clisp.org>
9372         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9373         This helps when CC=clang.
9374         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9375         of /usr/bin/gcc.
9377         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9378         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9380 2017-02-19  Bruno Haible  <bruno@clisp.org>
9382         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9383         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9384         --with-tests --single-configure is specified.
9386 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9388         users.txt: Update links, use HTTPS where possible
9389         * users.txt: Updated to HTTPS where possible,
9390         fixed some links to new locations.
9392 2017-02-16  Bruno Haible  <bruno@clisp.org>
9394         xbinary-io: Fix inlining.
9395         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9397 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9399         xbinary-io: rename from xsetmode
9400         This patch is taken from suggestions by Bruno Haible in:
9401         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9402         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9403         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9404         not ENOTTY, when it is an inappropriate device.
9405         * lib/binary-io.h (SET_BINARY): Resurrect.
9406         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9407         (xset_binary_mode_error): Rename from xsetmode_error.
9408         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9409         (xset_binary_mode): Rename from xsetmode.
9410         All uses changed.
9411         * modules/xbinary-io: Rename from modules/xsetmode.
9412         Update file names.
9413         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9414         * NEWS: Update to match revised behavior.
9416 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9418         tests: Adjust to recent SET_BINARY change
9419         * tests/test-binary-io.c (main):
9420         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9421         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9422         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9423         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9425         xsetmode: new module
9426         This is to fix a problem noted by Eric Blake.
9427         Code was using xfreopen to change files to binary mode, but this
9428         fails for stdout when in append mode.  Such code should use
9429         xsetmode instead.
9430         * NEWS: Document incompatible changes to binary-io module.
9431         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9432         New function.
9433         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9434         (set_binary_mode): New function, which also checks for tty.
9435         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9437 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9439         headers: fix begin-end typos
9440         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9441         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9443         selinux-h: port to PGI 16.10
9444         * lib/se-selinux.in.h: Don't assume that include_next skips over
9445         duplicate -I DIR options.
9447         argp: port to PGI 16.10
9448         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9450 2017-02-13  Darshit Shah  <darnir@gnu.org>
9452         unicase: Update function protoype to match definition.
9453         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9454         uses 'size_t' as the datatype for the 'len' parameter in the functions
9455         it generates. Update the prototype specified here to match the newly
9456         generated function.
9458 2017-02-12  Bruno Haible  <bruno@clisp.org>
9460         times test: Avoid gcc warnings on Linux/x32.
9461         * tests/test-times.c (main): Really cast printf arguments from clock_t
9462         to 'long int'.
9464 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9466         glob: port better to emscripten
9467         Problem reported by Bruno Haible in:
9468         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9469         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9471 2017-02-11  Bruno Haible  <bruno@clisp.org>
9473         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9474         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9475         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9476         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9477         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9478         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9479         Distinguish hppa64 from hppa.
9481 2017-02-10  Bruno Haible  <bruno@clisp.org>
9483         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9484         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9485         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9486         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9488 2017-02-09  Bruno Haible  <bruno@clisp.org>
9490         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9491         * doc/gnulib.texi (Libtool and Windows): Recommend
9492         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9493         Reported by Reuben Thomas <rrt@sc3d.org>.
9495 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9497         stddef-tests: port to SIZE_MAX <= INT_MAX
9498         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9499         Do not assume that INT_MAX < SIZE_MAX.
9501 2017-02-01  Bruno Haible  <bruno@clisp.org>
9503         lock tests: Fix link error.
9504         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9507 2017-01-31  Bruno Haible  <bruno@clisp.org>
9509         lock: Fix link error (regression from 2017-01-05).
9510         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9511         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9512         pthread_rwlockattr_destroy weak.
9513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9515 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9517         Port to PGI 16.10 x86-64
9518         This patch fixes one real bug in gl_anylinked_list2.h, along with
9519         some minor glitches that are not bugs.  It does not silence PGI’s
9520         thousands of bogus warnings when compiling test-intprops.c.
9521         Fortunately, the warnings do not cause a failure.
9522         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9523         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9524         My goodness, PGI goes back a long ways - this predates C89!
9525         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9526         For example, ASYNCSAFE (const void *) should expand to
9527         ‘const void *volatile’, not to ‘volatile const void *’.
9528         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9529         * lib/verify.h (verify) [!__GNUC__]:
9530         Use shorter albeit meaningless string to bypass silly compiler limits.
9531         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9532         * tests/nan.h (NaNf, NaNd, NaNl):
9533         Use static functions to avoid misguided compiler diagnostics.
9534         Is there some reason we don’t use static functions on all platforms?
9536 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9538         parse-datetime: handle timezones reentrantly
9539         This API change was prompted by a report by Pádraig Brady in:
9540         https://bug.debian.org/851934#10
9541         To help fix the bug, make parse_datetime2 more reentrant.
9542         * NEWS: Document this incompatible change.
9543         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9544         Add two arguments, the timezone and the timezone name.
9545         All callers changed.  If TZ="..." is specified, use it for
9546         calculating defaults.
9547         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9548         this code should be usable in a library.
9549         (mktime_ok, get_effective_timezone):
9550         Accept timezone arg too.  All callers changed.
9551         (get_tz): Remove.
9552         (get_effective_timezone): Check for failures.
9554 2017-01-20  Eric Blake  <eblake@redhat.com>
9556         localename: port to cygwin 2.6
9557         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9558         Cygwin.
9559         * modules/localename (Depends-on): Add extensions, since
9560         NL_LOCALE_NAME() is not visible without it.
9562 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9564         parse-datetime: fix dependence on AC_PROG_SED
9565         * modules/parse-datetime: Use `sed` directly like all other modules.
9566         Reported by J William Piggott
9568 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9570         intprops: update doc URLs
9571         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9573 2017-01-16  Bruno Haible  <bruno@clisp.org>
9575         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9576         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9577         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9578         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9579         distinguish s390 and s390x.
9580         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9581         * NEWS: Mention the change regarding 'armel'.
9583 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9585         localeinfo: case_folded_counterparts and WEOF
9586         * NEWS: Document this.
9587         * lib/localeinfo.c (case_folded_counterparts):
9588         First arg is now wint_t, not wchar_t.  This generalizes the
9589         function to also work on WEOF, where it returns 0.
9591         dfa: port to gcc -fsanitize=undefined
9592         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9593         as this runs afoul of gcc -fsanitize=undefined.
9595 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9597         strftime: %z is -00 if unknown
9598         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9599         the caller's responsibility to set 'negative_number'.  All uses changed.
9600         (__strftime_internal): Put '-' before a zero UTC offset if the time
9601         zone abbreviation starts with "-", which is the recently-introduced
9602         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9603         * tests/test-strftime.c: Test for this.
9605 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9607         dfa: port to older GCC
9608         Problem reported by Assaf Gordon in:
9609         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9610         * modules/c99: New module.  This merely attempts to use the latest
9611         C version, which should be enough to solve this particular problem.
9612         The idea is to document which Gnulib modules assume C99 or later.
9613         * modules/dfa (Depends-on): Add it.
9615 2017-01-10  Bruno Haible  <bruno@clisp.org>
9617         Update DEPENDENCIES.
9618         * DEPENDENCIES: List only https URLs. Update recommended version for
9619         autoconf, automake, gperf.
9621 2017-01-10  Jim Meyering  <meyering@fb.com>
9623         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9624         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9625         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9627 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9629         dfa: minor simplification with emptyset
9630         * lib/dfa.c (build_state): Simplify by using emptyset.
9632 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9634         dfa: shrink constraints from 4 bits to 3
9635         * lib/dfa.c (newline_constraint, letter_constraint)
9636         (other_constraint, prev_newline_dependent)
9637         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9638         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9639         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9640         Constraints need only 3 bits, not 4.  Using smaller integers
9641         shrinks the code a bit and makes grep a tad faster on x86-64.
9643         dfa: omit unnecessary ptrdiff_t check
9644         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9645         overflow, since xnmalloc does that now.
9647         dfa: omit unnecessary allocation
9648         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9649         an all-zero follow set works just fine.
9651         dfa: omit unused local
9652         * lib/dfa.c (build_state): Fix up recent change.
9654         maint: remove stray .texi files
9655         Although these were superseded by other files like
9656         doc/posix-functions/ctime.texi, the old files were not removed.
9657         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9659 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9661         getprogname: fix port to IRIX
9662         * lib/getprogname.c (getprogname) [__sgi]:
9663         Don't dump core if malloc returns NULL.
9665         dfa: fix reallocation bug when matching newlines
9666         Problem reported for sed by S. Gilles (Bug#25390).
9667         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9668         (dfastate): Reallocate before moving any newline transition ...
9669         (build_state): ... instead of reallocating here, where it is too late.
9671 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9673         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9674         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9676 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9678         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9679         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9681 2017-01-07  Bruno Haible  <bruno@clisp.org>
9683         stdioext: Port to Minix 3.2 and newer.
9684         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9685         * lib/fseeko.c (fseeko): Likewise.
9686         Reported by Nelson Beebe via Paul Eggert.
9688 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9690         getprogname: port to IRIX
9691         * lib/getprogname.c (getprogname): Port to IRIX.
9692         Based on an idea by Bastien Roucariès at:
9693         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9694         via code from Bruno Haible at:
9695         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9697         localename-tests: port to NetBSD 7
9698         Problem reported by Nelson H. F. Beebe.
9699         * tests/test-localename.c:
9700         Test newlocale and uselocale only if both exist.
9702         glob, intprops, xalloc: work around Clang bug
9703         Work around LLVM bug 16404, which is still not fixed.
9704         https://llvm.org/bugs/show_bug.cgi?id=16404
9705         Problem reported by Nelson H. F. Beebe.
9706         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9707         Remove.
9708         * lib/glob.c (size_add_wrapv):
9709         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9710         * lib/xalloc-oversized.h (xalloc_oversized):
9711         Do not use overflow builtins if Clang.
9713         dfa: fix 'return' typo
9714         Problem reported by Nelson H. F. Beebe.
9715         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9717 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9719         parse-datetime: fix generated paths for coverage files
9720         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9721         within parse-datetime.c, so that gcc generates appropriate .gcno
9722         files, allowing lcov to proceed without error.  Previously it
9723         would error trying to find "lib/lib/parse-datetime.y".
9725 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9727         maint.mk: support parallel execution of coverage
9728         * top/maint.mk (coverage): Run dependencies serially,
9729         thus supporting parallel processing of each one,
9730         particularly build-coverage, which builds and runs tests.
9732 2017-01-05  Bruno Haible  <bruno@clisp.org>
9734         lock tests: Prefer semaphore over mutex.
9735         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9736         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9737         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9738         Suggested by Torvald Riegel <triegel@redhat.com>.
9740 2017-01-05  Bruno Haible  <bruno@clisp.org>
9742         lock: Provide guarantee to avoid writer starvation for rwlocks.
9743         The rationale is: 1) Read-preferring read-write locks are prone to
9744         writer starvation if the number of reader threads multiplied by the
9745         percentage of time they have the lock held is too high. 2) Write-
9746         preferring read-write locks are the only reliable way to avoid this.
9747         3) There have been reports of 'test-lock' hanging on glibc systems
9748         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9749         and glibc indeed implements read-preferring rwlocks by default, see
9750         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9751         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9752         * m4/pthread_rwlock_rdlock.m4: New file.
9753         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9754         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9755         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9756         of rwlock initialization on glibc systems without
9757         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9758         of rwlocks altogether on non-glibc systems without
9759         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9760         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9761         * lib/glthread/lock.c [USE_POSIX_THREADS]
9762         (glthread_rwlock_init_for_glibc): New function.
9763         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9764         comment.
9765         [USE_PTH_THREADS]: New implementation of rwlocks.
9766         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9767         readers.
9768         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9769         (Depends-on): Add 'extensions'.
9770         * tests/test-rwlock1.c: New file.
9771         * lock-tests (Files): Add it.
9772         (Depends-on): Add usleep.
9773         (Makefile.am): Add test-rwlock1 to the tests.
9775 2017-01-05  Bruno Haible  <bruno@clisp.org>
9777         thread: Fix pth port.
9778         * lib/glthread/thread.h (pth_init): Declare weak.
9779         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9780         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9781         function.
9783 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9785         parse-datetime: fix debug message on lone year number
9786         Input dates such as
9787           date -d "Apr 11 22:59:00 2011"
9788         are parsed as date (Apr 11, with default year 2016), then time, then a
9789         number (2011). Based on the combination of previously seen tokens,
9790         'digits_to_date_time' determines 2011 to be a year value.
9791         This fixes the debug messages to correctly show the updated year.
9792         Before:
9793             $ date --debug -d 'Apr 11 22:59:00 2011'
9794             date: parsed date part: (Y-M-D) 2016-04-11
9795             date: parsed time part: 22:59:00
9796             date: parsed number part: today/this/now
9797         After:
9798             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9799             date: parsed date part: (Y-M-D) 2016-04-11
9800             date: parsed time part: 22:59:00
9801             date: parsed number part: year: 2011
9802         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9803         'debug_year_seen' member fields.
9804         (digits_to_date_time): Update 'year_seen' as needed.
9805         (debug_print_current_time): Inform about year updates.
9806         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9808         parse-datetime: fix local timezone debug messages
9809         "Local timezones" are strings that affect only DST relative to the
9810         default timezone. The debug messages in parse-datetime.y printed
9811         wrong information when encountering local timezones.
9812         Examples:
9813         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9814              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9815              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9816         When the default timezone relates to the zone strings, EET/EEST are
9817         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9818         value (0/1, respectively):
9819              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9820              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9821         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9822         was seen, inform about DST change, don't print actual timezone.
9823         (debug_strfdatetime): If local timezone was seen, use default timezone
9824         (and adjust as needed) instead of using incorrect timezone.
9825         (parse_datetime2): Use correct time-zone source string, and adjust
9826         default timezone as needed.
9828         parse-datetime: add debug warning about DST changes
9829         Incorrect date arithmetic due to daylight saving time (DST) are a
9830         common (false) bug report in coreutils.
9831         Detect two such cases and print a warning:
9832         1. year/month/day adjustments (performed on 'struct tm'),
9833            where 'mktime' returns a different isdst value.
9834         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9835            where the result of 'localtime(3)' on the value will return a
9836            different isdst value.
9837         Note: DST changes could be harmless or unnoticeable.
9838         Examples (with 'TZ=America/New_York'):
9839         Unnoticeable: result is 2016-Dec-14
9840            $ date -d '2016-06-15 EDT + 6 months' +%b
9841            Dec
9842         Unnoticeable: result is 2016-Dec-15 11:00:00
9843            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9844            2016-12-15
9845         This is unexpected:
9846            $ date -d '2016-06-01 EDT + 6 months' +%F
9847            2016-11-30
9848         The new debug warnings will show:
9849            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9850            ...
9851            date: warning: daylight saving time changed after date adjustment
9852            ...
9853         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9854         print an appropriate warning message.
9856         parse-datetime: add debug warning about date arithmetic
9857         Date arithmetic are done directly on the fields of 'struct tm',
9858         which can result in invalid dates. Normalization with 'mktime(3)'
9859         will then produce a different date - which might cause unexpected
9860         results.
9861         Examples:
9862           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9863           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9864         Note that date normalization is not inherently wrong and not rejected,
9865         as it has legitimate uses:
9866           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9867         If the user asked to adjust months but 'mday' changed,
9868         or user asked to adjust years but 'month' changed - warn about it.
9869             $ ./src/date --debug -d '2016-10-31 - 1 month'
9870             ...
9871             date: warning: when adding relative months/years, \
9872                            it is recommended to specify the 15th of the month
9873             ...
9874             date: warning: month/year adjustment resulted in shifted dates:
9875             date:      adjusted Y M D: 2016 09 31
9876             date:    normalized Y M D: 2010 10 01
9877             ...
9878         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9879         a warning message. Improve recommendation of when to use 15 of the
9880         month or noon for date arithmetic.
9882         parse-datetime: fix debug message of relative part after timezone
9883         Relative part (e.g '+8 days') after a timezone string was not
9884         reported (was only reported after a timezone number). Due to the
9885         parser's structure, timezone strings with numbers were handled
9886         separately.
9887         before:
9888              # Timezone number + relative part: OK
9889              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9890              ...
9891              date: parsed relative part: -8 day(s)
9892              # Timezone string + relative part: missing
9893              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9894              [ missing message ]
9895         After: messages are printed in both cases.
9896         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9898         parse-datetime: fix incorrect debug message on lone number
9899         A lone number is an absolute value, not a relative time part.
9900         before:
9901            $ date --debug -d '20130101'
9902            date: parsed number part: today/this/now
9903         After:
9904            $ ./src/date --debug -d '20130101'
9905            date: parsed number part: (Y-M-D) 2013-01-01
9906         * lib/parse-datetime.y ('item'/'number' tokens): Call
9907         'debug_print_current_time' instead of 'debug_print_relative_time'.
9909 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9911         doc: modernize for C11 etc.
9912         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9913         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9914         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9916         dfa: prefer functions to FETCH_WC macro
9917         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9918         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9919         wint_t result into DFA->lex.wctok instead of to a separate arg.
9920         All callers changed.  Move more local decls closer to where
9921         they're used.
9923         dfa: narrow more local var scopes
9924         * lib/dfa.c: Move more local decls to be more local.
9926         dfa: remove duplicate assignment
9927         Problem reported by Bruno Haible in:
9928         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9929         * lib/dfa.c (parse_bracket_exp): Simplify.
9931 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9933         dfa: simplify constraint-dependency checking
9934         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9935         (prev_other_constraint): Remove.
9936         (prev_newline_dependent, prev_letter_dependent):
9937         Simplify, to avoid an unnecessary bitwise AND operation.
9939         dfa: prefer functions and constants to macros
9940         * lib/dfa.c: Prefer constants to macros where either will do.
9941         (streq, isasciidigit, newline_constraint)
9942         (letter_constraint, other_constraint, succeeds_in_context)
9943         (prev_newline_constraint, prev_letter_constraint)
9944         (prev_other_constraint, prev_newline_dependent)
9945         (prev_letter_dependent, accepting, accepts_in_context):
9946         Now static functions instead of function-like macros.
9947         Use lower-case names accordingly.  All uses changed.
9949         dfa: narrow more local var scopes
9950         * lib/dfa.c: Move some more local decls down to nearer where
9951         they're needed.
9953 2016-12-31  Jim Meyering  <meyering@fb.com>
9955         dfa: narrow the scope of many local variables
9956         * lib/dfa.c: Now that we are no longer constrained to c89, move
9957         declarations of many variables (often indices) "down" into the
9958         scope(s) where used or to the point of definition.  This is a
9959         no-semantic-change diff.
9961 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9963         version-etc: new year
9964         * build-aux/gendocs.sh (version):
9965         * doc/gendocs_template:
9966         * doc/gendocs_template_min:
9967         * doc/gnulib.texi:
9968         * lib/version-etc.c (COPYRIGHT_YEAR):
9969         Update copyright dates by hand in templates and the like.
9970         * all files: Run 'make update-copyright'.
9972 2016-12-31  Eric Blake  <eblake@redhat.com>
9974         do-release-commit-and-tag: avoid shell syntax error
9975         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9976         contain spaces when rebasing.
9978         maint.mk: hoist gnulib_dir definition earlier
9979         * top/maint.mk (gnulib_dir): Move near top of file.
9981 2016-12-31  Jim Meyering  <meyering@fb.com>
9983         maint.mk: do not always evaluate intprops-related shell
9984         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9985         using gnulib_dir undefined (gnulib_dir is defined later in the
9986         file, which will be fixed separately), and besides, there is no
9987         need to incur the cost of this shell invocation for every single
9988         use of this .mk file.  Reported by Eric Blake in
9989         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9991 2016-12-30  Jim Meyering  <meyering@fb.com>
9993         maint.mk: improve sc_prohibit_intprops_without_use
9994         * top/maint.mk (_intprops_names): Don't hard-code the list of
9995         symbol names.  Instead, derive it on the fly.
9997 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9999         dfa: shorten sbit, success
10000         * lib/dfa.c (struct regex_syntax.sbit):
10001         (struct dfa.success): Use char, not int, for array elements, since
10002         they are all in the range 0..7.
10004         dfa: simplify multibyte_prop etc.
10005         This follows up on a change made when dfa.c was in grep, namely grep
10006         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
10007         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
10008         That earlier simplification allows for some more simplification
10009         and trimming down here.
10010         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
10011         (struct lexer_state): New mamber brack.
10012         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
10013         since they must be in the range 0..3 now.
10014         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
10015         the brack member now supersedes them.
10016         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
10017         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
10018         (dfaparse): Remove unnecessary initializations of already-0 storage.
10019         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
10020         (dfassbuild): No need to clear sup->mbcsets.
10022         dfa: minor performance tweak
10023         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
10025         dfa: wrap charclass inside a struct
10026         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
10027         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
10028         about 5% faster, where list.txt is generated by 'aspell dump
10029         master | head -n 100000 >list.txt'.  See Bug#22239.
10030         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
10031         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
10032         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
10033         Adjust to this, e.g., by using charclass * rather than charclass.
10034         All callers changed as needed.
10035         (copyset): Remove.  All uses changed to simple assignment.
10036         (parse_bracket_exp): Use zeroset instead of memset.
10038 2016-12-30  Jim Meyering  <meyering@fb.com>
10040         maint.mk: update list of intprops.h symbol names
10041         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
10042         This avoids a false failure of the sc_prohibit_intprops_without_use
10043         rule in grep.
10045 2016-12-29  Eric Blake  <eblake@redhat.com>
10047         getopt: fix parallel test failure
10048         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
10049         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
10050         * tests/test-getopt-main.h (main): Use different file names
10051         in case test-getopt-gnu and test-getopt-posix run in parallel.
10053 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10055         xalloc: x2nrealloc check for ptrdiff_t overflow
10056         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
10057         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
10059 2016-12-24  Bruno Haible  <bruno@clisp.org>
10061         lock test: Fix performance problem on multi-core machines.
10062         * tests/test-lock.c (USE_VOLATILE): New macro.
10063         (struct atomic_int): New type.
10064         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
10065         functions.
10066         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
10067         as 'struct atomic_int'.
10068         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
10069         reclock_checker_thread, test_recursive_lock): Use the new functions.
10070         Reported by Eric Blake in
10071         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
10072         and by Pádraig Brady in
10073         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
10075 2016-12-19  Bruno Haible  <bruno@clisp.org>
10077         vma-iter: Fix endless loop on 64-bit Windows.
10078         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
10079         'unsigned long'.
10081 2016-12-19  Bruno Haible  <bruno@clisp.org>
10083         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
10084         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
10085         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
10086         Invoke gt_TYPE_WINT_T instead.
10087         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
10088         * modules/stdint (Files): Add m4/wint_t.m4.
10089         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10090         * modules/wctype-h (Makefile.am): Likewise.
10091         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
10092         not only on MSVC.
10093         * lib/wctype.in.h (wint_t): Likewise.
10095 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10097         getopt-posix-tests: fix Makefile typo
10098         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
10099         Fix typo: the last ‘_’ was missing in the name.
10100         I suspect that the typo explains this build failure:
10101         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
10102         although I can’t reproduce the problem on Solaris 10 sparc.
10104 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10106         dfa: improve worst-case 'replace' performance
10107         See my note in Bug#22357#71.
10108         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
10109         (merge_constrained): New function, which is like
10110         the old 'merge' function, except with a new argument C2.
10111         Simplify the body by avoiding the need for different sections
10112         of code depending on whether one input is exhausted.
10113         (merge): Use the new function.
10114         (delete): Return the constraint of the deleted position,
10115         not the entire position.  Caller changed.
10116         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
10118 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10120         dfa: performance improvement for removal of epsilon closure
10121         See Bug#22357#32.
10122         * lib/dfa.c (delete): Use binary search to find deleted index.
10123         (replace): New function.  It replaces a position with the followed set.
10124         (epsclosure): Replace it with a new algorithm.  Update caller.
10126 2016-12-18  Bruno Haible  <bruno@clisp.org>
10128         Split tests for getopt-posix and getopt-gnu.
10129         * tests/test-getopt-posix.c: New file.
10130         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
10131         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
10132         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
10133         GNULIB_TEST_GETOPT_GNU.
10134         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
10135         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
10136         (Makefile.am): Test test-getopt-posix instead of test-getopt.
10137         * modules/getopt-gnu-tests: New file.
10138         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
10140 2016-12-18  Bruno Haible  <bruno@clisp.org>
10142         posix-modules: Add options for specific platforms.
10143         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
10144         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
10145         Invoke func_tmpdir. Filter out the excludes.
10147 2016-12-18  Bruno Haible  <bruno@clisp.org>
10149         getopt: Fix link error for users of getopt() in <unistd.h>.
10150         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
10151         __need_getopt is defined. Undefine all macros before defining them.
10152         * modules/getopt (Include): Clarify that including <unistd.h> is also
10153         OK.
10154         * tests/test-getopt.c: Add comment.
10156 2016-12-17  Bruno Haible  <bruno@clisp.org>
10158         getaddrinfo tests: Avoid compilation error on MSVC.
10159         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
10160         getaddrinfo on native Windows.
10162 2016-12-17  Bruno Haible  <bruno@clisp.org>
10164         getlogin, getlogin_r: Fix link errors on MSVC.
10165         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
10166         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
10167         (Link): New section.
10168         * modules/getlogin_r (Files): Add m4/getlogin.m4.
10169         (configure.ac): Require gl_LIB_GETLOGIN.
10170         (Link): New section.
10171         * NEWS: Mention the new link requirements.
10172         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
10173         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
10175 2016-12-17  Bruno Haible  <bruno@clisp.org>
10177         Un-deprecate the 'progname' module.
10178         * NEWS: Describe the appropriate use-cases of 'progname' versus
10179         'getprogname'. Based on discussion summary at
10180         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
10182 2016-12-17  Bruno Haible  <bruno@clisp.org>
10184         Reorganize NEWS a bit.
10185         * NEWS: Move some not so important changes away from section
10186         "Important Notes".
10188 2016-12-17  Bruno Haible  <bruno@clisp.org>
10190         tanhf: Avoid redefinition error on MSVC.
10191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
10192         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
10193         may be defined as an inline function.
10194         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
10195         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
10197 2016-12-17  Bruno Haible  <bruno@clisp.org>
10199         tanf: Avoid redefinition error on MSVC.
10200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
10201         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
10202         may be defined as an inline function.
10203         * modules/math (Makefile.am): Substitute REPLACE_TANF.
10204         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
10206 2016-12-17  Bruno Haible  <bruno@clisp.org>
10208         sqrtf: Avoid redefinition error on MSVC.
10209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
10210         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
10211         may be defined as an inline function.
10212         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
10213         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
10215 2016-12-17  Bruno Haible  <bruno@clisp.org>
10217         sinhf: Avoid redefinition error on MSVC.
10218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
10219         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
10220         may be defined as an inline function.
10221         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
10222         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
10224 2016-12-17  Bruno Haible  <bruno@clisp.org>
10226         sinf: Avoid redefinition error on MSVC.
10227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
10228         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
10229         may be defined as an inline function.
10230         * modules/math (Makefile.am): Substitute REPLACE_SINF.
10231         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
10233 2016-12-17  Bruno Haible  <bruno@clisp.org>
10235         logf: Avoid redefinition error on MSVC.
10236         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
10237         may be defined as an inline function.
10239 2016-12-17  Bruno Haible  <bruno@clisp.org>
10241         log10l: Avoid redefinition error on MSVC.
10242         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
10243         may be defined as an inline function.
10245 2016-12-17  Bruno Haible  <bruno@clisp.org>
10247         log10f: Avoid redefinition error on MSVC.
10248         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
10249         may be defined as an inline function.
10251 2016-12-17  Bruno Haible  <bruno@clisp.org>
10253         hypotl: Avoid redefinition error on MSVC.
10254         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
10255         may be defined as an inline function.
10257 2016-12-17  Bruno Haible  <bruno@clisp.org>
10259         hypotf: Avoid redefinition error on MSVC.
10260         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
10261         may be defined as an inline function.
10263 2016-12-17  Bruno Haible  <bruno@clisp.org>
10265         fmodl: Avoid redefinition error on MSVC.
10266         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
10267         may be defined as an inline function.
10269 2016-12-17  Bruno Haible  <bruno@clisp.org>
10271         fmodf: Avoid redefinition error on MSVC.
10272         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
10273         may be defined as an inline function.
10275 2016-12-17  Bruno Haible  <bruno@clisp.org>
10277         expf: Avoid redefinition error on MSVC.
10278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
10279         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
10280         may be defined as an inline function.
10281         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
10282         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
10284 2016-12-17  Bruno Haible  <bruno@clisp.org>
10286         coshf: Avoid redefinition error on MSVC.
10287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
10288         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
10289         may be defined as an inline function.
10290         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
10291         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
10293 2016-12-17  Bruno Haible  <bruno@clisp.org>
10295         cosf: Avoid redefinition error on MSVC.
10296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
10297         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
10298         may be defined as an inline function.
10299         * modules/math (Makefile.am): Substitute REPLACE_COSF.
10300         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
10302 2016-12-17  Bruno Haible  <bruno@clisp.org>
10304         atan2f: Avoid redefinition error on MSVC.
10305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
10306         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
10307         may be defined as an inline function.
10308         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
10309         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
10311 2016-12-17  Bruno Haible  <bruno@clisp.org>
10313         atanf: Avoid redefinition error on MSVC.
10314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
10315         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
10316         may be defined as an inline function.
10317         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
10318         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
10320 2016-12-17  Bruno Haible  <bruno@clisp.org>
10322         asinf: Avoid redefinition error on MSVC.
10323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
10324         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
10325         may be defined as an inline function.
10326         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
10327         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
10329 2016-12-17  Bruno Haible  <bruno@clisp.org>
10331         acosf: Avoid redefinition error on MSVC.
10332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10333         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10334         may be defined as an inline function.
10335         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10336         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10338 2016-12-17  Bruno Haible  <bruno@clisp.org>
10340         Avoid redefinition errors on MSVC.
10341         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10342         the function may be defined as an inline function.
10343         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10344         the function may be defined as an inline function.
10346 2016-12-17  Bruno Haible  <bruno@clisp.org>
10348         Avoid redefinition errors on MSVC.
10349         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10350         * lib/unistd.in.h: Include <stdio.h> when necessary.
10352 2016-12-17  Bruno Haible  <bruno@clisp.org>
10354         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10355         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10356         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10357         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10358         WINT_MAX.
10360 2016-12-17  Bruno Haible  <bruno@clisp.org>
10362         Avoid autoconf warning.
10363         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10364         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10366 2016-12-17  Bruno Haible  <bruno@clisp.org>
10368         fpending: Revert workaround against Emacs bug.
10369         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10370         The Emacs bug is fixed by Eli Zaretskii in
10371         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10373 2016-12-17  Bruno Haible  <bruno@clisp.org>
10375         getlogin_r tests: Port to mingw.
10376         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10377         regression introduced on 2014-05-19.
10379 2016-12-17  Bruno Haible  <bruno@clisp.org>
10381         getlogin: Port to newer mingw.
10382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10383         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10384         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10385         HAVE_GETLOGIN.
10386         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10387         HAVE_GETLOGIN.
10388         * doc/posix-functions/getlogin.texi: Mention the issue.
10389         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10390         regression introduced on 2014-05-14.
10392 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10394         builtin-expect: improve port to IBM XL C
10395         Problem reported for z/OS by Daniel Richard G. in:
10396         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10397         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10398         Test for <builtins.h> directly.
10400         builtin-expect: port to IBM XL C
10401         Problem reported for z/OS by Daniel Richard G. in:
10402         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10403         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10404         Also allow __builtin_expect defined via a standard include file.
10406         regex: fix dependency
10407         Problem reported by Bruno Haible in:
10408         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10409         * modules/regex: Depend on builtin-expect.
10411         builtin-expect: new module
10412         Fix fnmatch to use it.
10413         Problem reported for z/OS by Daniel Richard G.
10414         * lib/fnmatch.c (__builtin_expect):
10415         * lib/glob.c (__builtin_expect):
10416         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10417         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10418         * lib/scandir.c (__builtin_expect):
10419         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10420         Remove macro; config.h now does this.
10421         * lib/gl_anytreehash_list1.h (add_to_bucket):
10422         * lib/regex_internal.h (BE):
10423         Assume __builtin_expect.
10424         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10425         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10426         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10427         * modules/scandir, modules/strstr-simple:
10428         Depend on builtin-expect.
10430 2016-12-15  Bruno Haible  <bruno@clisp.org>
10432         init.sh: Add possibility to not delete temporary files.
10433         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10434         to yes, don't erase the temporary directory.
10436 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10438         regex: fix integer-overflow bug in never-used code
10439         Problem reported by Clément Pit–Claudel in:
10440         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10441         * lib/regex_internal.h: Include intprops.h.
10442         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10443         behavior on integer overflow.
10444         * modules/regex (Depends-on): Add intprops.
10446         fpending: fix port to MinGW on Emacs
10447         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10448         Problem reported by Eli Zaretskii in:
10449         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10450         Is Plan 9 still a valid porting target, anyway?
10452 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10454         safe-alloc: use xalloc-oversized
10455         * lib/safe-alloc.c: Include xalloc-oversized.h.
10456         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10457         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10459         xalloc: do not exceed PTRDIFF_MAX
10460         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10461         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10462         bytes have pointer-subtraction problems.
10464         malloca: do not exceed PTRDIFF_MAX
10465         * lib/malloca.h: Include xalloc-oversized.
10466         (nmalloca): Use xalloc_oversized instead of rolling our own.
10467         * modules/malloca (Depends-on):
10468         * modules/relocatable-prog-wrapper (Depends-on):
10469         Add xalloc-oversized.
10471         quotearg: pacify GCC better
10472         * modules/quotearg (Depends-on): Add minmax, stdint.
10473         * lib/quotearg.c: Include minmax.h, stdint.h.
10474         (nslots): Now int, as there seems little point to going to extra
10475         work merely to support the INT_MAX slot, which nobody ever uses.
10476         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10477         and to catch (mostly-theoretical) ptrdiff_t problems too.
10478         This can be done via one comparison.
10480 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10482         xalloc-oversized: check for PTRDIFF_MAX too
10483         This avoids undefined behavior when subtracting pointers to
10484         objects containing more than PTRDIFF_MAX bytes.
10485         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10486         Also return 1 if the result would exceed PTRDIFF_MAX>
10487         * modules/xalloc-oversized (Depends-on):
10488         Add stdint.
10490         dfa: fix glitches in previous commit
10491         Sorry, I don't know how I managed to commit the wrong version.
10492         * lib/dfa.c (MIN): Move up.
10493         (xpalloc): Now static.
10495         dfa: fix some unlikely integer overflows
10496         I found these while reviewing the recent Coverity-related fix.
10497         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10498         size_t for object counts.  Using ptrdiff_t is the style typically
10499         used in Emacs; although it wastes a sign bit as sizes can never be
10500         negative, it makes -fsanitize=undefined more likely to catch
10501         integer overflows in index calculation, and nowadays the upside is
10502         typically more important than the downside.  Although perhaps the
10503         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10504         of dfa.c already does, since it uses state_num which is signed),
10505         that is a bigger change and is not needed to fix the bugs I found.
10506         * lib/dfa.c: Include stdint.h and intprops.h.
10507         (TOKEN_MAX): New macro.
10508         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10509         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10510         (realloc_trans_if_necessary, free_mbdata):
10511         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10512         This is safe because xpalloc checks that the sizes do not exceed
10513         either SIZE_MAX or PTRDIFF_MAX.
10514         (xpalloc): New function, mostly taken from Emacs.
10515         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10516         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10517         (charclass_index): Check for integer overflow in computing
10518         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10519         added to it later.
10520         (alloc_position_set): Check for integer overflow.  On typical
10521         platforms this check has zero overhead, since the constant
10522         expression is false.
10523         (realloc_trans_if_necessary):
10524         Remove assertion, which I hope Coverity no longer needs.
10526         * modules/dfa (Depends-on): Add intprops, stdint.
10528 2016-12-12  Jim Meyering  <meyering@fb.com>
10530         dfa: add an assertion to avoid coverity false positive
10531         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10532         warned that "newalloc1 - 2" could overflow.
10534 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10536         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10537         * dfa.h (DFA_CASE_FOLD): Remove.
10538         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10540 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10542         link: fix test to declare use of rename()
10543         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10544         -Werror=implicit-function-declaration
10546 2016-12-12  Bruno Haible  <bruno@clisp.org>
10548         fpending: Port to native Windows with MSVC.
10549         * lib/fpending.c: Include stdio-impl.h.
10550         (__fpending): Include all known implementations. Err out if it's not
10551         ported.
10552         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10553         * modules/fpending (Files): Add lib/stdio-impl.h.
10554         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10556 2016-12-12  Bruno Haible  <bruno@clisp.org>
10558         stdioext: Port to native Windows with MSVC.
10559         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10560         (struct _gl_real_FILE): New type.
10561         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10562         Windows.
10563         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10564         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10565         other SystemV derived implementations.
10566         * lib/fpurge.c (fpurge): Likewise.
10567         * lib/freadable.c (freadable): Likewise.
10568         * lib/freadahead.c (freadahead): Likewise.
10569         * lib/freading.c (freading): Likewise.
10570         * lib/freadptr.c (freadptr): Likewise.
10571         * lib/freadseek.c (freadptrinc): Likewise.
10572         * lib/fseeko.c (fseeko): Likewise.
10573         * lib/fseterr.c (fseterr): Likewise.
10574         * lib/fwritable.c (fwritable): Likewise.
10575         * lib/fwriting.c (fwriting): Likewise.
10576         Reported by Gisle Vanem <gvanem@yahoo.no>.
10578 2016-12-11  Jim Meyering  <meyering@fb.com>
10580         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10581         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10582         to work with most shells, but not with the one provided by many
10583         Solaris 10 systems, so running configure with such a /bin/sh evokes
10584         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10585         Reported by Assaf Gordon in
10586         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10588 2016-12-10  Bruno Haible  <bruno@clisp.org>
10590         threadlib: Optimize out runtime test on Solaris >= 10.
10591         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10592         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10593         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10595 2016-12-10  Bruno Haible  <bruno@clisp.org>
10597         stdint: Update doc about Solaris 9.
10598         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10600 2016-12-09  Bruno Haible  <bruno@clisp.org>
10602         c-ctype tests: Fix link error on Solaris 9.
10603         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10604         Reported at <https://savannah.gnu.org/bugs/?46827>.
10606 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10608         dfa: fix performance bug that recomputes trans
10609         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10610         25 on-demand changes.  The bug caused build_state to reset all
10611         d->trans elements to -2 even when d->trans was already non-null.
10612         Use C99 style decls after statements in this function.
10614         same-inode: port to MinGW
10615         Here st_ino is always 0, so change the definition of SAME_INODE so
10616         that 1 means the two files are the same, 0 with st_ino != 0 means
10617         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10618         reported by Bruno Haible (Bug#25146).
10619         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10620         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10622 2016-12-04  Bruno Haible  <bruno@clisp.org>
10624         javacomp-script: Support Java 7 and 8.
10625         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10626         target-version 1.7, 1.8.
10628 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10630         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10631         GPLv2" rewriting.
10633 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10635         * gnulib-tool (func_import): Adhere to the license guideline when
10636         rewriting the license text to "LGPLv3+ or GPLv2":
10637         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10639 2016-12-02  Bruno Haible  <bruno@clisp.org>
10641         localcharset: Avoid theoretical buffer overrun.
10642         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10643         return value from setlocale if it would lead to a buffer overrun.
10645 2016-12-01  Bruno Haible  <bruno@clisp.org>
10647         Relicense some modules under LGPLv2+.
10648         Kevin Cernekee's approval is in
10649         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10650         * modules/fseterr (License): Change to LGPLv2+.
10651         * modules/mbchar (License): Likewise.
10652         * modules/mbiter (License): Likewise.
10653         * modules/mbsnlen (License): Likewise.
10654         * modules/wcwidth (License): Likewise.
10656 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10658         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10659         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10660         OS/2 kLIBC.
10662 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10664         alphasort, scandir: Port to OS/2 kLIBC
10665         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10666         declaration.
10667         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10669 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10671         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10672         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10673         with '/@unixroot'.
10675 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10677         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10678         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10679         OS/2 kLIBC unless TCPV40HDRS is defined.
10681 2016-11-29  Jim Meyering  <meyering@fb.com>
10683         dfa: avoid new infinite loop
10684         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10685         * lib/dfa.c (dfastate): When constructing a new state table, we could
10686         initially declare that we had found a match, and later find that
10687         constraints eliminate that possibility, yet continue to use the
10688         now stale "matched" indicator.  That would lead to an infinite loop.
10689         The solution is to update "matched" when necessary.
10690         Introduced by commit v0.1-983-g403adf1.
10692 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10694         dfa: avoid match middle in multibyte character
10695         * lib/dfa.c (transit_state): If fails in matching single byte characters
10696         on a state including period expression in non-UTF8 multibyte locales,
10697         skip trailing bytes.
10698         (dfa_supported): Revert previous change.
10700 2016-11-27  Jim Meyering  <meyering@fb.com>
10702         dfa: avoid false match in non-UTF8 multibyte locales
10703         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10704         as "not supported" so that callers will resort to using regex-based
10705         matcher.  This will surely hurt performance, but correctness trumps
10706         performance here, and the affected locales are less and less relevant,
10707         these days.  See grep's bug report https://bugs.gnu.org/24975.
10709 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10711         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10712         * lib/ptsname_r.c: Include the appropriate headers.
10713         [__sun]: Delete sys/sysmacros.h include.
10714         [_AIX || __osf__]: Likewise.
10715         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10717 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10719         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10720         * lib/md4.c (md4_process_bytes): The existing define is made internal
10721         in recent versions of glibc, so also use this new public define.
10722         * lib/md5.c (md5_process_bytes): Likewise.
10723         * lib/sha1.c (sha1_process_bytes): Likewise.
10724         * lib/sha256.c (sha256_process_bytes): Likewise.
10725         * lib/sha512.c (sha512_process_bytes): Likewise.
10727 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10729         maint: use a more standard return from mbrtowc test
10730         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10731         from the test program as this often indicates an
10732         unhandled case in the test program.
10733         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10734         (gl_MBRTOWC_SANITYCHECK): Likewise.
10735         (gl_MBRTOWC_NULL_ARG2): Likewise.
10736         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10738 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10740         freopen: work around glibc bug with closed fd
10741         Work around glibc bug#15589, where freopen mishandles the case
10742         where stdin etc. are already closed.
10743         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10744         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10745         instead of __need_FILE, as the latter does not work with glibc.
10746         Include <fcntl.h>, for open flags.
10747         (rpl_freopen): Work around glibc bug.
10748         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10749         * modules/freopen (Depends-on): Add fcntl-h.
10750         * tests/test-freopen.c (main): Test for bug.
10752 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10754         fnmatch: fix typo introduced on 2016-08-17
10755         This fixes the port to non-GCC compilers that lack __builtin_expect.
10756         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10758         dfa: simplify with new function fillset
10759         * lib/dfa.c (fillset): New function.
10760         Use it for clarity when applicable.
10762         dfa: fix glitches with on-demand states
10763         Also, adjust commentary to better match new code.
10764         Some of these glitches predate the recent change.
10765         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10766         only non-initial states.
10767         (dfastate): Rename locals to better match new roles.
10768         Move them into nested scopes if this is easy.
10769         Omit unnecessary calls to zeroset.
10770         Simplify test for whether to throw in the positions of state 0.
10771         Omit C99-ism (decl after statement) since Gawk still wants C89.
10772         (build_state): Omit unnecessary test and assignment.
10773         Fix some confusion that counted transition tables inaccurately
10774         and could cause a memory leak.
10775         (dfaexec_main): Redo to make it clearer to the compiler that
10776         -1 and -2 are the only negative state numbers here.
10778 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10780         dfa: addition of new state on demand
10781         * src/dfa.c (dfastate): Add argument UC, the current input character.
10782         Fill only a group including the character in transition table.
10783         (realloc_trans_if_necessary): Add the dummy state which means that a
10784         transition table is assigned but the next state is not assigned.
10785         (build_state): Return the next state.  All callers updated.
10786         (transit_state_singlebyte): If we get the dummy state,
10787         fill the transition table.
10788         (dfaexec_main): Handle the dummy state.
10789         (free_mbdata, dfafree): Consider the dummy state.
10791 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10793         srclist: sync with released gettext
10794         * config/srclist.txt: Set "release" option to the files under
10795         $GETTEXT.
10797 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10799         srclist: add "release" option
10800         * config/srclist.txt: Change the format so that the first column
10801         of each line points to the top-level directory of the source
10802         archive.
10803         * config/srclist-update: Accept "release" option that checks files
10804         from the most recently tagged revision in the source archive.
10806 2016-11-21  Bruno Haible  <bruno@clisp.org>
10808         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10809         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10810         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10811         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10812         Inline and remove member function 'rpl ()' of the wrapper struct.
10814 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10816         dfa: fix logic typo
10817         Problem reported by Stephane Chazelas (Bug#24973).
10818         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10819         non-simple locales like fr_FR to be treated as simple.
10821 2016-11-20  Jim Meyering  <meyering@fb.com>
10823         fix test driver leaks: exclude, malloc, realloc
10824         * tests/test-exclude.c (main): Fix trivial leak.
10825         * tests/test-malloc-gnu.c (main): Likewise.
10826         * tests/test-realloc-gnu.c (main): Likewise.
10827         With these changes, grep's tests are now leak free.
10828         I.e., running them with ASAN elicits no failure:
10829           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10830             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10832 2016-11-11  Bruno Haible  <bruno@clisp.org>
10834         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10835         * modules/libunistring: (License): Change from LGPL to
10836         "LGPLv3+ or GPLv2".
10837         * modules/libunistring-optional: Likewise.
10838         * modules/unicase/*: Likewise.
10839         * modules/uniconv/*: Likewise.
10840         * modules/unictype/*: Likewise.
10841         * modules/unigbrk/*: Likewise.
10842         * modules/unilbrk/*: Likewise.
10843         * modules/uniname/*: Likewise.
10844         * modules/uninorm/*: Likewise.
10845         * modules/unistdio/*: Likewise.
10846         * modules/unistr/*: Likewise.
10847         * modules/uniwbrk/*: Likewise.
10848         * modules/uniwidth/*: Likewise.
10850 2016-11-12  Bruno Haible  <bruno@clisp.org>
10852         Relicense some modules under LGPLv2+.
10853         Paul Eggert's approval is in
10854         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10855         Eric Blake's approval is in
10856         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10857         Ludovic Courtès's approval is in
10858         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10859         * modules/isnand-nolibm (License): Change to LGPLv2+.
10860         * modules/isnanf-nolibm (License): Likewise.
10861         * modules/isnanl-nolibm (License): Likewise.
10863 2016-11-19  Bruno Haible  <bruno@clisp.org>
10865         Relicense some modules under LGPLv2+.
10866         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10867         modules/vasnprintf.
10868         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10869         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10870         All other significant changes to the files in lib/ of these modules
10871         are from me.
10872         * modules/memcmp2 (License): Change to LGPLv2+.
10873         * modules/amemxfrm (License): Likewise.
10874         * modules/fpieee (License): Likewise.
10875         * modules/fpucw (License): Likewise.
10876         * modules/frexp-nolibm (License): Likewise.
10877         * modules/frexpl-nolibm (License): Likewise.
10878         * modules/printf-frexp (License): Likewise.
10879         * modules/printf-frexpl (License): Likewise.
10880         * modules/printf-safe (License): Likewise.
10881         * modules/signbit (License): Likewise.
10883 2016-11-17  Bruno Haible  <bruno@clisp.org>
10885         Enable Unicode decoder safety unconditionally.
10886         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10887         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10888         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10889         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10890         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10891         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10892         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10893         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10894         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10895         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10896         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10897         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10898         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10899         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10900         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10901         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10902         * lib/unistr/u32-next.c (u32_next): Likewise.
10903         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10904         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10905         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10906         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10907         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10908         CONFIG_UNICODE_SAFETY tests unconditionally.
10909         * tests/unistr/test-u32-mblen.c (main): Likewise.
10910         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10911         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10912         * tests/unistr/test-u32-next.c (main): Likewise.
10913         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10914         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10915         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10916         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10917         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10918         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10919         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10920         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10921         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10922         * lib/unistr/u16-check.c (u16_check): Update comment.
10923         * NEWS: Mention the changes that callers should be aware of.
10925 2016-11-19  Bruno Haible  <bruno@clisp.org>
10927         relocatable-prog-wrapper: Fix breakage on Cygwin.
10928         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10929         (Depends-on): Remove intprops.
10930         * lib/relocwrapper.c: Update dependency tree.
10931         (strerror): Undefine.
10932         * build-aux/install-reloc (func_create_wrapper): Do not compile
10933         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10935 2016-11-19  Bruno Haible  <bruno@clisp.org>
10937         strerror: Make it compile in C++ mode.
10938         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10940 2016-11-15  Pedro Alves  <palves@redhat.com>
10942         sys_time: add gnulib::timeval for C++
10943         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10944         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10945         timeval macro.
10947 2016-11-14  Pedro Alves  <palves@redhat.com>
10949         snippet/c++defs: fix real-floating arg functions in C++ mode
10950         Also, define isfinite, isinf, isnan, signbit in the gnulib
10951         namespace instead of in the global namespace.
10952         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10953         (_GL_END_NAMESPACE): New.
10954         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10955         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10956         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10957         instead of in the global namespace.
10958         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10959         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10960         of in the global namespace.
10962 2016-11-13  Jim Meyering  <meyering@fb.com>
10964         strftime: don't use __THROW
10965         Each use of __THROW would provoke this from gcc-7-to-be:
10967           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10968             on unit local functions [-Wattributes]
10969           static int iso_week_days (int, int) __THROW;
10970           ^~~~~~
10971         * lib/strftime.c (__THROW): Don't define.
10972         Remove each use of __THROW.
10973         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10974         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10976 2016-11-14  Paul Eggert  <eggert@union>
10978         obstack: port to gcc -fcheck-pointer-bounds
10979         Problem found by 'make check' failure on bleeding-edge coreutils
10980         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10981         6.2.0-5ubuntu12), configured via "./configure
10982         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10983         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10984         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10985         New macro, copied from fts_.h.
10986         (struct _obstack_chunk.contents): Use it.
10988 2016-11-14  Eric Blake  <eblake@redhat.com>
10990         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10991         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10992         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10994 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10996         strptime: fix compile error in recent change
10997         * lib/strptime.c (__strptime_internal): Fix ported code.
10999 2016-11-11  Bruno Haible  <bruno@clisp.org>
11001         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
11002         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
11003         (func_import): Extend determination of license_incompatibilities.
11004         (func_create_testdir): Extend table of license compatibility. Handle
11005         also the licenses GPLv3+, GPL, LGPLv3+.
11007 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
11009         strftime: tune %q
11010         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
11012         Merge strftime.c changes from glibc
11013         This incorporates:
11014         2007-10-16 [BZ #5184] Add tzset_called argument
11015         2008-06-13 [BZ #6612] pass reference to tzset_called around
11016         2009-10-30 Implement Burmese language locale for Myanmar
11017         2010-01-09 Add support for XPG7 testing
11018         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
11019         2015-10-20 Convert miscellaneous function definitions to prototype style
11020         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
11021         it anyway and this lessens the difference between gnulib and glibc.
11022         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
11023         (__THROW): Define if standard headers do not.
11024         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
11025         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
11026         Declare with __THROW.
11027         (__strftime_internal): Rename from strftime_case_. Add arg for
11028         whether tzset is called.  All uses changed.  Call tzset at most
11029         once.  Allow %OC, for Burmese.
11030         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
11031         Don't assume values are in range.
11033 2016-11-12  Eric Blake  <eblake@redhat.com>
11035         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
11036         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
11037         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
11038         different value.
11040 2006-11-12  Pedro Alves  <palves@redhat.com>
11042         Fix gnulib C++ namespace support and std::frexp
11043         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
11044         _GL_CXXALIASWARN.
11046 2006-11-12  Pedro Alves  <palves@redhat.com>
11048         GNULIB_NAMESPACE::func need not pull in rpl_func
11049         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
11050         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
11051         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
11052         struct instead of a function pointer.
11054 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
11056         manywarnings: fix -Wno-missing-field-initializers detection
11057         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
11058         to be independent of -Wunused-variable.  I.E. ensure the latter
11059         warning doesn't occur so that detection of the former is accurate.
11061 2016-11-05  Pádraig Brady  <pbrady@fb.com>
11063         strftime,strptime: support %q to represent the quarter
11064         * lib/strftime.c (strftime_case_): Add %q case.
11065         * lib/strptime.c (__strptime_internal): Likewise.
11066         * tests/test-strftime.c (quarter_test): A new test case.
11068 2016-11-03  Eric Blake  <eblake@redhat.com>
11070         bootstrap: Fix get_version() for AIX 5.3
11071         * build-aux/bootstrap (get_version): Factor out sed script, since
11072         indented comments choke AIX 5.3 sed.
11073         Reported-by: Michael Felt <aixtools@gmail.com>
11075 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11077         intprops: port to older XL C
11078         Problem reported by Alexander Samoilov in:
11079         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
11080         http://savannah.nongnu.org/bugs/?49448
11081         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
11082         Define to 1 only for XL C 12.1 or later, since this bug
11083         occurs in XL C for AIX 6.0 but not in 12.1.
11085 2016-11-02  Pádraig Brady  <P@draigBrady.com>
11087         backupfile: initialize default suffix within the implementation
11088         * lib/backupfile.c (find_backup_file_name): Initialize the
11089         global variable here, to simplify usage, and to only call
11090         getenv() when needed.
11092 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11094         futimens: remove FIXME for old Linux kernels
11095         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
11096         this in 2012" FIXME, like that for utimensat.
11098         utimensat: remove FIXME for old Linux kernels
11099         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
11100         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
11101         this in 2012" FIXME, by assuming the file system bug is absent
11102         unless demonstrated to be present.  We no longer need to worry
11103         about Linux kernel 2.6.32 when building with newer kernels.
11105 2016-10-16  Bruno Haible  <bruno@clisp.org>
11107         qsort_r: Fix macrology for platforms that lack the function.
11108         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
11109         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
11110         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
11111         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
11112         not exist.
11113         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
11114         the function exists.
11115         * modules/qsort_r: Add comments.
11117 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11119         sys_types: fix Texinfo typos
11120         * doc/glibc-functions/gnu_dev_major.texi:
11121         * doc/glibc-functions/gnu_dev_makedev.texi:
11122         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
11124 2016-10-26  John David Anglin  <dave.anglin@bell.net>
11126         getprogname: port to HP-UX
11127         See Bug#24805.
11128         * lib/getprogname.c (getprogname) [__hpux]: Port.
11129         * tests/test-getprogname.c (STREQ) [__hpux]:
11130         Special-case for HP-UX limitations on program name length.
11132 2016-10-20  Bruno Haible  <bruno@clisp.org>
11134         Update doc about target platforms.
11135         * doc/gnulib-intro.texi (Target Platforms): Update list.
11137 2016-10-15  Bruno Haible  <bruno@clisp.org>
11139         opendir, readdir, closedir: Relicense under LGPLv2+.
11140         * modules/opendir (License): Change to LGPLv2+.
11141         * modules/readdir (License): Likewise.
11142         * modules/closedir (License): Likewise.
11144 2016-10-16  Bruno Haible  <bruno@clisp.org>
11146         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
11147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
11148         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
11149         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
11150         HAVE_DECL_STRERROR_R.
11152 2016-10-16  Bruno Haible  <bruno@clisp.org>
11154         Make the 'argp' module work without the 'error' module.
11155         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
11157 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11159         diffseq: restore TOO_EXPENSIVE heuristic
11160         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
11161         (Bug#24715).  The simplest solution is to restore the
11162         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
11163         using a higher threshold to avoid Bug#16848 on smaller files.
11164         * lib/diffseq.h (struct context): Restore member too_expensive.
11165         (struct partition): Restore members lo_minimal, hi_minimal.
11166         (diag, compareseq): Restore arg find_minimal.  All uses changed.
11167         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
11168         1993 to make 'diff' run faster (but not as well) on large inputs,
11169         but use a threshold of 4096 instead of the old 256.
11170         * lib/fstrcmp.c (strcmp_bounded):
11171         * lib/git-merge-changelog.c (compute_differences):
11172         Adjust to diffseq.h changes.
11174 2016-10-22  Bruno Haible  <bruno@clisp.org>
11176         iconv: Avoid compilation error when bootstrapping GNU libiconv.
11177         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
11178         declaration yet, define ICONV_CONST to empty.
11180 2016-10-15  Bruno Haible  <bruno@clisp.org>
11182         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
11183         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
11184         module.
11186 2016-10-16  Bruno Haible  <bruno@clisp.org>
11188         system-quote tests: Avoid compiler warning on AIX.
11189         * tests/test-system-quote-child.c (fopen): Redefine like the system's
11190         <stdio.h> does.
11192 2016-10-16  Bruno Haible  <bruno@clisp.org>
11194         Fix some "gcc -Wall" warnings.
11195         * tests/test-ffsl.c (main): Use variable x, not i.
11196         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
11197         freopen.
11198         * tests/test-sethostname1.c (main): Explicitly ignore the return value
11199         of sethostname.
11201 2016-10-16  Bruno Haible  <bruno@clisp.org>
11203         gnulib-tool: Make --create-testdir on all modules work again.
11204         * gnulib-tool (func_create_testdir): Don't include the
11205         non-recursive-gnulib-prefix-hack module.
11207 2016-10-21  Daiki Ueno  <ueno@gnu.org>
11209         libunistring: change the maintainer to 'all'
11210         * modules/gen-uni-tables, modules/libunistring:
11211         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
11212         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
11213         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
11214         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
11215         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
11216         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
11217         * modules/uniwidth/*: Change the maintainer to 'all'.
11219 2016-10-16  Bruno Haible  <bruno@clisp.org>
11221         Simplify "configure: checking ..." messages.
11222         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
11223         AC_MSG_NOTICE.
11224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11226 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11228         quotearg-tests: pacify gcc -Wall
11229         Problem reported by Bruno Haible in:
11230         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
11231         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
11232         * tests/test-quotearg.h: ... from here.
11234 2016-10-20  Pádraig Brady  <P@draigBrady.com>
11236         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
11237         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
11238         Needed on Centos <= 4.
11240 2016-10-20  Jim Meyering  <meyering@fb.com>
11242         printf.m4: fix a bug in detecting printf %j support
11243         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
11244         uintmax_t is defined in neither stdint.h nor inttypes.h.
11245         Before, this macro might have mistakenly set
11246         gl_cv_func_printf_sizes_c99=yes on such a system.
11247         Spotted by Zev Weiss.
11249 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11251         sched: substitute HAVE_SYS_CDEFS_H too
11252         Problem reported by Tom G. Christensen in:
11253         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
11254         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
11255         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
11257 2016-10-19  Pádraig Brady  <P@draigBrady.com>
11259         quotearg: never write beyond the returned length
11260         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
11261         scan of the string when we initially encounter a single quote when
11262         shell quoting, so that if we then switch to a more concise quoting method
11263         we will not have written beyond that returned length.
11264         This is significant for sh-quote, which has separate routines
11265         to determine the length and do the actual quoting.
11266         * tests/test-quotearg.h: Reinstate the buffer bounds checking
11267         now that we never write more than the returned length.
11269 2016-10-18  Bruno Haible  <bruno@clisp.org>
11271         getprogname tests: Avoid failure in packages that use libtool.
11272         * tests/test-getprogname.c (main): Strip "lt-" prefix.
11273         Based on a patch by Jim Meyering.
11275 2016-10-16  Bruno Haible  <bruno@clisp.org>
11277         getprogname: Fix test failure on Cygwin. Comments.
11278         * lib/getprogname.h: Add comments.
11279         * lib/getprogname.c: Add comments. Fix #elif indentation.
11280         * tests/test-getprogname.c (main): On Cygwin, expect a result without
11281         ".exe" suffix.
11283 2016-10-16  Bruno Haible  <bruno@clisp.org>
11285         Make sure the libunistring detection rejects older versions with a
11286         known bug.
11287         * modules/unistr/u8-strtok (configure.ac): Bump required version.
11288         * modules/unistr/u16-strtok (configure.ac): Likewise.
11289         * modules/unistr/u32-strtok (configure.ac): Likewise.
11291 2016-10-18  Bruno Haible  <bruno@clisp.org>
11293         sh-quote, system-quote: revert regression of unit test.
11294         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
11295         * tests/test-system-quote-main.c (check_one): Likewise.
11297 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11299         quotearg: fix stale tests
11300         * tests/test-quotearg.c [locale_results]: Add the missing str7
11301         entries to the expected results.
11302         * tests/test-system-quote-main.c (check_one): Don't enforce that we
11303         don't write beyond the returned length, since that's no longer the
11304         case if we switch to a more concise quoting style.
11305         * tests/test-sh-quote.c (check_one): Likewise.
11306         (main): Adjust for the new more concise quoting style.
11307         Reported by Bruno Haible.
11309 2016-10-16  Jim Meyering  <meyering@fb.com>
11311         non-recursive-gnulib-prefix-hack: fix inconsequential typo
11312         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
11313         to "$1".  This macro is always invoked with $1 == lib.
11314         Spotted by Bruno Haible
11316 2016-10-16  Bruno Haible  <bruno@clisp.org>
11318         Fix a test crash.
11319         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
11320         fails.
11322 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11324         test-limits-h: suppress -Woverlength-strings
11325         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
11327 2016-10-15  Bruno Haible  <bruno@clisp.org>
11329         gettime, timespec, utimens: Relicense under LGPL.
11330         * modules/gettime (License): Change to LGPL.
11331         * modules/timespec (License): Likewise.
11332         * modules/utimens (License): Likewise.
11334 2016-10-14  Bruno Haible  <bruno@clisp.org>
11335             Pádraig Brady  <P@draigBrady.com>
11337         canonicalize-lgpl: Support the case path_max > INT_MAX.
11338         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11339         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11341 2016-10-13  Jim Meyering  <meyering@fb.com>
11343         getprogname: IBM z/OS: avoid NULL-dereference
11344         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11345         upon strdup failure.
11347 2016-10-12  Jim Meyering  <meyering@fb.com>
11349         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11350         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11351         and an abbreviated diagnostic rather than verify with the full one,
11352         because the full-length strings would evoke warnings from gcc with
11353         -Woverlength-strings.
11355 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11357         stdint: port SIZE_MAX to glibc s390
11358         Problem reported by Eric Blake in:
11359         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11360         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11361         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11362         correct type, if possible.
11364 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11366         getprogname: port to IBM z/OS
11367         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11369 2016-10-11  Jim Meyering  <meyering@fb.com>
11371         maint: remove stray space after "." in AC_DEFINE comment.
11372         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11373         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11375 2016-10-05  Jim Meyering  <meyering@fb.com>
11377         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11378         * lib/long-options.c (parse_long_options): Add a break statement
11379         to avoid this new warning/failure:
11380         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11381           --create-testdir --dir=/t/x --with-tests --test long-options
11382         ../../gllib/long-options.c: In function 'parse_long_options':
11383         ../../gllib/long-options.c:66:12: error: this statement may \
11384           fall through [-Werror=implicit-fallthrough]
11385                    (*usage_func) (EXIT_SUCCESS);
11386                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11388 2016-10-05  Jim Meyering  <meyering@fb.com>
11390         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11391         Testing this module would fail when using GCC 7 like this:
11392         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11393           --dir=/tmp/x --with-tests --test utimecmp
11394         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11395         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11396           [-Werror=bool-operation]
11397                          time_t s = src_s & ~ (res == 2 * BILLION);
11398                                             ^
11399         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11400           [-Werror=bool-operation]
11401                src_s &= ~ (res == 2 * BILLION);
11402                         ^
11403         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11404         Instead, make it explicit that we intend to apply it to 0 or 1.
11406 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11408         dfa: save memory for states
11409         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11410         states if dfa has a lot of caches.
11412 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11414         wchar, wctype-h: fix for MinGW 3.22.2
11415         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11416         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11417         when included from <string.h>.
11418         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11419         convention for MinGW 3.22.2, to solve issues with their
11420         wctype.h when included from <ctype.h>.
11422 2016-10-05  Jim Meyering  <meyering@fb.com>
11424         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11425         * lib/long-options.c (parse_long_options): Add a break statement
11426         to avoid this new warning/failure:
11427         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11428           --create-testdir --dir=/t/x --with-tests --test long-options
11429         ../../gllib/long-options.c: In function ‘parse_long_options’:
11430         ../../gllib/long-options.c:66:12: error: this statement may \
11431           fall through [-Werror=implicit-fallthrough]
11432                    (*usage_func) (EXIT_SUCCESS);
11433                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11435         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11436         Testing this module would fail when using GCC 7 like this:
11437         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11438           --dir=/tmp/x --with-tests --test utimecmp
11439         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11440         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11441           [-Werror=bool-operation]
11442                          time_t s = src_s & ~ (res == 2 * BILLION);
11443                                             ^
11444         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11445           [-Werror=bool-operation]
11446                src_s &= ~ (res == 2 * BILLION);
11447                         ^
11448         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11449         Instead, make it explicit that we intend to apply it to 0 or 1.
11451 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11453         quotearg: minimize shell quoting using double quotes
11454         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11455         quote in encountered then use double quotes (c style quoting)
11456         when possible, as it simplifies the quoting.
11457         * tests/test-quotearg-simple.c: Add test cases.
11458         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11459         for the fact we now may write beyond the returned length.
11461 2016-10-02  Jim Meyering  <meyering@fb.com>
11463         vasnprintf.c: avoid spurious warning from GCC 7
11464         The presence of cpp directives renders this "FALLTHROUGH" comment
11465         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11466         from GCC 7 built from git on 2016-10-02.
11467         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11468         directives, so that it takes effect once again.  This is clearly
11469         not a proper change, and I will revert it once this bug is fixed:
11470         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11472 2016-10-01  Jim Meyering  <meyering@fb.com>
11474         getprogname: correct the test for a __progname variable
11475         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11476         and AC_LINK_IFELSE to check for a global __progname.  If found,
11477         define HAVE_VAR___PROGNAME.
11478         * lib/getprogname.c (getprogname): Reflect the new name of the
11479         feature- checked preprocessor symbol:
11480         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11482 2016-09-28  Jim Meyering  <meyering@fb.com>
11484         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11485         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11486         fall-through case with a /* fallthrough */ comment.
11488         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11489         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11490         /* fallthrough */ comment.
11492         getprogname: avoid __progname vs program_invocation_short_name pitfall
11493         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11494         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11495         not with Fedora 24's glibc-2.23.1-10.
11496         * lib/getprogname.c (__progname): Move this declaration down...
11497         (getprogname): ... into the #elif block where used, and make it
11498         explicitly "extern".
11500         getprogname: port to OpenBSD 5.1
11501         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11502         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11503         * modules/getprogname (configure.ac): Move most of this code...
11504         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11505         increment serial number, and add a test for __progname.
11506         https://bugs.gnu.org/24562
11507         Reported by Nelson H. F. Beebe.
11509 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11511         sched: port to GCC 6.2.1 on macOS Sierra
11512         Problem reported by Denis Davydov in:
11513         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11514         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11515         Include <sys/cdefs.h> before <sched.h>.
11516         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11517         so that we needn’t worry about the sched.h include bug here.
11518         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11519         and include it before <sched.h> if it exists, when
11520         checking for <sched.h>.
11522         tests/init.sh: port Alpine fix to AIX 7.1
11523         * tests/init.sh (compare_): When attempting to use diff -U3,
11524         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11525         diff -u not outputting a space after leading '+', as the users
11526         of 'compare' should not be that picky about its output format.
11527         In the AIX 7.1 case, return with diff exit status (or with 2 if
11528         trouble), instead of some random nonzero exit status.
11529         * tests/test-init.sh (test_compare): Remove space after leading
11530         '+', so that AIX 7.1 'diff' passes the test.
11532 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11534         nl_langinfo: pacify GCC
11535         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11536         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11538         stdint: also set GL_GENERATE_LIMITS_H
11539         Problem reported by Jim Meyering in:
11540         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11541         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11543         limits-h, stdint: Don't assume extensions, fix typo
11544         * m4/limits-h.m4 (gl_LIMITS_H):
11545         * m4/stdint.m4 (gl_STDINT_H):
11546         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11547         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11548         reported by Jim Meyering in:
11549         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11551 2016-09-21  Jim Meyering  <meyering@fb.com>
11553         getprogname: port to AIX
11554         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11555         and strdup to obtain a short program name string.  Using code from
11556         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11557         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11558         Assaf Gordon reported that this new file would fail to compile on
11559         AIX-7.1 32bit.
11561 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11563         extensions: fix typo in comment
11564         * m4/extensions.m4: Sync from Autoconf master.
11566         stdint: support new _WIDTH macros
11567         * doc/posix-headers/stdint.texi: Document this.
11568         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11569         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11570         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11571         * modules/stdint (Depends-on): Add limits-h.
11572         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11573         * modules/stdint-tests (Depends-on): Add extensions, so that
11574         INTMAX_MAX etc. are defined.
11575         * tests/test-stdint.c: Verify the new macros.
11577         limits-h: new module
11578         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11579         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11580         * doc/posix-headers/limits.texi: Document new module.
11581         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11582         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11584         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11585         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11586         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11587         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11589 2016-09-15  Eric Blake  <eblake@redhat.com>
11591         sys_types: avoid glibc 2.25 warnings about major()
11592         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11593         older autoconf.
11594         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11595         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11596         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11597         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11599         mountlist: include sysmacros.h for glibc
11600         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11601         AC_HEADER_MAJOR.
11602         * lib/mountlist.c (includes): Use correct headers.
11604 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11606         extensions: port to more ISO C TSes
11607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11608         master, to add support for more recent ISO C TRs and TSes.
11610 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11612         intprops: new macro TYPE_WIDTH
11613         * lib/intprops.h (TYPE_WIDTH): New macro.
11614         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11615         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11616         * lib/parse-datetime.y (parse_datetime2):
11617         Use it.
11619         extensions: port to recent ISO C TRs
11620         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11621         Sync from Autoconf master, to add support for recent ISO C TRs.
11622         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11623         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11624         the MinGW option is not an extension.
11626 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11628         dfa: port to Solaris 9
11629         Problems reported by Tom G. Christensen in:
11630         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11631         * modules/dfa (Depends-on): Add isblank.
11632         * modules/dfa-tests (dfa_match_aux_LDADD):
11633         Rename from test_stat_LDADD, to fix typo.
11634         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11636 2016-09-10  Jim Meyering  <meyering@fb.com>
11638         strverscmp: avoid link failure on OS X
11639         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11640         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11642 2016-08-16  Jim Meyering  <meyering@fb.com>
11644         dfa: new module, importing grep's DFA matcher
11645         Since grep's DFA matcher is now being used by two gnulib-enabled
11646         projects, grep and sed, it makes sense to version-control its
11647         sources and unit tests in one place: here.
11648         * modules/dfa: New module.
11649         * modules/dfa-tests: New file.
11650         * lib/dfa.c: New file, from grep.
11651         * lib/dfa.h: Likewise.
11652         * lib/localeinfo.c: Likewise.
11653         * lib/localeinfo.h: Likewise.
11654         * tests/dfa-match-aux.c: Likewise.
11655         * tests/dfa-invalid-char-class.sh: Likewise.
11656         * tests/dfa-match.sh: Likewise, with minor changes.
11657         * MODULES.html.sh (Misc): Add "dfa" to this list.
11659 2016-09-09  Jim Meyering  <meyering@fb.com>
11661         getprogname-tests: don't depend on assert-h
11662         * modules/getprogname-tests (Depends-on): Remove assert-h.
11663         It was not needed, and in fact would cause build failure for
11664         coreutils on some systems.  Reported by Assaf Gordon in https:
11665         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11667 2016-09-07  Jim Meyering  <meyering@fb.com>
11669         getprogname-tests: work also when EXEEXT is nonempty
11670         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11671         * tests/test-getprogname.c (main): Use it.
11672         Suggested by Gisle Vanem.
11674 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11676         getprogname: fix errors in previous change
11677         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11678         s/program_invocation_name/base/
11679         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11681 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11683         parse-datetime: restrict debug output to input string
11684         * lib/parse-datetime.y (parse_datetime2): If we parse
11685         all of the input but determine it's invalid, ensure
11686         we don't output the now invalid input pointer.
11687         This issue was seen with `date -d 'now +1'`.
11689 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11691         flexmember: new macro FLEXALIGNOF
11692         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11693         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11694         this macro.  Update comments.
11696 2016-09-07  Jim Meyering  <meyering@fb.com>
11698         getprogname: port to systems with __argv (mingw, msvc)
11699         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11700         last_component: more general than open coding it with hard-coded "/".
11701         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11702         * modules/getprogname (Depends-on): Add dirname-lgpl.
11703         (configure.ac): Check for __argv in <stdlib.h>.
11704         * modules/getprogname-tests: New file.
11705         * tests/test-getprogname.c: New file.
11706         Suggested by Gisle Vanem in
11707         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11709 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11711         flexmember: port better to GCC + valgrind
11712         With a char[] flexible array member in a struct with nontrivial
11713         alignment, GCC-generated code can access past the end of the
11714         array, because GCC assumes there are padding bytes to get the
11715         struct aligned.  So the common idiom of malloc (offsetof (struct
11716         s, m), n) does not properly allocate an n-byte trailing member, as
11717         malloc’s argument should be the next multiple of alignof (struct s).
11718         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11719         Although C11 apparently permits this GCC optimization (i.e., there
11720         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11721         See the thread containing:
11722         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11723         * lib/flexmember.h: New file.
11724         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11725         * lib/localename.c, lib/time_rz.c:
11726         Include flexmember.h.
11727         * lib/fnmatch_loop.c (struct patternlist):
11728         * lib/localename.c (struct hash_node):
11729         Use FLEXIBLE_ARRAY_MEMBER.
11730         * lib/fnmatch_loop.c (EXT):
11731         * lib/fts.c (fts_alloc):
11732         * lib/glob.c (glob_in_dir):
11733         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11734         * lib/localename.c (gl_lock_define_initialized):
11735         * lib/time_rz.c (tzalloc):
11736         Use FLEXSIZEOF instead of offsetof.
11737         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11738         Check that the size of the struct can be taken.
11739         * modules/flexmember (Files): Add lib/flexmember.h.
11740         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11741         Add flexmember.
11743 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11745         getprogname: port to Solaris 10
11746         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11747         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11748         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11750         stdalign: correct mistake in alignof doc
11751         Problem reported by Joseph Myers in:
11752         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11753         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11754         alignof(S) where S is a structure containing a flexible array
11755         member.  The Gnulib substitute does not support this, but C11 does.
11757 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11759         main.mk: remove sc_program_name, since there is no more need to
11760         use set_program_name in tools (getprogname is enough for most
11761         of the cases).
11762         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11763         * top/maint.mk (sc_program_name): Remove.
11765 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11767         Port tests away from progname, since modules that need the
11768         program name already depend on getprogname.
11769         * modules/acl-tests (Depends-on): Remove progname.
11770         * modules/argmatch (Depends-on): Likewise.
11771         * modules/argmatch-tests (Depends-on): Likewise.
11772         * modules/argp-tests (Depends-on): Likewise.
11773         * modules/argp-version-etc-tests (Depends-on): Likewise.
11774         * modules/array-list-tests (Depends-on): Likewise.
11775         * modules/array-oset-tests (Depends-on): Likewise.
11776         * modules/avltree-list-tests (Depends-on): Likewise.
11777         * modules/avltree-oset-tests (Depends-on): Likewise.
11778         * modules/avltreehash-list-tests (Depends-on): Likewise.
11779         * modules/carray-list-tests (Depends-on): Likewise.
11780         * modules/copy-file-tests (Depends-on): Likewise.
11781         * modules/exclude-tests (Depends-on): Likewise.
11782         * modules/fchownat-tests (Depends-on): Likewise.
11783         * modules/fdopendir-tests (Depends-on): Likewise.
11784         * modules/filenamecat-tests (Depends-on): Likewise.
11785         * modules/fstatat-tests (Depends-on): Likewise.
11786         * modules/fstrcmp-tests (Depends-on): Likewise.
11787         * modules/linked-list-tests (Depends-on): Likewise.
11788         * modules/linkedhash-list-tests (Depends-on): Likewise.
11789         * modules/mkdirat-tests (Depends-on): Likewise.
11790         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11791         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11792         * modules/obstack-printf-tests (Depends-on): Likewise.
11793         * modules/openat-tests (Depends-on): Likewise.
11794         * modules/parse-datetime-tests (Depends-on): Likewise.
11795         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11796         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11797         * modules/quotearg-simple-tests (Depends-on): Likewise.
11798         * modules/quotearg-tests (Depends-on): Likewise.
11799         * modules/rbtree-list-tests (Depends-on): Likewise.
11800         * modules/rbtree-oset-tests (Depends-on): Likewise.
11801         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11802         * modules/spawn-pipe-tests (Depends-on): Likewise.
11803         * modules/system-quote-tests (Depends-on): Likewise.
11804         * modules/uniname/uniname-tests (Depends-on): Likewise.
11805         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11806         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11807         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11808         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11809         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11810         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11811         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11812         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11813         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11814         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11815         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11816         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11817         * modules/unlinkat-tests (Depends-on): Likewise.
11818         * modules/version-etc-tests (Depends-on): Likewise.
11819         * modules/xalloc-die-tests (Depends-on): Likewise.
11820         * modules/xmemdup0-tests (Depends-on): Likewise.
11821         * modules/xprintf-posix-tests (Depends-on): Likewise.
11822         * modules/xvasprintf-tests (Depends-on): Likewise.
11823         * tests/test-argmatch.c: Do not include progname.h.
11824         (main) Stop calling set_program_name.
11825         * tests/test-argp-version-etc.c: Likewise.
11826         * tests/test-argp.c: Likewise.
11827         * tests/test-argv-iter.c: Likewise.
11828         * tests/test-array_list.c: Likewise.
11829         * tests/test-array_oset.c: Likewise.
11830         * tests/test-avltree_list.c: Likewise.
11831         * tests/test-avltree_oset.c: Likewise.
11832         * tests/test-avltreehash_list.c: Likewise.
11833         * tests/test-carray_list.c: Likewise.
11834         * tests/test-copy-acl.c: Likewise.
11835         * tests/test-copy-file.c: Likewise.
11836         * tests/test-exclude.c: Likewise.
11837         * tests/test-fchownat.c: Likewise.
11838         * tests/test-fdopendir.c: Likewise.
11839         * tests/test-filenamecat.c: Likewise.
11840         * tests/test-fstatat.c: Likewise.
11841         * tests/test-fstrcmp.c: Likewise.
11842         * tests/test-linked_list.c: Likewise.
11843         * tests/test-linkedhash_list.c: Likewise.
11844         * tests/test-mkdirat.c: Likewise.
11845         * tests/test-nonblocking-pipe-main.c: Likewise.
11846         * tests/test-nonblocking-socket-main.c: Likewise.
11847         * tests/test-obstack-printf.c: Likewise.
11848         * tests/test-openat.c: Likewise.
11849         * tests/test-parse-datetime.c: Likewise.
11850         * tests/test-pipe-filter-gi1.c: Likewise.
11851         * tests/test-pipe-filter-gi2-main.c: Likewise.
11852         * tests/test-pipe-filter-ii1.c: Likewise.
11853         * tests/test-pipe-filter-ii2-main.c: Likewise.
11854         * tests/test-quotearg-simple.c: Likewise.
11855         * tests/test-quotearg.c: Likewise.
11856         * tests/test-rbtree_list.c: Likewise.
11857         * tests/test-rbtree_oset.c: Likewise.
11858         * tests/test-rbtreehash_list.c: Likewise.
11859         * tests/test-sameacls.c: Likewise.
11860         * tests/test-set-mode-acl.c: Likewise.
11861         * tests/test-spawn-pipe-main.c: Likewise.
11862         * tests/test-system-quote-main.c: Likewise.
11863         * tests/test-unlinkat.c: Likewise.
11864         * tests/test-version-etc.c: Likewise.
11865         * tests/test-xalloc-die.c: Likewise.
11866         * tests/test-xfprintf-posix.c: Likewise.
11867         * tests/test-xmemdup0.c: Likewise.
11868         * tests/test-xprintf-posix.c: Likewise.
11869         * tests/test-xvasprintf.c: Likewise.
11870         * tests/uniname/test-uninames.c: Likewise.
11871         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11872         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11873         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11874         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11875         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11876         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11877         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11878         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11879         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11880         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11881         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11882         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11883         * tests/test-c-stack.c: (program_name): Do not define.
11884         (main): Do not set program_name.
11885         * tests/test-closein.c: Likewise.
11886         * tests/test-xstrtol.c: Likewise.
11887         * tests/test-yesno.c: Likewise.
11889 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11891         Port modules to use getprogname explicitly, instead of requiring
11892         progname to be used (or program_name to be provided).
11893         * lib/argmatch.c: Do not include progname.h.
11894         [TEST] (program_name): Do not define.
11895         [TEST] (main): Call getprogname instead of using program_name.
11896         * lib/c-stack.c: Do not include progname.h.
11897         (program_name): Do not define.
11898         (die): Call getprogname instead of using program_name.
11899         * lib/chdir-long.c: Do not include progname.h.
11900         [TEST_CHDIR] (main): Do not set program_name.
11901         * lib/error.c [!_LIBC]: Include progname.h.
11902         [!_LIBC] (program_name): Define using getprogname.
11903         * lib/euidaccess.c: Do not include progname.h.
11904         [TEST] (main): Do not set program_name.
11905         * lib/git-merge-changelog.c: Include getprogname.h instead of
11906         progname.h.
11907         (usage): Call getprogname instead of using program_name.
11908         (main): Likewise.  Stop calling set_program_name.
11909         * lib/group-member.c: Do not include progname.h.
11910         [TEST] (main): Do not set program_name.
11911         * modules/argmatch (Depends-on): Add getprogname.
11912         * modules/c-stack (Depends-on): Likewise.
11913         * modules/error (Depends-on): Likewise.
11914         * modules/git-merge-changelog (Depends-on): Likewise.
11915         Also remove progname.
11917 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11919         * NEWS: Document the deprecation of the 'progname' module.
11921 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11923         getprogname: new module
11924         This provides a LGPL module for getting the name of the current
11925         program, using the same API found on *BSD systems.
11926         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11927         * modules/getprogname: New files.
11928         * MODULES.html.sh (Misc): Add getprogname.
11930 2016-09-02  Jim Meyering  <meyering@fb.com>
11932         manywarnings: add -fno-common
11933         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11934         to the list.  Quoting the manual, "Compiling with -fno-common is
11935         useful on targets for which it provides better performance, or if
11936         you wish to verify that the program will work on other systems that
11937         always treat uninitialized variable declarations this way [putting
11938         it in the data section]."  If diffutils had been using this sooner,
11939         it would have prevented this duplicate declaration issue:
11940         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11942 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11944         parse-datetime: Fix typo.
11945         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11947 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11949         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11950         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11951         GCC 5 and 6 that have __builtin_sub_overflow but not
11952         __builtin_sub_overflow_p.  With the recent changes, these
11953         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11954         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11955         since the former needs just one runtime comparison whereas the
11956         latter needs two.
11958         strverscmp: sync with glibc
11959         Although this doesn't exactly synchronize with glibc
11960         byte-for-byte, it makes the code behave the same as glibc.
11961         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11962         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11963         difference shouldn't matter in practical use.  All uses changed
11964         back to isdigit.
11965         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11966         (next_state): Now unsigned char array; redo elements.
11967         (result_type): Now signed char array; redo elements.
11968         (__strverscmp): Fix glibc bug 9913 by using new states.
11969         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11971 2016-08-29  Jim Meyering  <meyering@fb.com>
11973         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11974         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11975         similarly to how it was done to intprops.h.
11977 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11979         intprops.h: port recent changes to GCC 6.2.0
11980         * lib/intprops.h (__has_builtin): Move earlier.
11981         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11982         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11983         the last argument can be null.  All uses changed.
11984         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11985         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11986         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11987         and it's not clear which GCC versions it works for.
11988         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11989         its definiens.
11991         intprops.h: use __typeof__ with GCC 7
11992         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11993         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11994         This avoids computing the expression's value (which might overflow!).
11996 2016-08-29  Jim Meyering  <meyering@fb.com>
11998         intprops.h, xalloc-oversized.h: work with gcc 7
11999         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
12000         __builtin_mul_overflow each accept a NULL pointer as the third
12001         argument.  However in gcc 7, that is no longer accepted.
12002         Instead, one must use the "_p"-suffixed names, with which, the
12003         third parameter is no longer a pointer.
12004         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
12005         the definition: not true for gcc 7 and subsequent.
12006         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
12007         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12008         Provide new definitions for gcc 7 and subsequent.
12009         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
12010         that works with gcc-7.
12012         intprops.h: fix missing-backslash problems
12013         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
12014         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
12016 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12018         intprops: fix paren typo on old platforms
12019         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
12020         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
12021         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
12022         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
12023         && !defined LLONG_MAX]:
12024         Remove stray paren.
12026         intprops: port to OpenVMS
12027         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
12028         * doc/posix-headers/limits.texi: Document the problem.
12029         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
12030         Define if not already defined.
12032 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
12034         parse-datetime: improve debug implementation
12035         Follow-up to commit 12ad79069 ("add optional debug printing").
12036         Improve parse-datetime's debug implementation: remove macros,
12037         replace global debug flag variable with a function parameter,
12038         use nstrftime for formatting.
12039         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
12040         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
12041         (parse_datetime2): New function, accepts 'flags' parameter, supporting
12042         debug flag. Existing interface 'parse_datetime' left unmodified.
12043         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
12044         (struct parser_control): add 'parse_datetime_debug' member variable.
12045         (parse_datetime): Call new function 'parse_datetime2' without debug.
12046         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
12047         pc.parse_datetime_debug variable as needed.
12048         (to_year): Accept new flags parameter, instead of using global variable.
12049         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
12050         use struct 'debug' variable instead of global variable.
12051         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
12052         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
12053         correspnding functions directly instead of using macros.
12054         * modules/parse-datetime: Add gnulib's strftime module.
12056 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
12058         c-strcase-tests: port to EBCDIC
12059         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
12060         which assume ASCII encoding semantics to run only in ASCII
12061         mode, as they fail in EBCDIC.
12063         sigpipe-tests: fix typo
12064         * tests/test-sigpipe.sh: C, not B.
12066 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12068         canonicalize-lgpl: fix errno after malloca fails
12069         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
12070         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
12071         * lib/canonicalize-lgpl.c (__realpath):
12072         Don't assume malloca sets errno on failure.
12074 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12076         strtod: port errno handling to z/OS
12077         * lib/strtod.c (strtod): Save and restore errno more reliably.
12079 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
12081         strtod: port to z/OS
12082         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
12083         implementation.
12085 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12087         strtod: port to z/OS
12088         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
12089         implementation.
12091         regex, string: rename to avoid '__string'
12092         * lib/regex.h, lib/string.in.h: Do not use the identifier
12093         '__string', as it is effectively reserved by string.h on z/OS.
12095         c-strcase-tests, wcwidth-tests: depend on c-ctype
12096         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
12097         Add c-ctype.
12099 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
12101         thread: port to z/OS
12102         * lib/glthread/thread.c, lib/glthread/thread.h:
12103         Rudimentary gl_thread support for z/OS.
12105         maint: port tests to z/OS errno behavior
12106         * tests/test-nonblocking-reader.h:
12107         * tests/test-nonblocking-writer.h:
12108         Accommodate z/OS errno code preferences. (I believe this should
12109         still be within spec; IBM is good at following the letter if not
12110         the spirit of such things.)
12112         maint: preprocessor changes to support z/OS
12113         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
12114         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
12115         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
12116         * tests/test-nonblocking-pipe.h:
12118         fclose, strstr-simple, wchar: port to z/OS
12119         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
12120         Changes to the Autoconf M4 code to support z/OS.  Note that
12121         fclose() is broken in a different way on z/OS than it is on other
12122         systems, thus the special-case in fclose.m4.
12124         iconv_open-utf-tests, iconv-tests: port to EBCDIC
12125         * tests/test-iconv-utf.c, tests/test-iconv.c:
12126         Added appropriately conditional #pragmas so that the test strings
12127         in test-iconv-utf.c are correctly interpreted in ASCII instead of
12128         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
12129         addressed in a more portable way by simply rewriting all the ASCII
12130         literal characters as octal escapes, but then you would lose the
12131         partial readability that the strings have now. Also, iconv_open()
12132         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
12134         c-strcase-tests, wcwidth-tests: port to EBCDIC
12135         * tests/test-c-strcasecmp.c: Include c-ctype.h.
12136         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
12137         * tests/test-wcwidth.c: Likewise.
12139 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12141         stdbool: don't require _Bool for C++
12142         Problem reported by David Seifert in:
12143         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
12144         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
12145         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
12146         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
12147         stricter about checking that bool and _Bool are compatible in C.
12149 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12151         getdelim: remove dependency on realloc-posix
12152         * lib/canonicalize-lgpl.c (alloc_failed)
12153         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
12154         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
12155         Use __set_errno where needed, for consistency.
12156         * lib/getdelim.c (alloc_failed): New function.
12157         (getdelim): Use it.
12159 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
12161         parse-datetime: add optional debug printing
12162         Print parsing information, warnings, and errors to stderr.
12163         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
12164         * lib/parse-datetime.y:
12165         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
12166         (PROGRESS*): Same as DEBUG, for progress reporting.
12167         (dbg_printf): Print message to stderr, with 'date' prefix.
12168         (struct parser_control): Add 'debug_*_seen' variables.
12169         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
12170         (debug_print_current_time, debug_print_relateive_time): Prints the
12171         current/relative date/time value of parser_control.
12172         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
12173         (to_year): Warn about 2-digit year parsing.
12174         (yylex):   Warn about unrecognized words.
12175         (get_effective_timezone): Returns current timezone in minutes.
12176         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
12177         clearly and unambigiously as possible.
12178         (debug_mktime_not_ok): Print detailed information about failed
12179         date/time values.
12180         (parse_datetime): Add DEBUG messages for failures, warnings. Add
12181         PROGRESS messages for status messages.
12182         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
12184 2016-08-06  Jim Meyering  <meyering@fb.com>
12186         tests/init.sh: exclude dash with bad "local" semantics
12187         * tests/init.sh (gl_shell_test_script_): Add a function to
12188         eliminate a shell like "dash" (unlike bash, zsh) that has
12189         surprising/risky "local var='...'" semantics.  Inspired by
12190         the problem and discussion in https://bugs.gnu.org/24116#11.
12192 2016-08-02  Ján Tomko  <jtomko@redhat.com>
12194         maint.mk: expand the prohibit_doubled_word regex
12195         This check has a static list of words that are checked for
12196         repetitions.  Expand it before running the perl script to
12197         avoid using expensive captures.  This decreases the cost
12198         for libvirt from 1.66s to 0.66s.
12199         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
12200         (sc_prohibit_doubled_word): Use it.
12202 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12204         useless-if-before-free: skip non-matching lines early
12205         * build-aux/useless-if-before-free: First match each line with the
12206         simple/quick /\bif\b/ and reject if there is no match. This often
12207         saves the cost of the much more involved regular expression.
12208         For libvirt, this decreases the cost from 1.44s to 1.02s.
12210 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12212         maint.mk: speed up sc_po_check
12213         sc_po_check would skip files based on their names, or on the
12214         existence of files with derived names. Rewrite it to use perl
12215         instead of shell to make the check faster.
12216         * top/maint.mk (perl_translatable_files_list_): Define.
12217         (sc_po_check): Use it.
12219 2016-07-30  Ján Tomko  <jtomko@redhat.com>
12221         maint.mk: speed up require_config_h_first
12222         Instead of spawning three processes per file,
12223         rewrite the check in perl and run it once for all the files.
12224         * top/maint.mk (perl_config_h_first_): Define.
12225         (sc_require_config_h_first): Use it in place of shell code.
12227 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12229         maint.mk: speed up sc_po_check
12230         sc_po_check would skip files based on their names, or on the
12231         existence of files with derived names. Rewrite it to use perl
12232         instead of shell to make the check faster.
12233         * top/maint.mk (perl_translatable_files_list_): Define.
12234         (sc_po_check): Use it.
12236 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12238         obstack: pacify GCC 6 with -Wnull-dereference
12239         Problem reported by Assaf Gordon in:
12240         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
12241         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
12242         Declare with __attribute_noreturn__.
12243         * lib/obstack.h (__attribute_noreturn__): New macro.
12245 2016-07-13  Eric Blake  <eblake@redhat.com>
12247         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
12248         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
12249         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
12251 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12253         doc: mention glibc SSIZE_MAX buglet
12254         * doc/posix-headers/limits.texi (limits.h): Document the bug.
12256 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
12258         printf-posix: Fix mingw build
12259         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
12260         expression for detecting C symbol prefixes but forgot to qoute square
12261         brackets in the command line arguments for grep.  That way when
12262         building with mingw the condition was false although it ought to be
12263         true instead.  In particular scenarios this led to the following
12264         compile error:
12266             Cannot export rpl_printf: symbol not found
12267             Cannot export rpl_scanf: symbol not found
12268             collect2: error: ld returned 1 exit status
12270         Fix this by properly quoting square brackets.
12272 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12274         mktime: call tzset as per POSIX
12275         Problem reported by Ludovic Courtès in:
12276         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
12277         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
12278         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
12280 2016-06-26  Pádraig Brady  <P@draigBrady.com>
12282         fts: handle readdir() errors
12283         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
12284         but also upon error when it will also set errno.  Therefore
12285         flag the error case from readdir().  We treat the case where
12286         no items are read the same as if the dir can't be accessed,
12287         i.e. by setting fts_errno to FTS_DNR.
12289 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12291         intprops: port better to GCC 7
12292         GCC 7 __builtin_add_overflow supports a new usage form, where the
12293         last argument is a null pointer, and which merely returns 1 if an
12294         overflow would occur.  This is a constant expression if all
12295         arguments are constants, and should generate faster code when code
12296         needs to be generated.
12297         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
12298         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12299         Use builtin operations if available.
12300         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
12301         operations are available, as it's almost surely faster.
12303 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12305         intprops-test: port to GCC 6
12306         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
12307         since the bug is not fixed in GCC 6.1.
12309 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12311         xalloc-oversized: port to GCC 7; fewer warnings
12312         GCC 7 will have a better way to deal with integer overflow.
12313         Plus, fix a warnings problem reported by Tim Ruehsen in:
12314         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
12315         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
12316         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
12317         For GCC 5, use __xalloc_oversized if both args are constants,
12318         or if pedantic.
12320 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12322         regex: port to Sun C
12323         Reported by Daiki Ueno.
12324         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
12325         __restrict, in prototype.  This fixes a problem I introduced in
12326         the 2016-02-19 merge from glibc.
12328 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12330         stdbool: Restore __bool_true_false_are_defined check
12331         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12332         __bool_true_false_are_defined is still defined, even with C++11.
12334 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12336         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12337         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12339 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12341         Use GCC_LINT, not lint
12342         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12343         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12344         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12345         Document problem with lint and _Noreturn.
12346         * lib/diffseq.h (IF_LINT, IF_LINT2):
12347         * lib/fts.c (sccsid):
12348         * lib/getndelim2.c (IF_LINT):
12349         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12350         (gl_linked_iterator_from_to):
12351         * lib/gl_anytree_list2.h (gl_tree_iterator)
12352         (gl_tree_iterator_from_to):
12353         * lib/gl_anytree_oset.h (gl_tree_iterator):
12354         * lib/gl_array_list.c (gl_array_iterator)
12355         (gl_array_iterator_from_to):
12356         * lib/gl_array_oset.c (gl_array_iterator):
12357         * lib/gl_carray_list.c (gl_carray_iterator)
12358         (gl_carray_iterator_from_to):
12359         * lib/idcache.c:
12360         * lib/inet_ntop.c (IF_LINT):
12361         * lib/regcomp.c (build_charclass_op, create_tree):
12362         * lib/regex_internal.c (re_acquire_state)
12363         (re_acquire_state_context):
12364         * lib/trigl.c (rcsid):
12365         * lib/trim.c (IF_LINT):
12366         * lib/vasnprintf.c (IF_LINT):
12367         * lib/verify.h (assume):
12368         Treat GCC_LINT like lint.
12370 2016-05-29  Bruno Haible  <bruno@clisp.org>
12372         secure_getenv: Port to many more platforms.
12373         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12374         functions.
12375         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12376         for non-BSD Unix platforms and for native Windows.
12377         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12378         Prompted by a request from Nikos Mavrogiannopoulos.
12380 2016-05-27  Eric Blake  <eblake@redhat.com>
12382         canonicalize: Fix broken probe for realpath.
12383         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12384         in logic introduced in 54615b95.
12386 2016-05-26  Eric Blake  <eblake@redhat.com>
12388         unsetenv: relax to LGPLv2+
12389         * modules/unsetenv (License): Match setenv license.
12391 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12393         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12394         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12395         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12396         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12397         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12398         (generate_html, generate_info, generate_tex, outdir)
12399         (source_extra, split, srcfile, texarg): Move above 'version'.
12400         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12402 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12404         manywarnings: update for GCC 6.1
12405         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12406         Add GCC 6.1 options that apply to C.
12407         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12408         do not apply to C, are obsolescent, etc.
12410 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12412         glob: size_t overflow checks
12413         * lib/glob.c (__has_builtin): New macro.
12414         (size_add_wrapv, glob_use_alloca): New static functions.
12415         (glob, glob_in_dir): Check for size_t overflow in several places,
12416         and fix some size_t checks that were not quite right.
12418         glob: don't assume INT_MAX < SIZE_MAX
12419         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12420         latter is not portable to (probably theoretical) hosts where
12421         SIZE_MAX <= INT_MAX.
12423 2016-05-09  Bruno Haible  <bruno@clisp.org>
12425         Fix undefined behaviour in gettext.h.
12426         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12427         pointer's value after the storage it points to has been freed.
12428         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12429         Spotted by Coverity.
12431 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12433         git-version-gen: avoid undefined shift
12434         Problem reported by Mosè Giordano in:
12435         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12436         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12437         with --prefix or --fallback but without a later argument.  While
12438         we're at it, omit unnecessary quotes.
12440 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12442         glob: merge glibc changes into lib/glob.c
12443         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12444         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12445         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12446           struct dirent [BZ #19779]
12447         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12448           callback gl_readdir
12449         2015-10-20 Convert miscellaneous function definitions to prototype style
12450         2015-10-20 Convert 113 more function definitions to prototype style
12451           (files with assertions)
12452         2015-06-12 Fix getlogin_r namespace (bug 18527).
12453         2014-02-10 Use glibc_likely instead __builtin_expect.
12454         2013-10-20 When glob pattern contains a trailing slash match only
12455           directories. Fixes bug 10278.
12456         2013-09-04 glob: silence -Wattribute warnings
12457         2013-06-07 Avoid use of "register" as optimization hint.
12458         2012-09-25 Use size_t instead of int for internal variables in glob
12459           (bug 14621)
12460         2011-07-20 Check for overflows in expressions
12461         2011-05-28 Remove unused variable
12462         2011-05-22 Add a few more alloca size checks
12463         2010-03-27 Whitespace fixes
12464         2010-03-27 Fix one more issue with the glob patch
12465         2010-03-24 Fix glob with empty pattern
12466         2008-05-27 Remove useless more "if" tests before "free"
12467         * modules/glob (Depends-on): Add stdint.
12469 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12471         mktime: port to stricter signed overflow checking
12472         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12473         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12474         instead of merely for INT_MAX * 2.  In practice platforms that
12475         do the latter also do the former.
12476         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12477         (shr): New static function, replacing SHR.  All uses changed.
12478         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12479         and TIME_T_MAX.  All uses changed.
12480         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12481         Use long_int, not time_t.
12482         (long_int_avg): New static function, replacing time_t_avg.
12483         All uses changed.  Round toward positive infinity, as that
12484         generates slightly better code.
12485         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12486         by INT_ADD_WRAPV.
12487         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12488         (convert_time): New static function.
12489         (ranged_convert): Use it
12490         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12491         Use simpler test for loop exit.
12492         (__mktime_internal): Store negative of guessed offset, to simplify
12493         overflow checking.  Remove no-longer-needed test for small time_t
12494         overflows.
12496         mktime: speed up DEBUG_MKTIME benchmarks
12497         Call tzset just once, at the start, rather than for every test
12498         case.  This lets us measure the CPU cost of mktime as opposed to
12499         that of tzset.  This is relevant when TZ is not set and glibc is
12500         being used.  This speeds up tests by a factor of 40 on my Fedora
12501         23 x86-64 platform.
12502         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12503         to call tzset and as a sanity check.  Later on, use localtime_r
12504         instead of localtime.
12506         mktime: resurrect DEBUG_MKTIME testing
12507         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12508         Include <string.h>, for strcmp.
12510         mktime: simplify DEBUG_MKTIME
12511         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12512         Simplify later usage accordingly.
12514         Port mktime_internal offset to unsigned time_t
12515         This avoids some assumptions about wraparound arithmetic on
12516         signed integer overflow.
12517         * lib/mktime-internal.h (mktime_offset_t): New type.
12518         (mktime_internal): Use it in decl.
12519         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12521         * lib/mktime.c (__mktime_internal, localtime_offset):
12522         * lib/timegm.c (timegm): Use it.
12523         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12524         (gl_FUNC_MKTIME): Require it.
12526 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12528         xstrtol: prohibit monstrosities like "1bB"
12529         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12530         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12531         "B" only if the first suffix needs a base.
12532         * tests/test-xstrtol.sh: Test this.
12534 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12536         xstrtod: reinstate setting of *result upon ERANGE
12537         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12538         the returned limits upon ERANGE, so allow and document that.
12540 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12542         xstrtod: modify *result only if no errors
12543         * lib/xstrtod.c (XSTRTOD).
12545 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12547         btowc: document problems in C locale
12548         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12549         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12551 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12553         mktime: improve integer overflow checking
12554         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12555         (WRAPV): Remove; no longer needed.
12556         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12557         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12558         Remove.  Use intprops.h defns instead.
12559         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12560         Use bool for Boolean, for clarity.
12561         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12562         detect integer overflow.
12563         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12565         intprops: check two's complement assumption
12566         Suggested by Eric Blake in:
12567         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12568         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12569         short, int, long, and (if available) long long are two's complement.
12570         * modules/intprops (Depends-on): Add 'verify'.
12572         intprops, mktime, strtol: assume two's complement
12573         These macros were not portable to every conforming C11 ones'
12574         complement platform.  It's not worth the hassle of porting to some
12575         platforms that use ones' complement or signed magnitude, as such
12576         platforms are almost purely theoretical nowadays and porting even
12577         to some of them makes the code harder to review for little
12578         practical benefit.  Problem reported by Florian Weimer in:
12579         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12580         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12581         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12582         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12583         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12584         (TYPE_SIGNED_MAGNITUDE):
12585         Remove.  All uses rewritten to assume two's complement, which is
12586         all we can reasonably test nowadays anyway.
12587         * top/maint.mk (_intprops_names): Remove the removed macros.
12589 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12591         stdint: port to strict C11 left shift
12592         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12593         Pacify clang -Wshift-negative-value, which should be an issue only
12594         on clang setups where stdint.h does not conform to C11 or to C++11.
12595         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12597 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12599         mbrtowc: work around glibc bug#19932
12600         Fix mbrtowc so that it never returns -1 in the C locale,
12601         as this conflicts with a future version of POSIX
12602         http://austingroupbugs.net/view.php?id=663#c2738
12603         and causes problems with GNU grep: http://bugs.gnu.org/23234
12604         See glibc bug 19932:
12605         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12606         * doc/posix-functions/mbrlen.texi (mbrlen):
12607         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12608         Document the glibc bug.
12609         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12610         Include hard-locale.h, locale.h.
12611         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12612         if the bug is possible.
12613         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12614         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12615         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12616         * modules/mbrtowc (Depends-on): Add hard-locale.
12617         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12618         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12619         * tests/test-mbrtowc5.sh: New file.
12621 2016-04-03  Pedro Alves  <palves@redhat.com>
12623         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12624         When gnulib is configured in C++ mode for a system with a working C99
12625         implementation of stdint.h that predates C++11, gnulib ends up
12626         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12627         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12628         MinGW is LLP64.  Instead of trying to detect the right types, detect
12629         good-enough-pre-C++11 stdint.h and in such case define
12630         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12631         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12632         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12633         conforms to C99.  If it does, check whether it hides symbols
12634         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12635         does, define those macros in config.h.
12637 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12639         argp: merge changes from glibc
12640         Among other things, this should fix problems found by a Coverity
12641         scan and reported by Andrei Borzenkov:
12642         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12643         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12644         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12645         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12646         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12647         * lib/argp.h:
12648         Merge changes from glibc.
12649         * tests/test-argp-2.sh: Adjust to match new behavior.
12651 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12653         stddef: support configuring with g++
12654         Problem reported by Ángel González in:
12655         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12656         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12657         Do not define if _GCC_MAX_ALIGN_T is defined.
12659 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12661         test-framework-sh: minor cleanups
12662         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12663         since strictly speaking POSIX requires this.
12664         (setup_): Do not use the variable 'fail', as that makes the
12665         trace output harder to read ('fail' is typically used by
12666         tests to mean the test failed).  Treat // portably.
12667         Check that new directory is not merely a sibling of the tmp dir.
12668         Avoid unnecessary invocation of tr.
12670         test-framework-sh: revert port to NetBSD 7.0
12671         It was a false alarm; I misinterpreted Assaf Gordon's report.
12672         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12673         Restore.
12674         (test_dir_): Adjust to mktempd_ change.
12675         (mktempd_): Restore 2nd arg.  Use -t again.
12676         (base_template_, template_, nx_): Resurrect old code.
12678         Port better to Alpine Linux
12679         Its diff implementation does not support -c, but does support -U3.
12680         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12681         * tests/init.sh (diff_opt_): New var.
12682         (compare_): Prefer diff -U3 to diff -c to plain diff.
12684 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12686         test-framework-sh: port to NetBSD 7.0
12687         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12688         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12689         Remove.  All uses removed.
12690         (test_dir_): Adjust to mktempd_ change.
12691         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12692         (base_template_, template_, nx_): Simplify by hardcoding.
12694 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12696         gitlog-to-changelog: suppress ignored chatter
12697         * build-aux/gitlog-to-changelog: Do not warn about skipping
12698         an SHA if it would have been ignored anyway.
12700 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12702         setlocale: add "sv" to Windows language table
12703         * lib/setlocale.c (language_table) [W32]: Add "sv".
12704         Reported in <https://savannah.gnu.org/bugs/?44588>.
12706 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12708         sys_select: port to new Cygwin
12709         Problem reported by Ken Brown in:
12710         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12711         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12712         diagnostics.
12714 2016-03-17  Jim Meyering  <meyering@fb.com>
12716         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12717         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12718         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12719           test-userspec.c:176:9: error: statement is indented as if it were \
12720             guarded by... [-Werror=misleading-indentation]
12721                    {
12722                    ^
12723           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12724                  if (!diag && !T[i].result)
12725                  ^~
12727 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12729         time_rz: port to clang -Wunused-const-variable
12730         * lib/time_rz.c (TZ): Remove.  All uses removed.
12732         std-gnu11: improve clang support
12733         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12734         2016-03-15 Also try clang
12735         2016-03-15 Port C11 and C++11 testing to clang
12737         select: port more to Intel 2016.1.150 compiler
12738         Problem reported by Balázs Hajgató in:
12739         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12740         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12742 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12744         select: try to port to 2016.1.150 compiler
12745         Problem reported by Balázs Hajgató in:
12746         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12747         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12748         POSIX specifies 'restrict'.
12750 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12752         localename-tests: memory allocation fixes
12753         * tests/test-localename.c (test_locale_name)
12754         (test_locale_name_thread): Don't call freelocale on a locale
12755         that was the base of a successful newlocale, as that
12756         results in a double free.  Problem reported by Assaf Gordon.
12757         (test_locale_name_thread): Free saved names after use, to pacify
12758         gcc -fsanitize=address.
12760 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12762         intprops: make .h file license match module
12763         * lib/intprops.h: Change the license wording to match glibc format.
12764         This is what is in modules/intprops anyway.  See:
12765         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12767 2016-03-08  Eric Blake  <eblake@redhat.com>
12769         acl: fix missing return on Cygwin
12770         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12771         fall off end of function. Fixes http://bugs.gnu.org/22949
12773 2016-03-05  Bruno Haible  <bruno@clisp.org>
12775         extern-inline: port to PGI CC
12776         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12777         keyword 'inline'.
12778         Reported by Adam James Stewart in:
12779         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12781 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12783         signbit: port back to pre-C++11 GCC
12784         * lib/math.in.h (signbit): Do previous change only if
12785         __cplusplus < 201103.  See Jonathan Wakely in:
12786         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12788 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12790         mountlist: recognize autofs-mounted remote file systems, too
12791         Originally reported at: https://bugzilla.redhat.com/1309247
12792         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12793         "-hosts" because it is used by autofs to mount remote file systems.
12795 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12797         signbit: port to C++ with GCC 6
12798         * lib/math.in.h (signbit) [__cplusplus]:
12799         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12800         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12802         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12804         regex: make it closer to libc
12805         Make Idx a signed type, rather than possibly unsigned.
12806         The unsignedness was not really buying us anything, since the code
12807         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12808         it signed allows us to use -1 and -2 with abandon, like libc does,
12809         thus lessening the number of differences between gnulib and libc.
12810         Also, it should help avoid gratuitous warnings like the one
12811         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12812         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12815         regex: merge patches from libc
12817         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12818         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12819         Convert miscellaneous function definitions to prototype style.
12820         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12821         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12822         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12823         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12824         (re_search_internal):
12825         Convert to prototype-style function definition.
12826         Use internal_function for internal functions.
12828 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12830         stdalign: port to older HP and IBM cc
12831         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12832         C compilers, by checking their version numbers.  These version
12833         numbers appear in MariaDB and in Qt code that dates way back and
12834         that conditiionally uses the 'aligned' attribute.
12836 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12838         stdalign: port to clang 3.7.0
12839         Problem reported by Herbert J. Skuhra in:
12840         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12841         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12842         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12843         https://llvm.org/bugs/show_bug.cgi?id=26547
12845 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12847         readdir_r: now obsolescent
12848         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12849         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12851 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12853         misc: port better to gcc -fsanitize=address
12854         Without these patches, ./configure CFLAGS='-fsanitize=address'
12855         would compute incorrect values.  This patch fixes some (but not all)
12856         test failures with recent glibc, with this configuration.
12857         * m4/acl.m4 (gl_ACL_GET_FILE):
12858         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12859         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12860         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12861         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12862         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12863         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12864         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12865         * m4/getline.m4 (gl_FUNC_GETLINE):
12866         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12867         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12868         * m4/regex.m4 (gl_REGEX):
12869         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12870         * tests/test-calloc-gnu.c (main):
12871         * tests/test-duplocale.c (main):
12872         * tests/test-getgroups.c (main):
12873         * tests/test-getline.c (main):
12874         * tests/test-inttostr.c (main):
12875         * tests/test-localename.c (test_locale_name)
12876         (test_locale_name_thread, test_locale_name_environ)
12877         (test_locale_name_default):
12878         * tests/test-regex.c (main):
12879         * tests/test-setlocale1.c (main):
12880         * tests/test-stat.h (test_stat_func):
12881         Free heap-allocated storage before exiting.
12882         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12883         Don't match *_foo symbols inserted by AddressSanitizer.
12884         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12886 2016-02-02  Jim Meyering  <meyering@fb.com>
12888         verify-tests: also remove stray test-verify.Tpo
12889         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12890         to remove the test-verify.Tpo file that is left behind by
12891         the automake-generated rule upon compilation failure.
12892         Otherwise, that .Tpo file would cause a failed "make distcheck"
12893         at least for grep.
12895 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12897         std-gnu11: new module
12898         This makes it easier for applications to prefer C11 and C++11
12899         to older variants, when compiling C and C++ code.
12900         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12901         a nontrivial chunk of GPLed Autoconf source code.
12902         * COPYING: Mention the m4/*.m4 copyright situation.
12903         * MODULES.html.sh (std-gnu11): New module.
12904         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12906 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12908         get-permissions, strftime: fix grammar in comments
12909         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12910         some grammar fixes Alan Mackenzie made to GNU Emacs.
12912 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12914         gettext: mark as obsolete
12915         Suggested by Paul Eggert in:
12916         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12917         * modules/gettext (Status): Mark as obsolete.
12918         (Notice): Suggest to use 'gettext-h' instead.
12919         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12920         the 'gettext' module.
12922 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12924         gnulib-tool: don't give up on ln -s so easily
12925         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12926         because an earlier one failed.  The targets could be on different
12927         file systems.  Problem reported by KO Myung-Hun in:
12928         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12930         closedir: fix OS/2-related typos
12931         Problem reported by KO Myung-Hun in:
12932         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12933         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12934         in the last couple of changes.
12936 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12938         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12939         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12940         copying a directory.
12942 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12944         regex: treat [x] as x if x is a unibyte encoding error
12945         Problem reported by Aharon Robbins in:
12946         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12947         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12948         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12950         closedir, dirfd, opendir: port to OpenSolaris 5.10
12951         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12952         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12953         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12954         Don't use ${word##pat} substitution, as it doesn't work in
12955         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12956         http://bugs.gnu.org/22443#11
12958 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12960         bootstrap: use American spelling
12961         * build-aux/bootstrap: Honor American spelling.
12963 2016-01-22  Karl Berry  <karl@freefriends.org>
12965         * doc/posix-functions/localtime.texi,
12966         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12968 2016-01-21  Bruno Haible  <bruno@clisp.org>
12970         hash-pjw-bare: fix comment
12971         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12973         wcwidth: Replace also on OpenBSD 5.8
12974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12975         * doc/posix-functions/wcwidth.texi: Update.
12977 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12979         gnu-web-doc-update: fix addition of new files
12980         If there were already added (emnpty) dirs,
12981         then cvs aborts the add with the message:
12982           cvs [add aborted]: there is a version in <./dirname> already
12983         * build-aux/gnu-web-doc-update: Add directories separately
12984         to the addition of files, to avoid the above issue
12985         impacting the addition of files.
12987 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12989         utimens-tests: avoid pulling gettext .m4 files
12990         Although this is not the right fix to the original problem:
12991         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12992         it makes it possible again for consumer projects to use arbitrary
12993         version of gettext, through the steps described at:
12994         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12995         See here for details:
12996         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12997         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12998         'gettext'.
12999         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
13000         'gettext'.
13002 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13004         regex: pacify static checkers
13005         Problem and draft fix reported by Aharon Robbins in:
13006         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13007         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
13008         Clear memory to pacify static checkers.
13010         regex: fix [ diagnostic
13011         Problem and fix reported by Aharon Robbins in:
13012         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13013         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
13015         regex: fix memory leaks
13016         Problem and draft fix reported by Aharon Robbins in:
13017         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13018         * lib/regcomp.c (build_range_exp, build_charclass_op)
13019         * lib/regex_internal.c (re_dfa_add_node):
13020         Fix memory leak on failure.
13022 2016-01-18  Pádraig Brady  <P@draigBrady.com>
13024         fts: don't unconditionally use leaf optimization for NFS
13025         NFS st_nlink are not accurate on all implementations,
13026         leading to aborts() if that assumption is made.
13027         See <https://bugzilla.redhat.com/1299169>
13028         * lib/fts.c (leaf_optimization_applies): Remove NFS from
13029         the white list, and document the issue.
13031 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13032             KO Myung-Hun  <komh@chollian.net>
13034         gnulib-tool: don't assume ln -s works
13035         * gnulib-tool (func_ln_s): New function.
13036         (func_ln): Use it.
13038 2016-01-15  KO Myung-Hun  <komh@chollian.net>
13040         utimes: detect utimes() correctly on OS/2 kLIBC
13041         utimes() of OS/2 kLIBC has some limitations.
13042         1. OS/2 itself supports a file date since 1980 year in local time.
13043         2. OS/2 itself supports only even seconds for a file time.
13044         3. utimes() of OS/2 kLIBC does not work on an opened file.
13045         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
13046         * doc/posix-functions/utimes.texi: Document the above limitations of
13047         utimes() on OS/2 kLIBC.
13049 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13050             KO Myung-Hun  <komh@chollian.net>
13052         openat_proc_name: port to OS/2 kLIBC
13053         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
13054         instead of /proc/self/fd.
13055         * lib/openat-proc.c (openat_proc_name):
13056         Don't assume file name length is less than INT_MAX.
13057         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
13059 2016-01-14  KO Myung-Hun  <komh@chollian.net>
13061         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
13062         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
13063         definitions of intptr_t and uintptr_t (which use int and unsigned)
13064         to avoid clashes with declarations of system functions like sbrk.
13065         * lib/stdint.in.h (intptr_t, uintptr_t): Check
13066         _INTPTR_T_DECLARED before defining them.
13068         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
13069         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
13070         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
13071         Declare on kLIBC.
13072         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
13073         fd associated with dirp.
13074         (_gl_register_dirp_fd): New. Register fd associated with dirp to
13075         dirp_fd_list.
13076         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
13077         (dirfd): Implemented for kLIBC.
13078         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
13079         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
13080         succeeds.
13081         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
13082         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13083         (REPLACE_DIRFD): Define to 1 if replaced.
13084         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
13085         * modules/closedir (Depends-on): Add dirfd.
13086         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
13087         condition.
13088         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
13089         * modules/opendir (Depends-on): Add dirfd.
13091         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
13092         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
13093         * lib/dup.c (dup_nothrow): New.
13094         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
13095         (klibc_dup2): New.
13096         * lib/fcntl.c (klibc_fcntl): New.
13097         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
13098         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
13099         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
13100         fd.
13102         pipe_filter_ii_execute: port to OS/2 kLIBC
13103         Pipes on kLIBC do not support O_NONBLOCK like Win32.
13104         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
13105         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
13106         Reuse Win32 code on OS/2 kLIBC.
13107         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
13108         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
13110         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
13111         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
13112         static inline function.  The implementation of wcwidth in wcwidth.c
13113         causes a "conflicting types" error.
13114         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
13116         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
13117         spawn() on OS/2 kLIBC is not silly like one on Windows
13118         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
13119         empty string on OS/2 kLIBC.
13121         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
13122         On OS/2 kLIBC, select() works only on sockets.
13123         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
13125         binary-io: don't put fd in binary mode if it is a console on EMX
13126         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
13127         a console on EMX.
13129 2016-01-15  Pádraig Brady  <P@draigBrady.com>
13131         doc: mention unfixed issues with unsupported localtime() values
13132         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
13133         returns nonsense for localtime(2^56).
13134         * doc/posix-functions/localtime_r.texi: Likewise.
13136 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13138         doc: mention setlocale() issues on OpenBSD
13139         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
13140         never fails, and the need to check categories individually.
13142 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13144         sig2str: list all signals on FreeBSD >= 7
13145         FreeBSD >= 7 is contravening POSIX by not defining NSIG
13146         to the maximal statically defined signal value.
13147         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
13148         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
13149         where available, even when NSIG is defined.
13151 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13153         acl-permissions: port to USE_ACL==0 platforms
13154         I ran into this problem when building bleeding-edge GNU Emacs
13155         with gcc -fsanitize=address on Fedora 23.  On this platform
13156         the ACL library does not pass the 'configure' test and Emacs
13157         then does not build due in part to what appear to be typos in the
13158         ACL part of Gnulib.
13159         * lib/acl-internal.c (free_permission_context):
13160         * lib/acl-internal.h (struct permission_context):
13161         Test whether USE_ACL is nonzero, not whether it is defined.
13163 2016-01-12  Martin Sebor  <msebor@redhat.com>
13165         mktime: rename macro to avoid glibc clash
13166         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
13167         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
13169 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13171         Port "$@" to OpenIndiana ksh93
13172         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
13173         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
13174         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
13175         bug long-dead shells, so remove the workaround.
13176         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
13177         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13178         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
13179         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
13180         Use "$@" instead of ${1+"$@"}.
13182         Port Universal Time settings to strict POSIX
13183         * build-aux/announce-gen, build-aux/bootstrap:
13184         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
13185         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13186         * build-aux/gnupload, build-aux/mkinstalldirs:
13187         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
13188         * build-aux/update-copyright, build-aux/useless-if-before-free:
13189         * build-aux/vc-list-files, tests/test-strftime.c:
13190         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
13191         but POSIX says the behavior of TZ="UTC" is undefined.
13193 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
13195         msvc-inval: fix problem with unset shell var
13196         Problem reported by Karl Berry in:
13197         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
13198         * modules/msvc-inval (Depends-on):
13199         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
13200         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
13202 2016-01-01  Pádraig Brady  <P@draigBrady.com>
13204         tests: for compare_(), use cmp -s where available
13205         * tests/init.sh (compare_): Only fall back to cmp without
13206         the POSIX defined -s option, where this is not available.
13208 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13210         version-etc: new year
13211         * build-aux/gendocs.sh (version):
13212         * doc/gendocs_template:
13213         * doc/gendocs_template_min:
13214         * doc/gnulib.texi:
13215         * lib/version-etc.c (COPYRIGHT_YEAR):
13216         Update copyright dates by hand in templates and the like.
13217         * all files: Run 'make update-copyright'.
13219 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
13221         human: fix output buffer overrun by 1
13222         * lib/human.c (human_readable): Fix off-by-one typo in buffer
13223         calculation that could lead to a one-byte buffer overrun.
13225 2015-12-28  Daiki Ueno  <ueno@gnu.org>
13227         maint: fix operator precedence in mbrtowc test
13228         This is a fix for test breakage introduced by commit 45228d96; the
13229         equality expression must be parenthesized when negated with '!',
13230         otherwise we always get:
13232           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
13234         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
13235         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13237 2015-12-23  James Youngman  <jay@gnu.org>
13239         regexprops-generic: update from regex.h
13240         * doc/regexprops-generic.texi: update by running the regexprops binary
13241         from findutils (the command line is 'regexprops "Regular Expressions"
13242         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
13243         gnulib with GNU grep had made this document out-of-date.
13245 2015-12-23  Pádraig Brady  <P@draigBrady.com>
13247         strftime-tests: avoid false failure on OS X
13248         * tests/test-strftime.c (struct localtime_rz_test): Add an
13249         ahistorical member which is used to warn rather than fail
13250         when tm_isdst isn't set for such entries.  This is the case for
13251         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
13253 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
13255         fts: ensure leaf optimization is used for NFS
13256         NFS provides usable dirent.d_type but not necessarily for all entries
13257         of large directories.  See <https://bugzilla.redhat.com/1252549>
13258         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
13260 2015-12-20  Pádraig Brady  <P@draigBrady.com>
13262         fts: enable leaf optimization for XFS
13263         XFS provides usable dirent.d_type only for DT_DIR,
13264         but the noleaf optimization still applies.
13265         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
13267 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13269         intprops: comment fix
13270         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
13271         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
13273         intprops-test: work around GCC bug 68971
13274         Problem reported by Pádraig Brady in:
13275         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
13276         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
13277         (main): Add a case that better tests 64-bit long in this area.
13279 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
13281         gnulib-tool: allow multiple --local-dir usage
13282         * gnulib-tool: Use --local-dir to construct compound
13283         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
13284         PATH_SEPARATOR early.
13285         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
13286         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
13287         func_determine_path_separator because that needs to be detected
13288         earlier now.
13289         (func_determine_path_separator): New function.
13290         (func_path_foreach, func_path_foreach_inner): New functions.
13291         (func_path_prepend, func_path_append): Likewise.
13292         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
13293         (func_lookup_file, func_all_modules): Use new functions to work
13294         with local_gnulib_path.
13295         (func_modules_in_dir, func_exists_module): New callbacks for
13296         func_path_foreach.
13297         (func_exists_module, func_get_tests_module): Likewise.
13298         (func_is_local_file, func_should_symlink): New helper methods.
13299         (func_add_file, func_update_file): Use new func_should_symlink
13300         instead, DRY.
13301         (func_reconstruct_cached_local_gnulib_path): New helper.
13302         (func_reconstruct_cached_dir): New callback.
13303         (func_import): The cached_local_gnulib_dir renamed to
13304         cached_local_gnulib_path similarly to local_gnulib_dir.
13305         Use new func_reconstruct_cached_local_gnulib_path.
13306         (func_count_relative_local_gnulib_path): New sub-method.
13307         (func_create_testdir): Use func_should_symlink, DRY.
13308         (func_create_megatestdir): Use new functions to work with
13309         local_gnulib_path correctly.
13310         (func_append_local_dir): New helper.
13312 2015-12-08  Pádraig Brady  <P@draigBrady.com>
13314         fix freadptr to work with ungetc on all uClibc configs
13315         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
13316         where GNU coreutils cut(1) generates invalid output on uClibc
13317         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
13318         * lib/freadptr.c (freadptr): Return NULL if there are
13319         ungotten chars.  In this case freadseek() will iterate
13320         again to process the ungotten character.
13322 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13324         xalloc-oversized: improve performance with GCC 5
13325         * lib/xalloc-oversized.h (xalloc_oversized):
13326         Improve performance with GCC 5 by using __builtin_mul_overflow.
13328 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13330         intprops: new public macro EXPR_SIGNED
13331         Emacs can use this macro, so make it public.
13332         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13333         'Integer Type Determination', since some of these macros apply
13334         to non-integer types.  Clarify what kinds of constant expressions
13335         these macros return.  Say when the arguments can be non-integers.
13336         Mention newly published macro EXPR_SIGNED.
13337         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13338         make it public.  All uses changed.
13340         intprops: fix typo in clang port
13341         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13342         '__builtin_add_overflow' that is not caught by compiler.
13344 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13346         test-timespec: fix typo in previous change
13347         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13349         timespec-sub: fix overflow bug; add tests
13350         * lib/timespec-add.c (timespec_add):
13351         * lib/timespec-sub.c (timespec_sub):
13352         Work even if time_t is narrower than int (a theoretical
13353         possibility).  Redo code for a bit more clarity.
13354         * lib/timespec-sub.c (timespec_sub):
13355         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13356         * modules/timespec-tests, tests/test-timespec.c: New files.
13358         intprops-test: suppress -Woverlength-strings
13359         Problem reported by Pádraig Brady in:
13360         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13361         It is not worth the hassle to port this test to compilers that
13362         cannot handle long strings in diagnostics.
13363         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13365 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13367         quotearg: add quotearg_n_style_colon()
13368         This quotes with default options of the specified style,
13369         but with quoting enabled for instances of ':'.
13370         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13371         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13373 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13375         intprops: revise _WRAPV macros, revert _OVERFLOW
13376         The incompatible changes to the _OVERFLOW macros were too much of
13377         a hassle in practice, so revert them.  Instead, change the new
13378         _WRAPV macros to make them closer in behavior to GCC 5's new
13379         builtin_add_overflow etc. functions.  No other software was using
13380         these newly-added macros yet, so this should be OK.
13381         * NEWS: Revert previous change, since the incompatible change
13382         has been reverted, and nobody used the incompatible version.
13383         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13384         Document revised behavior.
13385         (Integer Range Overflow): Adjust example to match above revisions.
13386         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13387         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13388         these can be used in integer constant expressions again.
13389         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13390         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13391         needed.
13392         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13393         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13394         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13395         Remove, as they did not seem that useful.
13396         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13397         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13398         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13399         Support new semantics.
13400         (__has_builtin): New macro, if not alreay defined.
13401         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13402         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13403         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13404         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13405         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13406         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13407         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13408         New macros.
13409         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13411 2015-11-03  Jim Meyering  <meyering@fb.com>
13413         intprops: add parentheses for when OP has precedence lower than "-"
13414         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13415         "a OP b" must be parenthesized for when OP is like "<<", which has
13416         lower precedence than the following "-". Reported by Pádraig Brady.
13418 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13420         quotearg: constify get_quoting_style parameters
13421         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13422         * lib/quotearg.c (get_quoting_style): Likewise.
13424 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13426         quotearg: add support for $'' shell escaping
13427         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13428         items and descriptions.
13429         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13430         above types by quoting like "shell", but using $'...' syntax
13431         for non printable characters, which should provide unambiguous
13432         printable output for any input.
13433         * tests/test-quotearg-simple.c: Update accordingly.
13435 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13437         maint: use a more standard return from mbrtowc test
13438         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13439         from the test program as this is non standard and often
13440         indicates an unhandled case in the test program.
13441         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13443 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13445         intprops: add WRAPV and const flavors for GCC 5
13446         If available, use GCC 5's builtin functions for efficient integer
13447         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13448         and safely compute the low-order bits of the correct answer.
13449         A downside of these efficient functions is that they cannot be
13450         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13451         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13452         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13453         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13454         Document the changes.
13455         (Wraparound Arithmetic): New section.
13456         (Integer Range Overflow):
13457         Put this subsection last, since it's least useful.
13458         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13459         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13460         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13461         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13462         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13463         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13464         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13465         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13466         New macros.
13467         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13468         Generate calls to GCC builtins if available, for speed.
13469         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13470         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13471         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13472         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13473         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13474         (CHECK_QUOTIENT, CHECK_REMAINDER):
13475         Test WRAPV and CONST flavors (when available) too.
13477 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13479         doc: use extended timezone format in iso-8601 example
13480         * doc/parse-datetime.texi: The standard states that extended format
13481         is to be used consistently throughout.
13482         Note that lib/parse-datetime.y can handle either tz format.
13484 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13486         stdalign: port to Sun C 5.9
13487         * doc/posix-headers/stdalign.texi: Document this.
13488         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13489         __attribute__ ((__aligned__ (...))).
13491 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13493         time_rz: fix comment about tzalloc
13494         * lib/time_rz.c (tzalloc): Fix comment.
13496 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13498         stdalign: work around pre-4.9 GCC x86 bug
13499         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13500         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13501         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13503 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13505         maint.mk: sc_tight_scope: remove extraneous expressions
13506         * top/maint.mk (tight_scope): This is not really required since
13507         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13508         that matches all nm entries.  But it does remove extraneous entries
13509         that may be confusing or cause issue in future maintenance.
13511 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13513         time_rz: return NULL if localtime_r fails
13514         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13515         while still attempting to pacify bleeding-edge GCC.
13517         fts: port to C11 alignof
13518         * doc/posix-headers/stdalign.texi (stdalign.h):
13519         Document the C11 restriction.
13520         * lib/fts.c: Include stddef.h, for max_align_t.
13521         (fts_alloc): Align using max_align_t, not FTSENT.
13522         * modules/fts (Depends-on): Add stddef.
13524 2015-10-18  Jim Meyering  <meyering@fb.com>
13526         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13527         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13528         would see this:
13530         lib/time_rz.c: In function 'localtime_rz':
13531         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13532           [-Werror=nonnull]
13533                    if (tm && !save_abbr (tz, tm))
13534                        ^
13536         That was complaining about "tm" because it is a parameter that was
13537         declared with the __nonnull__ attribute.
13538         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13539         result of localtime_r.
13541 2015-10-17  Jim Meyering  <meyering@fb.com>
13543         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13544         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13545         name-extraction regexp mistakenly used \S+, and would mistakenly
13546         extract "*F" from "extern int *F()" rather than the desired "F".
13547         Use \w+ instead.
13549 2015-10-17  Jim Meyering  <meyering@fb.com>
13551         maint.mk: sc_tight_scope: factor and support OS X
13552         * top/maint.mk (_gl_tight_scope): Address three issues:
13553         - factor out four instances of code that wraps a string in "^...$"
13554         - allow nm-reported symbol names to have an optional leading "_"
13555         - add "main" to the list of ignored variable names, because on os x,
13556         "main" has nm-reported type "S" in the variable-checking section.
13558 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13560         safe-alloc-tests: fix typo in license header
13561         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13563 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13565         copy-file: fix mem leak in error case
13566         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13567         upon error opening or performing I/O to the src and dest files.
13569 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13571         localename: control langinfo.h inclusion
13572         This header is only used to work around buggy behavior in old
13573         versions of glibc, so do not include it all the time.  Otherwise
13574         we get build failures on systems that do not provide langinfo.h.
13575         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13576         in the source later on.
13577         The patch was originally submitted to gettext as:
13578         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13580 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13582         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13583         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13584         * lib/u64.c, lib/unistd.c:
13585         Append 'typedef int dummy;', to pacify compilers that are picky
13586         about empty translation units.
13588 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13590         accept4-tests: fix to avoid non portable flags
13591         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13592         as they are the only documented ones, and passing others may trigger
13593         EINVAL (seen on FreeBSD 10.1-RELEASE).
13594         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13595         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13597 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13599         gnulib-tool: fix tests of 'extensions' module
13600         This complements f8fe25fab60e3c687a124 commit.
13601         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13602         emitting of initial gl_EARLY macros.
13603         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13604         replaced with func_emit_pre_early_macros call.
13606 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13608         unicase/locale-language: fix typo in utf-8 cookie
13609         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13610         Problem reported by Zbigniew Jędrzejewski-Szmek.
13612 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13614         xalloc: do not worry about GCC 5 warning on 32 bit
13615         * lib/xalloc.h: Revert previous change.
13616         I found a better way to fix this in coreutils.
13618 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13620         xalloc: avoid GCC 5.1 warning on 32 bit
13621         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13622         xalloc_oversized(), which was seen to give this warning
13623         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13624         when simplifying conditional".
13626 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13628         uniname/uniname-tests: avoid compiler warnings
13629         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13630         unused local variables.
13631         (test_alias_lookup): Fix alias name display in failure cases.
13633 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13635         c-ctype: do not worry about EBCDIC + char signed
13636         Drop support for EBCDIC with char being signed, as this breaks too
13637         many programs.  Problem reported by Ben Pfaff in:
13638         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13639         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13640         char being signed.
13641         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13642         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13643         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13644         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13645         * tests/test-c-ctype.c (test_all):
13646         Simplify by assuming standard char values cannot be negative.
13647         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13649 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13651         c-ctype: port better to z/OS EBCDIC
13652         Problems reported by Daniel Richard G. in:
13653         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13654         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13655         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13656         (_C_CTYPE_OTHER_CNTRL): New macro.
13657         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13658         from SCHAR_MIN, as the functions are defined only from values
13659         promoted from char or from unsigned char, not necessarily from
13660         signed char.
13662 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13664         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13666         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13667         and ARFLAGS variables.  Doing this unconditionally could break
13668         later Automake's AM_PROG_AR invocation (at least it's
13669         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13671         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13672         Amsterdam Compiler Kit, so make the previous code to have effects
13673         only on ACK, and rather automatically call the Automake's
13674         AM_PROG_AR as soon as possible to decide other cases.
13676         References:
13677         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13679         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13680         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13681         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13682         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13683         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13684         'extensions' module is used.
13685         * modules/extensions (configure.ac-early): Remove as this snippet
13686         is added to gnulib-comp.m4 earlier anyway.
13688 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13690         sockets: MS Windows initalization fixes
13691         Problem reported by Test User in:
13692         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13693         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13694         Correct the endianness.
13695         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13696         number mismatch, not just on <.  Cleanup before any such failure.
13698 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13700         gc: fix detection of installed libgcrypt version
13701         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13702         at least as recent as 1.4.4.  The previously used macro is not
13703         available now, since modules were removed in version 1.6.0.
13705 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13707         c-ctype: rewrite to use inline functions
13708         This simplifies maintenance, since it makes for just one
13709         implementation of each function, letting the compiler have the fun
13710         of optimization.  In practice this works well nowadays with GCC.
13711         E.g., c_isascii might need only three instructions even though the
13712         source code lists every ASCII character individually in a large
13713         switch statement.
13714         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13715         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13716         * NEWS: Document the API change.
13717         * lib/c-ctype.c: Drastically simplify, since this now just expands
13718         inline functions.
13719         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13720         (C_CTYPE_INLINE): New macro.
13721         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13722         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13723         Verify that either ASCII or EBCDIC is being used.
13724         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13725         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13726         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13727         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13728         New private macros.
13729         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13730         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13731         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13732         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13733         (c_tolower, c_toupper): When converting, return the unsigned char,
13734         as that is what z/OS does.
13735         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13736         of some c-ctype.h macros.
13737         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13738         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13739         c_tolower promotion to be compatible with z/OS.
13741 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13743         gitlog-to-changelog: trim only trailing whitespaces
13744         This is fix for --format regression introduced by commit
13745         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13746         doubled %n string) had no effect anymore.  This format
13747         specification has been used e.g. by GNU paxuitils (commit
13748         edfd8bcc3).
13750         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13751         newlines in commmit messages.
13753 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13755         Test that c_iscntrl agrees with iscntrl, etc.
13756         Suggested by Daniel Richard G. in:
13757         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13758         * modules/c-ctype-tests (Depends-on): Add ctype.
13759         * tests/test-c-ctype.c: Include <ctype.h>.
13760         (NCHARS): New constant.
13761         (test_agree_with_C_locale): New function.
13762         (main): Use it.
13763         (test_all): Use named constants.
13765         c-ctype: improve c_isascii testing
13766         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13767         Add a test to count the number of ASCII characters.
13769 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13771         savewd: remove SAVEWD_CHDIR_READABLE
13772         It was problematic in the light of file systems that ignore umask.
13773         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13774         * NEWS: Document this.
13775         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13776         successful, -1 (setting errno) on failure, rather than something
13777         more complicated than that.
13778         * lib/mkdir-p.c (make_dir_parents):
13779         Do not use SAVEWD_CHDIR_READABLE.
13780         * lib/savewd.c (savewd_chdir):
13781         Remove support for SAVEWD_CHDIR_READABLE.
13782         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13784         c-ctype: port better to EBCDIC
13785         Problems reported by Daniel Richard G. in
13786         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13787         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13788         Include "verify.h".
13789         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13790         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13791         Define as enum constants with value false, if not defined, so that
13792         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13793         code more portable, as both branches of the 'if' are compiled on
13794         all platforms.
13795         (C_CTYPE_EBCDIC): New constant.
13796         Verify that the character set is either ASCII or EBCDIC.
13797         (to_char): New static function.
13798         (c_isascii, c_iscntrl):
13799         Assume standard control-character assignments for EBCDIC.
13800         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13801         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13802         Rewrite to use 'if' instead of 'ifdef'.
13803         Use to_char if non-ASCII.  Prefer <= to >=.
13804         Prefer true and false to 1 and 0, for booleans.
13805         (c_iscntrl): Use 'if', not 'ifdef'.
13806         * modules/c-ctype (Depends-on): Add verify.
13807         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13808         (to_char): New function.
13809         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13811 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13813         nanosleep: fix return code for interrupted replacement
13814         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13815         that we return -1 in the case the call is interrupted by a signal,
13816         rather than the current value of 1.
13817         Diagnosed and tested by Daniel Richard G.
13819 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13821         Diagnose ERE '()|\1'
13822         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13823         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13824         track of the set of previously-completed subexpressions available
13825         before the first alternative, and restore this set just before
13826         parsing each subsequent alternative.  This lets us diagnose the
13827         invalid back-reference in the ERE '()|\1'.
13829         regex: merge patches from libc
13831         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13832         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13833         * lib/regex_internal.h:
13834         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13836         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13837         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13838         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13839         wcscoll.
13840         * lib/regexec.c (check_node_accept_bytes): Likewise.
13842         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13843         Fix regex wcrtomb namespace (bug 18496).
13844         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13845         instead of wcrtomb.
13847         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13848         Fix regex wctype namespace (bug 18495).
13849         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13850         instead of towlower.
13851         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13852         instead of iswlower.  Call __towupper instead of towupper.
13853         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13854         instead of iswalnum.
13856         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13857         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13858         COLL_SYM in a couple of places to avoid uninitialized variable
13859         wanings on tilegx gcc 4.8.2.
13861         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13862         * lib/regex_internal.h: Remove NOT_IN_libc.
13864         2014-11-17  Andreas Schwab  <schwab@suse.de>
13865         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13867         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13868         Move findidx nested functions to top-level.
13869         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13870         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13871         Pass new arguments to findidx.
13872         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13873         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13874         Don't #include it inside the function.  Pass new arguments to findidx.
13875         * lib/regex_internal.h:
13876         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13877         (re_string_elem_size_at): Don't #include it inside the function.
13878         Pass new arguments to findidx.
13880         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13881         Check if DEBUG is defined in regex_internal.c
13882         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13884 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13886         ceill: detect buggy OpenBSD implementation
13887         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13888         which returns zero for small values.  Discussed here:
13889         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13891 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13893         mountlist: add me_mntroot field on Linux machines
13894         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13895         mount_entry so Linux machines based on /proc/self/mountinfo can
13896         distinguish between bind mounts and original mounts.  In reality bind
13897         mounts aren't treated differently than mountroot=/ mounts by the
13898         kernel, but the user often wants these bind mounts distinguished.
13899         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13900         More details at https://pad.lv/1432871
13902 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13904         doc: Describe to use multiple instances of gnulib
13905         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13906         instances of gnulib with different modules can be used, for example one
13907         for a lib and another one for associated tools.
13909 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13911         base32: mark function as __attribute__ const
13912         * lib/base32.h (isbase32): Mark __attribute__ const as
13913         suggested by GCC, and consistent with the base64 module.
13915 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13917         gnulib-tool: don't transform binary files with sed
13918         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13919         .mo and .class files.
13920         Reported by Denis Denisov.
13922 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13924         gperf: respect silent rules
13925         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13926         V_GPERF_0 for silent rules.
13927         * modules/iconv_open (Makefile.am): Use V_GPERF.
13928         * modules/unicase/locale-language (Makefile.am): Likewise.
13929         * modules/unicase/special-casing (Makefile.am): Likewise.
13930         * modules/unictype/category-byname (Makefile.am): Likewise.
13931         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13932         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13933         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13934         * modules/unictype/property-byname (Makefile.am): Likewise.
13935         * modules/unictype/scripts (Makefile.am): Likewise.
13936         * modules/uninorm/composition (Makefile.am): Likewise.
13938 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13940         Improve port of stdalign to C++11
13941         Problem reported by Sundaram in:
13942         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13943         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13944         (__alignas_is_defined): Define if C++11 or newer.
13946 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13948         pmccabe2html: fix gawk regex escaping
13949         * build-aux/pmccabe2html: Add one more backslash to properly
13950         escape the gsub replacement value.  Fixes this error:
13951         gawk: ./build-aux/pmccabe2html:425: \
13952         warning: escape sequence `\&' treated as plain `&'
13954 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13956         time_rz: port to pedantic memcpy
13957         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13958         that reject memcpy (..., NULL, 0).
13960 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13962         time_rz: port better to MinGW
13963         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13964         Instead, store the tzname copy in the struct tm_zone object.
13965         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13966         * lib/strftime.c [!_LIBC]:
13967         * lib/time_rz.c: Include time-internal.h.
13968         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13969         name from *TZ rather than from TZNAME, doable because *TZ now has
13970         a tzname_copy member.
13971         * lib/time-internal.h: New file, with contents taken from
13972         lib/time_rz.c.  It's separate because strftime.c now accesses
13973         struct tm_zone members.
13974         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13975         New member tzname_copy.
13976         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13977         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13978         Initialize tzname_copy member.
13979         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13980         in tzname_copy member.
13981         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13982         (restore_tzname): Remove; no longer needed.  All calls removed.
13983         * modules/time_rz (Files): Add lib/time-internal.h.
13985         time: port __need_time_t to MinGW
13986         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13987         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13989 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13991         strftime: fix newly-introduced bug on Solaris
13992         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13993         consistently at the start, rather than doing some of the setup at
13994         the start and some in the %Z format spec.  This is cleaner, and
13995         works better with time_rz on platforms like Solaris where struct
13996         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13997         mktime_z and localtime_rz can mess up the tzname cache.
13999         test-strftime: test for Solaris bug
14000         * modules/strftime-tests (Depends-on): Add strerror.
14001         * tests/test-strftime.c: Include <errno.h>.
14002         (posixtm_test): New function, containing the old 'main'.
14003         (struct tzalloc_test, struct localtime_rz_test): New types.
14004         (TZ, LT): New static vars.
14005         (tzalloc_test): New function.
14006         (main): Rewrite in terms of posixtm_test and tzalloc_test.
14008         time_rz: port to Solaris etc.
14009         Works around a tzname problem on platforms like Solaris that have
14010         tzname but not tm_zone, by setting tzname at the appropriate time
14011         and restoring it later.
14012         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
14013         New static vars.
14014         (save_abbr) [HAVE_TZNAME]: Set them.
14015         (revert_tz) [HAVE_TZNAME]: Clear or use them.
14016         (restore_tzname): New function.
14017         (localtime_rz, mktime_z): Use it.
14019         time_rz: now LGPL
14020         * modules/time_rz (License): Now LGPL, because strftime depends on it.
14022         time_rz: make a constant 'const'
14023         * lib/time_rz.c (local_tz): Now const.
14025         time_rz: fix off-by-one typo
14026         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
14028 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
14030         fprintftime, strftime: use timezone_t args
14031         * NEWS: Document the change.
14032         * lib/fprintftime.h (fprintftime):
14033         * lib/strftime.c (extra_args) [my_strftime]:
14034         * lib/strftime.h (nstrftime):
14035         Time zone arg is now of type timezone_t, not int.
14036         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
14037         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
14038         (my_strftime) [emacs && !my_strftime]:
14039         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
14040         Remove; Emacs doesn't need this any more.
14041         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
14042         fprintftime and nstrftime to call tzset.
14043         (ut) [!my_strftime]: Remove, replacing with ...
14044         (tz) [!my_stftime]: ... this new macro.  All uses changed.
14045         (strftime_case_): Use localtime_rz and mktime_z instead
14046         of localtime_r and mktime.
14047         * modules/fprintftime (Depends-on): Add time_rz.
14048         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
14049         * tests/test-strftime.c (main): Adjust to new nstrftime API.
14051         time_rz: new module
14052         * MODULES.html.sh: Add time_rz.
14053         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
14054         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
14055         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
14056         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
14057         New var HAVE_TIMEZONE_T (default 0).
14058         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14059         New var GNULIB_TIME_RZ (default 0).
14060         * modules/time (time.h): Substitute the new vars.
14062         flexmember: license is now unlimited
14063         * modules/flexmember (License): Change to unlimited,
14064         since its only source file gives an unlimited license.
14066 2015-07-15  Eric Blake  <eblake@redhat.com>
14068         maint: update copyright paper procedures
14069         * config/srclist.txt: Drop outdated files.
14070         * doc/Copyright/conditions.txt: Update to latest.
14071         * doc/Copyright/assign.changes.manual: Delete.
14072         * doc/Copyright/assign.future.manual: Likewise.
14073         * doc/Copyright/assign.manual: Likewise.
14074         * doc/Copyright/assign.translation.manual: Likewise.
14075         * doc/Copyright/disclaim.changes.manual: Likewise.
14076         * doc/Copyright/disclaim.manual: Likewise.
14077         * doc/Copyright/disclaim.program: Likewise.
14079 2015-07-07  Daiki Ueno  <ueno@gnu.org>
14081         localename: fix link error on Illumos
14082         Illumos defines __sun, but does not have getlocalename_l nor the
14083         equivalent.  This partially reverts commit 387c214.
14084         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
14085         available, as well as uselocale.
14086         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
14087         use getlocalename_l if it is not available.
14089 2015-07-07  Daiki Ueno  <ueno@gnu.org>
14091         unistr/uN-strtok-tests: avoid a trivial leak
14092         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
14093         input and delim after the multibyte delimiter tests.
14095 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14097         file-has-acl, acl-permissions: fix HP-UX typos
14098         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
14099         * lib/file-has-acl.c (file_has_acl):
14100         * lib/set-permissions.c (context_acl_from_mode)
14101         (context_aclv_from_mode, set_acls):
14102         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
14103         They were introduced by the recent ACL changes.
14105         regex: match current GNU grep behavior
14106         These symbols have not matched GNU grep behavior for quite some time.
14107         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
14108         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
14109         Change to match current GNU behavior.
14110         Simplify by expressing it as differences from POSIX BREs and EREs.
14111         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
14113 2015-07-03  Jim Meyering  <meyering@fb.com>
14115         set-permissions.c: adjust acl_from_mode's cpp guard
14116         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
14117         directives identical to those guarding the sole use.
14118         Otherwise, on some systems, we'd get a warning about
14119         the function being defined but not used.
14120         Also, filter through cppi to correct misleading indentation
14121         of cpp directives.
14123 2015-07-03  Pádraig Brady  <P@draigBrady.com>
14125         tests: restrict shells to those that support 'local'
14126         The local keyword is very widely supported and used
14127         in tests in coreutils and grep at least.  Therefore
14128         restrict to testing with shells that support it.
14129         This mainly excludes /bin/sh on Solaris.
14130         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
14132 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
14133         and Daiki Ueno  <ueno@gnu.org>
14135         unistr/uN-strtok: handle multibyte delimiters
14136         Previously, uN_strtok moved PTR to the next unit to the token end.
14137         When DELIM contained a multibyte character, the new position could
14138         be a middle of a multibyte character.
14139         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
14140         after the token.
14141         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
14142         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
14143         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
14144         * modules/unistr/u8-strtok (Depends-on): Depend on
14145         unistr/u8-strmblen.
14146         * modules/unistr/u16-strtok (Depends-on): Depend on
14147         unistr/u16-strmblen.
14148         * modules/unistr/u32-strtok (Depends-on): Depend on
14149         unistr/u32-strmblen.
14150         * tests/unistr/test-u-strtok.h: New file.
14151         * tests/unistr/test-u8-strtok.c: New file.
14152         * tests/unistr/test-u16-strtok.c: New file.
14153         * tests/unistr/test-u32-strtok.c: New file.
14154         * modules/unistr/u8-strtok-tests: New file.
14155         * modules/unistr/u32-strtok-tests: New file.
14156         * modules/unistr/u16-strtok-tests: New file.
14158 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
14160         update-copyright: fix test failure with perl >= 5.22 (trivial)
14161         * build-aux/update-copyright: Escape a literal left curly bracket,
14162         required with perl >= 5.22
14164 2015-07-02  Daiki Ueno  <ueno@gnu.org>
14166         u{16,32}-strstr-tests: relax timeout condition
14167         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
14168         tests can take longer than 5 seconds to complete.
14169         Reported by Dagobert Michelsen in:
14170         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
14171         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
14172         seconds to 10 seconds.
14173         * tests/unistr/test-u32-strstr.c (main): Likewise.
14175 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14177         gnulib-common.m4: change the ARFLAGS default to 'cr'
14178         In some GNU/Linux distributions people started to compile 'ar'
14179         binary with --enable-deterministic-archives (binutils project).
14180         That, however, in combination with previous autotools long time
14181         working default AR{_,}FLAGS=cru causes warnings on such
14182         installations:
14183         ar: `u' modifier ignored since `D' is the default (see `U')
14184         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
14185         set already.
14187 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14189         selinux-h: avoid double free after *getfilecon()
14190         Originally reported by Ben Shelton on bug-tar:
14191         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
14192         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
14193         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
14194         param should be freed by freecon(3) (regardless the return value).
14196 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
14198         fix pty related tests issues on Windows (trivial)
14199         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
14200         however it's still present in tests/ subdirectory of the final project.
14201         Therefore avoid it to pass `make check`.
14202         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
14203         will just return -ENOSYS, so avoid this non applicable test allowing
14204         the build to proceed.
14206 2015-07-01  Pádraig Brady  <P@draigBrady.com>
14208         acl: fix definition of acl_from_mode on FreeBSD
14209         This was causing basic coreutils copy operations to fail
14210         with ENOTSUP or ENOENT error messages.
14211         * lib/acl-internal.h (acl_from_mode): Only define when
14212         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
14213         of acl_from_mode() defined in lib/set-permissions.c to
14214         be used on FreeBSD at least.
14215         * lib/set-permissions.c: Fix up comment spelling,
14216         and a redundant variable assignment; noticed in passing.
14218 2015-06-30  Pádraig Brady  <P@draigBrady.com>
14220         readutmp: port to FreeBSD >= 9
14221         * lib/readutmp.h: Map utmpxname() to setutxdb().
14222         With that coreutils who(1) and pinky(1) tests pass.
14224 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14226         mgetgroups: port to strict OS X
14227         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
14228         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
14229         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
14230         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
14232 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14234         mgetgroups: port to strict OS X
14235         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
14236         Document the getgrouplist problem.
14237         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
14238         New macro.
14239         (mgetgroups): Use it.
14240         * m4/mgetgroups.m4 (gl_MGETGROUPS):
14241         Check for OS X signature for getgrouplist.
14243 2015-06-29  Jim Meyering  <meyering@fb.com>
14245         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
14246         It started like this when building coreutils' latest on OS X,
14247         invoking ./configure with a nonempty --cache=.cache:
14249           lib/linkat.c:46:42: error: operator '||' has no right operand
14250           lib/linkat.c: In function 'rpl_linkat':
14251           lib/linkat.c:330:27: error: #if with no expression
14253         Here's linkat.c's line 46:
14255           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
14257         Here's some context:
14259           $ grep linkat_nofoll .cache
14260           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
14261           $ grep LINKAT_SYM lib/config.h
14262           #define LINKAT_SYMLINK_NOTSUP
14264         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
14265         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
14266         but that violates a tenet of AC_CACHE_CHECK: it must
14267         have no side effect other than setting its cache variable.
14269         What happens is that when the cache is set, we'd skip the
14270         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
14271         defined to whatever value it happened to have in configure's
14272         environment.  In my case, it was not defined, so this later code:
14274           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
14275             [Define to 1 if linkat can create hardlinks to symlinks])
14277         would emit code with an empty RHS.
14279         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
14280         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
14282 2015-06-28  Jim Meyering  <meyering@fb.com>
14284         mountlist: avoid an unused-label warning on OS X
14285         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
14286         Building on OS X, I saw a warning about the "free_then_fail" label
14287         being unused.  Give it the _GL_UNUSED_LABEL attribute.
14289         error.c: correct printf-style format: %d -> %u
14290         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
14291         rather than %d, to match the type of "line_number", unsigned int.
14293 2015-06-25  Pádraig Brady  <P@draigBrady.com>
14295         fts: avoid reading beyond the heap allocation
14296         GCC 5.1.1 with -O2 and -fsanitize=address reports
14297         a read of size 4 from a heap object of size 3 is indeed invalid,
14298         though this may be due to incorrect padding assumptions by GCC, see:
14299         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
14300         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
14301         * modules/fts: Depend on stdalign.
14303 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14305         savedir: avoid undefined behavior in qsort call
14306         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14307         "runtime error: null pointer passed as argument 1,
14308          which is declared to never be null"
14309         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
14311 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14313         userspec: avoid undefined behavior in gettext call
14314         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14315         "runtime error: null pointer passed as argument 2,
14316          which is declared to never be null"
14317         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
14319 2015-06-20  Glenn Morris  <rgm@gnu.org>
14321         gitlog-to-changelog: improve gitmerge.el commits
14322         Let the Emacs ChangeLog generation process exclude "skipped"
14323         messages from merge commits (Bug#20717).
14324         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14326 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14328         wchar: fix MinGW compilation warnings
14329         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14330         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14331         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14333 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14335         uniname/uniname-tests: use pristine data files
14336         For copyright and maintenance reasons, use the data files from UCD
14337         without modification.
14338         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14339         (getfield): Remove.
14340         (aliases_count): New global variable.
14341         (fill_names): Skip comments and empty lines in the input.  Don't
14342         use getfield.
14343         (fill_aliases): Likewise.
14344         (main): Change the expected command line arguments to:
14345         NAMES... ["--" ALIASES...].
14346         * tests/uniname/test-uninames.sh: Adjust to the change in
14347         test-uninames.c.
14348         * tests/uniname/UnicodeDataNames.txt: Remove.
14349         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14350         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14351         file from Unicode 8.0.0.
14353 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14355         linked-list, linkedhash-list: avoid compiler warnings
14356         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14357         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14359 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14361         libunistring: bump minimum version to 0.9.6
14362         * all modules depending on updated Unicode data: Regenerate.
14363         The modules are listed by a script that does:
14364         - for each file listed by: git show --oneline --name-only 705f4efc
14365           - deduce the containing modules, based on "Files:"
14366         - deduce the modules which depend on the containing modules, based
14367           on "Depends-on:"
14369 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14371         uniname/uniname: update to Unicode 8.0.0
14372         * lib/uniname/uninames.h: Regenerate.
14373         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14374         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14376 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14378         libunistring: update to Unicode 8.0.0
14379         * lib/gen-uni-tables.c (SIZEOF): New macro.
14380         (output_numeric): Increase the maximum number of fractions from
14381         128 to 160.  Increase the level3 value width from 7 bits to 8
14382         bits.  Use SIZEOF instead of a hard-coded integer.
14383         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14384         0x28000.
14385         (fill_blocks): Increase the maximum number of blocks from 256 to
14386         384.  Use SIZEOF instead of a hard-coded integer.
14387         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14388         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14389         value width.
14390         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14391         a new case added to LBP22.
14392         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14393         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14394         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14395         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14396         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14397         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14398         lib/uniwidth/width.c.
14399         * all generated files under lib/uni* and tests/uni*: Regenerate.
14401 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14403         gnu-web-doc-update: add --mirror to remove stale files
14404         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14405         out of date files from the CVS server.  Since this is usually
14406         appropriate, a prompt is given when the option is not specified,
14407         along with the `cvs remove` command that would be run.
14409 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14411         acl-permissions: pacify -Wsuggest-attribute=const
14412         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14413         * lib/acl-internal.h (free_permission_context):
14414         Declare with attribute const if ! (defined USE_ACL &&
14415         (HAVE_ACL_GET_FILE || defined GETACL)).
14417         fsync: document AIX misbehavior
14418         * doc/posix-functions/fsync.texi (fsync):
14419         Document failure on AIX with read-only file descriptor.
14421 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14423         stdio: Don't redefine gets when using C++
14424         * lib/stdio.in.h (gets): Disable warning on C++.
14426 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14428         acl-permissions: port to AIX, C89 HP-UX
14429         Problems reported by Michael Felt.
14430         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14431         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14432         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14433         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14434         Add cast for AIX, whose system calls are declared to accept
14435         char * even though the arguments are really char const *.
14436         * lib/get-permissions.c (get_permissions):
14437         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14438         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14439         that broke a build.
14440         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14441         Rework types to pacify xlc.
14443 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14445         vasprintf-posix: avoid compiling vasnprintf where possible
14446         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14447         module where not required.  For example on a GNU/Linux system
14448         when gnulib-tool is run with the --conditional-dependencies option.
14450 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14452         file-has-acl: fix build on Mac OS X 10
14453         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14454         which has an incompatible 6 parameter getxattr() call.
14455         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14456         call on Mac OS X >= 10.4.
14457         * doc/glibc-functions/fgetxattr.texi: Likewise.
14458         * lib/file-has-acl.c: Revert to more complete combined check.
14459         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14460         Reported by Jack Howarth.
14462 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14464         prefix-gnulib-mk: remove no longer needed special case
14465         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14466         continued lib_SOURCES lines are no longer present,
14467         so special case handling of such entries is not required.
14469 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14471         acl: don't depend on the deprecated qacl module
14472         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14474 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14476         gnulib-tool: concatenate lib_SOURCES to a single line
14477         * gnulib-tool: Refactor the line merging sed logic,
14478         and use that to output a single lib_SOURCES line for each module.
14479         gnulib using projects often postprocess this output to prepend
14480         subdir paths to each item, and having a single line simplifies this
14481         processing allowing better decoupling from the gnulib-tool output.
14483 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14485         pthread_sigmask: discount system version if a simple macro (trivial)
14486         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14488         function to ensure it's available.
14490 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14492         readlinkat: avoid OS X 10.10 trailing slash bug
14493         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14494         has this bug.
14495         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14496         that OS X 10.10 has this function.
14497         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14498         as done for readlink().
14499         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14500         trailing slash bug, and assume readlinkat() has the same issue.
14501         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14502         rather than the correct $gl_cv_decl_readlinkat_works.
14504 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14506         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14507         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14508         module rewrite.
14510         acl-permissions: Fix build on Solaris and Cygwin
14511         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14512         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14513         ace_entries variables have moved into struct permission_context but
14514         they were still accessed as local variables here.
14516 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14518         linkat: avoid OS X 10.10 trailing slash with symlink bug
14519         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14520         causes the symlink to be dereferenced, and if it points
14521         to a non existent file, that file will be created as
14522         a hard link to "path1".
14523         This fixes a test failure in test-linkat.c.
14524         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14525         this case.  The existing workaround in linkat.c for
14526         trailing slash issues, suffices for this case.
14527         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14528         the list of platforms with trailing slash issues.
14530 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14532         unlinkat: handle ignoring of ".." on Darwin 14
14533         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14534         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14535         so handle in the same manner.
14536         * m4/unlinkat.m4: Comment on this Darwin issue.
14537         * doc/posix-functions/unlink.texi: Update the latest version
14538         where the issue was seen.
14539         * doc/posix-functions/unlinkat.texi: Mention this issue.
14540         Fixes a test failure in test-unlinkat.c.
14542 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14544         qacl: split into qcopy-acl and qset-acl
14545         Emacs needs the former, but not the latter.
14546         * modules/acl-permissions: New file, containing most of the old qacl.
14547         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14548         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14549         * modules/qcopy-acl, modules/qset-acl: New files.
14550         * MODULES.html.sh (File system functions):
14551         Mention the new modules, and mention qacl while we're at it.
14553 2015-05-27  Glenn Morris  <rgm@gnu.org>
14555         gitlog-to-changelog: new option --ignore-line
14556         (This patch is imported from the GNU Emacs master.)
14557         This option ignores individual commit lines matching a pattern.
14558         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14560 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14562         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14563         Implement get_permissions and set_permissions primitives for getting all
14564         the permissions of a file, storing them, and later setting them. (In the
14565         minimal case, the permissions consist only of a file mode.) Reimplement
14566         qset_acl and qcopy_acl based on these new primitives: this avoids code
14567         duplication and makes error handling more consistent.
14568         The Solaris and Cygwin code still uses duplicate code paths for setting
14569         a file mode while making sure that no acls exist and setting an explicit
14570         acl; this is no worse than before, but could be cleaned up.  The AIX
14571         code still doesn't read ACLs, it only makes sure that acls don't get in
14572         the way when setting a file mode.
14573         * lib/acl-internal.h (struct permission_context): New data structure.
14574         (get_permissions, set_permissions, free_permission_context): Declare.
14575         * lib/acl-internal.c (free_permission_context): New helper function.
14576         * lib/get-permissions.c (get_permissions): New helper function split off
14577         from qcopy_acl.
14578         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14579         AIX, set a file's permissions based only on a file mode.
14580         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14581         other platforms construct a temporary acl from the file mode and set
14582         that acl in the same way as setting an acl read from the source file.
14583         This should help avoid code duplication and inconsistent / buggy
14584         behavior.
14585         (set_acls): New helper function Split off from qcopy_acl.
14586         (chmod_or_fchmod): Moved here from qset-acl.c.
14587         (set_permissions): New helper function.
14588         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14589         set_permissions.
14590         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14591         * modules/qacl: Add get-permissions.c and set-permissions.c.
14593         file-has-acl: Split feature tests again (Bug#20667)
14594         * lib/file-has-acl.c: Instead of testing for
14595         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14596         define them when needed.
14597         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14598         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14600 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14602         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14603         This avoids a conflict with "FORTIFY_SOURCE" variants
14604         of the string functions when they're replaced on NetBSD-6.0.1
14605         and Darwin-14.3.0 at least.
14606         * lib/string.in.h: Avoid including our "lib/string.h" while
14607         including the system <string.h>.
14609 2015-05-26  Eric Blake  <eblake@redhat.com>
14611         stdio: limit __gnu_printf__ witness to gcc 4.4+
14612         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14613         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14615         error: use correct printf attributes on mingw
14616         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14618         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14619         * modules/inttypes (Depends-on): Require extensions, so that mingw
14620         always uses GNU style inttypes.
14621         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14623         stdio: fix probe on mingw under gcc 5.1
14624         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14625         around new gcc preprocessor rules.
14627 2015-05-07  Glenn Morris  <rgm@gnu.org>
14629         gitlog-to-changelog: parse "Tiny-change"
14630         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14631         "Copyright-paperwork-exempt".  (Bug#20324)
14633 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14635         doc: document glibc posix_fallocate() issues
14636         * doc/posix-functions/posix_fallocate.texi: Mention the
14637         glibc efficiency problems and issues with NFS.
14639 2015-05-05  Karl Berry  <karl@freefriends.org>
14641         * build-aux/gendocs.sh (usage): document new css default
14642         for HTML (--htmlarg).
14644 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14646         extern-inline: no need for workaround in GCC 5.1
14647         * doc/extern-inline.texi (extern inline):
14648         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14649         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14650         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14651         two we can remove these workarounds.
14653 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14655         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14656         Avoid [-Wunknown-attributes] warnings like:
14657         warning: unknown attribute '__alloc_size__' ignored
14658         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14659         with clang, as support has been fully removed as of clang 3.5:
14660         https://github.com/llvm-mirror/clang/commit/c047507a
14661         * lib/eealloc.h: Likewise.
14662         * lib/pagealign_alloc.h: Likewise.
14664 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14666         tests: pacify GCC 5.1's stricter printf checking
14667         * tests/test-dirname.c (main):
14668         * tests/test-getaddrinfo.c (simple):
14669         * tests/test-getlogin.c (main):
14670         * tests/test-getndelim2.c (main):
14671         * tests/test-inttostr.c (CK):
14672         * tests/test-md5.c (main):
14673         * tests/test-read-file.c (main):
14674         * tests/test-sha1.c (main):
14675         Fix mismatches between printf format and value signedness.
14676         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14677         Remove, as CAST_VAL always returned a value of type uintmax_t.
14679         fts: port to GCC 5.1 with --enable-gcc-warnings
14680         Without this fix, GCC 5.1 (correctly) warns about a subscript
14681         error on the fts_name component of FTSENT.  It's actually a
14682         flexible member, so define it that way on C99 or later hosts.
14683         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14684         structure that now has a flexible array member.
14685         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14686         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14687         * modules/fts (Depends-on): Add flexmember.
14689 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14691         file-has-acl: port to CentOS 6
14692         Problem reported by Tom G. Christensen in:
14693         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14694         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14695         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14696         HAVE_GETXATTR.
14697         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14698         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14699         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14700         file-has-acl.c actually needs.
14702 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14704         file-has-acl: always return false when ACLs aren't supported
14705         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14706         change the GNU/Linux getxattr path, to transform "not supported"
14707         errors to a false return rather than an error.  This is handled
14708         within file_has_acl() due to the platform specific tests to
14709         determine if ACLs are not supported.
14711 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14713         gettext: propagate po/Makefile.in.in too
14714         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14715         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14716         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14717         between Makefile.in.in and the gettext-runtime m4 files.
14719 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14721         file-has-acl: new module, split from acl
14722         And add a new module file-has-acl-tests to match.
14723         I ran into a problem with the recent changes to the acl module,
14724         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14725         When using the fixed version with Emacs, I discovered that
14726         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14727         had multiple libraries, but needed only one), so I fixed that too.
14728         * NEWS: Document this incompatible change.
14729         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14730         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14731         Initialize gl_need_lib_has_acl.
14732         (gl_FUNC_ACL): Require it.
14733         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14734         Move the file-has-acl.c-relevant stuff to ...
14735         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14736         use_xattrs = 0' typo, and omit some needless work.  Set
14737         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14738         when gl_FUNC_ACL is called.
14739         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14740         (Link): Remove $(LIB_HAS_ACL).
14741         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14742         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14743         modules/file-has-acl-tests.
14744         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14746         manywarnings: add GCC 5.1 warnings
14747         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14748         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14749         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14750         -Wsuggest-override, -Wuse-without-only.  Change
14751         -Wnormalized=... operands to match 5.1.
14752         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14753         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14754         -Wdiscarded-qualifiers, -Wformat-signedness,
14755         -Wincompatible-pointer-types, -Wint-conversion,
14756         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14757         -Wshift-count-negative, -Wshift-count-overflow,
14758         -Wsizeof-array-argument, -Wsuggest-final-methods,
14759         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14760         and add -Warray-bounds=2 as a special case.
14762 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14764         doc: update FDL template to match FDL examples.
14765         * doc/alloca-opt.texi:
14766         * doc/alloca.texi:
14767         * doc/c-ctype.texi:
14768         * doc/c-strcase.texi:
14769         * doc/c-strcaseeq.texi:
14770         * doc/c-strcasestr.texi:
14771         * doc/c-strstr.texi:
14772         * doc/c-strtod.texi:
14773         * doc/c-strtold.texi:
14774         * doc/ctime.texi:
14775         * doc/error.texi:
14776         * doc/gcd.texi:
14777         * doc/gnulib-tool.texi:
14778         * doc/inet_ntoa.texi:
14779         * doc/intprops.texi:
14780         * doc/lib-symbol-visibility.texi:
14781         * doc/maintain.texi:
14782         * doc/parse-datetime.texi:
14783         * doc/quote.texi:
14784         * doc/regexprops-generic.texi:
14785         * doc/standards.texi: Remove spurious 'with' in FDL license
14786         template.
14788 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14790         lstat: fix cross-compilation 'ln -s' problem
14791         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14792         Have the test program call 'symlink' rather than a separate
14793         script run 'ln -s'; this is more likely to work in
14794         cross-compilation environments.  Reported by Pavel Fedin in:
14795         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14797 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14799         gendocs.sh: default to a common CSS style sheet for HTML output
14800         * build-aux/gendocs.sh (htmlarg): Change default value.
14802 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14804         gnulib-tool: output bold attribute more portably
14805         * gnulib-tool (func_show_module_list): Change hexadecimal
14806         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14807         encoded numbers as arguments to `printf' is not portable,
14808         and is not claimed by POSIX.  This is the case with FreeBSD.
14810 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14812         qacl: Simplify HP-UX acl_nontrivial check
14813         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14814         acl_nontrivial. Check if the acl has at most three entries instead (it must
14815         have exactly three entries according to the HP-UX documentation). Ignore
14816         uids and gids as long as an entry is either for a user (i.e., the owner),
14817         a group (i.e., the owning group), or others.
14818         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14819         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14821 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14823         acl: On Linux, check for acls without libacl
14824         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14825         library function to check for the presence of acls, avoiding a library.
14826         * lib/file-has-acl.c: Include xattr headers if we have them.
14827         (file_has_acl): On Linux, use getxattr().
14828         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14829         file_has_acl(). Check for xattr headers and getxattr().
14831 2015-04-14  Ángel González  <keisial@gmail.com>
14833         tempname: avoid unused parameter warnings (trivial)
14834         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14835         (try_nocreate): Likewise.
14837 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14839         fseeko: fix build failure on NetBSD >= 6 (trivial)
14840         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14841         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14843 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14845         gitlog-to-changelog: port to MS-Windows
14846         * build-aux/gitlog-to-changelog (git_dir_option):
14847         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14848         MS-Windows Perl.  Reported by Eli Zaretskii in:
14849         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14851 2015-04-07  Karl Berry  <karl@gnu.org>
14853         gendocs: new option --tex for passing args to texi2dvi.
14854         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14855         (TEXI2DVI): cut to just command name.
14856         (usage): mention new option, and update copyright.
14857         <generate_tex>: use it.
14859 2015-04-07  Karl Berry  <karl@gnu.org>
14861         * config/srclistvars.sh (GETTEXT): new definition.
14862         * config/srclist.txt: use it for gettext .m4 files.
14863         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14864         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14865         and continuing into April.
14867 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14869         uniname/uniname-tests: fix failure due to alias
14870         Reported by Jack Howarth in:
14871         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14872         * tests/uniname/test-uninames.c (name_has_alias): New function.
14873         (test_inverse_lookup): Exclude character name with valid alias,
14874         from randomly generated character names.
14875         (main): Fill unicode_aliases before calling test functions.
14877 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14879         hash: remove deprecated hash_insert0 function
14880         * lib/hash.h (hash_insert0): Remove deprecated function.
14881         * lib/hash.c (hash_insert0): Likewise.
14883 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14885         mountlist: remove dependency on libmount
14886         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14887         directly, rather than depending on libmount, which has many
14888         dependencies due to its dependence on libselinux, as detailed at:
14889         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14890         Note we restrict this to __linux__ as that's probably where this
14891         interface will remain.  If ever porting, it would be best
14892         to first pull the makedev() wrapper from coreutils to a gnulib module.
14893         Note also we don't add a getline dependency to the mountlist module,
14894         as all Linux versions are sufficient.
14896 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14898         stddef: port to pre-C11 GCC on x86
14899         On this platform, max_align_t should have an alignment of 8 even
14900         though the storage alignments of double, long, etc. max out at 4.
14901         Inspired by a comment of Andreas Schwab's here:
14902         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14903         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14904         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14905         * tests/test-stddef.c: Test __alignof__ too, if available.
14907 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14909         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14910         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14912 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14914         yesno: make EOL optional in ENABLE_NLS case also (trival)
14915         * lib/yesno.c (yesno): Check for EOL before replacing.
14916         * tests/test-yesno.sh: Add a test case (test along with gettext).
14918 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14920         fdopendir-tests: test it does not close its arg
14921         * tests/test-fdopendir.c (main): Test that fdopendir does not
14922         close its argument.  From a suggestion by David Grayson in:
14923         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14925 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14927         gitlog-to-changelog: trim trailing white space
14928         * build-aux/gitlog-to-changelog (main):
14929         Trim trailing white space from commit message lines.
14930         This is helpful for processing the GNU Emacs repository,
14931         which dates back to 1985 and contains a lot of such lines.
14933         gitlog-to-changelog: new option --ignore-matching
14934         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14935         Support new option --ignore-matching=PAT, which ignores all
14936         commit messages whose first line matches PAT.
14938 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14940         fdopendir: port better to MinGW
14941         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14942         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14943         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14944         * modules/fdopendir (Depends-on): Add dirfd.
14946 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14948         fdopendir: fix typo in comment
14949         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14951 2015-03-09  Eric Blake  <eblake@redhat.com>
14953         error: document all entry points provided
14954         * doc/glibc-functions/error_print_progname.texi
14955         (error_print_progname): Mention the error module.
14956         * doc/glibc-functions/error_at_line.texi (error_at_line):
14957         Likewise.
14958         * doc/glibc-functions/error_message_count.texi
14959         (error_message_count): Likewise.
14960         * doc/glibc-functions/error_one_per_line.texi
14961         (error_one_per_line): Likewise.
14963 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14965         vasnprintf: pacify clang 3.5.0
14966         Problem reported by Werner Lemberg in:
14967         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14968         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14969         The casts aren't needed, since the characters in question are ASCII.
14971 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14973         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14974         * lib/dirent--.h (GNULIB_defined_opendir):
14975         * lib/dirent.in.h (GNULIB_defined_opendir)
14976         (GNULIB_defined_closedir):
14977         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14978         #undef only if Gnulib defined it.
14980         poll: port to MSVC v18 on MS-Windows 8.1
14981         Problem reported by Gisle Vanem in:
14982         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14983         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14984         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14985         Add sys_socket.
14987 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14989         tests: support stderr verification with returns_()
14990         * tests/init.sh (returns_): Disable tracing for this wrapper
14991         function, so that stderr of the wrapped command is unchanged,
14992         allowing for verification of the contents.
14994 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14996         passfd: avoid valgrind uninitalised data warning
14997         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14998         to include just the fd we've initialized, rather than including
14999         the extra space used for alignment.
15001 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15003         uniwbrk/u32-wordbreaks-tests: fix copyright
15004         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
15006         dup2: doc and test for Android bug
15007         Reported by Kevin Cernekee in:
15008         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
15009         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15010         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
15012 2015-02-23  Kevin Cernekee  <cernekee@google.com>
15014         Replace dup2() on Android
15015         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
15016         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
15017         fails.  Using rpl_dup2() fixes this because it has an explicit test
15018         for this condition.
15020 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
15022         Android doesn't define RLIM_SAVED_*
15023         Portability problem reported by Kevin Cernekee in:
15024         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
15025         * doc/posix-headers/sys_resource.texi (sys/resource.h):
15026         Mention the portability problem.
15027         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
15028         Define if not defined.
15029         * m4/dup2.m4 (gl_FUNC_DUP2):
15030         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15031         Likewise.
15033 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15035         vasnprintf-posix-tests: use consistent test
15036         * tests/test-vasnprintf-posix.c (test_function):
15037         Use "<" in assert instead of "<=", for consistency with other tests.
15039 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15041         printf, isinf, etc.: noncanonical != NaN
15042         Do not require that isinf, printf, etc. treat noncanonical
15043         values as NaNs.  Instead, require only that they do not crash.
15044         Problem reported by Joseph Myers in:
15045         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
15046         * doc/posix-functions/dprintf.texi (dprintf):
15047         * doc/posix-functions/fprintf.texi (fprintf):
15048         * doc/posix-functions/isfinite.texi (isfinite):
15049         * doc/posix-functions/isinf.texi (isinf):
15050         * doc/posix-functions/isnan.texi (isnan):
15051         * doc/posix-functions/printf.texi (printf):
15052         * doc/posix-functions/snprintf.texi (snprintf):
15053         * doc/posix-functions/sprintf.texi (sprintf):
15054         * doc/posix-functions/vdprintf.texi (vdprintf):
15055         * doc/posix-functions/vfprintf.texi (vfprintf):
15056         * doc/posix-functions/vprintf.texi (vprintf):
15057         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15058         * doc/posix-functions/vsprintf.texi (vsprintf):
15059         Document this.
15060         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
15061         * m4/isinf.m4 (gl_ISINFL_WORKS):
15062         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
15063         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
15064         * tests/test-isfinite.c (test_isfinitel):
15065         * tests/test-isinf.c (test_isinfl):
15066         * tests/test-isnan.c (test_long_double):
15067         * tests/test-isnanl.h (main):
15068         * tests/test-snprintf-posix.h (test_function):
15069         * tests/test-sprintf-posix.h (test_function):
15070         * tests/test-vasnprintf-posix.c (test_function):
15071         * tests/test-vasprintf-posix.c (test_function):
15072 o       Test only that noncanonical values do not cause crashes, not that
15073         they are treated as NaNs.  In some cases this means a larger
15074         output buffer is needed.
15076 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
15078         fts: remove redundant close() (trivial)
15079         * lib/fts.c (fts_read): Remove redundant call to close().
15080         Spotted by coverity.
15082 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15084         getdtablesize: port better for Android
15085         Problem reported by Kevin Cernekee in:
15086         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
15087         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
15088         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
15089         Instead, just use getrlimit, taking care to avoid Cygwin bug.
15091         poll: fixes for large fds
15092         * lib/poll.c (poll): Don't check directly for NFD too large.
15093         Don't rely on undefined behavior in FD_SET when an arg exceeds
15094         FD_SETSIZE.  Always set revents afterwards, even if to zero.
15095         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
15096         as that makes the test a bit stricter.
15098 2015-02-19  Kevin Cernekee  <cernekee@google.com>
15100         fcntl: Fix cross compiling
15101         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
15102         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
15104 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15106         dup2, fcntl: cross-compile better for Android
15107         Problem reported by Kevin Cernekee in:
15108         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
15109         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
15110         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
15111         there's little need to cross-compile for older kernels nowadays.
15112         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
15113         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
15115 2015-02-18  Pádraig Brady  <P@draigBrady.com>
15117         getopt: don't crash on memory exhaustion
15118         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
15119         memory exhaustion.  In the _LIBC case we use alloca() as is
15120         already done in glibc, so we don't need to consider the separate
15121         error path in that awkward case.  Also fix a memory leak when
15122         ambiguous options are present.
15123         Reported by Tobias Stoeckmann
15125 2015-02-17  Mike Miller  <mtmiller@ieee.org>
15127         tempname: allow compilation with C++ (trivial)
15128         * lib/tempname.h [C++]: Specify extern "C" linkage.
15129         * lib/tempname.h (try_tempname):
15130         * lib/tempname.c (__try_tempname, __gen_tempname):
15131         Rename 'try' to 'tryfunc'.
15133 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15135         dup2, fcntl: port to AIX
15136         * m4/dup2.m4 (gl_FUNC_DUP2):
15137         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15138         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
15139         The former works on AIX 7.1 but the latter does not.
15140         Also, this may work better with Android; see:
15141         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
15143 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15145         getdtablesize, dup2, fcntl: port to Android
15146         Problem reported by Kevin Cernekee in:
15147         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
15148         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
15149         Mention that getdtablesize doesn't work on Android.
15150         * lib/getdtablesize.c: Use getrlimit substitute only if
15151         getdtablesize is declared.  This should suffice for Cygwin
15152         while not breaking Android.
15153         * m4/dup2.m4 (gl_FUNC_DUP2):
15154         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15155         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
15156         standardized but the latter is not, and sysconf works on Android.
15157         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
15158         Also check that getdtablesize is declared.
15159         This removes the need for a special case for Android.
15161 2015-02-16  Kevin Cernekee  <cernekee@google.com>
15163         localename: Implement gl_locale_name_thread_unsafe for Android
15164         * lib/localename.c: Android API level >= 21 supports two hardcoded
15165         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
15166         the internal __locale_t struct.
15168 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
15170         fts: avoid crash when a cycle is added while traversing
15171         This could be triggered by auto-mounting a recursive bind mount.
15172         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
15173         * lib/fts.c (fts_read): Avoid removing the original hash table item
15174         when leaving a directory that caused a cycle, and preserve the FTS_DC
15175         flag.
15177 2015-02-16  Daiki Ueno  <ueno@gnu.org>
15179         uniname/uniname: support character alias
15180         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
15181         Generate one-way mapping from aliases to codepoints in the
15182         generated tables.  Special case variation selectors to reduce
15183         table size.
15184         * lib/uniname/uniname.c (unicode_character_name): Special case
15185         variation selectors.
15186         (unicode_name_character): Special case variation selectors and
15187         their aliases.
15188         * lib/uniname/uninames.h: Regenerate.
15189         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
15190         * modules/uniname/uniname-tests (Files): Add
15191         tests/uniname/NameAliases.txt.
15192         * tests/uniname/test-uninames.c: Mark as static.
15193         (ALIASLEN): Define.
15194         (struct unicode_alias): New struct.
15195         (unicode_aliases): New variable.
15196         (fill_aliases): New function.
15197         (test_alias_lookup): New test function.
15198         (main): Run the 'test_alias_lookup' test if the second argument is
15199         given.
15200         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
15201         second argument.
15203 2015-02-11  Kevin Cernekee  <cernekee@google.com>
15205         Fix FILE struct compatibility with Android API level >= 21
15206         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
15207         __sferror.  Recent versions of Bionic's stdio.h no longer define
15208         __sferror.
15209         * lib/fbufmode.c: Likewise.
15210         * lib/fflush.c: Likewise.
15211         * lib/fpurge.c: Likewise.
15212         * lib/freadable.c: Likewise.
15213         * lib/freadahead.c: Likewise.
15214         * lib/freading.c: Likewise.
15215         * lib/freadptr.c: Likewise.
15216         * lib/freadseek.c: Likewise.
15217         * lib/fseeko.c: Likewise.
15218         * lib/fseterr.c: Likewise.
15219         * lib/fwritable.c: Likewise.
15221         Assume unbroken ungetc() on Android
15222         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
15223         test case passed when running on an Android host, and the code
15224         hasn't really changed since 2009.
15226         getdtablesize: Fix Android build
15227         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
15228         versions have this symbol in the .so library (at least 32-bit
15229         platforms) but are missing the declaration in the header file,
15230         causing the m4 logic to guess incorrectly.
15232         localename: Fix Android build
15233         * modules/localename (Depends-on): Add langinfo.
15235         getugroups: Fix Android build
15236         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
15237         functions.
15239         euidaccess: Fix Android build
15240         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
15241         AT_EACCESS gets declared.
15243         linkat_nofollow: Add fallback case for cross compiling
15244         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
15246         net_if: Handle content-free <net/if.h> system headers
15247         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
15248         struct if_nameindex.  If not, enable the replacement header.
15250         signal_h: Fix Android build
15251         * lib/signal.in.h: Add Android to the list of platforms that declare
15252         pthread_sigmask() in <pthread.h> instead of <signal.h>.
15254         duplocale: Fix Android build of duplocale-tests
15255         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
15256         is included by test-duplocale.c (but not by duplocale.c).
15257         * modules/duplocale-tests (configure.ac): Check for monetary.h.
15258         * tests/test-duplocale.c: Skip test if monetary.h is absent.
15259         * doc/posix-headers/monetary.texi: Add Android to the list of
15260         platforms missing monetary.h.
15262 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15264         tests: avoid recent -Werror=unused-variable regression in test-locale
15265         * tests/test-locale.c (main): Reference the variable to avoid the
15266         "unused variable" warning.
15268 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15270         maint: various whitespace cleanups in tempname
15271         * lib/tempname.c: Normalize spacing and line length.
15272         * lib/tempname.h: Likewise.
15273         * modules/tempname: Likewise.
15275 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15277         tests: provide returns_() to simplify exit status checking
15278         * tests/init.sh (returns_): A new function for use in tests,
15279         to allow for easier checking of return values, where you expect
15280         a command to exit with failure status.  By checking for a particular
15281         exit code, you don't hide any crashes for example.
15283 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15285         mountlist: only use libmount when specified
15286         There are currently many shared libs dependencies introduced by
15287         libmount with associated runtime and virt mem overhead.
15288         Therefore don't enable by default.
15289         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
15291 2015-02-08  Daiki Ueno  <ueno@gnu.org>
15293         uniname/unimame-tests: don't link with -lunistring
15294         * modules/uniname/uniname-tests (Makefile.am): Don't link against
15295         $(LIBUNISTRING).  Document the rationale why we need to
15296         conditionalize the test.
15298 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15300         fstrcmp: don't assume strlen < INT_MAX
15301         * lib/fstrcmp.c: Include stddef.h and stdint.h.
15302         (uintptr_t): Remove, as we're now assuming stdint.
15303         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
15304         Prefer ptrdiff_t to int when the value could exceed INT_MAX
15305         if the input string is long.
15306         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
15307         uintptr_t to size_t when the underlying value is a pointer casted
15308         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
15309         * modules/fstrcmp (Depends-on): Add stdint.
15311         diffseq: prefer ptrdiff_t to ssize_t
15312         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
15313         ptrdiff_t is the natural type for signed indexes.
15314         On a few older platforms, ssize_t is narrower than size_t.
15316         xalloc: fix typo that suppressed warnings
15317         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
15318         This typo, introduced a couple of years ago, mistakenly suppressed
15319         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
15320         -Wmissing-declarations warnings.
15322         full-read: fix license notice typo
15323         * lib/full-read.h: Remove a stray line in the license notice.
15324         Reported by Sam Ellis in: http://bugs.gnu.org/19808
15326         crypto/gc: fix a -Wswitch warning
15327         Reported by Bruce Korb in:
15328         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
15329         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15331 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15333         gnulib-tool: fix handling of patch(1) diagnostics
15334         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15335         as otherwise gnulib-tool will reparse that output and attempt
15336         to lookup modules.
15338 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15340         bootstrap: exit immediately upon gnulib-tool failure
15341         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15342         This was noticed when gnulib-tool exited early due to failure
15343         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15344         but various confusing errors were then given as the build proceeded.
15346 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15348         symlinkat: include all required header files
15349         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15350         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15351         Reported at https://savannah.gnu.org/bugs/index.php?44151
15352         and by Jack Howarth.
15354 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15356         localename: support Solaris 12 and illumos
15357         * lib/localename.c (gl_locale_name_thread_unsafe): call
15358         getlocalename_l() on newer __sun platforms.
15359         Reported by Alexander Pyhalov.
15360         Fix suggested by Rich Burridge.
15362 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15364         locale: fix tests on illumos (trivial)
15365         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15366         so move from global scope to main().
15368 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15370         unictype: avoid undefined left-shift behavior
15371         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15372         gcc's -fsanitize=shift and running its tests triggered:
15373           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15374             places cannot be represented in type 'int'
15375         Cast LHS to 'unsigned int' after integer promotion.
15376         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15377         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15379 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15381         libunistring: bump version of unitypes dependants
15382         Due to the header file search order, all the headers which depend
15383         on unitypes.h need to be generated, when the preinstalled
15384         libunistring is older.
15385         * modules/unicase/base (configure.ac): Bump minimum version to
15386         0.9.4.
15387         * modules/uniconv/base (configure.ac): Likewise.
15388         * modules/unilbrk/base (configure.ac): Likewise.
15389         * modules/uninorm/base (configure.ac): Likewise.
15390         * modules/unistdio/base (configure.ac): Likewise.
15391         * modules/unistr/base (configure.ac): Likewise.
15392         * modules/uniwbrk/base (configure.ac): Likewise.
15393         * modules/uniwidth/base (configure.ac): Likewise.
15395 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15397         unictype/category-none: fix link with libunistring
15398         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15399         prefixed with "libstring_" when compiled as part of libunistring.
15400         To avoid undefined symbol at link time, increase the minimum
15401         version when the dependant modules are updated.
15402         * modules/unictype/category-none (configure.ac): Bump minimum
15403         version to 0.9.5.
15405 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15407         unitypes: fix build with installed libunistring
15408         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15409         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15410         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15412 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15414         time: port to MinGW32 3.21
15415         Problem reported by Eli Zaretskii in:
15416         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15417         * lib/time.in.h:
15418         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15419         * modules/time (Depends-on):
15420         Fall back on unistd.h if the other include files don't define
15421         struct timespec.
15423         update-copyright: apply to self
15424         * build-aux/update-copyright: Fix copyright date.  How ironic!
15426 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15428         libunistring: update to Unicode 7.0.0
15429         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15430         Manichaean names.
15431         * lib/unictype/joininggroup_name.h: Likewise.
15432         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15433         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15434         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15435         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15436         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15437         enum values.
15438         (is_property_alphabetic): Accept newly added characters to
15439         cuneiform numeric signs.
15440         (is_property_default_ignorable_code_point): Reject U+0605.
15441         (FIELDLEN): Increase from 120 to 160.
15442         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15443         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15444         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15445         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15446         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15447         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15448         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15449         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15450         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15451         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15452         U+1E8D0..U+1E8D6.
15453         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15454         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15455         lib/uniwidth/width.c.
15456         * all generated files under lib/uni* and tests/uni*: Regenerate.
15458 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15460         libunistring: update to Unicode 6.3.0
15461         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15462         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15463         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15464         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15465         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15466         Update WB5, WB9, WB10, WB13a, and WB13b.
15467         * tests/uniwbrk/test-uc-wordbreaks.c
15468         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15469         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15470         (UC_BIDI_PDI): New enumeration values.
15471         (bidi_category_byname): Support those enum values.
15472         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15473         dedicated property assigned.
15474         (is_property_case_ignorable): Check 0x0027.
15475         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15476         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15477         (output_wbp): Support those enum values.
15478         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15479         (UC_BIDI_PDI): New enumeration values.
15480         * lib/unictype/bidi_byname.gperf: Add those property names.
15481         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15482         U+180E, U+1A1B, and U+2066..U+2069.
15483         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15484         lib/uniwidth/width.c.
15485         * all generated files under lib/uni* and tests/uni*: Regenerate.
15487 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15489         libunistring: update to Unicode 6.2.0
15490         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15491         (unilbrk_table): Adjust table size.
15492         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15493         for LBP_RI.
15494         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15495         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15496         Normalize table index skipping ignored properties.
15497         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15498         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15499         the table.
15500         * lib/uniwbrk/wbrktable.h: Adjust table size.
15501         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15502         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15503         Support rule GB8a.
15504         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15505         * tests/unigbrk/test-uc-is-grapheme-break.c
15506         (graphemebreakproperty_to_string): Support GBP_RI.
15507         * tests/uniwbrk/test-uc-wordbreaks.c
15508         (wordbreakproperty_to_string): Support WBP_RI.
15509         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15510         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15511         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15512         LBP_AL to LBP_ID.
15513         (output_lbp): Support LBP_RI.
15514         (WBP_RI): New enumeration value.
15515         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15516         (output_wbp): Support WBP_RI.
15517         (GBP_RI): New enumeration value.
15518         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15519         * all generated files under lib/uni* and tests/uni*: Regenerate.
15521 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15523         libunistring: update to Unicode 6.1.0
15524         * lib/gen-uni-tables.c (output_joining_group): Switch to
15525         3-level table to accommodate joining groups defined with higher
15526         codepoint value.  Since there are only 88 groups defined in
15527         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15528         (get_lbp): Update for Unicode 6.1.0.
15529         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15530         3-level table.
15531         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15532         joining group name.
15533         * lib/unictype/joininggroup_name.h: Likewise.
15534         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15535         (unilbrk_table): Adjust table size.
15536         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15537         for LBP_HL.
15538         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15539         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15540         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15541         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15542         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15543         U+302E..U+302F.
15544         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15545         lib/uniwidth/width.c.
15546         * all generated files under lib/uni* and tests/uni*: Regenerate.
15547         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15549 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15551         uniwbrk/u32-wordbreaks-tests: add conformance test
15552         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15553         tests/uniwbrk/test-uc-wordbreaks.c,
15554         tests/uniwbrk/test-uc-wordbreaks.sh, and
15555         tests/uniwbrk/WordBreakTest.txt.
15556         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15557         test-uc-wordbreaks to $(check_PROGRAMS), and define
15558         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15559         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15560         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15562 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15564         uniwbrk: ignore Extended/Format characters at BOL not BOS
15565         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15566         characters if the previous character property is one of
15567         WBP_NEWLINE, WBP_CR, and WBP_LF.
15569 2015-01-11  Jim Meyering  <meyering@fb.com>
15571         test-strstr.c: avoid a trivial leak
15572         * tests/test-strstr.c (main): Free haystack.
15574         update-copyright: recognize groff's \(co marker
15575         * build-aux/update-copyright (circle_c_re): Also accept
15576         uses of \(co, as found in gzip.1.
15578 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15580         maint.mk: fix compatibility with OS X nm
15581         * top/maint.mk (_gl_tight_scope): Use the -g option to
15582         show exported items rather than the -e option which is
15583         ignored on all platforms except OS X where it gives an error.
15584         Reported by Assaf Gordon.
15586 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15588         localcharset: improve charset detection on OS/2
15589         Use system codepage when appropriate.  Map OS/2 codepages to
15590         GNU canonical charset names if possible.
15591         * lib/config.charset: Don't output aliases if "$os" is os2*.
15592         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15593         result for OS/2.
15594         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15595         from the locale name which is neither "C" nor "POSIX".
15597 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15599         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15600         This reverts the last patch but one, as it shouldn't be needed now
15601         that the typo is fixed.
15602         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15603         * lib/count-trailing-zeros.h:
15604         * lib/count-one-bits.h:
15605         Go back to using 64-bit intrinsics.
15607         count-leading-zeros: fix pragma typos
15608         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15609         Fix typos in declaration of intrinsics when _MSC_VER.
15611 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15613         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15614         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15615         intrinsics in this case.
15616         * lib/count-trailing-zeros.h: Likewise.
15617         * lib/count-one-bits.h: Likewise.
15619 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15621         uniname/uniname: update to Unicode 7.0.0
15622         To accommodate new characters added since Unicode 5.1.0, this
15623         changes the internal representation of codepoint ranges.
15624         Previously, we grouped codepoint ranges by manually assigned 4-bit
15625         tag, which only allowed 16 groups.  This removes the limitation by
15626         switching to binary search on a table.  For the detail rationale
15627         and the benchmark results, see:
15628         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15629         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15630         to INDEX, as it no longer represents a codepoint.
15631         (range): New struct.
15632         (main): Switch to intervals list from a bit-pattern based
15633         classification.
15634         * lib/uniname/uninames.h: Regenerate.
15635         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15636         * modules/uniname/base (configure.ac): Bump minimum version to
15637         0.9.5.
15638         * modules/uniname/uniname (configure.ac): Bump minimum version to
15639         0.9.5.
15641 2015-01-05  Eric Blake  <eblake@redhat.com>
15643         doc: update INSTALL from autoconf
15644         * doc/install.texi: Resync from autoconf.
15645         * doc/INSTALL: Reflect recent autoconf update.
15646         * doc/INSTALL.ISO: Likewise.
15647         * doc/INSTALL.UTF-8: Likewise.
15649         stdio: fix use of PRIdMAX on modern mingw
15650         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15651         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15652         to work with modern mingw.
15654 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15656         pthread: detect git mingw builds with only partial pollution
15657         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15658         pollution, as seen temporarily in Fedora 21.
15660 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15662         lib-symbol-versions: cache script check
15663         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15664         Cache the check for linker version scripts.
15665         From a suggestion by Christophe Curis in:
15666         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15668 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15670         maint: fix grammar nits in propername (trivial change)
15671         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15672         and use an adequate verb and tense.
15674 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15676         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15677         * module/gendocs: Add 'doc/gendocs_template_min'.
15679         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15680         from to Gnulib's.
15681         (scripturl, templateurl): Adjust accordingly.
15683 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15685         gendocs: copyright date and version fix
15686         Reported by Karl Berry in:
15687         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15688         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15689         Fix copyright date.
15690         * build-aux/gendocs.sh (scriptversion): Update.
15692 2015-01-01  Karl Berry  <karl@gnu.org>
15694         * doc/install.texi,
15695         * build-aux/mdate-sh,
15696         * build-aux/depcomp,
15697         * build-aux/config.guess,
15698         * build-aux/config.sub,
15699         * build-aux/ar-lib,
15700         * build-aux/compile: revert copyright updates (some from last
15701         year) in slaved files.
15703 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15705         version-etc: new year
15706         * doc/gnulib.texi:
15707         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15708         * all files: Run 'make update-copyright'.
15710 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15712         xstrtol: ensure errno is reset
15713         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15714         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15716         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15718 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15720         utimens: fix dependency typo
15721         * modules/utimens (Depends-on): Remove 'assure'.
15722         This bug was introduced in the recent 'assure' patch.
15724 2014-12-22  Eric Blake  <eblake@redhat.com>
15726         docs: mention why libgen.h is bad
15727         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15729 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15731         assure: new module
15732         This works better than 'assert' when compiling with -DNDEBUG,
15733         as it avoids some compiler diagnostics in that case.
15734         Reported by Norihiro Tanaka in:
15735         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15736         * MODULES.html.sh (func_all_modules): Add 'assure'.
15737         * lib/assure.h, modules/assure: New files.
15738         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15739         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15740         Prefer 'assure' to 'assert'.
15741         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15742         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15743         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15744         Depend on 'assure'.
15746 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15748         stdalign: port better to HP compilers
15749         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15750         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15752         stdalign: work around Apple GCC 4.0 bug
15753         Reported by David Fang in:
15754         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15755         * lib/stdalign.in.h (_Alignas):
15756         * m4/stdalign.m4 (gl_STDALIGN_H):
15757         Do not use aligned attribute with GCC 4.0 on Apple.
15759 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15761         getcwd: fix test failure on OS X 10.9
15762         * m4/getcwd-path-max.m4: Avoid the replacement if it
15763         won't be effective due to the PATH_MAX limitation of lstat().
15764         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15765         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15766         for this case for use in tests, and also exclude this
15767         case when setting REPLACE_GETCWD.
15768         * tests/test-getcwd.c (test_long_name): Restrict the
15769         tested path length so that lstat() will not be passed
15770         a path greater than PATH_MAX.
15771         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15772         than AT_FDCWD, since the latter is set unconditionally
15773         since Sep 2009 in commit 52c658e9.
15775 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15777         parse-datetime: avoid a compiler warning with byacc (trivial)
15778         * lib/parse-datetime.y (yylex): Use the same prototype in the
15779         function definition as the declaration, to avoid a -Wstrict-prototypes
15780         warning seen when using byacc.
15782 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15784         unicase/locale-language-tests: fix LOCALE_FR test
15785         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15786         a French locale with traditional encoding.
15787         Reported by umerqayam in:
15788         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15790 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15792         stddef: support C11's max_align_t
15793         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15794         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15795         Do not undef, as that might cause max_align_t to be defined twice.
15796         Instead, change use to check for _GL_STDDEF_WINT_T too.
15797         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15798         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15799         Check for max_align_t.
15800         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15801         * modules/stddef-tests (Depends-on): Add stdalign.
15802         * tests/test-stddef.c: Test max_align_t.
15804 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15806         unistd: fix iOS check conditional
15807         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15808         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15809         yielded true on non-iOS environment.
15810         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15811         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15812         they are defined.
15814 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15816         posixtm: avoid compiler warning in a better way
15817         * lib/posixtm.c (IF_LINT): Remove.
15818         (year, posix_time_parse):
15819         Return true (not 0) if successful.  All callers changed.
15820         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15822 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15824         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15825         started with '/' on EMX.
15827 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15829         freopen: workaround freopen() on OS/2 kLIBC
15830         * lib/freopen.c (rpl_freopen): Workaround.
15831         * m4/freopen.m4: Add os2* case.
15833         get_shared_library_fullname: port to EMX
15834         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15835         on EMX, respectively.
15836         (_DLL_InitTerm): New on EMX.
15837         (get_shared_library_fullname): Implement on EMX.
15839         find_executable: port to EMX
15840         * lib/progreloc.c (find_executable): Implement on EMX.
15842         sched: check struct sched_param in spawn.h as well
15843         * lib/sched.in.h: Include spawn.h on kLIBC.
15844         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15846 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15848         bootstrap: Allow perl modules in $buildreq
15849         * build-aux/bootstrap: Add case for perl modules.
15851 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15853         apply _GL_ATTRIBUTE_PURE to some inline functions
15854         clang 3.4.2 flagged these inline functions as pure
15855         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15856         * lib/sig-handler.h (get_handler): Likewise.
15857         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15858         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15860 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15862         vasnprintf: fix potential use after free
15863         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15864         flagged by clang-analyzer 3.4.2.
15866 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15868         filevercmp, posixtm: avoid compiler warnings with -O3
15869         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15870         * lib/posixtm.c: (IF_LINT): Define.
15871         (posix_time_parse): Use it to void a "may be used uninitialized"
15872         warning, seen only with -O3.
15874 2014-12-05  Bruno Haible  <bruno@clisp.org>
15876         Fix LDBL80_WORDS macro on big endian platforms.
15877         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15878         LDBL80_WORDS macro.
15879         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15880         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15881         * tests/test-isfinite.c (test_isfinitel): Likewise.
15882         * tests/test-isinf.c (test_isinfl): Likewise.
15883         * tests/test-isnan.c (test_long_double): Likewise.
15884         * tests/test-isnanl.h (main): Likewise.
15885         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15886         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15887         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15888         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15889         Reported by Pádraig Brady.
15891 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15893         git-version-gen: do not print new line characters
15894         * build-aux/git-version-gen: Use printf instead of echo and tr.
15896         gnulib-tool: recognize x:* as an absolute path
15897         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15898         (func_relconcat): Likewise.
15900 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15902         argp: avoid extraneous translation and mem leak with empty pre doc
15903         * lib/argp-help.c (argp_doc): Never translate the empty string,
15904         when "\v" is the first or last character of the string, as that
15905         has a reserved meaning to return the header info from a po file.
15906         This also fixes a small memory leak in the !post case.
15907         The issue can be seen with this command for example:
15908         LC_MESSAGES=en_US grub2-mknetdir --help
15910 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15912         uniname/uniname-tests: skip if system's libunistring is used
15913         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15914         uniname/uniname module is not compiled.
15916 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15918         printf: fix configure check on big endian systems
15919         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15921 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15923         pipe-filter-gi, pipe-filter-ii: port to AIX
15924         On AIX 7.1, 'select' is defined as static and cannot be referred
15925         to from inline function.
15926         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15927         the definition...
15928         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15929         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15931 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15933         gitlog-to-changelog: add --until
15934         * build-aux/gitlog-to-changelog: Support new --until option.
15935         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15937 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15939         extern-inline: update commentary about GCC bugs
15940         * m4/extern-inline.m4: Add another GCC bug number to comments.
15942 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15944         gen-uni-tables: untabify
15945         * lib/gen-uni-tables.c: Untabify.
15947 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15949         gen-uni-tables: check out-of-range values added to 3-level tables
15950         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15951         (output_joining_type, output_ident_category): Check out-of-range
15952         values added to 3-level tables.
15954 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15956         gen-uni-tables: utilize 'assert'
15957         * lib/gen-uni-tables.c: Include <assert.h>.
15958         (output_category, output_combclass, output_decimal_digit_test)
15959         (output_decimal_digit, output_digit_test, output_digit)
15960         (output_numeric, get_mirror_value, fill_properties)
15961         (fill_property30, is_property_alphabetic)
15962         (is_property_default_ignorable_code_point)
15963         (is_property_uppercase, is_property_lowercase)
15964         (is_property_cased, is_property_case_ignorable)
15965         (is_property_changes_when_lowercased, is_property_iso_control)
15966         (is_property_math, fill_arabicshaping, output_joining_group)
15967         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15968         (output_wbp, fill_org_gbp, get_decomposition)
15969         (output_decomposition, fill_composition_exclusions)
15970         (debug_output_composition_tables, output_composition_tables)
15971         (redistribute_casefolding_rules, output_casing_rules): Use
15972         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15973         reporting.
15975 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15977         gen-uni-tables: cosmetic improvements
15978         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15979         variables specification.
15980         (is_outdigit): Remove unused function.
15982 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15984         fcntl-h-tests: port to PA-RISC GNU/Linux
15985         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15987 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15989         fts: port to C89
15990         Problem reported for MSVC 16 by Gisle Vanem in:
15991         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15992         * lib/fts.c (fts_build): Avoid declaration before statement.
15994 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15996         unistd: port to iOS
15997         Problem reported by André Klitzing in:
15998         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15999         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
16001 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16003         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
16004         Problem reported by Alan Modra in:
16005         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
16006         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
16007         Always cast the function arg, reverting this part of the previous
16008         change.
16010 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
16012         obstack: avoid potentially-nonportable function casts
16013         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
16014         Remove, replacing with ...
16015         (call_chunkfun, call_freefun): New static functions.
16016         All uses changed.  Avoid potentially-nonportable casts.
16017         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
16018         (_obstack_begin_worker): Omit last two args, since they
16019         rely on potentially-nonportable casts.  All callers changed.
16020         * lib/obstack.h (_OBSTACK_CAST): New macro.
16021         Use it everywhere the old API used a potentially-nonportable cast.
16022         The new API doesn't cast.
16023         (struct obstack): Use unions rather than requiring
16024         potentially-nonportable casts.
16025         (obstack_chunkfun, obstack_freefun): Return void.
16027 2014-11-03  Alan Modra  <amodra@gmail.com>
16029         obstack: fix macro return values
16030         * lib/obstack.h (obstack_next_free): Return void *.
16031         (obstack_1grow_fast, obstack_blank_fast): Return void.
16032         For __GNUC__ macros:
16033         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
16034         For !__GNUC__ macros:
16035         (obstack_make_room, obstack_grow, obstack_grow0)
16036         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
16038 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16040         obstack: do not assume system-supplied obstack is size_t safe
16041         * m4/obstack.m4: New file.
16042         * modules/obstack (Files): Add it.
16044         obstack: port to platforms that #define __alignof__
16045         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
16046         not if !_LIBC.  We don't know of any platforms that #define
16047         __alignof__, but it might be useful in tests.  Conversely,
16048         glibc assumes GCC.
16050 2014-11-03  Pádraig Brady  <P@draigBrady.com>
16052         linkat: don't unconditionally replace on GNU/Linux
16053         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
16054         was redundant for a few reasons.  It was present to support compiling
16055         on new systems but running on the old narrow window of Linux 2.6.1[67].
16056         It setup and cleaned up test files which weren't actually used.
16057         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
16058         implicit in the following check.
16060 2014-11-03  Pádraig Brady  <P@draigBrady.com>
16062         linkat: wrap to handle symlinks on OS X 10.10
16063         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
16064         but not usable because it doesn't support creating hardlinks
16065         to symlinks.  Therefore add a generic test for this capability
16066         and fallback to our emulation if linkat() fails with ENOTSUP.
16068 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16070         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
16071         * doc/posix-functions/open.texi (open):
16072         * doc/posix-functions/openat.texi (openat):
16073         Document that these functions do not set errno to ELOOP when
16074         a symlink is opened with O_NOFOLLOW.
16076 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16078         obstack: add NEWS entry for recent incompatible changes
16079         * NEWS: Describe recent changes.
16081 2014-10-30  Pádraig Brady  <P@draigBrady.com>
16083         mountlist: don't use libmount to decide on dummy/remote
16084         * lib/mountlist.c (read_file_system_list): Don't use the libmount
16085         routines to determine whether a file system is dummy or remote,
16086         as they're not currently compatible.  For example the remoteness
16087         is determined on file system type (for which the list seems incomplete),
16088         rather than simply checking for a ':' in the device name.
16089         Also libmount currently determines that 'tmpfs' is a dummy file system
16090         even though it has associated storage.
16092 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16094         obstack: prefer __alignof__ to alignof
16095         This is for portability to pre-4.7 GCC when compiling glibc.
16096         See Joseph S. Myers in:
16097         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
16098         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
16099         New macro, defined by including and using <alignof.h>.
16100         (MAX): New macro.
16101         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
16102         Do not use enums as they are not portable to some broken compilers.
16103         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
16105         obstack: prefer alignof to calculating alignments by hand
16106         * lib/obstack.c: Include <stdalign.h>.
16107         (struct fooalign): Remove.
16108         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
16109         * modules/obstack (Depends-on): Add stdalign.
16111 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
16113         obstack: use size_t alignments and check for overflow
16114         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
16115         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
16116         * lib/obstack.h (struct obstack.alignment_mask):
16117         Use _OBSTACK_SIZE_T, not int, for alignments.
16118         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
16119         overflows, e.g., when adding the alignment.
16121 2014-10-29  Alan Modra  <amodra@gmail.com>
16123         obstack: 64-bit obstack support, part 3
16124         This finally enables full 64-bit obstack support.  The glibc
16125         shared library specific code is removed from obstack.c too, and
16126         the error handling code conditionally compiled under control of
16127         another macro, _OBSTACK_NO_ERROR_HANDLER.
16128         * lib/obstack.h: Include string.h earlier.
16129         (_OBSTACK_INTERFACE_VERSION): Define.
16130         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
16131         * lib/obstack.c: Don't include shlib-compat.h.
16132         (OBSTACK_INTERFACE_VERSION): Delete.
16133         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
16134         glibc code is compatible with version 2.  Don't include stdio.h for
16135         __GNU_LIBRARY.
16136         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
16137         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
16138         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
16139         glibc shared library specific source.
16141         obstack: 64-bit obstack support, part 2
16142         This gets us 4G obstack support, without changing ABI
16143         compatibility, apart from possibly introducing some
16144         signed/unsigned comparison warnings in code that uses obstack.h.
16145         a) Replace "int" size parameters, return values, and macro local vars
16146            with _OBSTACK_SIZE_T, an "unsigned int" for now.
16147         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
16148         c) Make all obstack macros checking available room use obstack_room.
16149            "next_free + desired > chunk_limit" may wrap the lhs for chunks
16150            allocated near the top of memory.
16151         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
16152         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
16153         in place of "int" size parameters, return values and local vars.
16154         (_CHUNK_SIZE_T): Define.
16155         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
16156         union use an _OBSTACK_SIZE_T integer type.
16157         For __GNUC__ versions of the following macros...
16158         (obstack_room): Rename local var.
16159         (obstack_make_room): Use obstack_room.
16160         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16161         obstack_int_grow, obstack_blank): Likewise.
16162         (obstack_finish): Use unsigned comparison when comparing aligned
16163         next_free against chunk_limit.
16164         (obstack_free): Cast OBJ to remove possible const qualifier.
16165         For !__GNUC__ versions of the following macros...
16166         (obstack_make_room): Use obstack_room.
16167         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16168         obstack_int_grow, obstack_blank): Likewise.
16169         (obstack_finish): Use unsigned comparision when comparing aligned
16170         next_free against chunk_limit.
16171         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
16172         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
16173         _OBSTACK_SIZE_T.
16174         (_obstack_begin, _obstack_begin_1): Likewise.
16175         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
16176         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
16178         obstack: 64-bit obstack support, part 1
16179         a) Correct calls to alloc function, to use a size_t arg.  "long" is
16180            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
16181            and "size_t" 64 bits.
16182         b) Consolidate _obstack_begin and _obstack_begin1 code.
16183         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
16184         use "size_t" rather than "long".
16185         (_obstack_begin, _obstack_begin1): Likewise.
16186         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
16187         obstack_chunkfun): Update alloc function casts.
16188         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
16189         (chunkfun_type, freefun_type): New typdefs.
16190         (_obstack_begin_worker): Split out from ..
16191         (_obstack_begin, _obstack_begin_1): ..here.
16193         obstack: tidy part 2
16194         a) Don't be concerned about "not polluting the namespace with stddef.h
16195            symbols" in obstack.h, since gnulib string.h includes stddef.h
16196            anyway, and it seems unlikely that anyone would care.
16197         b) Don't roll our own slow memcpy in _obstack_newchunk.
16198         c) Rename obstack_free to _obstack_free.  This makes the naming
16199            consistent with other obstack functions and obviates the need for
16200            __obstack_free.  Ancient obstack.c defined both obstack_free and
16201            _obstack_free.  We continue to do that for _LIBC via an alias.
16202         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
16203            is clever, but nowadays gcc warns on undefined macros.  You'll get
16204            an undefined macro warning if simulating an old gcc with -U__GNUC__
16205            -U__GNUC_MINOR__ -D__GNUC__=1.
16206         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
16207         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
16208         (__obstack_free): Delete, update refs.
16209         (_obstack_free): Rename from obstack_free.
16210         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
16211         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
16212         * lib/obstack.c: Don't include stddef.h.
16213         (COPYING_UNIT): Delete.
16214         (_obstack_begin): Formatting fix.
16215         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
16216         (_obstack_free): Rename from __obstack_free, update alias.  Move
16217         undef of obstack_free to where it is needed.
16219         obstack: tidy part 1
16220         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
16221            to me, and result in overlong lines after later patches.
16222         b) Move error handling code, to avoid a forward declaration and to
16223            simplify later patches in this series.
16224         * lib/obstack.h (struct obstack <temp>): Rename fields of union
16225         and update all uses.
16226         * lib/obstack.c: Include stdlib.h earlier.
16227         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
16228         in file.
16229         (print_and_abort): Remove now redundant forward declaration.
16231 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16233         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
16234         Without this change, in bleeding-edge fileutils Autoconf complains
16235         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
16236         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
16237         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
16238         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
16240 2014-10-24  Daiki Ueno  <ueno@gnu.org>
16242         iconv: avoid false detection of non-working iconv
16243         The INBUF arguments of iconv can be either 'const char **'
16244         or 'char **'.  If CC is g++, the difference causes a compile error
16245         and thus leads to a false detection of non-working iconv.
16246         Reported by Eli Zaretskii and Werner LEMBERG in:
16247         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
16248         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
16249         iconv.  Bump serial number.
16251 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16253         bootstrap: print more diagnostics for missing programs
16254         * build-aux/bootstrap: only suppress stderr when checking for
16255         alternative program names.  This supports programs issuing non
16256         standard error messages.
16258 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16260         bootstrap: only update the gnulib submodule
16261         * build-aux/bootstrap: Restrict the "submodule update" command
16262         to the gnulib path.
16264 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16266         symlinkat: port to AIX 7.1
16267         * doc/posix-functions/symlinkat.texi (symlinkat):
16268         Mention AIX porting problem.
16269         * lib/symlinkat.c: Always include errno.h.
16270         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
16271         * lib/unistd.in.h (symlinkat): Add replacement machinery.
16272         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
16273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
16274         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
16275         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
16276         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
16278         readlinkat: port to AIX 7.1
16279         * doc/posix-functions/readlink.texi (readlink):
16280         * doc/posix-functions/readlinkat.texi (readlinkat):
16281         Mention AIX porting problem.
16282         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
16283         New function.
16284         * lib/unistd.in.h (readlinkat): Add replacement machinery.
16285         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
16286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
16287         * modules/readlinkat (configure.ac): Also compile replacement
16288         if REPLACE_READLINKAT.
16289         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
16291 2014-10-12  Karl Berry  <karl@gnu.org>
16293         * doc/posix-functions/dirname.texi: remove spurious {.
16295 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
16297         basename, dirname: Improve documentation.
16298         * doc/posix-functions/basename.texi: Mention dirname module and
16299         base_name() function.
16300         * doc/posix-functions/dirname.texi: Mention dir_name() and
16301         mdir_name() functions.
16302         Suggested by Werner LEMBERG <wl@gnu.org>.
16304 2014-09-24  Jim Meyering  <meyering@fb.com>
16306         exclude: declare exclude_patopts static
16307         * lib/exclude.c (exclude_patopts): Declare static,
16308         to avoid triggering a -Wmissing-prototypes warning.
16309         The alternative (declaring it in the .h file) would
16310         require publicizing the private "struct patopts".
16312 2014-09-21  Werner Lemberg  <wl@gnu.org>
16314         dirname: support compilation with C++
16315         * lib/dirname.h: Add necessary C linkage declarations.
16317 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16319         qsort_r: include <config.h>
16320         Problem reported by Tom G. Christensen in:
16321         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
16322         * lib/qsort.c [!_LIBC]: Include <config.h> first.
16324 2014-09-16  Dylan Cali  <calid1984@gmail.com>
16326         avltree-list: avoid compiler warnings (trivial)
16327         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
16328         -Werror=suggest-attribute=pure.
16329         * lib/gl_array_list.c: Likewise.
16330         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16331         declaration to avoid -Werror=missing-prototypes.  This is not added
16332         to a header as only exported for tests.  Add (void) to the
16333         check_invariants() call to indicate we're discarding the result
16334         in this context which avoids -Werror=unused-value.  Note we don't
16335         use ignore_value here to avoid a dependency as we know we'll not
16336         be adding __attribute__((warn_unused_result)) to check_invariants().
16337         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16339 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16341         qsort_r: new module, for GNU-style qsort_r
16342         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16344 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16346         strerror_r-posix: support compilation with C++
16347         * lib/strerror_r.c: Add necessary C linkage declarations.
16349 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16351         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16352         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16354 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16356         mountlist: use /proc/self/mountinfo when available
16357         Use libmount to propagate device IDs provided by Linux in
16358         /proc/self/mountinfo.  This will give more accurate output when
16359         using df in chroot'ed environments as the device IDs are not
16360         determined by stat() which may be inaccurate within the chroot.
16361         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16362         from util-linux to parse "/proc/self/mountinfo" or fall back to
16363         standard getmntent() processing.
16364         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16365         getmntent() is used, as is the case on GNU/Linux.
16367 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16369         users.txt: add cmogstored
16370         cmogstored has used gnulib since the beginning in 2012 to support
16371         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16373 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16375         Trivial change.
16376         * gnulib-tool: Use same options as build-aux/bootstrap to download
16377         PO files.
16379 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16381         Trivial change.
16382         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16384 2014-09-04  Eric Blake  <eblake@redhat.com>
16386         maintainer-makefile: add syntax check for useless ';;'
16387         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16389 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16391         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16392         Problem reported by Assaf Gordon in:
16393         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16394         Apparently Ubuntu is doing some fancy link-time optimization
16395         that doesn't work with -lpthread but does work with -pthread.
16396         Work around the bug by preferring -pthread to -lpthread.
16397         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16398         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16399         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16400         Treat -pthread like -lpthread.
16402 2014-09-04  Eric Blake  <eblake@redhat.com>
16404         error: drop spurious semicolon
16405         * lib/error.c (__error_at_line): Fix ';;'.
16407 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16409         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16410         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16411         Override AC_C_RESTRICT unconditionally.
16412         Update from autoconf, incorporating:
16413         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16414         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16416 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16418         manywarnings: add GCC 4.9 warnings
16419         Also, make it easier to maintain this in the future.
16420         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16421         -Wconditionally-supported, -Wdelete-incomplete,
16422         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16423         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16424         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16425         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16426         only for older GCC versions that need them.  Handle
16427         -Wnormalized=nfc specially, so that the 'comm' command used
16428         for maintenance doesn't get confused.
16430 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16432         vasnprintf: fix bugs in width computation
16433         * lib/vasnprintf.c (VASNPRINTF):
16434         Rework previous change, which introduced a bug,
16435         to avoid the warning in a different way.
16436         Avoid undefined behavior if the width arg is less than -INT_MAX.
16437         Avoid unnecessary use of HAS_WIDTH local.
16439 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16441         vasnprintf: Avoid signed/unsigned comparison warning.
16442         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16443         compare end addr of generated string w/ maximum end addr.
16445 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16447         parse-datetime: Avoid pointer difference.
16448         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16449         instead of calculating difference of pointers.  This removes an
16450         annoying warning, devoid of any use.
16452 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16454         qsort_r: new module, for GNU-style qsort_r
16455         This works even on FreeBSD, which has an incompatible qsort_r API.
16456         * MODULES.html.sh: Add it.
16457         * doc/glibc-functions/qsort_r.texi: It's now supported.
16458         * lib/qsort.c: New file, taken from glibc with minor changes
16459         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16460         removed.
16461         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16462         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16464         * modules/qsort_r, modules/qsort_r-tests: New files.
16465         * modules/stdlib (Makefile): Set up its defaults.
16466         * tests/test-qsort_r.c: New file.
16468 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16470         vla: new module
16471         GNU RCS can use this, mostly for documentation I expect.  See:
16472         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16473         * MODULES.html.sh: Add vla.
16474         * lib/vla.h, modules/vla: New files.
16476 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16478         localename: make gl_locale_name_thread really thread-safe on Windows
16479         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16480         "glthread/lock.h".
16481         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16482         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16484 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16486         getpass: don't assume struct termios
16487         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16488         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16489         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16491         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16492         Problem reported by Jonas 'Sortie' Termansen in:
16493         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16494         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16495         Implement via sysconf for platforms that lack getdtablesize.
16497         vararrays: modernize AC_C_VARARRAYS for C11
16498         This backports a change I recently made to Autoconf.
16499         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16500         VLAs are not supported, as this is what C11 does.  The old macro
16501         HAVE_C_VARARRAYS is still defined if they are supported, but is
16502         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16504 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16506         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16507         * build-aux/install-reloc (func_create_wrapper): Also wrap
16508         strerror-override, stat, stat.
16510 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16512         sys_select: fix FD_ZERO problem on Solaris 10
16513         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16514         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16515         to expand to an expression that invoked memset without necessarily
16516         including <string.h>.  The problem was that the first include
16517         defined _SYS_TIME_H, causing the second include to short-circuit.
16518         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16519         Also, fix what appears to be a cut-and-paste typo, by replacing
16520         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16521         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16523         accept: document Solaris 10 type glitch
16524         * doc/posix-functions/accept.texi (accept): Mention that
16525         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16527 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16529         extern-inline: port to FreeBSD, DragonFly
16530         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16531         is present if either __DragonFly__ or __FreeBSD__ is defined.
16532         FreeBSD problem reported by Andrey Borzenkov in:
16533         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16534         Also, worry about __APPLE__ only if __MACH__ is also defined,
16535         as this is more consistent with the rest of gnulib.
16536         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16537         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16539 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16541         regex: Make #if/#ifdef usage consistent for DEBUG
16542         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16543         of the inconsistent usage of #if and #ifdef as that works with
16544         both Glibc and Gnulib's style.
16546 2014-07-31  Eric Blake  <eblake@redhat.com>
16548         openat-die: use _Noreturn markup
16549         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16550         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16551         _Noreturn.
16553 2014-07-30  Eric Blake  <eblake@redhat.com>
16555         test-open: port to cygwin, which lacks Fortify
16556         * tests/test-open.h (ALWAYS_INLINE): New macro.
16557         (__always_inline): Don't abuse internal symbol on non-glibc.
16559 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16561         localename: Enforce declarations before statements.
16562         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16563         first statement.
16565 2014-07-18  Jim Meyering  <meyering@fb.com>
16567         test-userspec: don't look up numeric user names
16568         * tests/test-userspec.c: I found a system for which getpwnam("0")
16569         returned a pointer to a non-root user's entry, and that made the
16570         test fail.
16571         (T): Prefix each numeric input with "+", to inhibit lookup.
16573 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16575         localcharset, localename: MS-Windows support for non-default locales
16576         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16577         falling back on the default system codepage, try extracting
16578         the codepage from what 'setlocale' returns.  This allows to
16579         take into account changes of the codeset due to non-default
16580         locale set by a previous call to 'setlocale'.
16581         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16582         Define if not already defined.
16583         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16584         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16585         current locale by calling 'setlocale', then converting the
16586         locale name into LCID by calling 'get_lcid'.  This allows to
16587         take into account changes in the current locale from the
16588         default one, in contrast to GetThreadLocale.
16590 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16592         announce-gen: avoid failure when Digest::SHA is installed
16593         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16594         Digest::SHA1->new in print_checksums fails.
16595         * build-aux/announce-gen (digest_classes): New associative array
16596         for available message digest implementations.
16597         (print_locations): Use it.
16599 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16601         gettext: revert "update macros to version 0.19"
16602         This reverts commit 9b9370ca, as it currently requires that
16603         developers of any project that explicitly uses the gettext module
16604         or implicitly uses it through the utimens-tests or
16605         futimens-tests modules, use gettext >= 0.19.
16606         However there are some stability and availablity issues with
16607         that version at present.  We can reinstate this soon, when stability
16608         is addressed and packages are more readily available.
16610 2014-07-12  Jim Meyering  <meyering@fb.com>
16612         regex: don't deref NULL upon heap allocation failure
16613         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16614         failure in one more place.
16615         To trigger the segfault, configure grep -with-included-regex,
16616         build it, and run these commands:
16617         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16618         I discovered this while replying to a private report from
16619         Jens Schleusener about excessive memory consumption by grep
16620         when using a regular expression like the one above.
16622 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16624         regex: fix memory leak in compiler
16625         Fix by Andreas Schwab in:
16626         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16627         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16628         constructed tree before returning error.
16630 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16632         announce-gen: avoid perl warnings
16633         * build-aux/announce-gen: add two minor checks to avoid
16634         "use of uninitialized value" warnings when command-line parameters are
16635         missing.
16637 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16639         localename: avoid -Wsuggest-attribute={const,pure} warnings
16640         * lib/localename.c (string_has): Tag internal function as pure.
16641         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16642         as const when appropriate.
16644 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16646         nl_langinfo: Fix last change.
16647         * lib/nl_langinfo.c (includes): Drop redundant include.
16649 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16651         error: Fix -Wundef warnings in glibc
16652         * lib/error.c [_LIBC]: Define default macros for
16653         glibc.
16654         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16655         Check _LIBC before STRERROR_R_CHAR_P.
16657         error: Sync from glibc master
16658         * lib/error.c [_LIBC]: Remove INTUSE usage.
16659         (error_tail): Remove unused macro ALLOCA_LIMIT.
16660         Fix potential buffer overflow.  Fix potential NULL dereference
16661         in strcmp.
16663 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16665         nl_langinfo: fix build under mingw
16666         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16668 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16670         mountlist: do not classify a bind-mounted dir entry as "dummy"
16671         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16672         1-argument getmntent() (instead of assuming absence).
16674 2014-07-08  Eric Blake  <eblake@redhat.com>
16676         maint.mk: less syntax-check noise when SIGPIPE is ignored
16677         * top/maint.mk (_sc_header_without_use)
16678         (sc_require_config_h_first): Parse full list.
16680 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16681             Paul Eggert  <eggert@cs.ucla.edu>
16683         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16684         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16685         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16686         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16687         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16688         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16689         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16690         Include <stdio.h> if Microsoft Windows.
16691         Include <time.h> if !REPLACE_NL_LANGINFO.
16692         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16693         and with improvements for Microsoft Windows.
16694         (rpl_nl_langinfo): Use it.
16695         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16696         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16697         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16698         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16699         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16700         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16701         corresponding values returned by 'localeconv'.  Compute the values
16702         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16703         'strftime' with a suitable struct tm value.
16705 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16707         Bruno Haible has stepped down as maintainer.
16708         See Karl Berry in:
16709         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16710         Daiki Ueno has volunteered to maintain libunistring; see:
16711         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16712         * modules/gen-uni-tables, modules/libunistring:
16713         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16714         * modules/unicase/base, modules/unicase/cased:
16715         * modules/unicase/empty-prefix-context:
16716         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16717         * modules/unicase/locale-language, modules/unicase/special-casing:
16718         * modules/unicase/tocasefold, modules/unicase/tolower:
16719         * modules/unicase/totitle, modules/unicase/toupper:
16720         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16721         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16722         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16723         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16724         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16725         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16726         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16727         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16728         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16729         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16730         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16731         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16732         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16733         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16734         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16735         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16736         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16737         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16738         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16739         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16740         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16741         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16742         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16743         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16744         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16745         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16746         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16747         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16748         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16749         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16750         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16751         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16752         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16753         * modules/uniconv/u16-conv-to-enc:
16754         * modules/uniconv/u16-strconv-from-enc:
16755         * modules/uniconv/u16-strconv-from-locale:
16756         * modules/uniconv/u16-strconv-to-enc:
16757         * modules/uniconv/u16-strconv-to-locale:
16758         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16759         * modules/uniconv/u32-strconv-from-enc:
16760         * modules/uniconv/u32-strconv-from-locale:
16761         * modules/uniconv/u32-strconv-to-enc:
16762         * modules/uniconv/u32-strconv-to-locale:
16763         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16764         * modules/uniconv/u8-strconv-from-enc:
16765         * modules/uniconv/u8-strconv-from-locale:
16766         * modules/uniconv/u8-strconv-to-enc:
16767         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16768         * modules/unictype/bidicategory-all:
16769         * modules/unictype/bidicategory-byname:
16770         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16771         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16772         * modules/unictype/bidiclass-byname:
16773         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16774         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16775         * modules/unictype/block-all, modules/unictype/block-list:
16776         * modules/unictype/block-of, modules/unictype/block-test:
16777         * modules/unictype/category-C, modules/unictype/category-Cc:
16778         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16779         * modules/unictype/category-Co, modules/unictype/category-Cs:
16780         * modules/unictype/category-L, modules/unictype/category-LC:
16781         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16782         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16783         * modules/unictype/category-Lu, modules/unictype/category-M:
16784         * modules/unictype/category-Mc, modules/unictype/category-Me:
16785         * modules/unictype/category-Mn, modules/unictype/category-N:
16786         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16787         * modules/unictype/category-No, modules/unictype/category-P:
16788         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16789         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16790         * modules/unictype/category-Pi, modules/unictype/category-Po:
16791         * modules/unictype/category-Ps, modules/unictype/category-S:
16792         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16793         * modules/unictype/category-Sm, modules/unictype/category-So:
16794         * modules/unictype/category-Z, modules/unictype/category-Zl:
16795         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16796         * modules/unictype/category-all, modules/unictype/category-and:
16797         * modules/unictype/category-and-not, modules/unictype/category-byname:
16798         * modules/unictype/category-longname, modules/unictype/category-name:
16799         * modules/unictype/category-none, modules/unictype/category-of:
16800         * modules/unictype/category-or, modules/unictype/category-test:
16801         * modules/unictype/category-test-withtable:
16802         * modules/unictype/combining-class:
16803         * modules/unictype/combining-class-all:
16804         * modules/unictype/combining-class-byname:
16805         * modules/unictype/combining-class-longname:
16806         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16807         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16808         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16809         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16810         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16811         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16812         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16813         * modules/unictype/digit, modules/unictype/joininggroup-all:
16814         * modules/unictype/joininggroup-byname:
16815         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16816         * modules/unictype/joiningtype-all:
16817         * modules/unictype/joiningtype-byname:
16818         * modules/unictype/joiningtype-longname:
16819         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16820         * modules/unictype/mirror, modules/unictype/numeric:
16821         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16822         * modules/unictype/property-ascii-hex-digit:
16823         * modules/unictype/property-bidi-arabic-digit:
16824         * modules/unictype/property-bidi-arabic-right-to-left:
16825         * modules/unictype/property-bidi-block-separator:
16826         * modules/unictype/property-bidi-boundary-neutral:
16827         * modules/unictype/property-bidi-common-separator:
16828         * modules/unictype/property-bidi-control:
16829         * modules/unictype/property-bidi-embedding-or-override:
16830         * modules/unictype/property-bidi-eur-num-separator:
16831         * modules/unictype/property-bidi-eur-num-terminator:
16832         * modules/unictype/property-bidi-european-digit:
16833         * modules/unictype/property-bidi-hebrew-right-to-left:
16834         * modules/unictype/property-bidi-left-to-right:
16835         * modules/unictype/property-bidi-non-spacing-mark:
16836         * modules/unictype/property-bidi-other-neutral:
16837         * modules/unictype/property-bidi-pdf:
16838         * modules/unictype/property-bidi-segment-separator:
16839         * modules/unictype/property-bidi-whitespace:
16840         * modules/unictype/property-byname:
16841         * modules/unictype/property-case-ignorable:
16842         * modules/unictype/property-cased:
16843         * modules/unictype/property-changes-when-casefolded:
16844         * modules/unictype/property-changes-when-casemapped:
16845         * modules/unictype/property-changes-when-lowercased:
16846         * modules/unictype/property-changes-when-titlecased:
16847         * modules/unictype/property-changes-when-uppercased:
16848         * modules/unictype/property-combining:
16849         * modules/unictype/property-composite:
16850         * modules/unictype/property-currency-symbol:
16851         * modules/unictype/property-dash:
16852         * modules/unictype/property-decimal-digit:
16853         * modules/unictype/property-default-ignorable-code-point:
16854         * modules/unictype/property-deprecated:
16855         * modules/unictype/property-diacritic:
16856         * modules/unictype/property-extender:
16857         * modules/unictype/property-format-control:
16858         * modules/unictype/property-grapheme-base:
16859         * modules/unictype/property-grapheme-extend:
16860         * modules/unictype/property-grapheme-link:
16861         * modules/unictype/property-hex-digit:
16862         * modules/unictype/property-hyphen:
16863         * modules/unictype/property-id-continue:
16864         * modules/unictype/property-id-start:
16865         * modules/unictype/property-ideographic:
16866         * modules/unictype/property-ids-binary-operator:
16867         * modules/unictype/property-ids-trinary-operator:
16868         * modules/unictype/property-ignorable-control:
16869         * modules/unictype/property-iso-control:
16870         * modules/unictype/property-join-control:
16871         * modules/unictype/property-left-of-pair:
16872         * modules/unictype/property-line-separator:
16873         * modules/unictype/property-logical-order-exception:
16874         * modules/unictype/property-lowercase, modules/unictype/property-math:
16875         * modules/unictype/property-non-break:
16876         * modules/unictype/property-not-a-character:
16877         * modules/unictype/property-numeric:
16878         * modules/unictype/property-other-alphabetic:
16879         * modules/unictype/property-other-default-ignorable-code-point:
16880         * modules/unictype/property-other-grapheme-extend:
16881         * modules/unictype/property-other-id-continue:
16882         * modules/unictype/property-other-id-start:
16883         * modules/unictype/property-other-lowercase:
16884         * modules/unictype/property-other-math:
16885         * modules/unictype/property-other-uppercase:
16886         * modules/unictype/property-paired-punctuation:
16887         * modules/unictype/property-paragraph-separator:
16888         * modules/unictype/property-pattern-syntax:
16889         * modules/unictype/property-pattern-white-space:
16890         * modules/unictype/property-private-use:
16891         * modules/unictype/property-punctuation:
16892         * modules/unictype/property-quotation-mark:
16893         * modules/unictype/property-radical:
16894         * modules/unictype/property-sentence-terminal:
16895         * modules/unictype/property-soft-dotted:
16896         * modules/unictype/property-space:
16897         * modules/unictype/property-terminal-punctuation:
16898         * modules/unictype/property-test, modules/unictype/property-titlecase:
16899         * modules/unictype/property-unassigned-code-value:
16900         * modules/unictype/property-unified-ideograph:
16901         * modules/unictype/property-uppercase:
16902         * modules/unictype/property-variation-selector:
16903         * modules/unictype/property-white-space:
16904         * modules/unictype/property-xid-continue:
16905         * modules/unictype/property-xid-start:
16906         * modules/unictype/property-zero-width, modules/unictype/scripts:
16907         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16908         * modules/unictype/syntax-c-whitespace:
16909         * modules/unictype/syntax-java-ident:
16910         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16911         * modules/unigbrk/u16-grapheme-breaks:
16912         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16913         * modules/unigbrk/u32-grapheme-breaks:
16914         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16915         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16916         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16917         * modules/unigbrk/uc-is-grapheme-break:
16918         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16919         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16920         * modules/unilbrk/u16-width-linebreaks:
16921         * modules/unilbrk/u32-possible-linebreaks:
16922         * modules/unilbrk/u32-width-linebreaks:
16923         * modules/unilbrk/u8-possible-linebreaks:
16924         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16925         * modules/unilbrk/ulc-possible-linebreaks:
16926         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16927         * modules/uniname/uniname, modules/uninorm/base:
16928         * modules/uninorm/canonical-decomposition:
16929         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16930         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16931         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16932         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16933         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16934         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16935         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16936         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16937         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16938         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16939         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16940         * modules/unistdio/base, modules/unistdio/u-printf-args:
16941         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16942         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16943         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16944         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16945         * modules/unistdio/u16-u16-sprintf:
16946         * modules/unistdio/u16-u16-vasnprintf:
16947         * modules/unistdio/u16-u16-vasprintf:
16948         * modules/unistdio/u16-u16-vsnprintf:
16949         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16950         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16951         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16952         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16953         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16954         * modules/unistdio/u32-u32-asnprintf:
16955         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16956         * modules/unistdio/u32-u32-sprintf:
16957         * modules/unistdio/u32-u32-vasnprintf:
16958         * modules/unistdio/u32-u32-vasprintf:
16959         * modules/unistdio/u32-u32-vsnprintf:
16960         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16961         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16962         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16963         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16964         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16965         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16966         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16967         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16968         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16969         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16970         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16971         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16972         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16973         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16974         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16975         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16976         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16977         * modules/unistr/u16-check, modules/unistr/u16-chr:
16978         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16979         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16980         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16981         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16982         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16983         * modules/unistr/u16-move, modules/unistr/u16-next:
16984         * modules/unistr/u16-prev, modules/unistr/u16-set:
16985         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16986         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16987         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16988         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16989         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16990         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16991         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16992         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16993         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16994         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16995         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16996         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16997         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16998         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16999         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
17000         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
17001         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
17002         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
17003         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
17004         * modules/unistr/u32-next, modules/unistr/u32-prev:
17005         * modules/unistr/u32-set, modules/unistr/u32-startswith:
17006         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
17007         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
17008         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
17009         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
17010         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
17011         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
17012         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
17013         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
17014         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
17015         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
17016         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
17017         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
17018         * modules/unistr/u8-check, modules/unistr/u8-chr:
17019         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
17020         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
17021         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
17022         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
17023         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
17024         * modules/unistr/u8-next, modules/unistr/u8-prev:
17025         * modules/unistr/u8-set, modules/unistr/u8-startswith:
17026         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
17027         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
17028         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
17029         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
17030         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
17031         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
17032         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
17033         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
17034         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
17035         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
17036         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
17037         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
17038         * modules/uniwbrk/base, modules/uniwbrk/table:
17039         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
17040         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
17041         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
17042         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
17043         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
17044         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
17045         * modules/uniwidth/width, modules/utf16-ucs4:
17046         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
17047         * modules/utf8-ucs4-unsafe:
17048         Change maintainer from Bruno Haible to Daiki Ueno.
17049         This is my guess at the libunistring modules; please feel free
17050         to fix if I guessed incorrectly.
17051         * modules/accept4, modules/acl, modules/acos, modules/acosf:
17052         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
17053         * modules/areadlink, modules/array-list, modules/array-mergesort:
17054         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
17055         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
17056         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
17057         * modules/binary-io, modules/bison-i18n, modules/btowc:
17058         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
17059         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
17060         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
17061         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
17062         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
17063         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
17064         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
17065         * modules/closedir, modules/concat-filename, modules/copy-file:
17066         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
17067         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
17068         * modules/csharpcomp-script, modules/csharpexec:
17069         * modules/csharpexec-script, modules/ctype, modules/diffseq:
17070         * modules/dprintf, modules/dprintf-posix, modules/dup:
17071         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
17072         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
17073         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
17074         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
17075         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
17076         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
17077         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
17078         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
17079         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
17080         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
17081         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
17082         * modules/findprog, modules/findprog-lgpl, modules/floor:
17083         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
17084         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
17085         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
17086         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
17087         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
17088         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
17089         * modules/freadable, modules/freadahead, modules/freadptr:
17090         * modules/freadseek, modules/freopen, modules/frexp:
17091         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
17092         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
17093         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
17094         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
17095         * modules/ftello, modules/full-read, modules/full-write:
17096         * modules/fwritable, modules/fwriteerror, modules/gcd:
17097         * modules/get-rusage-as, modules/get-rusage-data:
17098         * modules/getdtablesize, modules/getrusage, modules/gettext:
17099         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
17100         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
17101         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
17102         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
17103         * modules/iconv, modules/iconv-h, modules/iconv_open:
17104         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
17105         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
17106         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
17107         * modules/integer_length_ll, modules/ioctl, modules/isatty:
17108         * modules/isblank, modules/isnand, modules/isnand-nolibm:
17109         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
17110         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
17111         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
17112         * modules/javaexec, modules/javaexec-script, modules/javaversion:
17113         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
17114         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
17115         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
17116         * modules/lib-symbol-visibility, modules/libsigsegv:
17117         * modules/linked-list, modules/linkedhash-list, modules/list:
17118         * modules/localcharset, modules/locale, modules/localeconv:
17119         * modules/localename, modules/lock, modules/log, modules/log-ieee:
17120         * modules/log10, modules/log10-ieee, modules/log10f:
17121         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
17122         * modules/log1p, modules/log1p-ieee, modules/log1pf:
17123         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
17124         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
17125         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
17126         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
17127         * modules/logf, modules/logf-ieee, modules/login_tty:
17128         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
17129         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
17130         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
17131         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
17132         * modules/mbscspn, modules/mbsinit, modules/mbslen:
17133         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
17134         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
17135         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
17136         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
17137         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
17138         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
17139         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
17140         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
17141         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
17142         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
17143         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
17144         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
17145         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
17146         * modules/posix_spawn, modules/posix_spawn-internal:
17147         * modules/posix_spawn_file_actions_addclose:
17148         * modules/posix_spawn_file_actions_adddup2:
17149         * modules/posix_spawn_file_actions_addopen:
17150         * modules/posix_spawn_file_actions_destroy:
17151         * modules/posix_spawn_file_actions_init:
17152         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
17153         * modules/posix_spawnattr_getpgroup:
17154         * modules/posix_spawnattr_getschedparam:
17155         * modules/posix_spawnattr_getschedpolicy:
17156         * modules/posix_spawnattr_getsigdefault:
17157         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
17158         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
17159         * modules/posix_spawnattr_setschedparam:
17160         * modules/posix_spawnattr_setschedpolicy:
17161         * modules/posix_spawnattr_setsigdefault:
17162         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
17163         * modules/pow, modules/powf, modules/printf-frexp:
17164         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
17165         * modules/progname, modules/propername, modules/pselect:
17166         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
17167         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
17168         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
17169         * modules/read, modules/readdir, modules/readlink:
17170         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
17171         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
17172         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
17173         * modules/relocatable-script, modules/remainder:
17174         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
17175         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
17176         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
17177         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
17178         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
17179         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
17180         * modules/setlocale, modules/sh-quote, modules/shutdown:
17181         * modules/signal, modules/signbit, modules/sigpipe:
17182         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
17183         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
17184         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
17185         * modules/snippet/link-warning, modules/snippet/unused-parameter:
17186         * modules/snprintf, modules/snprintf-posix, modules/spawn:
17187         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
17188         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
17189         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
17190         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
17191         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
17192         * modules/streq, modules/strerror_r-posix, modules/striconv:
17193         * modules/striconveh, modules/striconveha, modules/strncat:
17194         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
17195         * modules/sublist, modules/sys_resource, modules/sys_utsname:
17196         * modules/sys_wait, modules/system-posix, modules/system-quote:
17197         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
17198         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
17199         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
17200         * modules/truncf, modules/truncf-ieee, modules/truncl:
17201         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
17202         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
17203         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
17204         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
17205         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
17206         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
17207         * modules/wait-process, modules/waitpid, modules/wcpcpy:
17208         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
17209         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
17210         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
17211         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
17212         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
17213         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
17214         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
17215         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
17216         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
17217         * modules/write, modules/xconcat-filename, modules/xlist:
17218         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
17219         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
17220         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
17221         * modules/y0, modules/y1, modules/yn:
17222         Remove Bruno Haible as maintainer; if he's the sole maintainer,
17223         change the maintainer to 'all'.  Let's hope someone volunteers.
17225 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
17227         mktime: merge #if/#ifdef usage from glibc
17228         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
17229         as that works with both Glibc's and Gnulib's style.
17230         See thread starting at Siddhesh Poyarekar's bug report at:
17231         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
17233 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
17235         git-version-gen: improve option descriptions
17236         * build-aux/git-version-gen: Mention that --prefix and --fallback
17237         have a mandatory argument.
17239 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17241         regex: fix memory leak in compiler
17242         Fix by Andreas Schwab in:
17243         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
17244         * lib/regcomp.c (parse_expression): Deallocate partially
17245         constructed tree before returning error.
17247         regex: merge patch from libc
17248         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
17249         Combine __USE_BSD and __USE_SVID into __USE_MISC.
17250         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
17252 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17254         acl: port to gcc -Wredundant-decls
17255         From a request by Dmitry Antipov in:
17256         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
17257         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
17258         "#ifndef _GL_ACL_H".
17260 2014-06-11  Bruce Korb  <bkorb@gnu.org>
17261         Jim Meyering  <meyering@fb.com>
17263         parse-duration: eliminate 68-year duration limit
17264         * lib/parse-duration.c: Include "intprops.h".
17265         (TIME_MAX): Rename to MAX_DURATION and define to
17266         TYPE_MAXIMUM(time_t).
17267         * modules/parse-duration (Depends-on): Add intprops.
17268         Reported by Jonas 'Sortie' Termansen.
17270 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17272         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
17273         * modules/pthread (Depends-on): Add 'extensions', as it defines
17274         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
17275         (configure.ac-early): New section.
17276         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
17277         it is no longer needed.
17279 2014-06-14  Pádraig Brady  <P@draigBrady.com>
17281         pthread: define thread-safe macros on some platforms
17282         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
17283         for thread-safe operation on some platforms.
17285 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17287         regex: don't be multithreaded if USE_UNLOCKED_IO.
17288         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
17289         * lib/regex_internal.h: Do not use multithreaded version if
17290         USE_UNLOCKED_IO is defined.  This is a hack, but it works
17291         around a porting bug with coreutils 8.22 on AIX 7.1.
17293 2014-06-11  Daiki Ueno  <ueno@gnu.org>
17295         gettext: update macros to version 0.19
17296         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
17297         depend on gl_EXTERN_INLINE and drop support for older Bison
17298         versions.
17300 2014-06-10  Pádraig Brady  <P@draigBrady.com>
17302         select,poll: fix console handle check on windows 8
17303         lib/poll.c (IsConsoleHandle): Change from testing the lower
17304         2 bits of the handle to the more expensive but accurate syscall.
17305         lib/select.c: Likewise.
17307 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17309         select: fix waiting on anonymous pipes on MS-Windows
17310         * lib/select.c (rpl_select): Fall back to polling when select()
17311         indicates there is nothing to check, while due to the timeout not
17312         expiring, activity is indicated on one of the handles.
17313         Also clear the TIMEOUT argument if the timer does expire.
17315 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17317         times: fix to return non constant value on MS-Windows
17318         * lib/times.c (times): Don't use the process creation time,
17319         rather clock() which on windows returns the number of
17320         clock ticks since the process started.
17322 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
17324         isatty: fix to work on windows 8
17325         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
17326         2 bits of the handle to the more expensive but accurate syscall.
17328 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17330         maint: fix typo in fdl.texi
17331         * doc/fdl.texi: Fix typo (missing '@').
17332         Somehow this was in fdl.texi but not fdl-1.3.texi.
17334 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17336         mountlist: avoid hasmntopt const type warning on solaris
17337         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17338         with char * instead of const char *.  Passing the constant string
17339         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17340         to avoid the warning.
17342 2014-06-04  Eric Blake  <eblake@redhat.com>
17344         maintainer-makefile: delete obsolete code
17345         * top/maint.mk (build_aux): Drop old code, as threatened.
17347         maintainer-makefile: avoid spurious error messages
17348         * top/maint.mk (syntax-check): Guard definition and use of
17349         $(shell) by whether Makefile is present.
17351 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17353         rename: avoid unused-but-set-variable compiler warning
17354         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17355         it is possible that dst_exists may be set but not used.  Mark it with
17356         the unused attribute to avoid compiler warnings.
17358 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17360         rename: mark a label as potentially unused
17361         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17362         by marking the out label as potentially unused.
17363         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17365 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17367         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17368         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17370 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17372         acl: apply pure attribute to two functions
17373         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17374         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17376 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17378         gnulib-common.m4: add _GL_UNUSED_LABEL
17379         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17380         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17382 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17384         dup2, fcntl, fcntl-h: port to AIX 7.1
17385         This fixes some porting problems discovered when testing the latest
17386         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17387         in grep but it could be important for other applications.
17388         * doc/posix-functions/dup2.texi:
17389         * doc/posix-functions/fcntl.texi:
17390         * doc/posix-headers/fcntl.texi:
17391         Document AIX bugs.
17392         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17393         Define to 0 if outside 'int' range.
17394         * m4/dup2.m4 (gl_FUNC_DUP2):
17395         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17396         Check for getdtablesize.  If it's available, test a value just
17397         outside its range instead of testing 1000000.  When cross-compiling,
17398         guess that AIX will fail this improved test.
17400 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17402         printf, config.rpath: Port to FreeBSD 10.
17403         Problem reported by Tijl Coosemans in:
17404         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17405         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17406         (hardcode_direct): Simplify FreeBSD configuration.
17407         (library_names_spec): Don't mishandle FreeBSD 10+.
17408         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17409         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17410         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17411         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17412         Don't mishandle FreeBSD 10+ when cross-compiling.
17414         ftoastr: work around compiler bug in IBM xlc 12.1
17415         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17416         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17417         around a compiler bug in IBM xlc 12.1.0.0: it complains
17418         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17419         _GL_FLT_PREC_BOUND.'
17421 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17423         valgrind-tests: fixed misleading help message
17424         * m4/valgrind-tests.m4: The help message generated by configure
17425         implied that valgrind was disabled by default, which it wasn't.
17426         Adjusted the help message using s/enable/disable/ to clarify.
17428 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17430         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17431         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17432         first double of a PowerPC "double double" pair.
17433         * tests/test-isinf.c (test_isinfl): Likewise.
17434         * tests/test-isnan.c (test_long_double): Likewise.
17435         * tests/test-isnanl.h (main): Likewise.
17436         * tests/test-signbit.c (test_signbitl): Likewise.
17438 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17440         exclude-tests: port to AIX 7.1
17441         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17442         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17443         the regex code uses locks.
17445 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17447         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17448         Without this fix, Emacs would sometimes call sigprocmask instead
17449         of pthread_sigmask, which is a no-no in multithreaded applications.
17450         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17451         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17452         Suppress check for pthread_sigmask working without -lpthread if
17453         the application always links with -lpthread.  Do not link with
17454         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17455         * m4/timer_time.m4 (gl_TIMER_TIME):
17456         Require gl_THREADLIB only if it is defined.  Do not append
17457         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17459 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17461         gnulib-tool: wget translations using --no-verbose rather than --quiet
17462         This allows the user to see error messages if any (--quiet hides them)
17463         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17465 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17467         gnulib-tool: adjust translation wget to avoid a https redirection
17468         Context: http://translationproject.org/latest/gnulib redirects to
17469            https://translationproject.org/latest/gnulib/
17470         Rationale: if the user falls back to wget, she doesn't have rsync and
17471         is probably in a minimal build environment, where packages such as
17472         'ca-certificates' are missing as well, resulting in a failed (and
17473         difficult to detect since ignored) translation initial fetch.
17474         Consequently let's avoid https if possible, and add the missing
17475         trailing slash.  This also avoids an unnecessary 302 redirection.
17476         * gnulib-tool: Add trailing slash to gnulib URL.
17478 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17480         getlogin_r-tests: check return value rather than errno
17481         * tests/test-getlogin_r.c (main): As per POSIX we should be
17482         verifying the return value from getlogin_r() rather than errno.
17484 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17486         getlogin_r-tests: fix various issues in recent change
17487         * tests/test-getlogin_r.c: Include required headers that were
17488         missed in recent commit eec20b4e.
17489         Also consistently check the errno rather than the return value from
17490         getlogin_r as POSIX only specifies that non zero is returned on error.
17491         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17493 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17495         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17496         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17497         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17498         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17499         * lib/spawn-pipe.c:
17500         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17501         and then 'int open64(const char *, int, ...);', which means the
17502         declaration for 'open' gets lost if we later '#undef open'.
17503         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17504         where the compilation reported the non-fatal error "In function
17505         'openat_proc_name' ... warning: implicit declaration of function
17506         'open'".  In this case the error is relatively harmless, but in
17507         other cases it might not be so minor.
17509 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17511         xalloc: don't potentially generate invalid code for xmemdup calls
17512         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17513         this function can initialize the newly-allocated storage with new
17514         pointers, which means this function is not malloc-like.  See:
17515         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17517 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17519         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17520         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17521         changes from commit 97249cf29 to not depend on environment variables.
17523 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17525         getlogin-tests: avoid false failure under cron
17526         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17527         since that's not what's under test.  Centos 6 was seen to return
17528         EINVAL for ttyname() when run from cron.
17530 2014-05-16  Jim Meyering  <meyering@fb.com>
17532         mbrtowc.m4: fix a comment typo
17533         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17534         emitted documentation string.
17536 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17538         mbrlen, mbrtowc: fix bug with empty input
17539         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17540         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17541         so this is mainly for documentation.
17542         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17543         (gl_FUNC_MBRTOWC): Use it.
17544         * tests/test-mbrtowc.c (main): Test for the bug.
17546 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17548         doc: document mbrtowc and mbrlen problem with empty input
17549         * doc/posix-functions/mbrlen.texi (mbrlen):
17550         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17551         Document portability problem when the input string is empty.  See:
17552         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17554         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17555         Problem reported by Eli Zaretskii in:
17556         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17557         * doc/posix-functions/execl.texi (execl):
17558         * doc/posix-functions/execle.texi (execle):
17559         * doc/posix-functions/execlp.texi (execlp):
17560         * doc/posix-functions/execv.texi (execv):
17561         * doc/posix-functions/execve.texi (execve):
17562         * doc/posix-functions/execvp.texi (execvp):
17563         Mention spawn+exit problem on non-Cygwin Windows platforms.
17565 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17567         getlogin-tests: avoid false failure under sudo/ssh etc.
17568         * modules/getlogin-tests (configure.ac): Check for ttyname().
17569         * tests/test-getlogin.c (main): Don't depend on environment variables
17570         to correlate with getlogin(), since sudo and ssh etc. can tamper
17571         with the LOGNAME and USER env vars.  Instead lookup the name from
17572         the uid associated with the stdin tty.
17574 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17576         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17577         These were found when building the latest grep snapshot on IRIX 6.5.
17578         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17579         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17580         never used later.
17581         * lib/quotearg.c (quoting_options_from_style):
17582         * lib/xstrtol.c (__xstrtol):
17583         Use enum instead of 0, to pacify IRIX 6.5 cc.
17585 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17587         gitlog-to-changelog: revert inclusion of git-log-fix file
17588         * build-aux/git-log-fix: Delete dummy file.
17589         * modules/gitlog-to-changelog: Don't reference (overwrite)
17590         the project specific git-log-fix file.
17592 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17594         maint.mk: Relax the copyright check to cater for non FSF projects
17595         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17596         to not require the "Free" suffix after the copyright years.
17598 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17600         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17601         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17602         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17603         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17604         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17606 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17608         exclude: port to strict C99
17609         Strict C does not allow converting a function pointer to void *
17610         and vice versa.  Pass a pointer to a function pointer instead.
17611         * lib/exclude.c (add_exclude_file):
17612         Pass the address of the function pointer.
17613         (call_addfn): And deference the address here, to match.
17615 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17617         regex: do not depend on malloc-gnu
17618         * modules/regex (Depends-on): Remove malloc-gnu.
17619         It's no longer needed, because of the 2012-12-29 patch
17620         "regex: port to hosts where malloc (0) == NULL".
17621         Reported by Nathan Kennedy in:
17622         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17624 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17626         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17627         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17628         * doc/posix-functions/expl.texi: Mention the workaround.
17630 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17632         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17633         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17634         size to be zero even when the pointer is nonnull.  This
17635         accommodates the use case where P is malloc (0) and *PN is 0 on a
17636         host where malloc (0) yields nonnull.
17638 2014-04-09  Eric Blake  <eblake@redhat.com>
17640         fts: avoid unnecessary strlen calls
17641         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17643 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17645         fts: avoid unnecessary strlen calls
17646         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17647         when that can be faster than strlen.
17649 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17651         fts: avoid unnecessary strlen calls
17652         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17653         (fts_build): Store the length of the dp->d_name entry in a local variable
17654         instead of calling strlen() several times via the above, removed macro.
17655         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17656         run by ~4%, yet this reduces the execution time by about a third if run
17657         via "ltrace -c rm -rf some-dir".
17659 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17661         obstack: Remove ancient NeXTSTEP gcc support conditional
17662         This change will ease merging with glibc.  The "#if ... __NEXT__"
17663         causes a warning with -Wundef which glibc now enables by default.
17664         Problem reported by Will Newton in
17665         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17666         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17667         so go with that.
17668         * lib/obstack.h (__extension__):
17670 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17672         obstack: merge with glibc changes
17673         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17674         This is mostly indenting and commentary changes.
17675         Instances of 'register' have been removed.
17677 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17679         strftime: wrap macros in "do {...} while(0)"
17680         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17681         this macro in "do {...} while(0)" to prevent false use as a
17682         single statement, e.g., in an un-braced "{}" else-block.
17683         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17684         (strftime_case_): Remove 'else' after 'goto' - which was the
17685         only non-fatal, un-braced use of one of the above macros.
17686         Spotted by coverity (NESTING_INDENT_MISMATCH).
17688 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17690         modechange: avoid memory leaks for invalid octal modes
17691         * lib/modechange.c (mode_compile): During the parsing of
17692         notations like +40, free the 'mc' buffer for invalid mode
17693         strings like +17777 (greater than the maximum octal mode),
17694         =18 (bad octal mode characters) or u=1 ('affected' with
17695         octal modes).
17696         Reproducer, e.g.:
17697             $ valgrind --leak-check=full chmod +17777 file
17698         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17699         add notations +40, 00440, etc.".
17700         Spotted by coverity (RESOURCE_LEAK).
17702 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17704         gitlog-to-changelog: include a dummy git-log-fix file
17705         Problem reported by Nathan Stratton Treadway in:
17706         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17707         * build-aux/git-log-fix: New file.
17709 2014-03-13  Jim Meyering  <meyering@fb.com>
17711         gitlog-to-changelog: also include the file, git-log-fix
17712         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17713         Reported by Assaf Gordon.
17715 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17717         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17718         This fixes a bug when ignoring case and when comparing the
17719         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17720         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17721         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17722         titlecase letter is neither lowercase nor uppercase, but
17723         uppercasing the titlecase letter (via towupper) yields the
17724         uppercase letter, so the two letters should match when ignoring case.
17725         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17726         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17727         Don't test whether a character is lowercase before uppercasing it.
17729 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17731         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17732         This is basically one of the options Bruno Haible proposed in:
17733         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17734         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17735         * lib/stdint.in.h: Use it.
17736         * modules/stdint (Depends-on): Add sys_types.
17738 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17740         parse-datetime: fix crash or infloop in TZ="" parsing
17741         * lib/parse-datetime.y (parse_datetime): Break out of the
17742         TZ="" parsing loop once the second significant " is found.
17743         Also skip over any subsequent whitespace to be consistent
17744         with the non TZ= case.
17745         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17747 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17749         savedir: new symbol for fast-read version
17750         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17751         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17752         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17753         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17755 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17757         unistd: port readlink to Mac OS X 10.3.9
17758         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17759         around self-include problem in Mac OS X 10.3.9 when combined with
17760         readlink module.  Problem reported by Klaus Zietler in
17761         <http://bugs.gnu.org/16825>.
17763 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17765         diffseq: remove TOO_EXPENSIVE heuristic
17766         Problem with diffutils reported by Vincent Lefevre in
17767         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17768         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17769         Although appropriate for circa-1993 hardware, these days the heuristic
17770         seems to be more trouble than it's worth.
17771         * lib/diffseq.h: Modernize citations.
17772         (struct context): Remove member too_expensive.
17773         All uses changed.
17774         (struct partition): Remove members lo_minimal, hi_minimal.
17775         All uses changed.
17776         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17777         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17778         1993 to make 'diff' run faster (but not as well) on large inputs.
17779         These days, computers are fast enough that it's typically better
17780         to run slower but more accurately.
17781         * lib/fstrcmp.c: Remove duplicate comment.
17782         * lib/fstrcmp.c (strcmp_bounded):
17783         * lib/git-merge-changelog.c (compute_differences):
17784         Adjust to diffseq.h changes.
17785         * NEWS: Document the change.
17787         savedir: simplify by using stpcpy
17788         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17789         (streamsavedir): Use stpcpy instead.
17790         * modules/savedir (Depends-on): Add stpcpy.
17792 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17794         spawn: fix link error on uclibc
17795         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17796         to incorporate -lrt if needed (on uclibc for example).
17797         * modules/posix_spawn: Reference the substituted LIB.
17799 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17800         timer: fix uClibc detection of threading
17801         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17802         enabled in uClibc.
17804 2014-02-21  Eric Blake  <eblake@redhat.com>
17806         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17807         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17809 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17811         exclude: add support for posix regexps
17813         This commit adds support for POSIX extended regular expressions
17814         and fixes a long-standing memory leak (pattern buffer was never
17815         freed).  It also implements a new interface function to read
17816         exclude patterns from a FILE, which passes an additional parameter
17817         to its callback function, thereby allowing to preserve its state
17818         between invocations.
17820         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17821         (pattern_buffer): New struct.
17822         (exclude): New member patbuf.
17823         (exclude_add_pattern_buffer): New function.
17824         (free_exclude_segment): Free regexps.
17825         (free_exclude): Free allocated pattern buffers.
17826         (exclude_patopts): New function.
17827         (file_pattern_matches): Use exclude_patopts.
17828         (add_exclude): support regexps.
17829         (add_exclude_fp): New function.
17830         (add_exclude_file): Rewrite using add_exclude_fp.
17831         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17832         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17833         (add_exclude_fp)
17834         (add_exclude_file): Rewrite using add_exclude_fp.
17835         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17836         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17837         (add_exclude_fp)
17838         (exclude_add_pattern_buffer): New prototypes.
17839         * modules/exclude: Depends on regex and filename.
17841 2014-02-20  Eric Blake  <eblake@redhat.com>
17843         maintainer-makefiles: use $(SED) for syntax check
17844         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17845         * top/maint.mk: Change sed to $(SED).
17847 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17848             Paul Eggert  <eggert@cs.ucla.edu>
17850         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17851         Patch based on an idea by Dick Streefland in
17852         <https://savannah.gnu.org/patch/?7892>.
17853         * NEWS: Document this.
17854         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17855         (direntry_t, comparison_function): New types.
17856         (direntry_cmp_name): New function.
17857         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17858         (streamsavedir, savedir): New arg OPTION.
17859         (streamsavedir): Simplify memory allocation.
17860         (fdsavedir): Remove.
17861         * lib/savedir.h (enum savedir_option): New type.
17862         (streamsavedir, savedir): New arg OPTION.
17863         (fdsavedir): Remove.
17865 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17867         file-type: add support for doors and other less-common file types
17868         Problem with S_ISDOOR reported by Rich Burridge.
17869         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17870         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17871         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17873 2014-01-23  Eric Blake  <eblake@redhat.com>
17875         pthread: work around winpthread header pollution on mingw
17876         * lib/time.in.h: Move pthread workarounds...
17877         * lib/pthread.in.h: ...here.
17878         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17879         detect macro pollution on mingw.
17880         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17882 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17884         qacl: check for fchmod
17885         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17886         and qset-acl.c both use HAVE_FCHMOD.
17888 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17890         fdopen-tests: port to Tru64
17891         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17892         descriptor that is not open, as POSIX doesn't specify the
17893         resulting behavior and the test does not work on Tru64.
17894         Problem reported by Steven M. Schweda in:
17895         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17897         stdalign: port to HP-UX compilers
17898         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17899         if __HP_cc or __HP_aCC are nonzero.
17901 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17903         strtoimax: port to platforms lacking 'long long'
17904         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17905         check whether strtoll is declared, which causes the C file to
17906         wrongly report an error.  Problem reported by Steven M. Schweda in:
17907         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17908         * lib/strtoimax.c (strtoull):
17909         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17910         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17912 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17914         relocatable-perl: fix texi syntax
17915         * doc/relocatable-maint.texi: Escape braces.
17917 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17919         relocatable-perl: like relocatable-script, but for Perl scripts
17920         * build-aux/relocatable.pl.in: Add.
17921         * doc/relocatable-maint.texi: Add documentation.
17922         * modules/relocatable-perl: Add.
17924 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17926         tests: fix export bug in previous patch
17927         Problem reported by Jim Meyering.
17928         * tests/init.sh (re_shell): New var, which is exported instead of
17929         re_shell_.
17931         tests: simplify porting to Solaris 10 /bin/sh
17932         Some test cases in 'grep' need a shell that groks '$(';
17933         export re_shell_ for their benefit.  Problem reported for 'grep'
17934         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17935         * tests/init.sh (re_shell_): Export if it's used.
17937 2014-01-06  Eric Blake  <eblake@redhat.com>
17939         md5, sha1, sha256, sha512: support older autoconf
17940         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17941         for autoconf < 2.63b.
17943         include_next: port to autoconf 2.63
17944         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17946 2014-01-04  Jim Meyering  <meyering@fb.com>
17948         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17949         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17950         so that "make sc_maint" will ding anyone who puts non-ascii
17951         in any of gnulib's .texi files.
17953 2014-01-03  Jim Meyering  <meyering@fb.com>
17955         freadable, fwritable, fwriting: declare with the "pure" attribute
17956         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17957         * lib/fwritable.h (fwritable): Likewise.
17958         * lib/fwriting.h (fwriting): Likewise.
17959         Suggested by Bruno Haible.
17961         maint.mk: adapt openat.h-include-without-use test
17962         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17963         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17964         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17965         With this change, running "make sc_maint" in gnulib's top-level
17966         directory now passes for me.
17968 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17970         doc: use ASCII in .texi files where UTF-8 isn't needed
17971         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17972         * doc/posix-functions/setkey.texi, doc/regex.texi:
17973         Use ASCII input, not UTF-8.
17975 2014-01-02  Jim Meyering  <meyering@fb.com>
17977         freading: declare with the "pure" attribute
17978         * lib/freading.h (freading): Declare with the "pure" attribute.
17980         manywarnings: remove -Wmudflap
17981         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17982         it is no longer supported in gcc-4.9-to-be.
17984 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17986         relocatable-script: remove unused code
17987         Problem reported by Reuben Thomas in:
17988         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17989         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17991 2014-01-01  Jim Meyering  <meyering@fb.com>
17993         maint: fix public-submodule-commit to work with newer git
17994         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17995         We were over-quoting the test arguments, and somewhere prior to
17996         version 1.8.5.2.229, git stopped removing those excess quotes,
17997         which made the test fail, since the unexpanded strings would
17998         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17999         command wasn't even being run.
18001 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18003         doc: update main copyright year
18004         * doc/gnulib.texi: Update copyright date.
18006 2014-01-01  Eric Blake  <eblake@redhat.com>
18008         version-etc: new year
18009         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
18010         * all files: run 'make update-copyright'
18012 2013-12-24  Eric Blake  <eblake@redhat.com>
18014         passfd: give nicer error for recvfd at eof
18015         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
18016         * tests/test-passfd.c (main): Enhance test to cover this.
18018 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18020         gettimeofday: port recent C++ fix to Emacs
18021         Without this further patch, Emacs won't build due to
18022         the portcheck failing.  Also, this simplifies the patch a bit.
18023         * lib/time.in.h (localtime, gmtime): Don't replace unless
18024         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
18025         * lib/time.in.h (localtime, gmtime):
18026         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
18027         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18028         * modules/time (time.h):
18029         Don't worry about the possibility of localtime and gmtime
18030         being absent; they're present in all C libraries we know about.
18031         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18032         Don't assume sys_time is present and has been initialized.
18033         Instead, use a hack that should work even if it hasn't been.
18034         Don't use a portcheck for gmtime or localtime; this supports
18035         the hack.
18036         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
18038 2013-12-17  John W. Eaton  <jwe@gnu.org>
18040         gettimeofday: fix C++ crosscompilation
18042         Never replace gmtime and localtime by macros when compiling with
18043         C++, this prevents <ctime> from being included.
18045         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
18046         define gmtime and localtime as preprocessor macros.  Instead
18047         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
18048         REPLACE_LOCALTIME substitutions.
18049         * lib/time.in.h: Declare gmtime and localtime when needed.
18050         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
18051         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
18052         * modules/time: Depend on gettimeofday, and substitute the above
18053         variables in time.h.
18055 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18057         qacl: port to Windows better
18058         See Eli Zaretskii in
18059         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
18060         * lib/file-has-acl.c (acl_access_nontrivial):
18061         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
18062         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
18064 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
18066         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
18067         * lib/gl_openssl.h: Cast void pointers to a specific type.
18069 2013-12-07  Pádraig Brady  <P@draigBrady.com>
18071         open-tests: fix build failure with -Werror=old-style-declaration
18072         * tests/test-open.h: Reorder the inline to avoid the issue.
18074 2013-12-07  Pádraig Brady  <P@draigBrady.com>
18076         md5, sha1, sha256, sha512: fix link error with partial libcrypto
18077         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
18078         init time, so that if early checks find crypto routines,
18079         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
18080         avoiding link failures.
18082 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18084         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
18085         This provides a new way to specify the default for
18086         gl_CRYPTO_CHECK, one that is reflected in the --help message.
18087         Emacs uses this, as well as the old way.
18088         This attempts to implement a suggestion by Pádraig Brady in
18089         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
18090         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
18091         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
18093         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
18094         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
18095         Add support for a new option, --with-openssl=auto, which causes
18096         the library to be used if available and silently ignored if not.
18097         Add support to allow configure.ac to specify its own
18098         default, by setting with_openssl_default before invoking gl_INIT.
18100 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18102         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
18103         Problem reported by Daiki Ueno in:
18104         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
18105         * tests/test-open.h (__always_inline):
18106         New macro, if not already defined.
18107         (test_open): Use it.
18109 2013-12-04  Eric Blake  <eblake@redhat.com>
18111         include_next: minimize code duplication
18112         * modules/include_next (Depends-on): Add absolute-header.
18113         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
18114         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
18116 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18118         getcwd: fix compile error in configure check
18119         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
18121 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18123         regex: suppress core dumps from detection code
18124         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
18125         to suppress core dumps that may well occur on glibc systems.
18126         These core dumps might not be cleaned up automatically, or could
18127         trigger some system core dump handling logic.
18129 2013-12-03  Pádraig Brady  <P@draigBrady.com>
18131         md5, sha1, sha256, sha512: support mandating use of openssl
18132         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
18133         description, to list the now 3 separate options.  also don't
18134         mention the default=no, since this is implicit given the option
18135         is described as --with-openssl rather than --without-openssl.
18136         If projects change the default they're free to document that.
18137         with --with-openssl[=yes] we now error out when the specified
18138         hash algorithm is not available in libcrypto.
18140 2013-12-03  Ivailo  <xakepa10@gmail.com>
18142         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
18143         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
18144         -Wformat-nonliteral checks, as these edge cases are part of the test.
18146 2013-12-03  Eric Blake  <eblake@redhat.com>
18148         regex: avoid glibc deadlock during configure
18149         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
18150         glibc bug 15078 in turn triggers bug 16159.
18151         Reported by Michal Privoznik.
18153 2013-12-02  Pádraig Brady  <P@draigBrady.com>
18155         md5, sha1, sha256, sha512: use openssl routines if available.
18156         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
18157         routines will be used if available, requiring apps to link @LIB_CRYPTO@
18158         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
18159         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
18160         in the standard system location.
18161         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
18162         * m4/sha256.m4: Likewise with SHA256.
18163         * m4/sha512.m4: Likewise with SHA512.
18164         * m4/md5.m4: Likewise with MD5.
18165         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
18166         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
18167         * lib/sha256.h: Likewise with SHA256.
18168         * lib/sha512.h: Likewise with SHA512.
18169         * lib/md5.h: Likewise with MD5.
18170         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
18171         * lib/sha256.c: Likewise with SHA256.
18172         * lib/sha512.c: Likewise with SHA512.
18173         * lib/md5.c: Likewise with MD5.
18174         * modules/crypto/sha1 (Link:): Add the new optional lib.
18175         (Depends-on:): Add dependency on extern-inline.
18176         * modules/crypto/sha256: Likewise.
18177         * modules/crypto/sha512: Likewise.
18178         * modules/crypto/md5: Likewise.
18179         * modules/crypto/sha1-tests: Reference the lib here too.
18180         * modules/crypto/md5-tests: Likewise.
18181         * modules/crypto/gc-des-tests: Likewise.
18182         * modules/crypto/gc-hmac-md5-tests: Likewise.
18183         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18184         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18185         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18186         * modules/crypto/gc-md5-tests: Likewise.
18187         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18188         * modules/crypto/gc-sha1-tests: Likewise.
18189         * modules/crypto/gc-tests: Likewise.
18190         * modules/crypto/hmac-md5-tests: Likewise.
18191         * modules/crypto/hmac-sha1-tests: Likewise.
18192         * modules/crypto/hmac-sha256-tests: Likewise.
18193         * modules/crypto/hmac-sha512-tests: Likewise.
18195 2013-11-29  RV1971  <rv1971@web.de>
18197         base64: (trivial) fix compilation regression on some compilers
18198         * lib/base64.c: Don't return the void function,
18199         instead split to a separate return statement.
18201 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18203         ignore-value: revert previous code change
18204         * lib/ignore-value.h (ignore_value): Use __extension__ and
18205         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
18206         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
18207         Change the comment to try to explain this better.
18209 2013-11-27  Pádraig Brady  <P@draigBrady.com>
18211         selinux-h: improve stub types and add more stub functions
18213         * lib/se-selinux.in.h: Change security_context_t to a typedef
18214         rather than a define, as it's a pointer type and so is better
18215         as a typedef to avoid issues declaring multiple variables
18216         with the comma operator.  Also add stub for string_to_security_class().
18217         * lib/se-context.in.h: Add stub functions for
18218         context_{type,range,role,user}_get().
18220 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18222         ignore-value: prefer GCC version back through 2.0
18223         The code didn't match the comments, so I did a bit of software
18224         archaeology.  GCC 2.0 seems to support __extension__ and
18225         __typeof__, so fix both code and comments to use 2.0.
18226         * lib/ignore-value.h (ignore_value): Use __extension__ and
18227         __typeof__ for GCC 2.0 through 3.3, too.
18229 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
18231         pty: Activate the signature wrapper of forkpty.
18232         The intended preprocessor macro HAVE_FORKPTY is
18233         never defined, yet `lib/forkpty.c' depends on it.
18235         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
18236         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
18237         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
18239 2013-11-18  Jim Meyering  <meyering@fb.com>
18240         and Paul Eggert  <eggert@cs.ucla.edu>
18242         quotearg: don't attempt to store 1 << 31 into an "int"
18243         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
18244         gcc's new -fsanitize=undefined and running its tests triggered some
18245         new test failures due to undefined behavior, all with this diagnostic:
18246           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
18247             cannot be represented in type int
18248         Rather than shifting "1" left to form a mask, shift the bits right and
18249         simply use "1" as the mask.
18251 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
18253         error: depend on stdio
18254         Problem reported by Nikos Mavrogiannopoulos in
18255         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
18256         * modules/error (Depends-on): Add stdio.
18258 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
18260         * doc/relocatable-maint.texi (Supporting Relocation): Improve
18261         wording.
18262         Reported by Reuben Thomas <rrt@sc3d.org>.
18264 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18266         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
18267         New function and macro, to work around _DARWIN_C_SOURCE problem.
18268         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
18270 2013-11-11  Pádraig Brady  <P@draigBrady.com>
18272         base64: provide a fast path for encoding well sized buffers
18273         Avoid conditionals in the base64 encoding loop,
18274         which was seen to give 60% better throughput.
18275         * lib/base64.c (base64_encode_fast): A new function to be called
18276         when we don't want to NUL terminate, and we have enough space
18277         in the output to encode the given input.
18278         (base64_encode): Call the _fast() version when appropriate.
18279         Also remove a redundant mask with 0x3F on the first encoded byte.
18281 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18283         extern-inline: port better to OS X 10.9
18284         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
18285         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
18286         OS X 10.9, except for g++ where the bug is still present.
18287         See <http://trac.macports.org/ticket/41033>.
18289 2013-11-08  Eric Blake  <eblake@redhat.com>
18291         fpending: fix regression on DragonFly BSD
18292         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
18293         * lib/fpending.h (__fpending): Don't declare twice.
18294         Reported by GW in
18295         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
18297 2013-11-05  Jim Meyering  <meyering@fb.com>
18299         hash: relax license to LGPLv2+, for libguestfs
18300         * modules/hash (License): Change from GPL to LGPLv2+.
18302 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18304         intprops: port to Oracle Studio c99
18305         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
18306         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
18308 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18310         obstack: pacify HP C
18311         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
18312         warning "conversion from pointer to smaller integer" from HP
18313         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
18314         C89 or later nowadays, so cast to void instead of int.  Privately
18315         reported by H.Merijn Brand.  Also, change header to match glibc's,
18316         to make checking against glibc easier.
18318 2013-10-29  Jim Meyering  <meyering@fb.com>
18320         maint.mk: prefer gpgv2 over gpgv
18321         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
18322         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
18323         Reported by Gary Vaughan.
18325 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18327         isnan: port to VAX
18328         Reported by John Klos for NetBSD-5/VAX in
18329         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18330         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18331         (FUNC): Use it.
18333 2013-10-28  Jim Meyering  <meyering@fb.com>
18335         gnulib-tool: protect against CDPATH
18336         * gnulib-tool: Many "cd" built-in functions print a directory name
18337         to stdout when CDPATH is set, e.g.,
18338           $ bash -c 'CDPATH=/; cd tmp'
18339           /tmp
18340         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18342         maint.mk: restore functionality removed by recent change...
18343         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18344         the context of a shallow-cloned gnulib repository: "git describe"
18345         would fail in such a directory.  However, that change made it so
18346         the reported gnulib revision no longer includes the version number
18347         or a commit count, even when run from a full clone.
18348         * top/maint.mk (gnulib-version): Use the full "git describe"
18349         output when possible, e.g., the form above, rather than the
18350         abbreviated, no-tag, no-commit-count string, and fall back to
18351         using a 10-byte hash, rather than the default minimal-length
18352         hash prefix, since while the minimal-length one may be fine today,
18353         it is likely not to be unique for very long.
18355 2013-10-26  Jim Meyering  <meyering@fb.com>
18357         maint.mk: fix "release" target to build _version
18358         This fixes a bug in README-release whereby following the outlined
18359         steps, one would publish a tarball whose programs would report
18360         --version output not consistent with the package version number.
18361         This bug caused grep-2.15 to produce a grep program whose
18362         --version option made it print 2.14.56-1e3d rather than 2.15.
18363         * top/maint.mk (release): Making this target build "_version"
18364         ensures that the new version number is reflected in configure.
18366 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18368         install-reloc: Support multi-binary installation.
18369         * build-aux/install-reloc: Support installing multiple programs in
18370         one invocation, as done by Automake starting with commit
18371         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18372         Haible <bruno@clisp.org>, archived at
18373         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18374         Reported by Sylvain <beuc@gnu.org>.
18376 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18378         selinux-h: Really build without selinux when library is missing.
18379         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18380         continue without selinux, as already told in the warning message.
18382 2013-10-21  Jim Meyering  <meyering@fb.com>
18384         regex: also remove dependency on HAVE_WCSCOLL
18385         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18387 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18389         xfreopen: Fix typo. s/frepoen/freopen/
18390         * lib/xfreopen.c: Fix description.
18391         * modules/xfreopen: Likewise.
18393 2013-10-21  Jim Meyering  <meyering@fb.com>
18395         regex: don't depend on wcscoll
18396         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18397         It is no longer used.
18399 2013-10-20  Jim Meyering  <meyering@fb.com>
18401         error: add the printf attribute to a static function
18402         * lib/error.c (error_tail): Add the printf attribute, to placate
18403         gcc's -Werror=suggest-attribute=format option.
18405 2013-09-30  Jim Meyering  <meyering@fb.com>
18407         fpending, obstack, strerror-override: use pure+const function attrs
18408         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18409         * lib/obstack.c (_obstack_allocated_p): Likewise.
18410         * lib/obstack.h (_obstack_memory_used): Likewise.
18411         (_obstack_memory_used): Likewise.
18412         * lib/strerror-override.h (strerror_override): Declare with
18413         the "const" attribute.
18415 2013-10-18  Eric Blake  <eblake@redhat.com>
18417         extern-inline: make safe for -Wundef usage
18418         Reported by Vladimir 'phcoder' Serbinenko in
18419         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18420         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18422 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18424         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18425         Problem reported by Daniel Richard G. in
18426         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18427         * doc/posix-functions/mkfifo.texi (mkfifo):
18428         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18429         * doc/posix-functions/mknod.texi (mknod):
18430         * doc/posix-functions/mknodat.texi (mknodat):
18431         Document the HP-UX 11.11 bug.
18432         * tests/test-mkfifo.h (test_mkfifo):
18433         Allow the HP-UX 11.11 bug.
18435 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18437         acl: allow cross-compilation to Gentoo
18438         Problem reported by Gabriel Marcano in
18439         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18440         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18441         test only whether it links.
18443 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18445         mgetgroups: remove dependency on realloc-gnu
18446         The dependency violates the comment in realloc-gnu, which
18447         says that tests can't depend on realloc-gnu; some tests depend
18448         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18449         Problem reported by Daniel Richard G. in
18450         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18451         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18452         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18453         not realloc-gnu.
18455 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18457         regex-tests: port to HP-UX 11.11
18458         Problem reported by Daniel Richard G. in
18459         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18460         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18462 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18464         verify: document some 'assume' pitfalls
18465         * doc/verify.texi (Compile-time Assertions):
18466         Mention that 'assume (E)' can sometimes slow things down.
18467         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18469 2013-10-10  Eric Blake  <eblake@redhat.com>
18471         strtoumax: fix typo in previous commit.
18472         * modules/strtoumax (Depends-on): Fix typo.
18473         * modules/strtoimax (Depends-on): Likewise.
18475 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18477         strtoumax: port to Solaris 8
18478         This problem was introduced in the recent HP-UX patch.
18479         Reported by Tom G. Christensen in
18480         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18481         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18482         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18484 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18486         strtoimax, strtoumax: port to HP-UX 11.11
18487         Problem reported by Daniel Richard G. in
18488         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18489         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18490         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18491         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18492         REPLACE_STRTOUMAX.
18493         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18494         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18495         Replace the function if defined as a macro but not as a function.
18496         * modules/inttypes-incomplete (inttypes.h): Substitute
18497         REPLACE_STRTOUMAX.
18498         * modules/strtoumax (configure.ac): Replace strtoumax if
18499         REPLACE_STRTOUMAX.
18501 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18503         strtoimax: port to HP-UX 11.11
18504         Problem reported by Daniel Richard G.
18505         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18506         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18507         they might clash with inttypes.h.
18509 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18511         New module 'count-trailing-zeros'.
18512         * MODULES.html.sh: Mention it.
18513         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18514         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18515         * modules/count-trailing-zeros-tests:
18516         * tests/test-count-trailing-zeros.c:
18517         New files.
18519         count-leading-zeros: port to MSC; support types wider than 64 bits
18520         The ideas behind the MSC port are stolen from Emacs.
18521         * lib/count-leading-zeros.h:
18522         Don't include verify.h: it's no longer needed, as types wider than
18523         64 bits are now supported.
18524         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18525         performance with MSC.  All uses changed.  Do not assume that TYPE
18526         has at most 64 bits.
18527         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18528         All uses changed.  Fold the subtraction from 31 into the table.
18530         count-one-bits: port to MSC; support types wider than 64 bits
18531         The ideas behind the MSC port are stolen from Emacs.
18532         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18533         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18534         Don't include verify.h: it's no longer needed, as types wider than
18535         64 bits are now supported.
18536         (COUNT_ONE_BITS_GENERIC): New macro.
18537         (popcount_supported) [_MSC_VER]: New inline function.
18538         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18539         performance with MSC.  All uses changed.  Do not assume that TYPE
18540         has at most 64 bits.
18541         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18543 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18545         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18546         * lib/mountlist.c (read_file_system_list): fix leak of directory
18547         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18549 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18551         tests: improve diagnostic when an assertion fails
18552         * tests/macros.h (ASSERT): Report the assertion that failed.
18554 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18556         verify: new macro 'assume'
18557         This is taken from Emacs, and should be generally useful.
18558         * doc/verify.texi (assume): Document it.
18559         * lib/verify.h (assume): New macro.
18560         (__has_builtin): Expand to 0 if not defined.
18562 2013-09-26  Eric Blake  <eblake@redhat.com>
18564         dup2, dup3: work around another cygwin crasher
18565         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18566         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18567         * tests/test-dup2.c (main): Likewise.
18568         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18569         * lib/dup3.c (dup3): Likewise.
18570         * doc/posix-functions/dup2.texi (dup2): Document it.
18571         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18573         getdtablesize: work around cygwin issue
18574         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18575         * modules/getdtablesize (configure.ac): Build replacement.
18576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18577         * modules/unistd (Makefile.am): Expose the witness.
18578         * lib/unistd.in.h (getdtablesize): Declare replacement.
18579         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18580         * tests/test-getdtablesize.c (main): Test it.
18581         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18583 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18585         pmccabe2html: escaping of special characters
18586         Escape all '<', '>', and '&' in HTML output.
18587         * build-aux/pmccabe2html (html_fnc): Call gsub()
18588         instead of sub() to capture all '<', '>', and '&'.
18589         Neither of '<' and '>' is special in a regexp,
18590         so first arguments to gsub() are corrected. Also,
18591         in replacement strings, ampersand must be escaped.
18592         Finally, '&' must be handled first, then '<' and '>'.
18594 2013-09-24  Eric Blake  <eblake@redhat.com>
18596         manywarnings: enable nicer gcc warning messages
18597         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18598         some -f options for optimal warnings.
18600 2013-09-21  Jim Meyering  <meyering@fb.com>
18602         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18603         * lib/timespec-add.c (timespec_add): Also replace 999999999
18604         with TIMESPEC_RESOLUTION - 1.
18605         * lib/timespec-sub.c (timespec_sub): Likewise.
18607 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18609         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18610         Problem reported by Dagobert Michelsen via Eric Blake in
18611         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18612         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18613         not AC_COMPILE_IFELSE.
18615 2013-09-23  Eric Blake  <eblake@redhat.com>
18617         configmake: support new --runstatedir option
18618         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18619         even if autoconf was too old to provide the command line option.
18620         * modules/configmake (Makefile.am): Propagate it to .h file.
18622 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18624         ctype, string: depend on extern-inline
18625         This is needed to complete the recent OS X fixes.
18626         Also, fix related documentation as suggested by Eric Blake.
18627         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18628         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18629         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18630         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18631         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18632         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18633         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18634         * doc/posix-functions/toupper.texi:
18635         List the 'ctype' gnulib module.
18636         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18637         * doc/posix-functions/strncpy.texi:
18638         List the 'string' gnulib module.
18639         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18640         Add string.
18641         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18643 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18645         userspec: support optional parameters to parse_user_spec()
18646         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18647         then avoid group processing and treat the full spec as a user.
18648         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18649         be optional params (NULL), in which case they're ignored.
18651 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18653         timespec: new function make_timespec, and new constants
18654         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18655         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18656         (make_timespec): New function.
18657         * lib/dtotimespec.c (dtotimespec):
18658         * lib/timespec-add.c (timespec_add):
18659         * lib/timespec-sub.c (timespec_sub):
18660         * lib/utimens.c (validate_timespec):
18661         * lib/utimensat.c (rpl_utimensat):
18662         Use these new constants and functions.
18664         stdio: OS X port of putc_unlocked + extern inline
18665         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18666         * doc/posix-functions/putc_unlocked.texi:
18667         * doc/posix-functions/putchar_unlocked.texi:
18668         Document this portability problem.
18670         signal: OS X port of sigaddset etc. + extern inline
18671         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18672         (sigismember): #undef on problematic Apple platforms.
18673         * doc/posix-functions/sigaddset.texi:
18674         * doc/posix-functions/sigdelset.texi:
18675         * doc/posix-functions/sigemptyset.texi:
18676         * doc/posix-functions/sigfillset.texi:
18677         * doc/posix-functions/sigismember.texi:
18678         Document this portability problem.
18680         extern-inline: do not always suppress extern inline on OS X
18681         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18682         extern inline on Apple only if the particular compile-time
18683         configuration is known to have the problem.
18684         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18685         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18686         other Gnulib modules.
18688         extern-inline: document fixes for ctype and wctype macros
18689         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18690         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18691         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18692         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18693         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18694         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18695         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18696         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18697         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18698         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18699         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18700         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18701         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18702         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18703         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18704         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18705         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18706         * doc/posix-functions/strncpy.texi:
18707         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18708         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18709         Document that Gnulib fixes portability problems with these
18710         functions on OS X 10.8 and earlier when called from plain inline
18711         or extern inline functions.
18713 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18715         fflush, freadahead, fseeko: Fix for Android
18716         Suggested by Bruno Haible in:
18717         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18718         * lib/stdio-impl.h: Use local __sfileext definition.
18720 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18722         pmccabe2html: Portability to other awk versions.
18723         The functions systime() and strftime() are available
18724         in Gawk only.  Properly close two HTML-tags 'style'
18725         and 'span'.
18726         * build-aux/pmccabe2html (BEGIN): Store timing
18727         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18728         systime() in HTML_COMMENT.
18729         (html_header): Correctly close tag 'style'.
18730         (END): Replace strftime() by CHRONOS_TIME.  Close
18731         tag 'span' correctly, not as 'div'.
18733 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18735         getgroups: statement without effect
18736         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18737         Change equality conditional to expected assignment.
18739 2013-09-09  Eric Blake  <eblake@redhat.com>
18741         glob: fix compilation
18742         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18744 2013-09-07  Eric Blake  <eblake@redhat.com>
18746         glob: fix build for platforms without __THROW
18747         * lib/glob.in.h (__THROW): Add definition again.
18749 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18751         regex-quote: fix buffer access out of bounds
18752         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18753         * lib/regex-quote.c (regex_quote_spec_pcre):
18754         Fix typo that resulted in an out-of-bounds read.
18756 2013-09-04  Eric Blake  <eblake@redhat.com>
18758         glob: avoid -Wattribute warnings on glibc
18759         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18760         __THROWNL, not __THROW, on static functions.
18761         * lib/glob.in.h (__THROW): Adjust...
18762         (__THROWNL): ...accordingly.
18764 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18766         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18767         Suggested by Bruce Korb in:
18768         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18769         * doc/extern-inline.texi (extern inline):
18770         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18771         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18772         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18773         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18774         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18775         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18776         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18777         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18778         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18779         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18780         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18781         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18782         * lib/xtime.h:
18783         Check that _GL_INLINE_HEADER_BEGIN is defined.
18785 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18787         bootstrap: remove the --version requirement from ancillary tools
18788         * build-aux/bootstrap (check_exists): A new refactored function to
18789         determine if a command exists.
18790         (find_tool): Use the new function which does not require the
18791         --version option to be supported.
18792         (check_versions): Use the new function.
18794 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18796         gc: support HMAC-SHA256 and HMAC-SHA512.
18797         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18798         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18799         functions.
18800         (gc_hmac_md5): Use symbolic constant.
18801         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18802         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18803         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18804         * m4/sha256.m4: Protect against empty expansion.
18805         * m4/sha512.m4: Likewise.
18806         * lib/hmac-sha256.c: New file.
18807         * lib/hmac-sha512.c: Likewise.
18808         * m4/gc-hmac-sha256.m4: Likewise.
18809         * m4/gc-hmac-sha512.m4: Likewise.
18810         * m4/gc-sha256.m4: Likewise.
18811         * m4/gc-sha512.m4: Likewise.
18812         * modules/crypto/gc-hmac-sha256: Likewise.
18813         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18814         * modules/crypto/gc-hmac-sha512: Likewise.
18815         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18816         * modules/crypto/hmac-sha256: Likewise.
18817         * modules/crypto/hmac-sha256-tests: Likewise.
18818         * modules/crypto/hmac-sha512: Likewise.
18819         * modules/crypto/hmac-sha512-tests: Likewise.
18820         * tests/test-gc-hmac-sha256.c: Likewise.
18821         * tests/test-gc-hmac-sha512.c: Likewise
18822         * tests/test-hmac-sha256.c: Likewise.
18823         * tests/test-hmac-sha512.c: Likewise
18825 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18827         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18828         of AC_CHECK_DECLS.
18830 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18832         selinux-at: omit unnecessary include
18833         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18834         this source file doesn't use its macros, and subsidiary files that
18835         use the macros already include it.
18837 2013-08-21  Eric Blake  <eblake@redhat.com>
18839         d-ino: avoid false negative on symlink
18840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18841         Reported by Stephane Chazelas.
18843 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18845         bootstrap: port to OpenBSD sed
18846         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18847         does not interpret `-' as a file argument to mean stdin.
18849 2013-08-15  Eric Blake  <eblake@redhat.com>
18851         warnings: minor optimization
18852         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18854         warnings: check -Wfoo rather than -Wno-foo
18855         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18856         -Wno-, test if the compiler recognizes the positive form instead.
18858 2013-08-15  Karl Berry  <karl@gnu.org>
18860         * config/srclist-update: add option "doclicense" to placate
18861         pulling *.texi files from Emacs.  Write terse usage
18862         documentation at the top.
18864 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18866         xvasprintf-tests: port to GCC with hardening flags
18867         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18868         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18869         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18871 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18873         fpending: port to recent Cygwin change to stdio_ext.h
18874         Reported by LRN in
18875         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18876         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18877         just declare __fpending unless it's a macro.
18878         A duplicate decl shouldn't hurt.
18879         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18880         call compiles and links, instead of separately checking for
18881         decl and lib function.
18882         * modules/fpending (configure-ac):
18883         Adjust to fpending.m4's renaming of shell variable.
18885 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18887         sys_time: port to OpenBSD
18888         * lib/sys_time.in.h: Simply delegate to the system's header
18889         in the BSDish cases as well.  Problem reported by Mike Miller in
18890         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18891         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18892         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18893         wider than time_t.
18895 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18897         bootstrap: support checksum utils having -c but not --status
18898         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18899         Add sha1 to the list of supported checksum utils since it's now
18900         supported through adjustments below.
18901         (update_po_files): Remove the use of --status
18902         in a way that will suppress all error messages, but since this is
18903         only used to minimize updates, it shouldn't cause an issue.
18904         Exit early if there is a problem updating the po file checksums.
18905         (find_tool): Remove the check for --version support as this
18906         is optional as per commit 86186b17.  Don't even check for the
18907         presence of the command as if that is needed, it's supported
18908         through configuring prerequisites in bootstrap.conf.
18909         Prompt that when a tool isn't found, one can define an environment
18910         variable to add to the hardcoded search list.
18912 2013-08-05  Jim Meyering  <meyering@fb.com>
18914         regex: port to non-glibc/lock-using systems
18915         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18916         system with GNULIB_LOCK would fail due to absence of the
18917         included "glthread/lock.h".  This would affect any package
18918         for which the "lock" module is used only by the regex module,
18919         and not explicitly used.
18920         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18921         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18922         Add a dependency on the "lock" module.
18924 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18926         localecharset: make locale_charset thread-safe on Mac OS X
18927         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18928         instead of MB_CUR_MAX.
18930 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18932         gettext: update to version 0.18.3
18933         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18934         require AC_PROG_SED to allow user to specify custom sed command when
18935         generating en@quot PO file.
18937 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18939         bootstrap: use correct source when copying build-aux files
18940         * build-aux/bootstrap (gnulib_extra_files): This variable is
18941         relative to upstream gnulib layout, not downstream.
18943 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18945         tmpdir: fix bug in VMS port
18946         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18947         See Steven M. Schweda in
18948         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18950 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18952         tmpdir: port to VMS, to // != /, and to long dirs
18953         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18954         __secure_getenv, so that we're more like the glibc version.
18955         All uses changed.
18956         (path_search): Don't put slash after directory if __VMS.
18957         Problem reported by Steven M. Schweda in
18958         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18959         Simplify code to add slash; no need for a loop.
18960         Do not remove trailing slash from "//".
18961         Do not assume dlen <= INT_MAX.
18963 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18965         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18966         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18967         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18968         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18970         accept4, dup3, pipe2: port to Cygwin
18971         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18972         * lib/accept4.c (accept4) [O_BINARY]:
18973         * lib/dup3.c (dup3) [O_BINARY]:
18974         * lib/pipe2.c (pipe2) [O_BINARY]:
18975         Use set_binary_mode, not setmode.
18976         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18977         * modules/binary-io (Depends-on): Remove module indicator.
18978         These last two bits undo the previous change to pipe2 and binary-io.
18980 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18982         mountlist: add support for deallocating returned list entries
18983         * lib/mountlist.c (free_mount_entry): A new exported function
18984         to deallocate a mount list entry.
18985         (read_file_system_list): Refactor to use the new deallocation function.
18986         Suggested by Anton Ovchinnikov.
18988 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18990         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18991         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18992         * lib/stdalign.in.h (_Alignas, _Alignof):
18993         Port to FreeBSD 9.1, and to C11 and C++11.
18994         (_Alignas): Also support ICC.
18995         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18996         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18998 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19000         fnmatch: don't goto over declaration
19001         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
19002         undefined behavior for goto over a declaration.
19003         Problem reported by Charlie Brown in
19004         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
19006         pipe2: decouple from binary-io a bit
19007         This is for Emacs, which needs pipe2 but not binary-io.
19008         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
19009         * modules/binary-io (Depends-on): Add module indicator.
19011 2013-07-03  Eric Blake  <eblake@redhat.com>
19013         mgetgroups: relax license to LGPLv2+
19014         * modules/getugroups (License): Change from GPLv3+.
19015         * modules/mgetgroups (License): Likewise.
19016         * modules/getgroups (License): Change from LGPLv3+.
19018         xalloc-oversized: relax license to LGPLv2+
19019         * modules/xalloc-oversized (License): Change from GPLv3+.
19021         nproc: relax license to LGPLv2+
19022         * modules/nproc (License): Change from LGPLv3+.
19024         bootstrap: honor --no-git
19025         * build-aux/bootstrap: Don't even try to use git when user is
19026         pointing to a static checkout.
19028 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19030         ignore-value: port to gcc -pedantic
19031         * lib/ignore-value.h (ignore_value):
19032         Port to gcc -pedantic, by using __extension__.
19033         Reindent as per usual gnulib style nowadays.
19034         Simplify GCC version check.
19036 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19038         extern-inline: port to gcc -std=c89
19039         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
19040         Do not use __gnu_inline__ if pedantic and pre-C99.
19042 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19044         doc: document extern-inline
19045         * doc/extern-inline.texi: New file.
19046         * doc/gnulib.texi (alloca-opt): Include it.
19047         * m4/extern-inline.m4: Move some comments to documentation,
19048         and others closer to what they describe.
19050         doc: chatter less
19051         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
19052         (updated-stamp): Use it.  This causes 'make' to output just
19053         one file name rather than zillions.
19055         fflush, fseeko: port to musl cross-compiles
19056         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
19057         on some implementation that (1) is not known to be buggy,
19058         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
19059         cross-compiled to so we can't easily check for lack of
19060         conformance.  This is for cross-compiling to musl.
19061         Reported by Rich Felker in
19062         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
19063         * m4/fclose.m4 (gl_FUNC_FCLOSE):
19064         * m4/fflush.m4 (gl_FUNC_FFLUSH):
19065         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
19066         Adjust to above change.
19067         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
19068         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
19069         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
19070         known not to work, or unknown.
19072 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19074         msvc-inval: port to mingw-w64
19075         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
19076         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
19077         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
19079 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19081         getcwd-lgpl: port to Tru64
19082         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
19083         Problem reported by Steven M. Schweda in
19084         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
19086         tests: port large-fd POSIX spawn tests to OS X
19087         Problem reported by Daiki Ueno in
19088         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
19089         * tests/test-posix_spawn_file_actions_addclose.c:
19090         * tests/test-posix_spawn_file_actions_adddup2.c:
19091         * tests/test-posix_spawn_file_actions_addopen.c:
19092         Include <limits.h>, for OPEN_MAX, if available.
19093         (big_fd): New static function.
19094         (main): Use it.
19096 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
19098         tests/nap.h: use an adaptive delay to avoid ctime update issues
19099         The recent change in nap.h (5191133e) decreased the probability of lost
19100         races to about a third, however such problems could still be observed
19101         in virtual machines and openSUSE's OBS.
19102         Before, nap() detected the needed time once empirically and then used
19103         that delay (together with a small correction multiplier) in further
19104         calls.  This problem has been reported and discussed several times,
19105         including guesses about possible kernel issues:
19106         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
19107         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
19108         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
19109         http://bugs.gnu.org/12820
19110         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
19111         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
19112         Now, nap() avoids the race alltogether by verifying on a reference
19113         file whether a timestamp difference has happened.
19114         * tests/nap.h (nap_fd): Define file descriptor variable for the
19115         witness file.
19116         (nap_works): Change return value to bool.  Change passing
19117         the old file's status by value instead of by reference as this function
19118         does no longer update that timestamp; rename the function argument from
19119         st to old_st.  Remove the local variables cdiff and mdiff because that
19120         function now returns true/false instead of the precise delay.
19121         (guess_delay): Remove function.
19122         (clear_tmp_file): Add new function to close and unlink the witness file.
19123         (nap): Instead of re-using the delay which has been calculated during
19124         the first call, avoid the race by actually verifying that a timestamp
19125         difference can be observed on the current file system.  Use an adaptive
19126         approach for the delay to minimize execution time.  Assert that the
19127         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
19128         = 2^31 - 1 = 2.1s.
19129         Use atexit to call clear_tmp_file when the process terminates.
19131 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19133         sig2str: port to C++
19134         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
19135         Reported by Daniel J Sebald in
19136         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
19138 2013-05-30  Eric Blake  <eblake@redhat.com>
19140         docs: mention cygwin shortcoming in <sys/un.h>
19141         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
19143         vasnprintf: silence mingw compiler warning
19144         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
19146 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19148         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
19149         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
19150         This fixes a porting bug I recently reintroduced in regex, and
19151         some other instances that I discovered while testing the fix.
19152         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
19153         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
19154         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
19155         with an empty argument if this is a pedantic pre-C99 GCC.
19156         * lib/verify.h: Do not use _Static_assert if this is a pedantic
19157         pre-C11 GCC.
19159         regex: adapt to locking regime instead of depending on pthread
19160         Instead of depending on pthread, adapt to whatever thread
19161         modules are in use.  Problem reported by Ludovic Courtès in
19162         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
19163         and by Mats Erik Andersson in
19164         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
19165         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19166         Support either the 'lock' module, or the 'pthread' module, or
19167         no module.
19168         (lock_lock, lock_unlock): New macros.
19169         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
19170         * modules/lock, modules/pthread (configure.ac): Add module indicator.
19171         * modules/regex (Depends-on): Remove pthread.
19173 2013-05-22  Eric Blake  <eblake@redhat.com>
19175         getgroups: document portability issues
19176         * doc/glibc-functions/initgroups.texi (initgroups): Mention
19177         multithread safety.
19178         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
19179         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
19180         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
19181         getugroups.
19182         * doc/posix-functions/getgroups.texi (getgroups): Mention
19183         multithread safety and mgetgroups.
19185 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19187         test-lchown, test-chown: also skip test if chown fails with EPERM
19188         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
19189         skip this test, to handle FAT file systems.
19190         * tests/test-chown.h (test_chown): Likewise.
19192 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19194         regex: fix dfa race in multithreaded uses
19195         Problem reported by Ludovic Courtès in
19196         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
19197         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19198         New macros.  All uses of __libc_lock_define, __libc_lock_init
19199         changed to use the first two of these.
19200         (__libc_lock_lock, __libc_lock_unlock): New macros, for
19201         non-glibc platforms.
19202         (struct re_dfa_t): Define the lock unconditionally.
19203         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
19204         '#ifdef _LIBC"s.
19205         * modules/regex (Depends-on): Add pthread, if we use the
19206         included regex.
19208         * lib/regcomp.c: Do actions that are not needed for glibc,
19209         but may be needed elsewhere.
19210         (regfree, re_compile_internal): Destroy the lock.
19211         (re_compile_internal): Check for lock-initialization failure.
19213         malloca: port to compilers that reject size-zero arrays
19214         This fixes a bug introduced in my previous patch.
19215         * lib/malloca.c (struct preliminary_header): Use an int
19216         rather than a character array of size int; that's simpler.
19217         (struct header): Remove, replacing with ...
19218         (union header): New type.  This avoids the need for declaring a
19219         character array of size zero, which is not allowed on some platforms.
19220         All uses changed.
19222 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19224         parse-datetime, tests: don't use "string" + int
19225         Recent versions of 'clang' complain about C source code that
19226         uses expressions of the form '"string literal" + integer',
19227         I guess on the theory that it's confusing for readers who are
19228         used to C++.  On those grounds I suppose it's OK to make this
19229         minor style change.
19230         * lib/parse-datetime.y (parse_datetime):
19231         * tests/test-fchdir.c (main):
19232         * tests/test-snprintf-posix.h (test_function):
19233         * tests/test-snprintf.c (main):
19234         * tests/test-vasnprintf-posix.c (test_function):
19235         * tests/test-vasnprintf.c (test_function):
19236         * tests/test-vsnprintf.c (main):
19237         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
19238         Rewrite '"str" + E' to '&"str"[E]'.
19240 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19242         argmatch: port to C++
19243         * lib/argmatch.h [__cplusplus]: Add extern "C".
19245         argp: typo fix
19246         * lib/argp-help.c: Typo in comment.
19248 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
19250         manywarnings: update for GCC 4.8.0
19251         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19252         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
19253         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
19254         -Wmissing-noreturn, as they are duplicates of other warnings.
19255         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
19256         was documented to be flaky in earlier versions of GCC.
19258         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
19259         * tests/test-spawn.c (main):
19260         * tests/test-sys_socket.c (main):
19261         * tests/test-sys_wait.c (main):
19262         Don't have a switch value that isn't covered by a case.
19264         getaddrinfo-tests: port --enable-gcc-warnings to clang
19265         * tests/test-getaddrinfo.c (simple):
19266         Avoid casts from looser to stricter-aligned pointers.
19268         thread: port --enable-gcc-warnings to clang
19269         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
19270         Include <signal.h>, to pacify a warning about pthread_sigmask.
19272         stdio: use __REDIRECT for fwrite, fwrite_unlocked
19273         * lib/stdio.in.h (fwrite):
19274         When working around bug 11959, use __REDIRECT rather than '#define
19275         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
19276         fix the -Wunused-value issue with clang, and it works with GCC too.
19277         Problem with targeting reported by Eric Blake in
19278         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
19279         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
19280         debugging the fwrite issue.
19282         stdio: port --enable-gcc-warnings to clang
19283         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
19284         since the GCC workaround for fwrite does not pacify clang.
19286         sig2str: port --enable-gcc-warnings to clang
19287         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
19289         obstack: port --enable-gcc-warnings to clang
19290         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
19291         Avoid casts from looser to stricter-aligned pointers.
19293         memchr2: port --enable-gcc-warnings to clang
19294         * lib/memchr2.c (memchr2):
19295         Avoid casts from looser to stricter-aligned pointers.
19297         mbsstr: port --enable-gcc-warnings to clang
19298         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
19299         Avoid casts from looser to stricter-aligned pointers.
19301         malloca: port --enable-gcc-warnings to clang
19302         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
19303         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
19305         inttostr: port --enable-gcc-warnings to clang
19306         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
19308         warnings: port to clang
19309         Problem reported by Daniel P. Berrange via Eric Blake in
19310         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
19311         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
19312         (gl_WARN_ADD): Use it.
19314 2013-05-11  Jim Meyering  <meyering@fb.com>
19316         quotearg: do not read beyond end of buffer
19317         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
19318         end of an ARG for which no length was specified.  With an N-byte
19319         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
19320         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
19321         via coreutils' misc/sort-debug-keys.sh test and detected by running
19322         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
19323         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
19324         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
19325         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
19326         characters correctly."
19328 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19330         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19331         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19332         compilation target is Mac OS X 10.6.
19333         Problem reported by parafin and Andoni Morales in
19334         <http://savannah.gnu.org/bugs/?37844> and
19335         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19337 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19339         mkdir-p: remove assumptions about umask and mode
19340         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19341         umask is 0, or that MODE is a subset of MODE_BITS.
19343 2013-05-10  Eric Blake  <eblake@redhat.com>
19345         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19346         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19348 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19350         deps: require Automake >= 1.9.6 in generated Makefile fragments
19352         That is the same minimal version required in the DEPENDENCIES file.
19353         Moreover, the old code generated a requirement of Automake >= 1.5,
19354         and that is an insanely outdated version.
19356         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19357         * tests/havelib/rpathlx/Makefile.am: Likewise.
19358         * tests/havelib/rpathly/Makefile.am: Likewise.
19359         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19360         * tests/havelib/rpathlz/Makefile.am: Likewise.
19361         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19362         * tests/havelib/rpathx/Makefile.am: Likewise.
19363         * tests/havelib/rpathy/Makefile.am: Likewise.
19364         * tests/havelib/rpathz/Makefile.am: Likewise.
19366 2013-05-08  Eric Blake  <eblake@redhat.com>
19368         bootstrap: AC_INIT may have more than four parameters
19369         * build-aux/bootstrap (extract_package_name): Correctly extract
19370         non-empty tarname field.  Avoid range in regex.
19371         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19373 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19375         qacl: port to MS-Windows port of GNU Emacs
19376         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19377         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19378         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19379         <http://bugs.gnu.org/14295#14>.
19381 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19383         acl: include quote.h
19384         * lib/copy-acl.c: Include quote.h.
19385         * lib/set-acl.c: Likewise.
19387 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19389         fchownat, renameat, unlinkat: update statat dependencies
19390         These modules use statat and lstatat, not fstatat; so depend on
19391         the statat module, which was split out recently from fstatat.
19392         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19393         * modules/renameat: Likewise.  Also delete fstat.
19394         URL: http://bugs.gentoo.org/468790
19396 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19398         Assume gnulib is checked out from Git, not CVS
19400         In fact, access to the gnulib repository through CVS has been
19401         disabled, or more precisely, got broken and was never restored; see:
19402         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19404         Note that support for CVS is not removed completely and unthinkingly
19405         by this change: only support for CVS checkouts of gnulib itself is
19406         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19407         files and CVS directories, for the benefit of those poor gnulib clients
19408         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19410         * gnulib-tool: Simplify accordingly.
19411         * posix-modules: Likewise.
19412         * MODULES.html.sh: Likewise.
19413         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19414         repository.
19415         * doc/gnulib-intro.texi: Likewise.
19416         * doc/gnulib-readme.texi: Likewise.
19417         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19418         sample '.gitignore' file rather than a sample '.cvsignore'.
19419         * NEWS: Update.
19420         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19421         to "CVS Autoconf" rather than "git Autoconf".
19423 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19425         utimensat-tests, etc.: try to fix some races
19426         Problem reported by Bernhard Voelker in
19427         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19428         I don't know whether this patch fixes that race condition, but it
19429         fixes *some* race conditions, so it should be a win.
19430         * modules/chown-tests (Depends-on):
19431         * modules/fchownat-tests (Depends-on):
19432         * modules/fdutimensat-tests (Depends-on):
19433         * modules/futimens-tests (Depends-on):
19434         * modules/lchown-tests (Depends-on):
19435         * modules/stat-time-tests (Depends-on):
19436         * modules/utimens-tests (Depends-on):
19437         * modules/utimensat-tests (Depends-on):
19438         Depend on nanosleep, not usleep.
19439         * modules/chown-tests (test_chown_LDADD):
19440         * modules/lchown-tests (test_lchown_LDADD):
19441         * modules/stat-time-tests (test_stat_time_LDADD):
19442         New macro.
19443         * modules/fchownat-tests (test_fchownat_LDADD):
19444         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19445         * modules/futimens-tests (test_futimens_LDADD):
19446         * modules/utimens-tests (test_utimens_LDADD):
19447         * modules/utimensat-tests (test_utimensat_LDADD):
19448         Add $(LIB_NANOSLEEP).
19449         * modules/stat-time-tests (Files): Add tests/nap.h.
19450         * tests/nap.h: Include <limits.h>, for INT_MAX.
19451         (lt_mtime): Remove.
19452         (diff_timespec): New function.
19453         (get_stat): Rename from get_mtime.  All callers changed.
19454         (nap_works): Determine the needed delay by inspecting the
19455         file system's timestamp jumps; this should be more reliable.
19456         Look at both mtime and ctime, and take the maximum of the two jumps.
19457         (nap_works, guess_delay):
19458         Return a nanosecond count, not a microsecond count.
19459         All callers changed.
19460         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19461         failure.
19462         (nap): Multiply the guess by 1.125, to accommodate the case where
19463         the file system's clock is a bit slower than nanosleep's clock.
19464         * tests/test-stat-time.c (BASE): New macro.
19465         Include nap.h.
19466         (nap): Remove; nap.h now defines this.  This removes a duplicate
19467         implementation of 'nap'.
19469         utimens, utimensat: work around Solaris UTIME_OMIT bug
19470         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19471         Linux kernel 2.6.32 does.  Work around it in the same way.
19472         * doc/posix-functions/futimens.texi (futimens):
19473         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19474         * lib/utimens.c (fdutimens, lutimens):
19475         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19477         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19478         Formerly, it was your responsibility to do this for all Makefile.ams
19479         other than Gnulib's.  Now it's your responsibility to do it for
19480         Gnulib's Makefile.am, too.
19481         * NEWS: Document this.
19482         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19484         acl: include errno.h to get errno
19485         Reported by Daiki Ueno in
19486         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19487         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19489 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19491         tests: don't assume getdtablesize () <= 10000000
19492         * modules/cloexec-tests:
19493         * modules/dup2-tests:
19494         * modules/dup3-tests:
19495         * modules/nonblocking-tests:
19496         * modules/posix_spawn_file_actions_addclose-tests:
19497         * modules/posix_spawn_file_actions_adddup2-tests:
19498         * modules/posix_spawn_file_actions_addopen-tests:
19499         * modules/unistd-safer-tests:
19500         Depend on the getdtablesize module.
19501         * tests/test-cloexec.c:
19502         * tests/test-dup-safer.c:
19503         * tests/test-dup2.c:
19504         * tests/test-dup3.c:
19505         * tests/test-fcntl.c:
19506         * tests/test-nonblocking.c:
19507         * tests/test-posix_spawn_file_actions_addclose.c:
19508         * tests/test-posix_spawn_file_actions_adddup2.c:
19509         * tests/test-posix_spawn_file_actions_addopen.c:
19510         Don't assume getdtablesize () <= 10000000.
19512 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19514         extern-inline: work around bug in Sun c99
19515         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19516         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19518 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19520         qacl: new module, broken out from the acl module
19521         This is for GNU Emacs, which wants the acl functions but does
19522         not want 'error' invoked when they fail.
19523         * lib/acl-internal.h: Do not include error.h, quote.h.
19524         (ENOSYS, ENOTSUP): Remove; no longer needed.
19525         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19526         * lib/acl.h: Include <stdbool.h>.
19527         (acl_errno_valid): New function.
19528         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19529         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19530         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19531         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19532         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19533         * lib/file-has-acl.c (file_has_acl):
19534         * lib/qcopy-acl.c (qcopy_acl):
19535         * lib/qset-acl.c (qset_acl):
19536         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19537         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19538         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19539         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19540         Add lib/set-acl.c.
19541         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19542         Add qacl.
19543         (configure.ac): Move gl_FUNC_ACL to qacl module.
19544         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19545         Rename set-mode-acl.c to set-acl.c.
19546         * lib/acl-errno-valid.c: New file.
19547         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19548         copy_acl function remains in copy-acl.c.
19549         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19550         (_): Remove; not needed.
19551         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19552         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19553         * modules/qacl: New file, moved from the old modules/acl.
19554         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19555         Remove set-mode-acl.c, copy-acl.c.
19556         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19558         alignof, intprops, malloca: port better to IBM's C compiler
19559         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19560         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19561         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19563 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19565         wctype-h: fix gettext link error on mingw
19566         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19567         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19568         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19569         rpl_towupper and rpl_towupper.
19571 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19573         regex-tests, regex: allow glibc re_search behavior
19574         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19575         re_search input data to make the multi-character collating element
19576         in it clearly visible, and treat re_search return code 0 as valid.
19577         * m4/regex.m4 (gl_REGEX): Likewise.
19579 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19581         stdalign: doc fix
19582         * doc/posix-headers/stdalign.texi (stdalign.h):
19583         Gnulib doesn't support '_Alignof expr'.
19585 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19587         stdalign: port to stricter ISO C11
19588         ISO C11 says that _Alignof's operand must be a parenthesized type.
19589         Problem reported by Eli Zaretskii in
19590         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19591         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19592         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19594 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19596         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19597         Problem reported by Marco Atzeri in
19598         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19599         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19600         Simply delegate to the system <sys/select.h> in this case too.
19601         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19602         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19603         be needed on Solaris either.
19604         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19605         Simply delegate to the system <sys/time.h> in this case.
19607 2013-03-19  Karl Berry  <karl@gnu.org>
19609         * build-aux/gnupload: check for erroneous (with gnupload) use of
19610         ftp-upload.gnu.org, tweak help.
19612 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19614         copy-file, rpmatch: fix problems found by cppcheck
19615         Reported by Arno Onken in
19616         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19617         * lib/rpmatch.c (try): Fix memory leak.
19618         * lib/copy-file.c: Include "ignore-value.h".
19619         (qcopy_file_preserving): Ignore chown value.
19620         * modules/copy-file (Depends-on): Add ignore-value.
19622 2013-01-27  Jim Meyering  <jim@meyering.net>
19624         prefix-gnulib-mk: give better diagnostics
19625         * build-aux/prefix-gnulib-mk: Don't just "die".
19626         Give better diagnostics upon failure.
19628 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19630         putenv: port to Solaris 10
19631         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19632         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19633         is not what is wanted here.
19634         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19635         declaration, not for its existence.
19637 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19639         mktime: fix configure typo
19640         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19642 2013-03-12  Eric Blake  <eblake@redhat.com>
19644         regex-tests: skip UTF-8 test on mingw
19645         * modules/regex-tests (Depends-on): Add localcharset.
19646         * tests/test-regex.c (main): Use it to skip test on mingw.
19648 2013-03-11  Eric Blake  <eblake@redhat.com>
19650         tests: make it easier to bypass alarm time in debugger
19651         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19652         * tests/test-memmem.c (main): Likewise.
19653         * tests/test-passfd.c (main): Likewise.
19654         * tests/test-ptsname.c (main): Likewise.
19655         * tests/test-ptsname_r.c (main): Likewise.
19656         * tests/test-strcasestr.c (main): Likewise.
19657         * tests/test-strstr.c (main): Likewise.
19659         regex: port to mingw's recent addition of undeclared alarm
19660         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19661         exists but still doesn't work in newer mingw.
19662         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19663         not existence.  Ensure SIGALRM is not trapped.
19664         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19665         * m4/regex.m4 (gl_REGEX): Likewise.
19666         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19667         * tests/test-regex.c (main): Use correct probe for alarm.
19669         putenv: avoid compilation warning on mingw
19670         * lib/putenv.c (_unsetenv): Protect variable declaration.
19671         (putenv): Fix indentation.
19673 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19675         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19676         * lib/unistd.in.h: be careful not to include un-needed system
19677         stdlib.h from here, because that prevents gnulib stdlib.h from
19678         defining rpl_strtod correctly.
19680 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19682         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19683         changesets, but for the 'precision 0' test.
19684         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19685         round-to-even, since POSIX says rounding is implementation-defined
19686         and OS X 10.8.2 rounds 1.51 to 1 here.
19688         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19689         changeset.
19690         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19691         round-to-even, since POSIX says rounding is implementation-defined
19692         and OS X 10.8.2 rounds 1.5 to 1 here.
19694 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19696         vasnprintf-posix-tests: allow rounding 1.5 to 1
19697         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19698         round-to-even, since POSIX says rounding is implementation-defined
19699         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19700         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19702         bootstrap: port to FreeBSD
19703         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19704         that treat '--' differently.  Reported by Mats Erik Andersson in
19705         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19707 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19709         regex: rename remaining __attribute calls to __attribute__.
19710         2012-02-25 changed definition of __attribute, but left some uses
19711         unchanged, preventing compilation of regex module on most non-gcc
19712         environments.
19713         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19714         (lookup_collation_sequence_value, build_range_exp)
19715         (build_collating_symbol): Set attributes with newly renamed
19716         __attribute__ decorator.
19717         * lib/regex_internal.c (re_string_peek_byte_case)
19718         (re_node_set_compare, re_node_set_contains): Likewise.
19719         * lib/regexec.c (acquire_init_state_context): Likewise.
19721 2013-03-06  Bruno Haible  <bruno@clisp.org>
19723         execute: Revert last change, but use a different condition.
19724         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19725         on Windows.
19727 2013-03-05  Eric Blake  <eblake@redhat.com>
19729         execute: drop dead code
19730         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19732 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19734         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19735         * m4/non-recursive-gnulib-prefix-hack.m4
19736         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19737         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19738         <http://bugs.gnu.org/10305#237>.
19740 2013-03-04  Eric Blake  <eblake@redhat.com>
19742         test-getsockopt: avoid compiler warning
19743         * tests/test-getsockopt.c (includes): Ensure close is declared.
19745 2013-03-02  Bruno Haible  <bruno@clisp.org>
19747         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19748         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19750 2013-03-02  Bruno Haible  <bruno@clisp.org>
19752         gettext: Update to version 0.18.2.
19753         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19754         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19755                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19757 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19759         regex: merge patches from libc
19761         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19762         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19763         All uses changed.
19764         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19765         (re_string_wchar_at, re_string_elem_size_at):
19766         Mark function as possibly unused.
19768         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19769         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19770         elements compare against the byte sequence of it, not its name.
19772 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19774         putenv: port better to native Windows
19775         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19776         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19777         (_unsetenv): Use _putenv if available.
19778         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19779         a bit less likely to cause damage.
19780         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19781         Fix the wrong value with SetEnvironmentVariable.
19782         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19783         code better.
19785 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19787         regex: ignore old-style-definition warnings
19788         * lib/regex.c: Add pragma to ignore these warnings.
19789         Problem reported for GNU tar by Pavel Raiskup.
19791 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19793         getcwd: support coreutils better
19794         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19795         but this might not be correct in coreutils, which disables
19796         the raw decl checks.  Problem reported by Nagendra in
19797         <http://bugs.gnu.org/10305#192>.
19798         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19799         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19800         Test the getcwd function, not any macro, since getcwd.c wants the
19801         function.
19802         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19803         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19804         compile, as might happen if there's a macro but no function.
19806         strtod: support coreutils better
19807         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19808         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19809         disables the raw decl checks.  This assumes there is an underlying
19810         strtod, but that's a safe assumption these days.
19811         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19813         mountlist: port to HP NonStop
19814         Reported by Joachim Schmitz in
19815         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19816         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19817         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19819 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19821         extern-inline: avoid compilation error with HP-UX cc
19822         Reported by Richard Lloyd in
19823         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19824         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19825         Suppress extern inline with HP-UX cc.  This should be safe,
19826         though it may hurt performance.  Perhaps someone with some HP-UX
19827         experience can come up with a higher-performance fix.
19829 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19831         putenv: fix heap corruption with mixed putenv/_putenv
19832         Problem reported by Michael Goffioul in
19833         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19834         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19835         Rely on _putenv to allocate the new environment.
19836         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19837         * modules/putenv (configure.ac): Use it.
19839 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19841         unsetenv etc.: port to Solaris 11 + GNU Emacs
19842         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19843         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19844         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19845         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19846         idea but is too painful to fix right now), and without this gnulib
19847         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19848         compiling unsetenv.c on Solaris 11.  Fix the problem for
19849         unsetenv.c, and fix other similar occurrences.
19851 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19853         secure_getenv: fix C++ declaration typo
19854         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19855         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19856         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19858 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19860         careadlinkat: stop exporting careadlinkatcwd
19861         Only Emacs used it directly, and Emacs no longer needs it.
19862         * NEWS: Document this simplification.
19863         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19864         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19865         for readlink.
19866         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19867         Don't include stdlib.h; no longer needed.
19868         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19869         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19870         * modules/areadlink (Depends-on): Add readlink.
19871         (Maintainer): Add self.
19872         * modules/careadlinkat (Depends-on): Remove readlink.
19874         extensions: port better to HP-UX
19875         This is merged from git Autoconf.
19876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19877         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19878         so that it's compatible with the value used when compiling.
19880         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19881         Problem reported by Mats Erik Andersson in
19882         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19883         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19884         openpty function exists, not merely when we intend to replace it.
19885         This corrects the 2013-01-31 patch, which mistakenly defined
19886         HAVE_OPENPTY even on hosts that lacked it.
19888 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19890         secure_getenv: fix include typo
19891         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19893         secure_getenv: port better to FreeBSD and Solaris
19894         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19895         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19896         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19897         This works better on BSDish platforms.
19898         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19899         Test for issetugid if __secure_getenv is missing.
19901 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19903         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19904         Some of these changes are merged in from git Autoconf.
19905         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19906         When deciding whether to define _XOPEN_SOURCE, inspect the
19907         preprocessor macro __hpux instead of the more-heavyweight
19908         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19909         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19910         as the key for __EXTENSIONS__.
19912         unistd: avoid namespace pollution on non-glibc systems
19913         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19914         This avoids namespace pollution on non-glibc systems, by causing
19915         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19916         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19917         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19919 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19921         tmpdir: use secure_getenv
19922         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19923         Define to secure_getenv, not getenv.
19924         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19925         as that's now secure_getenv's job.
19926         * modules/tmpdir (Depends-on): Add secure_getenv.
19928         tempname: use secure_getenv
19929         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19930         Define to secure_getenv, not getenv.
19931         * modules/tempname (Depends-on):
19932         Add secure_getenv.
19934         secure_getenv: new module
19935         * MODULES.html.sh (Extra functions based on ANSI C 89):
19936         Add secure_getenv.
19937         * doc/glibc-functions/secure_getenv.texi: New file.
19938         * doc/gnulib.texi: Include it.
19939         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19940         New files.
19941         * lib/stdlib.in.h (secure_getenv): New decl.
19942         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19943         * modules/stdlib (stdlib.h):
19944         Add secure_getenv checks.
19946 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19948         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19949         Reported for OS X 10.8.2 by Assaf Gordon in
19950         <http://bugs.gnu.org/13516>.
19951         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19952         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19953         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19954         so that they can be kept in sync more easily.  Avoid PATH_MAX
19955         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19956         mkdir or chdir failure.
19957         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19958         lib/getcwd.c.
19959         (test_abort_bug): Do not test for the deep directory bug unless we
19960         have openat support.  Avoid PATH_MAX test on the Hurd.
19962         regex-tests, regex: fix bug: memset undeclared
19963         * tests/test-regex.c: Don't include regex.h twice.  Include
19964         string.h, to declare memset.  Christensen's report also mentioned
19965         this issue.
19966         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19967         test-regex.c, to avoid future problems like this.  Remove
19968         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19969         twice.
19971         regex-tests: fix link errors on older Solaris
19972         These need to link with @LIBINTL@ to get libintl_gettext.
19973         Problem reported by Tom G. Christensen in
19974         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19975         * modules/regex-tests (test_regex_LDADD): New macro.
19977 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19979         regex-tests: new module
19980         * modules/regex-tests, tests/test-regex.c: New files.
19982         regex: fix off-by-one error in configure test
19983         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19985 2013-01-31  Eric Blake  <eblake@redhat.com>
19987         regex: avoid infinite configure test
19988         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19990 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19992         openpty: fix bug where HAVE_OPENPTY wasn't defined
19993         See the thread starting at:
19994         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19995         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19996         openpty function exists, not merely when we intend to replace it.
19998 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20000         sys_time: port to Solaris 2.6
20001         There is a circularity problem on Solaris 2.6, where <time.h> includes
20002         <sys/time.h> for struct timespec.  The include nesting is gnulib
20003         <time.h>, system <time.h>, gnulib <sys/time.h>, system
20004         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
20005         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
20006         <sys/siginfo.h>; the last, innermost file needs struct
20007         timestruc_t, which is defined in <sys/time.h>, which has not been
20008         fully parsed.  Problem reported by Tom G. Christensen in
20009         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
20010         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
20011         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
20012         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
20013         uses split double-inclusion guards.
20015 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20017         regex: test for buffer overrun
20018         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
20019         for the just-fixed regex bug.
20021 2013-01-29  Andreas Schwab  <schwab@suse.de>
20023         regex: fix buffer overrun in regexp matcher [BZ #15078]
20024         * lib/regexec.c (extend_buffers): Add parameter min_len.
20025         (check_matching): Pass minimum needed length.
20026         (clean_state_log_if_needed): Likewise.
20027         (get_subexp): Likewise.
20029 2013-01-28  Pádraig Brady  <P@draigBrady.com>
20031         mountlist: don't consider "devtmpfs" as dummy
20032         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
20033         as there is storage associcated with it.
20035 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20037         futimens-tests, utimens-tests: Depend on gettext.
20038         This works around a problem introduced in my 2013-01-12 patch,
20039         which added @LIBINTL@ to these modules.
20040         * modules/futimens-tests (Depends-on):
20041         * modules/utimens-tests (Depends-on): Add gettext.
20043 2013-01-26  Eric Blake  <eblake@redhat.com>
20045         test-getpeername: fix typo
20046         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
20048 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
20050         bootstrap: remove the need for a sorted .gitignore file
20051         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
20052         rename to insert_if_absent(), so that we don't need or generate
20053         a sorted .gitignore file.  We do require a .gitignore with no
20054         existing duplicate entries and enforce that.
20055         (sort_patterns): Remove this function as we now use the simpler
20056         technigue of inserting blacklist entries at the top of the file,
20057         assuming gnulib won't be inserting !whitelist entries.
20059 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20061         readlinkat: don't depend on gl_FUNC_OPENAT
20062         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
20063         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
20064         renameat.m4, symlinkat.m4; but one thing at a time.
20066         statat: new module, split out from fstatat
20067         GNU Emacs needs the POSIX-specified fstatat, but not the
20068         gnulib-specified statat and lstat.  Split the latter two into a
20069         new module 'statat'.
20070         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
20071         * lib/openat.h, lib/statat.c (STATAT_INLINE):
20072         Rename from FSTATAT_INLINE. All uses changed.
20073         * modules/fstatat (Files): Remove lib/statat.c.
20074         (gl_MODULE_INDICATOR([fstatat])): Remove.
20075         (lib_SOURCES): Remove.
20076         (Maintainer): Add self.
20077         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
20078         * tests/test-fstatat.c (BASE): Don't define if already defined.
20079         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
20081 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20083         tests: don't assume fd 99 is closed
20084         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
20085         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
20086         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
20087         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
20088         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
20089         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
20090         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
20091         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
20092         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
20093         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
20094         * tests/test-fwrite.c, tests/test-getpeername.c:
20095         * tests/test-getsockname.c, tests/test-getsockopt.c:
20096         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
20097         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
20098         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
20099         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
20100         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
20101         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
20102         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
20103         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
20104         * tests/test-unlinkat.c, tests/test-unlockpt.c:
20105         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
20106         Close file descriptor 99, instead of assuming it's already closed.
20108 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20110         stpncpy: port to OS X 10.8
20111         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
20112         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
20114 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20116         unistd: port to recent mingw
20117         * lib/unistd.in.h: Remove special invocation convention for mingw,
20118         which breaks for the latest mingw version.  See John W. Eaton in
20119         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
20121         largefile: port better to Mac OS X 10.5
20122         This patch is backported from Autoconf git.
20123         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
20124         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
20125         with ino_t size being different for configuration time versus
20126         build/run time.  Problem reported by PHO in
20127         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
20129 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20131         doc: clarify -Werror
20132         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
20133         clarify that it's intended for developers, not for ordinary builds,
20134         and mention --enable-gcc-warnings as one possible use.
20136 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
20138         stdint: fix build with Android's Bionic fox x86
20139         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
20140         was already included as _SSIZE_T_DEFINED_ might also be defined
20141         in include/machine/_types.h, which is included by stdio.h
20143 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20145         net_if-tests: port to Solaris 7 + GCC 3.4.6
20146         Problem reported by Tom G. Christensen in
20147         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
20148         * tests/test-net_if.c (ni): Move to next the code that uses it,
20149         so that it's declared only if needed.
20151 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20153         net_if-tests: port to older Solaris
20154         Problem reported by Tom G. Christensen in
20155         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20156         * modules/net_if-tests (NET_IF_LIB): New substitution.
20157         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
20158         (HAVE_IF_NAMEINDEX): New C macro.
20159         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
20161         system-quote-tests: port to older Solaris
20162         Problem reported by Tom G. Christensen in
20163         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20164         * tests/test-system-quote-child.c (fopen, fread): Undef.
20166         c-xvasprintf etc.: fix link errors on older Solaris
20167         These need to link with @LIBINTL@ to get libintl_gettext.
20168         Problem reported by Tom G. Christensen in
20169         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20170         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
20171         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
20172         * modules/futimens-tests (test_futimens_LDADD):
20173         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
20175 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20177         locale: port to Solaris 2.6 and 7 + GNU gettext
20178         * lib/locale.in.h: Just include_next <locale.h> when
20179         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
20180         when combining the localename module with GNU gettext 0.18.2.
20181         Problem reported by Tom G. Christensen in
20182         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
20184 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20186         stdlib: port to Solaris 2.6
20187         Also, the code worked on Solaris 7 through 9 only by accident.
20188         Problem reported by Tom G. Christensen in
20189         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
20190         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
20191         simply include the system stdlib.h.
20192         * lib/getopt.in.h (__need_system_stdlib_h):
20193         * lib/pthread.in.h (__need_system_stdlib_h):
20194         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
20195         Define when including <stdlib.h>, to avoid problems at least for
20196         the pthread case on Solaris 2.6 and 7.  These .h files can get by
20197         with the system stdlib.h.
20199 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20201         doc: update main copyright year
20202         * doc/gnulib.texi: Update copyright date.
20204         doc: improve ISO 8601 discussion
20205         * doc/parse-datetime.texi (Combined date and time of day items):
20206         Specify more carefully what formats are supported and what is
20207         done with excess precision.
20209 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20211         doc: avoid small caps
20212         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
20213         they're more trouble than they're worth.  Suggested by Karl Berry
20214         in <http://bugs.gnu.org/13360>.
20216         regex: conform to strict C
20217         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
20218         From Aharon Robbins.
20220         gnulib-tool: fix incompatibility with autopoint 0.18.2
20221         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
20222         Problem reported by Tom G. Christensen in
20223         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
20225 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20227         fprintftime: bring back and reword fwrite comment
20228         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
20230         stdio: remove now-unnecessary stdio.c
20231         Since stdio.in.h no longer uses inline functions, we no longer
20232         need to compile the extern versions.
20233         * lib/stdio.c: Remove.
20234         * modules/stdio (Files): Remove lib/stdio.c.
20235         (lib_SOURCES): Remove.
20237         unicodeio: depend on stdio, not ignore-value
20238         * lib/unicodeio.c: Do not include ignore-value.h.
20239         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
20240         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
20242         fprintftime: depend on stdio, not ignore-value
20243         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
20244         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
20245         since the stdio module arranges to silence that warning now.
20246         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
20248 2012-10-04  Simon Josefsson  <simon@josefsson.org>
20250         stdint-tests: Fix expanded-before-required-warning.
20251         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
20253 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20255         fwrite: silence __wur only for older glibc versions
20256         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
20257         This will help us remove this workaround some time in the far future.
20259 2013-01-03  Eric Blake  <eblake@redhat.com>
20261         fwrite: silence __wur without using inline
20262         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
20263         just gcc, and in a way that avoids inline issues.
20264         * modules/stdio (Depends-on): Drop extern-inline.
20266 2013-01-03  Jim Meyering  <jim@meyering.net>
20268         update-copyright: avoid copyright notice date corruption
20269         Given a sequence of copyright year numbers in which the final
20270         one was a two-digit number that happened to be a substring of
20271         a preceding four-digit year number, we would mistakenly update
20272         the substring (from two- to four-digit) rather than the two-digit
20273         number at the end, which, combined with the addition of the current
20274         4-digit year number would yield two 5-digit year numbers, e.g.,
20275         here, it would convert the first "99" to "1999, 2013" rather than
20276         the final one:
20277           1991, 99
20278           11999, 20131, 1999
20279         * build-aux/update-copyright: Tighten a regexp.
20280         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
20281         Reported by Joseph Myers in
20282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
20284 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20286         regex: omit needless signed-pointer casts
20287         * lib/regcomp.c (build_charclass, build_charclass_op):
20288         Use char *, not unsigned char *, for class name and extra.
20289         The char values are always nonnegative so there's no need to
20290         insist on unsigned char * here, and using char * removes the need
20291         for casts.  Reported by Aharon Robbins in
20292         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20294         regex: support Gawk, which never uses alloca
20295         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
20296         Do not include in this case.  Gawk doesn't supply a substitute
20297         alloca.h and doesn't need one.
20299         regex: port __libc_lock_define usage to C89
20300         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
20301         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
20302         does not conform to C89, as it has an empty macro argument.
20303         Reported by Aharon Robbins in
20304         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20306 2013-01-01  Eric Blake  <eblake@redhat.com>
20308         maint: update all copyright year number ranges
20309         Run "make update-copyright".
20311         version-etc: bump copyright year reported in --version
20312         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
20314 2012-12-31  Eric Blake  <eblake@redhat.com>
20316         sigprocmask-tests: skip test if pid is unexpectedly large
20317         * tests/test-sigprocmask.c (main): Add range check.
20319         git-version-gen: avoid test -z portability glitch
20320         * build-aux/git-version-gen: Prefer portable test spelling, since
20321         git-version-gen is run on more than just developer machines.
20323 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
20325         git-version-gen: add --fallback option to use if git is not present
20326         * build-aux/git-version-gen: Add support for the new option --fallback,
20327         which comes into play when there is no $tarball_version_file and
20328         git is not working.
20329         (scriptversion): Update.
20331         maint.mk: handle missing git with more grace
20332         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20333         Quietly proceed if git is not present.
20335 2012-12-31  Eric Blake  <eblake@redhat.com>
20337         dup2: work around cygwin bug
20338         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20339         * lib/dup2.c (rpl_dup2): Work around it.
20340         * doc/posix-functions/dup2.texi (dup2): Document it.
20342 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20344         regex: remove unnecessary dependency on localcharset.h
20345         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20346         hasn't been needed for years.
20347         * modules/regex (Depends-on): Remove localcharset.
20349         regex: revert single-byte change
20350         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20351         to this function.  This was alredy fixed in a different way, at
20352         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20353         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20354         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20356         regex: simplify based on Gawk version
20357         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20358         Reported by Aharon Robbins in
20359         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20361 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20363         regex: check that pattern char is single-byte
20364         Reported by Aharon Robbins in
20365         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20366         * lib/regexec.c (check_node_accept_bytes):
20367         Return 0 if the pattern string has a multibyte character here.
20369         regex: implement rational ranges
20370         Reported by Aharon Robbins in
20371         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20372         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20373         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20374         Implement rational ranges.
20376         regex: avoid redefining __wctype
20377         Reported by Aharon Robbins in
20378         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20379         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20380         #undef before defining.
20382         regex: port to hosts where malloc (0) == NULL
20383         Reported by Aharon Robbins in
20384         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20385         * lib/regex_internal.c (re_node_set_alloc):
20386         Don't assume that malloc (0) yields nonnull.
20387         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20388         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20389         * modules/regex (Files): Add m4/eealloc.m4.
20391         regex: port to C89
20392         Reported by Aharon Robbins in
20393         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20394         * lib/regcomp.c (init_word_char): Declaration before statement.
20396         regex: merge glibc changes
20397         Also, copy the license wording from glibc.  This simplifies
20398         merging changes.  gnulib-tool will change the wording to GPL as
20399         appropriate, when importing it to other packages.  The only
20400         glibc change made since the last merge, which needs merging, is:
20401         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20402         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20404         * users.txt: Add Emacs.
20406         doc: omit mention of version when not needed
20407         * doc/gnulib-intro.texi (Portability and Application Code):
20408         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20409         Don't mention particular dates or versions when not necessary, so
20410         that the documentation won't go out of date so quickly.
20412         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20414 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20416         bootstrap: pass --force to autoreconf.
20417         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20418         Add "--force" so that Automake's ylwrap and other such tools
20419         be updated at each bootstrap invocation.
20420         Use it.
20422 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20424         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20425         The earlier patch forgot to update one of the #if conditions, causing
20426         a problem on Debian testing i386 reported by Mats Erik Andersson
20427         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20428         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20429         (__argp_fmtstream_puts, argp_fmtstream_puts)
20430         (__argp_fmtstream_write, argp_fmtstream_write)
20431         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20433         * doc/gnulib-readme.texi: Minor fixups.
20434         (Portability guidelines): Modernize URLs.  Remove some repetition.
20435         (Indent with spaces not TABs): Reword to avoid too-long lines.
20436         Remove some '@ifset standalone' stuff that isn't used.
20438         * doc/gnulib-readme.texi (Portability guidelines):
20439         ctype.h, not ctime.h.
20441         Correct name of POSIX.1-2001.
20442         * doc/posix-functions/fgetc.texi (fgetc):
20443         * doc/posix-functions/fgets.texi (fgets):
20444         * doc/posix-functions/fread.texi (fread):
20445         * doc/posix-functions/fscanf.texi (fscanf):
20446         * doc/posix-functions/getc.texi (getc):
20447         * doc/posix-functions/getchar.texi (getchar):
20448         * doc/posix-functions/scanf.texi (scanf):
20449         POSIX.1-2001, not POSIX-2001.
20451         doc: move README into manual
20452         * README: Move contents to new file doc/gnulib-readme.texi.
20453         Replace with a one-line summary.
20454         * doc/gnulib.texi (Brief Overview): New section,
20455         with old intro preface.  Include gnulib-readme.texi for contents.
20456         (Philosophy): Rename from "Introduction", since this
20457         section no longer introduces the rest.  Write a new preface.
20458         * doc/gnulib-readme.texi: New file, with the old contents of
20459         README texinfo-ized.  This way, the README info appears
20460         in the online and printed manual.
20462 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20464         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20465         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20466         c_vasprintf() prototype.
20468 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20470         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20471         * lib/c-vasprintf.h: Remove stray semicolon.
20473 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20475         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20476         It is obsolete and is planned to be removed from Automake 1.14; see
20477         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20478         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20479         (installdirs-data, installdirs-data-yes):
20480         Use $(MKDIR_P), not $(mkdir_p).
20481         * m4/intl.m4 (AM_INTL_SUBDIR):
20482         * m4/po.m4 (AM_PO_SUBDIRS):
20483         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20485 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20487         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20488         On this platform, we are not optimizing but we are using
20489         the substitute for extern inlines, so compile as if
20490         C99-style extern inline, or a substitute, is available.
20491         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20492         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20493         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20494         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20495         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20496         Declare as ARGP_FS_EI, not as extern.
20497         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20498         (__option_is_short, _option_is_end, __option_is_end)
20499         [!_LIBC && __USE_EXTERN_INLINES]:
20500         Declare as ARGP_EI, not as extern.
20502 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20504         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20505         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20506         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20507         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20508         ...), as the latter is fatal with older Autoconfs.
20509         Problem reported and fix suggested by Eric Blake in thread starting at
20510         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20512 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20514         AC_PROG_MKDIR_P: don't workaround if not buggy
20515         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20516         Define only for Autoconf versions before 2.62.
20517         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20518         undocumented m4_PACKAGE_VERSION, for consistency with the
20519         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20520         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20521         was introduced in 2.62.
20523 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20525         New 'c-*printf' modules for formatted output in C locale.
20527         New module 'c-vasnprintf'.
20528         * modules/c-vasnprintf: New file.
20529         * lib/c-vasnprintf.c: New file.
20530         * lib/c-vasnprintf.h: New file.
20532         New module 'c-snprintf'.
20533         * modules/c-snprintf: New file.
20534         * modules/c-snprintf-tests: New file.
20535         * lib/c-snprintf.c: New file.
20536         * lib/c-snprintf.h: New file.
20537         * tests/test-c-snprintf.c: New file.
20538         * tests/test-c-snprintf.sh: New file.
20540         New module 'c-vsnprintf'.
20541         * modules/c-vsnprintf: New file.
20542         * modules/c-vsnprintf-tests: New file.
20543         * lib/c-vsnprintf.c: New file.
20544         * lib/c-vsnprintf.h: New file.
20545         * tests/test-c-vsnprintf.c: New file.
20546         * tests/test-c-vsnprintf.sh: New file.
20548         New module 'c-vasprintf'.
20549         * modules/c-vasprintf: New file.
20550         * modules/c-vasprintf-tests: New file.
20551         * lib/c-asprintf.c: New file.
20552         * lib/c-vasprintf.c: New file.
20553         * lib/c-vasprintf.h: New file.
20554         * tests/test-c-vasprintf.c  +: New file.
20555         * tests/test-c-vasprintf.sh: New file.
20557         New module 'c-xvasprintf'.
20558         * modules/c-xvasprintf: New file.
20559         * modules/c-xvasprintf-tests: New file.
20560         * lib/c-xasprintf.c: New file.
20561         * lib/c-xvasprintf.c: New file.
20562         * lib/c-xvasprintf.h: New file.
20563         * tests/test-c-xvasprintf.c: New file.
20564         * tests/test-c-xvasprintf.sh: New file.
20566 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20568         argp: better 'inline'
20569         Use extern-inline module to declare extern inline functions.
20570         This avoids some bogus warning diagnostics.  Problem discovered
20571         when modifying GNU tar to use the manywarnings module.
20572         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20573         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20574         Define based on extern-inline.
20575         * modules/argp (Depends-on): Add extern-inline.
20577 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20579         filemode, sys_stat: Handle MPX files a la AIX.
20580         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20581         * lib/sys_stat.in.h (S_ISMPX): New macro.
20582         * tests/test-sys_stat.c: Add tests for MPX files.
20584 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20586         x-to-1: honor $PERL
20587         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20588         a chance to use his preferred version of Perl.  This is typically
20589         required by Darwin users whose default /usr/bin/perl does not have all
20590         the libraries required by help2man, and who need to use their MacPorts
20591         installation of Perl instead.
20593 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20595         gnu-web-doc-update: add all the new files, even in new directories
20596         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20597         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20598         Use it.
20599         (main): Don't use cvsutils to get the list of unknown files,
20600         just add all the existing files and directories.
20602 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20604         gnu-web-doc-update: improve --help
20605         * build-aux/gnu-web-doc-update: Move comments into --help.
20607 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20609         mountlist: recognize more "dummy" file systems
20610         * lib/mountlist.c (ME_DUMMY_0):
20611         Add these dummy FS names to the list:
20612         - "debugfs" virtual filesystem for kernel debugging
20613         - "devpts" PTY slave filesystem
20614         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20615         - "fusectl" control filesystem for FUSE
20616         - "mqueue" enumerates POSIX message queues
20617         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20618         - "sysfs" is for exporting kernel objects
20619         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20621 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20623         extern-inline: avoid incompatibility with Darwin Libc
20624         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20625         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20626         Problem reported by Akim Demaille in
20627         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20629 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20631         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20632         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20633         let it handle password prompting.
20635 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20637         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20638         * lib/canonicalize.c (canonicalize_filename_mode):
20639         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20640         fetching the current directory.  Don't overrun the beginning of
20641         rpath if there's no slashes after the MS-Windows drive letter.
20643 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20645         maint.mk: avoid extra forks
20646         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20647         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20648         So use that instead of "$(shell test -f FILE && echo FILE)".
20650 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20652         vasnprintf: fix ASCII_ONLY typo
20653         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20654         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20655         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20656         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20657         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20659 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20661         list, oset, xlist, xoset: fix extern inline issue with C99
20662         This was introduced by my recent changes for 'inline'.
20663         Problem reported for gettext by Daiki Ueno in
20664         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20665         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20666         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20667         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20668         (gl_list_previous_node, gl_list_get_at)
20669         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20670         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20671         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20672         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20673         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20674         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20675         (gl_list_iterator_free, gl_sortedlist_search)
20676         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20677         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20678         (gl_sortedlist_remove):
20679         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20680         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20681         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20682         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20683         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20684         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20685         (gl_list_add_at, gl_sortedlist_add):
20686         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20687         Wrap these extern decls inside "#if 0", because they are implemented
20688         as inline functions, and extern inline is not what's wanted here.
20689         It would simplify these .h files to remove the extern decls entirely,
20690         although a downside would be less-clear separation between
20691         specification and implementation.
20693 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20695         sys_stat: no 'static inline'
20696         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20699         extern-inline: no 'static inline'
20700         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20701         Do not require AC_C_INLINE.
20702         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20703         'static inline', for older compilers.
20705         snippet/warn-on-use: no 'static inline'
20706         * build-aux/snippet/warn-on-use.h:
20707         Remove unnecessary 'inline' in comment.
20709         rbtree-list, rbtreehash-list: no 'static inline'
20710         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20711         * lib/gl_anytree_list2.h (node_at):
20712         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20713         (gl_oset_first, add_nodes_to_buckets):
20714         Now static, not static inline.
20716         regex: no 'static inline'
20717         * lib/regex_internal.c (calc_state_hash):
20718         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20719         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20720         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20721         Now static, not static inline.
20722         (inline) [__GNUC__ < 3 && _LIBC]:
20723         Remove macro; no longer needed.
20725         xvasprintf: no 'static inline'
20726         * lib/xvasprintf.c (xstrcat):
20727         Now static, not static inline.
20728         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20729         Do not require AC_C_INLINE.
20731         parse-datetime, parse-duration: no 'static inline'
20732         * lib/parse-datetime.y (to_uchar):
20733         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20734         (scale_n_add):
20735         Now static, not static inline.
20736         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20737         * modules/parse-duration (configure.ac):
20738         Do not require AC_C_INLINE.
20740         getaddrinfo: no 'static inline'
20741         * lib/getaddrinfo.c (validate_family):
20742         Now static, not static inline.
20743         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20744         Do not require AC_C_INLINE.
20746         ftruncate, fts, lstat, openat, raise: no 'static inline'
20747         * lib/ftruncate.c (chsize_nothrow):
20748         * lib/fts.c (opendirat, diropen):
20749         * lib/lstat.c (orig_lstat):
20750         * lib/openat.c (orig_openat):
20751         * lib/raise.c (raise_nothrow):
20752         Now static, not static inline.
20753         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20754         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20755         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20756         * m4/openat.m4 (gl_PREREQ_OPENAT):
20757         * m4/raise.m4 (gl_PREREQ_RAISE):
20758         Do not require AC_C_INLINE.
20760         fflush, stat: no 'static inline'
20761         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20762         (clear_ungetc_buffer, disable_seek_optimization)
20763         (restore_seek_optimization, update_fpos_cache):
20764         * lib/stat.c (orig_stat):
20765         Now static, not static inline.
20766         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20767         (update_fpos_cache):
20768         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20769         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20770         * m4/stat.m4 (gl_PREREQ_STAT):
20771         Do not require AC_C_INLINE.
20773         error, filevercmp: no 'static inline'
20774         * lib/error.c (is_open, flush_stdout):
20775         * lib/filevercmp.c (order):
20776         Now static, not static inline.
20777         * m4/error.m4 (gl_PREREQ_ERROR):
20778         * modules/filevercmp (configure.ac):
20779         Do not require AC_C_INLINE.
20781         dup, execute, fatal-signal, etc.: no 'static inline'
20782         * lib/dup.c (dup_nothrow):
20783         * lib/execute.c (nonintr_close, nonintr_open):
20784         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20785         * lib/fopen.c (orig_fopen):
20786         * lib/freadseek.c (freadptrinc):
20787         * lib/freopen.c (orig_freopen):
20788         * lib/fstat.c (orig_fstat, fstat_nothrow):
20789         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20790         (get_rusage_as_via_iterator):
20791         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20792         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20793         * lib/isatty.c (_isatty_nothrow):
20794         * lib/open.c (orig_open):
20795         * lib/read.c (read_nothrow):
20796         * lib/sigprocmask.c (signal_nothrow):
20797         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20798         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20799         * lib/wait-process.c (unregister_slave_subprocess):
20800         * lib/write.c (write_nothrow):
20801         Now static, not static inline.
20802         * lib/spawn-pipe.c (nonintr_open): Define only if
20803         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20804         * m4/dup.m4 (gl_PREREQ_DUP):
20805         * m4/execute.m4 (gl_EXECUTE):
20806         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20807         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20808         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20809         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20810         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20811         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20812         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20813         * m4/open.m4 (gl_PREREQ_OPEN):
20814         * m4/read.m4 (gl_PREREQ_READ):
20815         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20816         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20818         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20819         * m4/write.m4 (gl_PREREQ_WRITE):
20820         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20821         Do not require AC_C_INLINE.
20823         c-strtod, memcoll, readutmp: no 'static inline'
20824         * lib/c-strtod.c (c_locale):
20825         * lib/memcoll.c (strcoll_loop):
20826         * lib/readutmp.c (desirable_utmp_entry):
20827         Now static, not static inline.
20828         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20829         * m4/memcoll.m4 (gl_MEMCOLL):
20830         * m4/readutmp.m4 (gl_READUTMP):
20831         Do not require AC_C_INLINE.
20833         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20834         * lib/arctwo.c (to_uchar):
20835         * lib/md4.c (set_uint32):
20836         * lib/md5.c (set_uint32):
20837         * lib/sha1.c (set_uint32):
20838         * lib/sha256.c (set_uint32):
20839         * lib/sha512.c (set_uint64):
20840         Now static, not static inline.  This is a bit simpler, and doesn't
20841         affect performance with GCC and default optimization.
20842         * m4/arctwo.m4 (gl_ARCTWO):
20843         * m4/md4.m4 (gl_MD4):
20844         * m4/md5.m4 (gl_MD5):
20845         * m4/sha1.m4 (gl_SHA1):
20846         * m4/sha256.m4 (gl_SHA256):
20847         * m4/sha512.m4 (gl_SHA512):
20848         Do not require AC_C_INLINE.
20850         cond, lock, thread: better 'inline'
20851         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20852         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20853         New macros.  Use them instead of static inline, for header functions.
20854         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20855         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20856         * lib/glthread/lock.c (gl_waitqueue_init)
20857         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20858         * lib/glthread/thread.c (get_current_thread_handle):
20859         Change 'static inline' to 'inline'.
20860         * lib/glthread/cond.h, lib/glthread/thread.h:
20861         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20862         * m4/cond.m4 (gl_COND):
20863         * m4/lock.m4 (gl_PREREQ_LOCK):
20864         * m4/thread.m4 (gl_THREAD):
20865         Do not require AC_C_INLINE.
20866         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20868         chdir-long, cycle-check, savewd: better 'inline'
20869         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20870         (find_non_slash):
20871         * lib/cycle-check.c (is_zero_or_power_of_two):
20872         * lib/savewd.c (savewd_delegating):
20873         Change 'static inline' to 'inline'.
20874         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20875         Replace all remaining uses of 'static inline' with it.
20876         * lib/savewd.h:
20877         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20878         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20879         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20880         * m4/savewd.m4 (gl_SAVEWD):
20881         Do not require AC_C_INLINE.
20882         * modules/savewd (Depends-on): Add extern-inline.
20884         base32, base64: no need for 'inline'
20885         * lib/base32.c (to_uchar, get_8, decode_8):
20886         * lib/base64.c (to_uchar, get_4, decode_4):
20887         Change 'static inline' to 'inline'.
20888         * m4/base32.m4 (gl_PREREQ_BASE32):
20889         * m4/base64.m4 (gl_PREREQ_BASE64):
20890         Do not require AC_C_INLINE.
20892         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20893         * lib/gl_array_oset.c (gl_array_nx_add_at):
20894         (gl_array_remove_at):
20895         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20896         (add_to_bucket, remove_from_bucket):
20897         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20898         Change 'static inline' to 'static', as it's simpler to omit
20899         'inline' unless there's a significant performance advantage.
20901         list, oset, xlist, xoset, xsublist: simplify via extern inline
20902         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20903         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20904         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20905         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20906         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20907         New macro.  Replace all uses of 'static inline' with it.
20908         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20909         instead of as macros FOO that are defined to static inline
20910         functions FOO_inline.
20911         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20912         * lib/gl_xsublist.c:
20913         Reimplement from scratch, by defining the corresponding *_INLINE
20914         macro and including the corresponding .h file.  This is simpler.
20915         * modules/list, modules/oset, modules/xlist, modules/xoset:
20916         (Files): Remove m4/gl_list.m4.
20917         (configure.ac): Remove gl_LIST.
20918         * m4/gl_list.m4: Remove.
20919         * modules/list, modules/oset, modules/xlist, modules/xoset:
20920         * modules/xsublist:
20921         (Depends-on): Depend on extern-inline, not inline.
20923         xalloc: better 'inline'
20924         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20925         New macro.  Replace all uses of 'static inline' with it.
20926         (static_inline): Remove.
20927         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20928         Let 'extern inline' do the work automatically, instead of doing
20929         it by hand.
20930         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20931         Remove.  All uses removed.
20932         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20934         gethrxtime: better 'inline'
20935         * lib/xtime.c: New file.
20936         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20937         * lib/xtime.h (XTIME_INCLUDE):
20938         New macros.  Replace all uses of 'static inline' with them.
20939         * lib/gethrxtime.c (gethrxtime): Define only if
20940         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20941         this source file is now always compiled, because of the extern inline.
20942         * lib/gethrxtime.h, lib/xtime.h:
20943         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20944         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20945         if gethrtime works, as they're not needed in that case.
20946         (gl_XTIME): Do not require AC_C_INLINE.
20947         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20948         compiled now.  Move the check into gl_GETHRXTIME.
20949         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20950         (Depends-on): Add extern-inline.
20951         (configure.ac): gethrxtime is always compiled now.
20952         (lib_SOURCES): Add gethrxtime.c.
20954         wctype-h: better 'inline'
20955         * lib/wctype-h.c: New file.
20956         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20957         New macro.  Replace all uses of 'static inline' with it.
20958         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20959         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20960         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20961         (Depends-on): Add extern-inline.
20963         unistd: better 'inline'
20964         * lib/unistd.c: New file.
20965         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20966         New macro.  Replace all uses of 'static inline' with it.
20967         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20968         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20969         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20970         (Depends-on): Add extern-inline.
20972         sys_socket: better 'inline'
20973         * lib/sys_socket.c: New file.
20974         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20975         New macro.  Replace all uses of 'static inline' with it.
20976         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20977         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20978         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20979         (Depends-on): Add extern-inline.
20981         stdio: better 'inline'
20982         * lib/stdio.c: New file.
20983         * lib/stdio.in.h (_GL_STDIO_INLINE):
20984         New macro.  Replace all uses of 'static inline' with it.
20985         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20986         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20987         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20988         (Depends-on): Add extern-inline.
20990         sigaction: better 'inline'
20991         * lib/sig-handler.c: New file.
20992         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20993         New macro.  Replace all uses of 'static inline' with it.
20994         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20995         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20996         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20997         (Depends-on): Add extern-inline.
20999         selinux-h: better 'inline'
21000         * lib/se-context.c, lib/se-selinux.c: New files.
21001         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
21002         * lib/se-context.in.h (SE_CONTEXT_INLINE):
21003         New macro.  Replace all uses of 'static inline' with it.
21004         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21005         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
21006         New macro.  Replace all uses of 'static inline' with it.
21007         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21008         * modules/selinux-h (Files, lib_SOURCES):
21009         Add lib/se-context.c, lib/se-selinux.c.
21010         (Depends-on): Add extern-inline.
21011         (configure.ac): Do not require AC_C_INLINE.
21013         pthread: better 'inline'
21014         * lib/pthread.c: New file.
21015         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
21016         New macro.  Replace all uses of 'static inline' with it.
21017         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21018         * m4/pthread.m4 (gl_PTHREAD_CHECK):
21019         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
21020         * modules/pthread (Files): Add lib/pthread.c.
21021         (Depends-on): Add extern-inline.
21023         math: better 'inline'
21024         * lib/math.c: New file.
21025         * lib/math.in.h (_GL_MATH_INLINE):
21026         New macro.  Replace all uses of 'static inline' with it.
21027         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21028         * m4/math_h.m4 (gl_MATH_H):
21029         Do not require AC_C_INLINE.
21030         * modules/math (Files, lib_SOURCES):
21031         Add lib/math.c.
21032         (Depends-on): Add extern-inline.
21034         count-one-bits: better 'inline'
21035         * lib/count-one-bits.c: New file.
21036         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
21037         New macro.  Replace all uses of 'static inline' with it.
21038         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21039         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
21040         Do not require AC_C_INLINE.
21041         * modules/count-one-bits (Files, lib_SOURCES):
21042         Add lib/count-one-bits.c.
21043         (Depends-on): Add extern-inline.
21045         count-leading-zeros: better 'inline'
21046         * lib/count-leading-zeros.c: New file.
21047         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
21048         New macro.  Replace all uses of 'static inline' with it.
21049         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21050         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
21051         Do not require AC_C_INLINE.
21052         * modules/count-leading-zeros (Files, lib_SOURCES):
21053         Add lib/count-leading-zeros.c.
21054         (Depends-on): Add extern-inline.
21056         bitrotate: better 'inline'
21057         * lib/bitrotate.c: New file.
21058         * lib/bitrotate.h (BITROTATE_INLINE):
21059         New macros.
21060         Replace all uses of 'static inline' with them.
21061         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21062         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
21063         (Depends-on): Add extern-inline.
21064         (configure.ac): Do not require AC_C_INLINE.
21066 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
21068         maint.mk: avoid gratuitous failure
21069         Reported by Stefano Lattarini in
21070         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
21071         * top/maint.mk (public-submodule-commit): Quote more safely.
21073 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
21075         canonicalize, canonicalize-lgpl: support MS-Windows file names
21076         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
21077         for test cases, which it'd be nice to add at some point.
21078         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
21079         * lib/canonicalize.c (canonicalize_filename_mode):
21080         * lib/canonicalize-lgpl.c (__realpath):
21081         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
21082         slash is at the beginning of the file name.  Use ISSLASH, instead
21083         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
21084         the first character with '/'.  Test for
21085         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
21086         with a drive letter.
21087         * lib/canonicalize.c (SLASHES): New macro.
21088         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
21090 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
21092         fts: introduce FTS_VERBATIM
21093         * lib/fts_.h (FTS_VERBATIM): New bit flag.
21094         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
21095         * lib/fts.c (fts_open): Honor it.
21097 2012-11-09  Pádraig Brady  <P@draigBrady.com>
21099         getlogin-tests: allow errno == ENXIO
21100         * tests/test-getlogin.c (main): Skip tests if getlogin fails
21101         with errno == ENXIO (No controlling tty).
21102         getlogin_r-tests: Likewise. Also allow errno == ENOENT
21103         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
21104         with errno == ENOENT.  This was reported to happen in various
21105         situations on GNU/Linux.
21107 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21109         getlogin-tests: allow errno == ENOENT
21110         * tests/test-getlogin.c (main): Skip tests if getlogin fails
21111         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
21112         when running a test in an Emacs shell buffer.
21114 2012-11-08  Jim Meyering  <jim@meyering.net>
21116         tests/nap.h: avoid warning about unused variable
21117         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
21119         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
21120         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
21121         white space before each of the special-cased file names, to avoid
21122         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
21123         in http://bugs.gnu.org/12830.
21125 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21127         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
21128         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
21129         fails with errno == EBADF when fd is opened with O_PATH.
21130         Reported by Jim Meyering in
21131         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
21132         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21133         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
21135 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21137         test-utimens: speed up by taking shorter naps
21138         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
21139         New functions.
21140         (nap): Use them, to do a better job of guessing the delay.
21141         On Fedora 17 with ext4 atop md atop hard disks, this made
21142         test-utimens run 10x faster, because the test napped for
21143         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
21144         <http://bugs.gnu.org/12820#11>.
21146 2012-11-07  Jim Meyering  <jim@meyering.net>
21148         mountlist.c: fix a compilation failure
21149         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
21150         I introduced while transforming commit v0.0-7683-g613bcb6
21152 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21154         errno: port to LynxOS 178 2.2.2
21155         Problem reported by Joel Brobecker in
21156         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
21157         * doc/posix-headers/errno.texi (errno.h): Document this.
21158         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
21159         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
21160         Supply a string for EILSEQ.
21161         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
21163 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21165         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
21166         Linux kernel 2.6.39 introduced O_PATH (see
21167         <http://lwn.net/Articles/433854/>) and this is a better fallback
21168         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
21169         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21170         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
21171         * lib/fcntl.in.h (O_ACCMODE):
21172         * tests/test-fcntl-h.c (main):
21173         Do not reject O_ACCMODE merely because it has more than the
21174         minimal number of bits, as POSIX allows extensions here.
21176 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
21178         mountlist: do not classify a bind-mounted dir entry as "dummy"
21179         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
21180         the "none"-testing clause.
21181         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
21182         exception for bind-mounted directories.
21184 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
21186         quote: provide a means to escape strings with nul characters
21187         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
21188         (quote, quote_n): Rename formal arguments for consistency with
21189         quotearg.
21191 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21193         test-raise: don't assume 199 is an invalid signal
21194         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
21196         sh-quote-tests: port to Solaris 9
21197         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
21198         Problem reported by Dagobert Michelsen in
21199         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
21201 2012-10-28  Jim Meyering  <jim@meyering.net>
21203         maint.mk: rename a new configurable variable
21204         * top/maint.mk (_gl_translatable_string_re): Rename from
21205         translation-markers: _gl_ prefix to insulate from user Makefile code,
21206         and the _re suffix to inform that it's a regular expression.
21208 2012-10-26  Eric Blake  <eblake@redhat.com>
21210         maint.mk: let packages tweak sc_po_check pattern
21211         * top/maint.mk (sc_po_check): Add translation-markers, to allow
21212         finding files with other translation markers.
21214 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21216         euidaccess: speed up 'configure' on GNU hosts
21217         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
21218         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
21219         it's needed only in this case.  Use AC_CHECK_DECLS, not
21220         AC_CHECK_DECLS_ONCE.
21221         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
21222         or AC_REQUIRE for AC_FUNC_GETGROUPS.
21224         * lib/regexec.c (re_search_internal): Fix grammar in comment.
21226 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21228         fchmodat, fchownat, fstatat: port to non-inlining compilers
21229         Problem reported for FreeBSD 9 by Jim Meyering in
21230         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
21231         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
21232         New files, which define FCHMODAT_INLINE etc.
21233         * lib/fchmodat.c (FCHMODAT_INLINE):
21234         * lib/fchownat.c (FCHOWNAT_INLINE):
21235         * lib/fstatat.c (FSTATAT_INLINE):
21236         Remove, as chmodat.c etc. now do this.
21237         * modules/fchmodat (Files): Add lib/chmodat.c.
21238         * modules/fchownat (Files): Add lib/chownat.c.
21239         * modules/fstatat (Files): Add lib/statat.c.
21241 2012-10-15  Jim Meyering  <jim@meyering.net>
21243         fchmodat.c, fchownat.c: compile-impeding typos
21244         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
21245         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
21246         Introduced in commit v0.0-7636-gd202279.
21248 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21250         fcntl-h: support GNU flags like O_IGNORE_CTTY
21251         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
21252         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
21253         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
21254         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
21255         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
21256         Define to 0 if not already defined.
21257         * tests/test-fcntl-h.c: Test these new flags.
21259 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21261         faccessat, etc.: support AT_FDCWD-only use
21262         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
21263         this function only if its first argument is AT_FDCWD.
21264         Emacs wants faccessat for AT_EACCESS but not for any first-arg
21265         values other than AT_FDCWD, so it doesn't want all the openat
21266         machinery with fchdir etc.
21267         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
21268         * modules/fstatat, modules/mkdirat, modules/openat (Files):
21269         * modules/unlinkat (Files):
21270         Remove lib/openat-priv.h, as at-internal supplies this file.
21271         Removing this file here allows us to support programs like Emacs
21272         that avoid at-internal.
21274         faccessat: speed up 'configure' on mainstream hosts
21275         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
21276         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
21277         since it's only on unusual platforms that we need to check for
21278         'access', and it's better not to slow 'configure' down on all
21279         platforms.
21281         faccessat: port to Solaris 10
21282         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
21283         Needed on Solaris 10, which doesn't have AT_EACCESS,
21284         so we need the Gnulib fcntl.h, which defines it.
21286 2012-10-14  Pádraig Brady  <P@draigBrady.com>
21287         canonicalize: fix C89 compilation
21288         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
21289         declarations so C89 is supported.  Also remove the comment
21290         referencing memorty allocation as the suggested feature could
21291         not be implemented as suggested.
21292         Reported by Michael Goffioul.
21294 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21296         group-member: omit unnecessary dependencies
21297         This is for Emacs, which has its own allocator and where we
21298         don't want to use xalloc.
21299         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
21300         since we no longer use xmalloc.  Do not include stdbool.h, since
21301         the changes below happen to remove the only use of bool.
21302         (GROUPBUF_SIZE): New constant.
21303         (struct group_info): Remove n_groups member.  Add groupbuf member.
21304         This lets us get the groups without using malloc, usually.
21305         (free_group_info, get_group_info): Adjust to this.
21306         (get_group_info): Return the number of groups found, or -1 on error.
21307         Use plain malloc not xmalloc, and treat its failure as if there
21308         are no groups, as the user already loses in case of error.
21309         (group_member): Simplify, based on changes to get_group_info.
21310         * modules/group-member (Depends-on): Remove dependencies on
21311         xalloc and stdbool.  Add dependency on xalloc-oversized.
21313 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
21315         gethrxtime: port to C++
21316         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
21318 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21320         ptsname: fix macro-name typo
21321         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
21323 2012-10-03  Simon Josefsson  <simon@josefsson.org>
21325         inttostr: Relax license.
21326         * modules/inttostr (License): Change from LGPL to LGPLv2+.
21328 2012-10-03  Eric Blake  <eblake@redhat.com>
21330         ptsname_r: support ptys returned by FreeBSD posix_openpt
21331         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21332         lives in /dev/pts/.
21334 2012-10-02  Eric Blake  <eblake@redhat.com>
21336         pselect: reject invalid file descriptors
21337         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21338         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21339         * modules/pselect (Depends-on): Add dup2.
21340         * doc/posix-functions/pselect.texi (pselect): Document this.
21342         select: reject invalid file descriptors
21343         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21344         * lib/select.c (rpl_select) [!win32]: Work around it.
21345         * modules/select (Depends-on): Add dup2.
21346         * doc/posix-functions/select.texi (select): Document this.
21348         select: enhance test
21349         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21350         New functions.
21351         (test_function): Enhance test.
21352         (do_select_bad_fd): Avoid any stale errno values.
21354         ptsname: reject invalid file descriptors
21355         http://www.austingroupbugs.net/view.php?id=503
21356         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21358         * modules/stdlib (Makefile.am): Replace witness.
21359         * lib/stdlib.in.h (ptsname): Allow for replacement.
21360         * modules/ptsname (configure.ac): Trigger replacement.
21361         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21363 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21365         hash-pjw-bare: new module
21366         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21367         * lib/hash-pjw-bare.h: Likewise.
21368         * modules/hash-pjw-bare: New file.
21369         * MODULES.html.sh (Misc): Add it.
21371 2012-10-02  Eric Blake  <eblake@redhat.com>
21373         manywarnings: cater to more gcc infelicities
21374         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21375         -Wuninitialized without -O.
21377 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21379         select, poll tests: Make setsockopt invocation effective.
21380         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21381         the bind() call.
21382         * tests/test-select.h (open_server_socket): Likewise.
21384 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21386         sockets, sys_stat: restore AC_C_INLINE
21387         This undoes the 2012-09-22 patch.
21388         * m4/sockets.m4 (gl_SOCKETS):
21389         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21390         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21391         and does not support plain 'inline'.  Reported by Bruno Haible in
21392         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21394 2012-09-30  Bruno Haible  <bruno@clisp.org>
21396         localeconv tests: Avoid test failure on OpenIndiana.
21397         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21398         skip the 'grouping' and 'mon_grouping' tests.
21399         Reported by Jim Meyering.
21401 2012-09-30  Bruno Haible  <bruno@clisp.org>
21403         havelib: Follow libtool developments.
21404         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21405         Suggested by Simon Josefsson.
21407 2012-09-29  Jim Meyering  <meyering@redhat.com>
21409         fstatat.c: fix a compile-impeding typo
21410         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21411         Introduced in commit v0.0-7636-gd202279.
21412         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21414 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21416         extern-inline: provide a -Wundef safe config.h
21417         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21418         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21419         to produce a -Wundef warning free config.h.
21421 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21423         hash-pjw: relax license to LGPLv2+
21424         * modules/hash-pjw (License): Relax, with consent of author.
21426 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21428         maint.mk: fix strict vs. lazy variable issues with RELEASE
21429         * top/maint.mk (_equal): New function.
21430         (member_check): Strip the result to avoid spurious spaces.
21431         (url_dir_list): Do not use ifeq, which is strict, as it will
21432         require RELEASE_TYPE to be defined.
21433         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21434         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21435         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21436         (announcement_Cc_beta,announcement_mail_headers_beta)
21437         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21438         (release): Do not depend on $(release-type), as it forces its
21439         evaluation.  Bounce to it.
21441 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21443         maint.mk: formatting changes
21444         * top/maint.mk: Indent bodies of if's.
21446 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21448         maint.mk: factor the validation of RELEASE_TYPE
21449         With help from Jim Meyering.
21450         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21451         * top/maint.mk (_empty, _sp): Move their definition earlier.
21452         (member-check, release-type): New.
21453         Use the latter instead of $(RELEASE_TYPE).
21454         Remove now useless local checks.
21456 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21458         maint.mk: provide "make upload" to ease uploading
21459         See
21460         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21461         Do not depend simply on the current $(VERSION), as there may have been
21462         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21463         as "make release-commit" already does.
21465         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21466         "make TYPE".
21468         * top/maint.mk (upload_command, upload, release): New.
21469         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21470         (VERSION): first word of $(RELEASE) is always right.
21471         (emit_upload_commands): Adjust.
21472         * top/README-release: Update.
21474 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21476         maint.mk: silent rules
21477         With help from Stefano Lattarini.
21478         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21479         (announcement): Use $(AM_V_at).
21481 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21483         localename: port gl_locale_name_thread_unsafe to FreeBSD
21484         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21485         and use the simpler FreeBSD implementation on Mac OS X as well.
21486         Original idea suggested by Ed Maste in
21487         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21489 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21491         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21492         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21493         * lib/mbuiter.c, lib/xsize.c: New files.
21494         * lib/binary-io.h (BINARY_IO_INLINE):
21495         * lib/eealloc.h (EEALLOC_INLINE):
21496         * lib/mbfile.h (MBFILE_INLINE):
21497         * lib/mbiter.h (MBITER_INLINE):
21498         * lib/mbuiter.h (MBUITER_INLINE):
21499         * lib/xsize.h (XSIZE_INLINE):
21500         New macros.
21501         Replace all uses of 'static inline' with them.
21502         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21503         * m4/eealloc.m4 (gl_EEALLOC):
21504         * m4/mbfile.m4 (gl_MBFILE):
21505         * m4/mbiter.m4 (gl_MBITER):
21506         * m4/xsize.m4 (gl_XSIZE):
21507         Do not require AC_C_INLINE.
21508         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21509         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21510         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21511         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21512         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21513         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21514         * modules/binary-io, modules/eealloc, modules/mbfile:
21515         * modules/mbiter, modules/mbuiter:
21516         (Depends-on): Add extern-inline.
21518         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21519         * lib/pipe-filter-aux.c: New file.
21520         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21521         Replace all uses of 'static inline' with it.
21522         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21523         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21524         (filter_retcode): No real need for inline here.
21525         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21526         (Files): Add lib/pipe-filter-aux.c.
21527         (Depends-on): Add extern-inline.
21528         (configure.ac): Do not require AC_C_INLINE.
21529         (lib_SOURCES): Add pipe-filter-aux.c.
21531         fdutimensat: omit unnecessary AC_C_INLINE
21532         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21534         fchmodat, fchownat, fstatat: use extern-inline
21535         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21536         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21537         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21538         New macros.
21539         * lib/openat.h:
21540         Replace all uses of 'static inline' with them.
21541         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21542         * modules/fchmodat, modules/fchownat, modules/fstatat:
21543         * modules/openat-h:
21544         (Depends-on):
21545         Add extern-inline.
21546         (configure.ac): Remove AC_C_INLINE.
21548         acl, mbchar, priv-set: use extern-inline
21549         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21550         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21551         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21552         New macros.
21553         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21554         Replace all uses of 'static inline' with it.
21555         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21556         * m4/acl.m4 (gl_FUNC_ACL):
21557         * m4/mbchar.m4 (gl_MBCHAR):
21558         * m4/priv-set.m4 (gl_PRIV_SET):
21559         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21560         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21561         Add extern-inline.
21563         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21564         * m4/sockets.m4 (gl_SOCKETS):
21565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21566         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21567         environments where it's already guaranteed to work, so we needn't
21568         check for it at 'configure'-time.
21570         tls-tests: omit unnecessary 'inline'
21571         * tests/test-tls.c (perhaps_yield): No longer inline.
21572         Simplicity and portability trump efficiency in test cases.
21574         utimens-tests: avoid unnecessary 'inline'
21575         * modules/fdutimensat-tests (configure.ac):
21576         * modules/futimens-tests (configure.ac):
21577         * modules/utimens-tests (configure.ac):
21578         * modules/utimensat-tests (configure.ac):
21579         Remove AC_C_INLINE.
21580         * tests/test-utimens-common.h (ctime_compare):
21581         No longer inline.  Simplicity and portability trump efficiency here.
21583         misc: don't limit commentary to inline functions
21584         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21585         * lib/xalloc-oversized.h, lib/xsize.h:
21586         Contrast macros to functions in general, not just to inline functions,
21587         when the commentary does not apply only to inline functions.
21589 2012-09-20  Jim Meyering  <meyering@redhat.com>
21591         non-recursive-gnulib-prefix-hack: new module
21592         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21593         the file that originated in Bison.
21594         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21595         largely copied from a snippet that resided in bison's configure.ac.
21596         * modules/non-recursive-gnulib-prefix-hack: New file.
21597         * MODULES.html.sh (Support for maintaining and releasing projects):
21598         Add it.
21600 2012-09-18  Jim Meyering  <meyering@redhat.com>
21602         maint.mk: generalize _gl_tight_scope for non-recursive make
21603         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21604         that *.h would describe additional .h files in the directory
21605         specified by $(_gl_TS_dir).  I.e., add this...
21606         (_gl_TS_other_headers): New variable.
21608         maint.mk: exempt trailing blanks found in "binary" files
21609         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21610         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21611         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21613 2012-09-17  Jim Meyering  <meyering@redhat.com>
21615         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21616         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21617         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21618         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21620 2012-09-17  Jim Meyering  <meyering@redhat.com>
21622         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21623         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21624         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21625         It is not in the same category as "exit (0)" or "exit (1)", and
21626         besides, I know of no symbolic name for that 77.  Reported by
21627         Richard W.M. Jones in
21628         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21630 2012-09-17  Jim Meyering  <meyering@redhat.com>
21632         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21633         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21634         all uses of #define, not just those that start in column 1.
21635         Richard W.M. Jones reported a false positive in
21636         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21638 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21640         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21641         * lib/localcharset.c (locale_charset) [DARWIN7]:
21642         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21643         as these two values are incompatible.  Problem reported by Max Horn.
21644         For more discussion, please see
21645         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21647         doc: document sticky-EOF issue
21648         * doc/posix-functions/fgetc.texi (fgetc):
21649         * doc/posix-functions/fgets.texi (fgets):
21650         * doc/posix-functions/fread.texi (fread):
21651         * doc/posix-functions/fscanf.texi (fscanf):
21652         * doc/posix-functions/getc.texi (getc):
21653         * doc/posix-functions/getchar.texi (getchar):
21654         * doc/posix-functions/scanf.texi (scanf):
21655         Mention that glibc and default Solaris do not conform to
21656         C99 and POSIX-2001 or later, with respect to how getchar
21657         etc. behave when feof reports nonzero.
21659 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21661         poll: fix poll(0, NULL, msec)
21662         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21663         but nfd is 0.  In that case poll should behave like select.
21665 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21666             Paolo Bonzini  <bonzini@gnu.org>
21668         poll: fix for systems that can't recv() on a non-socket
21669         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21670         is readable.  In this case POLLHUP will not be supported.
21671         * doc/posix-functions/poll.texi: Document this.
21673 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21675         poll/select: document portability problems not fixed by Gnulib.
21676         * doc/posix-functions/poll.texi: poll does not work well on
21677         pipes under Windows.  It has the same limitations as select on
21678         BeOS.
21679         * doc/posix-functions/select.texi: select does not work well
21680         on pipes under Windows.
21682 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21684         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21685         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21686         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21687         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21689 2012-09-06  Eric Blake  <eblake@redhat.com>
21691         net_if: give more details about the bug being fixed
21692         * doc/posix-headers/net_if.texi: Add clarification.
21694 2012-09-05  Eric Blake  <eblake@redhat.com>
21696         net_if: new module
21697         * modules/net_if: New module, borrowing ideas from netinet_in.
21698         * m4/net_if_h.m4: New file.
21699         * lib/net_if.in.h: Likewise.
21700         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21701         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21702         * tests/test-net_if.c: Make function checks conditional.
21703         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21705 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21707         readutmp: fix non-portable UT_PID use
21708         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21709         Use `UT_PID (u) > 0' as absolute condition.
21711 2012-09-04  Jim Meyering  <meyering@redhat.com>
21713         fts: reduce two or more trailing spaces to just one, usually
21714         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21715         or more slashes, trim all but the final one.  But if a name consists
21716         solely of two slashes, don't modify it.  If it consists solely of
21717         three or more slashes, strip all but one.
21719         This is part of the solution to a minor problem with rm:
21720         it would print a bogus ELOOP diagnostic when failing to remove
21721         the slash-decorated name of a symlink-to-directory:
21723             $ mkdir d && ln -s d s && env rm -r s/
21724             rm: cannot remove 's': Too many levels of symbolic links
21726         With the change below and a trivial don't-trim-trailing-slashes
21727         adjustment to remove.c, it does this:
21729             $ env rm -r s/
21730             rm: cannot remove 's/': Not a directory
21732         Improved by: Eric Blake
21734         fts: when there is no risk of overlap, use memcpy, not memmove
21735         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21737 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21739         stdbool: be more compatible with mixed C/C++ compiles
21740         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21741         Define to bool, true, false, respectively, as GCC's builtin
21742         stdbool.h does.  Problem reported by Michael Goffioul in
21743         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21745 2012-08-28  Jim Meyering  <meyering@redhat.com>
21747         revert last change: it was not needed
21748         * tests/test-vc-list-files-git.sh: There's already a test for
21749         a working git, just below.
21751 2012-08-28  Jim Meyering  <meyering@redhat.com>
21753         tests: test-vc-list-files-git.sh: skip if git is not available
21754         * tests/test-vc-list-files-git.sh: Skip this test when git is
21755         not available.
21757 2012-08-26  Bruno Haible  <bruno@clisp.org>
21759         gnulib-tool: Remove no-op option --no-changelog.
21760         * gnulib-tool (func_usage): Don't mention --no-changelog.
21761         (do_changelog): Remove variable.
21762         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21764 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21766         doc: remove fdl-1.2.texi
21767         It is no longer used or maintained, and its use of @acronym
21768         is problematic.  See the thread containing
21769         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21770         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21771         * doc/old-licenses/fdl-1.2.texi: Remove.
21773         execinfo: port to FreeBSD
21774         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21775         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21776         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21777         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21779 2012-08-23  Jim Meyering  <meyering@redhat.com>
21781         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21782         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21783         to placate gcc's -Wold-style-declaration.
21785 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21787         doc: do not use @acronym
21788         * doc/inet_ntoa.texi (inet_ntoa):
21789         * doc/parse-datetime.texi (Seconds since the Epoch)
21790         (Specifying time zone rules):
21791         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21792         Don't use @acronym.  Problem reported by John Darlington in
21793         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21795 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21797         stdnoreturn: port to newer GCCs
21798         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21799         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21800         Problem reported by Jim Meyering in
21801         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21802         Also, rename the 'test' function to a void a clash with the
21803         already-supplied 'main' function; this fixes a bug that incorrectly
21804         rejected GCC 4.7.1's <stdnoreturn.h>.
21805         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21806         Document GCC problem.
21808 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21810         pipe-filter: fix comment typo
21811         * lib/pipe-filter.h: Mention correct function.
21813 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21815         execinfo: new module
21816         This is for Emacs.  Currently, it provides a no-effect stub
21817         on all platforms where it does not already work.
21818         It already works on glibc-based systems, and on Solaris 11.
21819         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21820         New files.
21821         * doc/glibc-headers/execinfo.texi (execinfo.h):
21822         * MODULES.html.sh (Misc): Document it.
21824 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21826         extern-inline: support old GCC 'inline'
21827         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21828         if available.  This applies to GCC versions 2.7 through 4.2, or
21829         when newer GCC is using -fgnu89-inline.  The goal is to address
21830         some of the performance issues mentioned by Bruno Haible in
21831         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21833 2012-08-20  Eric Blake  <eblake@redhat.com>
21835         maint.mk: avoid redundant file name in message
21836         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21837         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21838         (sc_makefile_path_separator_check): Remove bogus $(ME).
21840 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21842         timer-time: fix link order when static linking on glibc
21843         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21844         _after_ -lrt so that it's significant.
21846 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21848         timespec: omit unnecessary AC_C_INLINE
21849         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21851         stat-time: omit unnecessary AC_C_INLINE
21852         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21853         Do not require AC_C_INLINE.
21855         ignore-value: omit unnecessary AC_C_INLINE
21856         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21858         sys_select: avoid 'static inline'
21859         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21861         mktime: avoid 'static inline'
21862         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21863         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21865 2012-08-19  Bruno Haible  <bruno@clisp.org>
21867         gnulib-tool: Improve coding style.
21868         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21869         func_emit_lib_Makefile_am.
21870         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21872 2012-08-19  Bruno Haible  <bruno@clisp.org>
21874         gnulib-tool: Fix indentation.
21875         * gnulib-tool (func_import): Fix indentation.
21877 2012-08-19  Bruno Haible  <bruno@clisp.org>
21879         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21880         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21881         on the list of removed files.
21883 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21885         test-parse-datetime: avoid glibc leap-second glitch
21886         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21887         with the 2012 rules.  Problem reported by Bruce Dubbs in
21888         <http://bugs.gnu.org/12206>.
21890 2012-08-14  Bruno Haible  <bruno@clisp.org>
21892         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21893         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21894         from argument.
21895         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21897 2012-08-14  Eric Blake  <eblake@redhat.com>
21899         ldexp: relax license
21900         * modules/ldexp (License): Trivial relax, since the module only
21901         provides a permissively licensed m4 file.
21903 2012-08-13  Bruno Haible  <bruno@clisp.org>
21905         gnulib-tool: Fix persistence of --witness-c-macro option.
21906         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21907         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21909 2012-08-11  Eric Blake  <eblake@redhat.com>
21911         count-leading-zeros: use a lookup table on non-gcc compilers
21912         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21913         alternate implementation, suggested by Jim Meyering.
21915 2012-08-10  Eric Blake  <eblake@redhat.com>
21917         count-leading-zeros: new module
21918         * modules/count-leading-zeros: New module.
21919         * m4/count-leading-zeros.m4: New file.
21920         * lib/count-leading-zeros.h: Likewise.
21921         * modules/count-leading-zeros-tests: New test.
21922         * tests/test-count-leading-zeros.c: New file.
21923         * MODULES.html.sh (Integer arithmetic functions): Document it.
21925 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21926             Jim Meyering  <meyering@redhat.com>
21928         maintainer-makefile: Fix syntax error with dash.
21929         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21930         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21932 2012-08-05  Jim Meyering  <meyering@redhat.com>
21934         extern-inline: also ignore -Wmissing-declarations
21935         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21936         required with gcc-4.8.0-to-be.
21938         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21939         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21940         for /error ?([^,]*)/.  This avoids false-positives for strings like
21941         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21943 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21945         gnumakefile: better interaction with Automake-NG
21946         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21947         Automake-NG always contain a definition of VPATH, even in non-VPATH
21948         builds (its value being simply '.' in that case).  So, in the
21949         'clean-GNUmakefile' rule, to determine whether running under a
21950         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21951         '$(VPATH)' expands to the empty string.
21953 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21955         base64: Use extern C scope in header file, for C++.
21956         * lib/base64.h: Add C++ namespace protection.
21958 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21960         stat-time, timespec, u64: support naive out-of-dir builds
21961         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21962         Use '#include "foo.h"', not '#include <foo.h>', when including
21963         one's own interface.  This works better when configuring with
21964         out-of-directory builds, since packages need not add an
21965         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21967 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21969         utimens: use extern-inline
21970         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21971         * lib/utimens.h: Add copyright notice, since this is now large enough
21972         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21973         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21974         * modules/utimens (Depends-on): Add extern-inline.
21976         u64: use extern-inline
21977         * lib/u64.c: New file.
21978         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21979         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21980         * modules/u64 (Files): Add lib/u64.c.
21981         (Depends-on): Add extern-inline.
21982         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21983         does that now.
21984         (lib_SOURCES): Add u64.c.
21986         timespec: use extern-inline
21987         * lib/timespec.c: New file.
21988         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21989         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21990         * modules/timespec (Files): Add lib/timespec.c.
21991         (Depends-on): Add extern-inline.
21992         (lib_SOURCES): Add timespec.c.
21994         stat-time: use extern-inline
21995         * lib/stat-time.c: New file.
21996         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21997         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21998         * modules/stat-time (Files): Add lib/stat-time.c.
21999         (Depends-on): Add extern-inline.
22000         (lib_SOURCES): Add stat-time.c.
22002         extern-inline: new module
22003         * modules/extern-inline, m4/extern-inline.m4: New files.
22004         This is for better support of 'extern inline' a la ISO C99,
22005         with a portable alternative on compilers that do not support
22006         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
22007         of the Emacs executable, when compiled with debugging disabled,
22008         which is a typical way that Emacs is built while developing.
22010 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
22012         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
22013         * build-aux/do-release-commit-and-tag: Move variable definitions
22014         together.
22015         ($branch): Instead of defaulting to "master", default to the current
22016         branch (as gnu-web-doc-update does).
22017         (help): Display the current values of the option arguments.
22018         * top/maint.mk (release-commit): New.
22019         * top/README-release: Simplify the corresponding step.
22021 2012-07-30  Eric Blake  <eblake@redhat.com>
22023         passfd: fix comment on recvfd
22024         * lib/passfd.c (recvfd): Fix comment.
22025         Reported by Jann Horn <jannhorn@googlemail.com>.
22027 2012-07-30  Jim Meyering  <meyering@redhat.com>
22029         maint.mk: avoid a sub-shell
22030         * top/maint.mk (release-prep): Remove unneeded sub-shell.
22032 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22034         maint.mk: use silent-rules support from Automake
22035         * top/maint.mk (news-check, vc-diff-check, announcement)
22036         (no-submodule-changes, alpha beta stable, release-prep)
22037         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
22039 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22041         maint.mk: provide a web-manual-update target
22042         * top/maint.mk: here.
22043         * top/README-release: Use it to simplify the web manual update step.
22045 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22047         README-release: shorten the circuit to post a news
22048         * top/README-release: Point directly to the news submission form.
22050 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22052         gnu-web-doc-update: fix --help
22053         * build-aux/gnu-web-doc-update: The information "top level" was written
22054         twice.
22056 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22058         maint.mk: absolute VPATH issue
22059         * top/maint.mk (release-prep): Help Git find .git/.
22060         From Jim Meyering.
22062 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22064         gitlog-to-changelog: fix previous change
22065         * build-aux/gitlog-to-changelog: Fix condition.
22066         Add missing ";".
22068 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22070         gitlog-to-changelog: don't expect .git to be in $srcdir
22071         Reported by Bruno Haible.
22072         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
22073         * build-aux/gitlog-to-changelog (&git_dir_option): New.
22074         Use it.
22076 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22078         maint.mk: absolute VPATH build fix
22079         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
22080         $(srcdir) is not a parent of $(builddir).
22082 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
22084         clean-temp: Fix memory leak.
22085         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
22086         'files' members of tmpdir.
22088 2012-07-27  Jim Meyering  <meyering@redhat.com>
22090         maint.mk: new rule: refresh-gnulib-patches
22091         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
22092         Use this rule to refresh them.
22093         * top/maint.mk (refresh-gnulib-patches): New rule.
22095 2012-07-24  Bruno Haible  <bruno@clisp.org>
22097         gnulib-tool: Fix handling of inctests variable.
22098         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
22099         Reported by Nick Bowler <nbowler@elliptictech.com>.
22101 2012-07-22  Bruno Haible  <bruno@clisp.org>
22103         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
22104         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
22105         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22106         Remove exemption for getpass.h.
22107         Suggested by Eric Blake.
22109 2012-07-20  Eric Blake  <eblake@redhat.com>
22111         verify: document conflict with -Wnested-externs
22112         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
22114         maint.mk: forbid exit(-1)
22115         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
22117 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
22119         fsusage: port back to Solaris
22120         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
22121         error (fsd not declared) on Solaris 10.  Reported privately by
22122         Andrew Borodin.
22124 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
22126         gnu-web-doc-update: fix error messages
22127         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
22129         gnu-web-doc-update: check the requirements.
22130         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
22131         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
22132         * build-aux/bootstrap (find_tool): Comment change.
22134 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
22136         maint.mk: minor simplication.
22137         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
22138         for default values.
22140 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
22142         gitlog-to-changelog: VPATH build issues
22143         If builddir is not a subdirectory of srcdir, running git from it will
22144         fail.
22145         * build-aux/gitlog-to-changelog (--srcdir): New option.
22147 2012-07-15  Bruno Haible  <bruno@clisp.org>
22149         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
22150         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
22151         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
22152         Remove exemption for fpending.h.
22153         Suggested by Eric Blake.
22155 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22157         pthread_sigmask: fix bug on FreeBSD 9
22158         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
22159         Include string.h.
22160         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
22161         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
22162         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
22163         but pthread_sigmask (1729, NULL, NULL) returns zero.
22164         See <http://bugs.gnu.org/11884>.
22165         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
22166         by inspecting whether the main call changed the old mask.
22168 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
22170         README-release: make it more legible
22171         * top/README-release: Improve typography slightly.
22173 2012-07-15  Jim Meyering  <meyering@redhat.com>
22175         maint: require that each sc_... command start with "@"
22176         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
22177         "make sc_maint" helps us avoid this nit.
22179 2012-07-15  Jim Meyering  <meyering@redhat.com>
22181         maint.mk: add leading "@" to quiet new "make syntax-check" rule
22182         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
22184 2012-07-13  Eric Blake  <eblake@redhat.com>
22186         maint.mk: new syntax check for HAVE_DECL checks
22187         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
22188         * cfg.mk
22189         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22190         Exempt some false positives.
22191         Based on a report by Karel Zak.
22193         argp: make HAVE_DECL usage consistent
22194         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
22195         macros, not whether they are defined.
22196         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
22197         convention with other declaration checks.
22198         Reported by Karel Zak, with suggestions from Paul Eggert.
22200         stat-time: relax license to LGPLv2+
22201         * modules/stat-time (License): Relax, with consent of all authors.
22203         strndup: fix m4 usage error
22204         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
22205         defined, to either 0 or 1.
22206         Reported by Karel Zak.
22208 2012-07-11  Jim Meyering  <meyering@redhat.com>
22210         maint: enable the sc_avoid_if_before_free syntax-check rule
22211         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
22212         (if_before_free_offenders_): Define.
22213         (if_before_free_basename_re_): Define.
22214         Exempt current files with useless if-before-free.
22216 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22218         gettext: do not assume '#define ... defined ...' behavior
22219         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
22220         Do not use '#define FOO ... defined BAR ...', as the C standard says
22221         it's not portable to expect that this works after macro expansion.
22222         Problem reported for gzip by Steven M. Schweda in
22223         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
22225 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22227         getloadavg: clean out old Emacs and Autoconf cruft
22228         See Glenn Morris in <http://bugs.gnu.org/11905>.
22229         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
22230         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
22231         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
22232         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
22234 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
22236         bootstrap: let warn be like tests/init.sh's warn_
22237         Reported by Jim Meyering.
22238         * build-aux/bootstrap (warn): Remove, replaced by...
22239         (warnf_, warn_): these.
22240         Adjust callers.
22241         Shorten messages that no longer fit in 80 columns.
22243 2012-07-09  Bruno Haible  <bruno@clisp.org>
22245         getopt: Simplify after Emacs changed.
22246         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
22247         (gl_GETOPT_IFELSE): Remove macro.
22249 2012-07-09  Jim Meyering  <meyering@redhat.com>
22251         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
22252         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
22254         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22255         Bugs in both of those conspired to make the
22256         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
22257         _sc_search_regexp's handling of non-empty $in_files would filter
22258         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
22259         choice of in_files value meant there would be no match in most
22260         projects, due to the presence of two or more Makefile.in files.
22261         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
22262         Fix a bug in how a non-empty $$in_files was processed:
22263         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
22264         in spite of the name, it's a regexp, not a list of file names.
22266 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22268         getloadavg, getopt: fix commentary re configure.in
22269         Autoconf is deprecating the name 'configure.in', so change it to
22270         to the new name 'configure.ac' in a couple of places.
22271         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
22272         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22273         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
22274         Emacs has renamed it to configure.ac, and it no longer refers
22275         to these macros anyway.
22277         timespec: mark functions with const attributes
22278         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
22279         Mark with _GL_ATTRIBUTE_CONST.
22281 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22283         canonicalize[-lgpl]: handle "guessing" values when cross-building
22284         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22285         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
22286         matches "*yes" instead of just "yes".  Regression introduced in commit
22287         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
22289 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22290             Bruno Haible  <bruno@clisp.org>
22292         canonicalize: make the right guess when cross-compiling to GNU
22293         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
22294         determine whether cross-compiling to glibc systems, so as to
22295         include GNU/Hurd.
22297 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22299         timespec-sub: avoid duplicate include
22300         * lib/timespec-sub.c: Do not include <config.h> twice.
22301         Reported by Juanma Barranquero.
22303 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
22305         bootstrap: use a more consistent error reporting scheme
22306         * build-aux/bootstrap (warn, die): New.
22307         Use them.
22309 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22311         sys_time: allow too-wide tv_sec
22312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
22313         timeval even if tv_sec is wider than time_t.  This allows
22314         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
22315         as without this patch gnulib replaces struct timeval
22316         and OpenBSD futimes therefore has a type mismatch.
22317         * doc/posix-headers/sys_time.texi: Mention this.
22319         pthread: check for both pthread_create and pthread_join
22320         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
22321         alter the check so that it tests for both pthread_create and
22322         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
22323         Suggested by Bruno Haible and Richard Yao in
22324         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
22326         parse-datetime: doc tuneup
22327         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
22328         spacing issues.
22330 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22332         do-release-commit-and-tag: fix the previous commit
22333         * build-aux/do-release-commit-and-tag: Actually the test was right,
22334         but the comment and the error message were misleading.
22335         Fix comment, and improve error message.
22336         Perform check first, so that NEWS is not modified uselessly.
22338         do-release-commit-and-tag: fix typo
22339         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22340         _not_ start with a stub.
22342 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22344         pthread: check for pthread_create, not pthread_join
22345         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22346         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22347         pthread_join in libc.  I hope this removes the need for all the
22348         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22349         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22351 2012-07-04  Jim Meyering  <meyering@redhat.com>
22353         parse-datetime: fix failure to diagnose invalid input
22354         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22355         rather than diagnosing the invalid input.  Now it reports this:
22356         date: invalid date '\260'
22357         * lib/parse-datetime.y (to_uchar): Define.
22358         (yylex): Don't sign-extend "other" bytes.
22359         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22360         Thanks to Bruno Haible for the patch to this file.
22361         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22362         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22364 2012-07-03  Jim Meyering  <meyering@redhat.com>
22366         bootstrap: do not require now-removed build-aux/missing
22367         Now that build-aux/missing is, er, missing, bootstrap would
22368         silently fail.
22369         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22370         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22371         no longer part of gnulib.
22372         Diagnose the failure.
22374 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22376         alloca: add support for HP NonStop TNS/E native
22377         * lib/alloca.in.h (alloca): Support the new host.
22378         From a suggestion by Joachim Schmitz in
22379         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22381 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22383         fsusage: remove code not needed on non GNU/Linux systems.
22385         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22386         Don't include headers no longer needed in this case.
22387         * lib/fsusage.c [STAT_STATVFS &&
22388         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22389         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22391 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22393         fsusage: include files needed for glibc 2.6 fallback
22394         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22395         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22396         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22397         Problem reported by Ludovic Courtès in
22398         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22400         fsusage: avoid needless check on GNU/Linux
22401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22402         on GNU/Linux systems, since it can't possibly work.
22404 2012-07-01  Bruno Haible  <bruno@clisp.org>
22406         log: Fix an autoconf >= 2.64 warning.
22407         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22408         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22410 2012-06-28  Bruno Haible  <bruno@clisp.org>
22412         log10f: Fix possible configuration problem.
22413         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22414         $LOGF_LIBM.
22415         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22417 2012-06-28  Bruno Haible  <bruno@clisp.org>
22419         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22420         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22421         not gl_cv_func_unlink_works.
22422         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22424 2012-06-27  Eric Blake  <eblake@redhat.com>
22426         config: drop scripts that automake says are not independent
22427         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22428         * build-aux/elisp-comp: Delete.
22429         * build-aux/missing: Likewise.
22430         * build-aux/ylwrap: Likewise.
22431         * modules/elisp-comp: Likewise.
22432         * MODULES.html.sh: Drop mention of elisp-comp.
22433         * NEWS: Mention this.
22435 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22437         root-uid: new module
22438         This is for portability to Tandem's NonStop Kernel.
22439         * lib/root-uid.h, modules/root-uid: New files.
22440         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22441         * lib/write-any-file.c, tests/test-sethostname2.c:
22442         Include "root-uid.h".
22443         * lib/euidaccess.c (euidaccess):
22444         * lib/pt_chown.c (main):
22445         * lib/unlinkdir.c (cannot_unlink_dir):
22446         * lib/write-any-file.c (can_write_any_file):
22447         * m4/mknod.m4 (gl_FUNC_MKNOD):
22448         * tests/test-sethostname2.c (geteuid, main):
22449         Don't assume ROOT_UID == 0.
22450         * modules/euidaccess (Depends-on):
22451         * modules/pt_chown (Depends-on):
22452         * modules/sethostname-tests (Depends-on):
22453         * modules/unlinkdir (Depends-on):
22454         * modules/write-any-file (Depends-on):
22455         Add root-uid.
22457         regex: use locale-independent comparison for codeset name
22458         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22459         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22460         for codeset name.
22461         * lib/regex_internal.h: Do not include <strings.h>, since we
22462         no longer use strcasecmp.
22463         * modules/regex (Depends-on): Remove strcase.
22465 2012-06-23  Bruno Haible  <bruno@clisp.org>
22467         getopt-posix: No longer guarantee that option processing is resettable.
22468         * doc/posix-functions/getopt.texi: Drop description of problem with
22469         internal state. Fix info about mingw and msvc9.
22470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22471         option processing by getopt(). Run three test programs instead of one.
22472         Simplify cross-compilation guess.
22473         * NEWS: Mention the change.
22474         Reported by Rich Felker <dalias@aerifal.cx>.
22476 2012-06-26  Bruno Haible  <bruno@clisp.org>
22478         argp, regex: Ensure strcasecmp gets declared.
22479         * lib/argp-help.c: Include <strings.h>.
22480         * lib/regex_internal.h: Likewise.
22481         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22483 2012-06-24  Bruno Haible  <bruno@clisp.org>
22485         ptsname_r: Make it consistent with ptsname on AIX.
22486         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22487         implementation as for OSF/1.
22488         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22489         a pty master.
22491         ptsname_r: Make it consistent with ptsname on OSF/1.
22492         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22493         OSF/1.
22495 2012-06-24  Bruno Haible  <bruno@clisp.org>
22497         ttyname_r: Fix result on OSF/1, Solaris.
22498         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22500 2012-06-24  Bruno Haible  <bruno@clisp.org>
22502         ptsname_r: Add support for Solaris.
22503         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22504         Solaris.
22506         ptsname_r: Fix test failure on native Windows.
22507         * modules/ptsname_r (Depends-on): Add isatty.
22509         ptsname_r: Fix test failures on IRIX, Solaris.
22510         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22511         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22512         accordingly.
22513         * lib/ptsname_r.c: Include <fcntl.h>.
22514         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22515         set errno if fd is invalid.
22516         * tests/test-isatty.c (main): Update comments.
22518 2012-06-24  Bruno Haible  <bruno@clisp.org>
22520         ptsname test: Extend test.
22521         * tests/test-ptsname.c: Include <errno.h>.
22522         (main): Test behaviour with invalid file descriptor.
22524 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22526         time: fix obsolete comment
22527         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22528         reference to HAVE_STRUCT_TIMESPEC in comment.
22530 2012-06-23  Bruno Haible  <bruno@clisp.org>
22532         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22534         does not handle abbreviated long options with equivalent
22535         disambiguations, set gl_replace_getopt to yes.
22536         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22538 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22540         time_r: fix typo that always overrode localtime_r decl
22541         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22542         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22543         not in a standard include.
22545 2012-06-22  Bruno Haible  <bruno@clisp.org>
22547         Write "Mac OS X" instead of "MacOS X".
22548         * README: Write "Mac OS X" instead of "MacOS X".
22549         * build-aux/bootstrap: Likewise.
22550         * build-aux/install-reloc: Likewise.
22551         * lib/acl-internal.h: Likewise.
22552         * lib/acl_entries.c: Likewise.
22553         * lib/argp-ba.c: Likewise.
22554         * lib/argp-pv.c: Likewise.
22555         * lib/config.charset: Likewise.
22556         * lib/copy-acl.c: Likewise.
22557         * lib/csharpexec.c: Likewise.
22558         * lib/euidaccess.c: Likewise.
22559         * lib/fbufmode.c: Likewise.
22560         * lib/fflush.c: Likewise.
22561         * lib/file-has-acl.c: Likewise.
22562         * lib/filemode.h: Likewise.
22563         * lib/fpurge.c: Likewise.
22564         * lib/freadable.c: Likewise.
22565         * lib/freadahead.c: Likewise.
22566         * lib/freading.c: Likewise.
22567         * lib/freadptr.c: Likewise.
22568         * lib/freadseek.c: Likewise.
22569         * lib/fseeko.c: Likewise.
22570         * lib/fseterr.c: Likewise.
22571         * lib/fsusage.c: Likewise.
22572         * lib/fwritable.c: Likewise.
22573         * lib/fwriting.c: Likewise.
22574         * lib/get-rusage-as.c: Likewise.
22575         * lib/get-rusage-data.c: Likewise.
22576         * lib/getdomainname.c: Likewise.
22577         * lib/idpriv-drop.c: Likewise.
22578         * lib/idpriv-droptemp.c: Likewise.
22579         * lib/localcharset.c: Likewise.
22580         * lib/locale.in.h: Likewise.
22581         * lib/localename.c: Likewise.
22582         * lib/mbsrtowcs-state.c: Likewise.
22583         * lib/nproc.c: Likewise.
22584         * lib/passfd.c: Likewise.
22585         * lib/posix_openpt.c: Likewise.
22586         * lib/printf-parse.c: Likewise.
22587         * lib/progreloc.c: Likewise.
22588         * lib/safe-read.h: Likewise.
22589         * lib/safe-write.h: Likewise.
22590         * lib/sched.in.h: Likewise.
22591         * lib/set-mode-acl.c: Likewise.
22592         * lib/signal.in.h: Likewise.
22593         * lib/stdint.in.h: Likewise.
22594         * lib/stdio-impl.h: Likewise.
22595         * lib/stdlib.in.h: Likewise.
22596         * lib/strtod.c: Likewise.
22597         * lib/sys_select.in.h: Likewise.
22598         * lib/tcgetsid.c: Likewise.
22599         * lib/unistd.in.h: Likewise.
22600         * lib/unlockpt.c: Likewise.
22601         * lib/vasnprintf.c: Likewise.
22602         * lib/vma-iter.c: Likewise.
22603         * lib/wcsrtombs-state.c: Likewise.
22604         * m4/acl.m4: Likewise.
22605         * m4/acosl.m4: Likewise.
22606         * m4/asinl.m4: Likewise.
22607         * m4/atanl.m4: Likewise.
22608         * m4/c-stack.m4: Likewise.
22609         * m4/cosl.m4: Likewise.
22610         * m4/expl.m4: Likewise.
22611         * m4/extensions.m4: Likewise.
22612         * m4/fdatasync.m4: Likewise.
22613         * m4/fmal.m4: Likewise.
22614         * m4/frexp.m4: Likewise.
22615         * m4/frexpf.m4: Likewise.
22616         * m4/frexpl.m4: Likewise.
22617         * m4/fsusage.m4: Likewise.
22618         * m4/getdomainname.m4: Likewise.
22619         * m4/getloadavg.m4: Likewise.
22620         * m4/getopt.m4: Likewise.
22621         * m4/gettext.m4: Likewise.
22622         * m4/gnulib-common.m4: Likewise.
22623         * m4/intdiv0.m4: Likewise.
22624         * m4/intlmacosx.m4: Likewise.
22625         * m4/largefile.m4: Likewise.
22626         * m4/ldexpl.m4: Likewise.
22627         * m4/link-follow.m4: Likewise.
22628         * m4/locale-ar.m4: Likewise.
22629         * m4/locale-fr.m4: Likewise.
22630         * m4/locale-ja.m4: Likewise.
22631         * m4/locale-tr.m4: Likewise.
22632         * m4/locale-zh.m4: Likewise.
22633         * m4/locale_h.m4: Likewise.
22634         * m4/lock.m4: Likewise.
22635         * m4/logl.m4: Likewise.
22636         * m4/mathfunc.m4: Likewise.
22637         * m4/minus-zero.m4: Likewise.
22638         * m4/mktime.m4: Likewise.
22639         * m4/mmap-anon.m4: Likewise.
22640         * m4/multiarch.m4: Likewise.
22641         * m4/nanosleep.m4: Likewise.
22642         * m4/nocrash.m4: Likewise.
22643         * m4/poll.m4: Likewise.
22644         * m4/printf-frexpl.m4: Likewise.
22645         * m4/printf.m4: Likewise.
22646         * m4/signbit.m4: Likewise.
22647         * m4/sinl.m4: Likewise.
22648         * m4/sqrtl.m4: Likewise.
22649         * m4/strerror_r.m4: Likewise.
22650         * m4/tanl.m4: Likewise.
22651         * m4/threadlib.m4: Likewise.
22652         * m4/ttyname_r.m4: Likewise.
22653         * m4/unlink.m4: Likewise.
22654         * m4/visibility.m4: Likewise.
22655         * m4/wcwidth.m4: Likewise.
22656         * tests/minus-zero.h: Likewise.
22657         * tests/test-alloca-opt.c: Likewise.
22658         * tests/test-copy-acl.sh: Likewise.
22659         * tests/test-copy-file.sh: Likewise.
22660         * tests/test-fdatasync.c: Likewise.
22661         * tests/test-file-has-acl.sh: Likewise.
22662         * tests/test-flock.c: Likewise.
22663         * tests/test-fsync.c: Likewise.
22664         * tests/test-localename.c: Likewise.
22665         * tests/test-malloca.c: Likewise.
22666         * tests/test-nonblocking-pipe.h: Likewise.
22667         * tests/test-nonblocking-socket.h: Likewise.
22668         * tests/test-openpty.c: Likewise.
22669         * tests/test-posix_openpt.c: Likewise.
22670         * tests/test-ptsname.c: Likewise.
22671         * tests/test-ptsname_r.c: Likewise.
22672         * tests/test-sameacls.c: Likewise.
22673         * tests/test-select.h: Likewise.
22674         * tests/test-set-mode-acl.sh: Likewise.
22675         * tests/test-snprintf-posix.h: Likewise.
22676         * tests/test-sprintf-posix.h: Likewise.
22677         * tests/test-strtod.c: Likewise.
22678         * tests/test-time.c: Likewise.
22679         * tests/test-vasnprintf-posix.c: Likewise.
22680         * tests/test-vasprintf-posix.c: Likewise.
22681         * doc/acl-resources.txt: Likewise.
22682         * doc/**/*.texi: Likewise.
22683         Reported by Max Horn <max@quendi.de>.
22685 2012-06-22  Bruno Haible  <bruno@clisp.org>
22687         grantpt: Relax requirement regarding invalid file descriptors.
22688         * lib/grantpt.c: Don't include <fcntl.h>.
22689         (grantpt): Don't verify the validity of the file descriptor.
22690         * modules/grantpt (Depends-on): Remove fcntl-h.
22691         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22692         file descriptors.
22693         * doc/posix-functions/grantpt.texi: Document more platforms on which
22694         grantpt succeeds for invalid file descriptors.
22695         Reported by Rich Felker <dalias@aerifal.cx>.
22697 2012-06-22  Bruno Haible  <bruno@clisp.org>
22699         fbufmode test: Don't test unportable behaviour.
22700         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22701         (main): Invoke it three times.
22702         Reported by Szabolcs Nagy <nsz@port70.net>
22703         and Rich Felker <dalias@aerifal.cx>.
22705 2012-06-21  Bruno Haible  <bruno@clisp.org>
22707         gnulib-tool: Refactor inctests variable.
22708         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22709         (func_modules_transitive_closure,
22710         func_modules_transitive_closure_separately,
22711         func_import, func_create_testdir): Update.
22713         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22714         * gnulib-tool: Accept option --without-tests.
22715         (func_usage): Document --without-tests option. Rearrange.
22716         (inctests): Normalize according to the mode.
22717         * NEWS: Mention the change.
22718         Suggested by Simon Josefsson.
22720 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22722         parse-duration test: Avoid spurious output.
22723         * tests/test-parse-duration.sh: Reindent with leading tabs.
22725 2012-06-21  Jim Meyering  <meyering@redhat.com>
22727         maint: disable the strncpy prohibition
22728         * cfg.mk: Do not prohibit strncpy here.
22730 2012-06-21  Bruno Haible  <bruno@clisp.org>
22732         nonblocking: Avoid compilation error on mingw64.
22733         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22734         fscanf.
22735         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22736         * modules/vfscanf (configure.ac): Likewise.
22737         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22738         definition only if stdio.h has prepared it.
22739         Reported by Daniel P. Berrange <berrange@redhat.com>.
22741 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22743         gnulib-tool: Use readlink if it is available.
22744         * gnulib-tool (func_readlink): Choose function more appropriately.
22746 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22748         posixtm-tests: port to buggy compiler
22749         Problem reported by Simon Josefsson in
22750         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22751         * modules/posixtm-tests (Depends-on): Add stdint.
22752         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22753         Now of type int_least64_t, not int64_t, both because that's
22754         what INT64_C returns and because int_least64_t works even
22755         on 72-bit hosts.
22756         (T): Use INT64_C on constants outside the traditional int range,
22757         to work around compiler bug noted by Simon.
22759         mktime: fix integer overflow in 'configure'-time test
22760         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22761         after integer overflow.  Problem reported by Rich Felker in
22762         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22763         Also, don't look for further instances of a bug if we've already
22764         found one instance; this helps 'configure' run faster.
22766 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22768         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22769         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22770         GetVersionEx correctly.
22771         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22773 2012-06-20  Bruno Haible  <bruno@clisp.org>
22775         fdopen: Allow implementations that don't reject invalid fd arguments.
22776         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22777         succeeds.
22778         Reported by Rich Felker <dalias@aerifal.cx>.
22780 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22782         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22783         bring in LIBINTL.
22785 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22787         init.sh: do not rely on autoupated PWD
22788         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22789         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22790         Although Nelson's bug was not necessarily fixed by this patch,
22791         it seems wise to make the change for safety.
22792         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22793         automagically after 'cd'; this is not reliable on older shells.
22794         (setup_): Fail if we cannot cd to temporary directory.
22796 2012-06-19  Bruno Haible  <bruno@clisp.org>
22798         stat, fstat: Avoid warnings on mingw64.
22799         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22800         redefining.
22801         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22802         Reported by Daniel P. Berrange <berrange@redhat.com>.
22804 2012-06-19  Bruno Haible  <bruno@clisp.org>
22806         stdioext: Add support for musl libc.
22808         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22809         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22811         * m4/fseterr.m4: New file.
22812         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22813         function exists.
22814         * modules/fseterr (Files): Add m4/fseterr.m4.
22815         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22816         __fseterr does not exist.
22817         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22819         * lib/freadable.h: Update comment.
22821         * lib/fwritable.h: Update comment.
22823         * lib/freading.h: Update comment.
22825         * lib/fwriting.h: Update comment.
22827         * m4/freadahead.m4: New file.
22828         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22829         that function exists.
22830         * modules/freadahead (Files): Add m4/freadahead.m4.
22831         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22832         __freadahead does not exist.
22833         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22835         * m4/freadptr.m4: New file.
22836         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22837         function exists.
22838         * modules/freadptr (Files): Add m4/freadptr.m4.
22839         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22840         __freadptr does not exist.
22841         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22843         * m4/freadseek.m4: New file.
22844         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22845         exists.
22846         * modules/freadseek (Files): Add m4/freadseek.m4.
22847         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22849         * lib/fpurge.c (fpurge): Update comment.
22851         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22853 2012-06-19  Bruno Haible  <bruno@clisp.org>
22855         *printf-posix: Put more info into config.log.
22856         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22857         exit code into config.log.
22859 2012-06-19  Bruno Haible  <bruno@clisp.org>
22861         getopt-gnu: Fix exit code overflow in autoconf test.
22862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22863         to keep them below < 128.
22865 2012-06-17  Jim Meyering  <meyering@redhat.com>
22867         maint.mk: fix typo in code to derive GPG key at release time
22868         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22870 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22872         regex: avoid warning when pointers are not long
22873         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22874         and uintptr_t, not long, for portability to hosts where pointers and
22875         long have different sizes.  Issue noted by Daniel P. Berrange in
22876         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22877         and fix suggested by Bruno Haible in
22878         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22880 2012-06-17  Bruno Haible  <bruno@clisp.org>
22882         dummy: Relicense into the public domain.
22883         * modules/dummy (License): Set to "public domain".
22884         Suggested by Reuben Thomas.
22886 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22888         announce-gen: VPATH issues
22889         * build-aux/announce-gen (--srcdir): New option, used to trim the
22890         $srcdir part of the path from $builddir to NEWS.
22891         * top/maint.mk (announcement): Adjust.
22893 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22895         gnu-web-doc-update: VPATH builds
22896         * build-aux/gnu-web-doc-update (--builddir): New option.
22897         Revamp the handling of options.
22898         Prefer $(...) to `...`.
22899         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22900         the template, and it is GNU mktemp specific.
22901         Prefer set -e to long series of &&.
22902         Restore the initial git branch, not "master".
22903         Properly initialize submodules (don't rely only on bootstrap).
22904         Do not reconfigure blindly, use config.status.
22905         * top/README-release: Update instructions for gnu-web-doc-update.
22907 2012-06-11  Jim Meyering  <meyering@redhat.com>
22909         maint.mk: revert most of the previous change re "all these"
22910         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22911         For rationale, see the discussion at
22912         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22914 2012-06-10  Karl Berry  <karl@gnu.org>
22916         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22918         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22920 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22922         parse-duration: Relicense under LGPLv2+.
22923         * modules/parse-duration (License): Change to LGPLv2+.
22925 2012-06-10  Jim Meyering  <meyering@redhat.com>
22927         maint.mk: prohibit common grammar error: "all these"
22928         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22929         the list of prohibited word sequences.  It should be "all of these".
22930         * lib/tempname.c (__gen_tempname): Fix one of them.
22932 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22934         do-release-commit-and-tag: support VPATH builds
22935         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22936         (noteworthy): Defined earlier to factor its value.
22937         (noteworthy_stub): New.
22938         Use it to factor.
22939         (help_version): Split into...
22940         (help, version): these.
22941         Adjust the option processing part.
22942         Support "--option=value" in addition to "--option value".
22943         (builddir): New.
22944         (--builddir): New option.
22945         * top/README-release: Document this.
22946         Reword slightly so that the reader cannot understand that he
22947         has to do these steps before calling do-release-commit-and-tag.
22949 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22951         readme-release: also require announce-gen and maintainer-makefile
22952         * modules/readme-release (Depends-on): here.
22953         * modules/announce-gen, modules/do-release-commit-and-tag,
22954         modules/gnu-web-doc-update, modules/maintainer-makefile
22955         (Description): Point to readme-release.
22957 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22959         maint.mk: fix VPATH issues.
22960         * top/maint.mk (news-check): GNU Make understand $< very well.
22961         (release-prep): NEWS is in $(srcdir).
22963 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22965         readme-release: require the promoted modules.
22966         * modules/readme-release (Depends-on): Add
22967         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22968         in this text.
22970 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22971             Bruno Haible  <bruno@clisp.org>
22973         error, strerror-override: Support mingw64 from Fedora 17.
22974         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22975         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22976         EINPROGRESS.
22977         * lib/strerror-override.h (strerror_override): Test it.
22978         * lib/strerror-override.c (strerror_override): Likewise.
22979         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22981 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22982             Bruno Haible  <bruno@clisp.org>
22984         error, strerror-override: Support mingw64 from Fedora 17.
22985         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22986         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22987         * lib/strerror-override.h (strerror_override): Test it.
22988         * lib/strerror-override.c (strerror_override): Likewise.
22990 2012-06-03  Bruno Haible  <bruno@clisp.org>
22992         error, strerror-override: Support new errno values from POSIX:2008.
22993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22994         ENOTRECOVERABLE.
22995         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22996         platforms.
22997         * lib/strerror-override.c (strerror_override): Conditionalize the
22998         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22999         * lib/strerror-override.h (strerror_override): Declare also if
23000         GNULIB_defined_EOWNERDEAD is defined.
23001         * tests/test-errno.c (e130, e131): New variables.
23002         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
23003         ENOTRECOVERABLE.
23004         Reported by Paolo Bonzini.
23006 2012-05-31  Jim Meyering  <meyering@redhat.com>
23008         savewd: add missing dependency on sys_wait module
23009         * modules/savewd (Depends-on): Add sys_wait, needed at least
23010         for MSVC.  Report and suggested change by Michael Goffioul.
23012 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
23014         system-quote-tests: port to CentOS 5
23015         Problem reported by Tom G. Christensen in
23016         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
23017         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
23019 2012-05-29  Jim Meyering  <meyering@redhat.com>
23021         maint: fix typos in comments and ChangeLog
23022         Culprits identified and fixed mostly automatically using these commands:
23023         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
23024         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
23025         using http://github.com/lyda/misspell-check
23026         * ChangeLog: Fix typos.
23027         * doc/solaris-versions: Likewise.
23028         * lib/regexec.c (re_search_stub): Likewise.
23029         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23031 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
23033         manywarnings: remove duplicate -Wmultichar entry
23034         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
23035         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
23036         so keep the entry marked as documented.
23038 2012-05-27  Karl Berry  <karl@gnu.org>
23040         * config/srclist.txt (mktime.c): remove last libc sync,
23041         perhaps just temporarily.
23043 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
23045         regex: don't assume uint64_t or uint32_t
23046         * lib/regcomp.c (init_word_char): Don't assume that the types
23047         uint64_t and uint32_t exist.  The C standard doesn't guarantee
23048         them, and on some 32-bit compilers there is no uint64_t.
23049         Problem reported by Gianluigi Tiesi in
23050         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
23052 2012-05-25  Jim Meyering  <meyering@redhat.com>
23054         maint.mk: add strncpy-prohibiting syntax-check rule
23055         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
23057 2012-05-24  Jim Meyering  <meyering@redhat.com>
23059         maint.mk: compute $(gpg_key_ID) more portably
23060         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
23061         That use of sed is not portable to some fringe systems.
23062         Reported by Paul Eggert in
23063         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
23065 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23067         mktime: sync from glibc
23068         * config/srclist.txt: Uncomment mktime.c.
23069         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
23070         First, indent with tabs, since glibc uses tabs and doesn't want to
23071         change and we'd rather be identical to glibc.  Also, two small
23072         coding changes:
23073         (isdst_differ): Use &&, not &, as && is the usual style.
23074         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
23075         for clarity.
23077 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23079         announce-gen: du -h is more portable than du --human
23080         * build-aux/announce-gen (sizes): Invoke du with -h instead
23081         of --human.  Accept leading white space in its output.
23083 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23085         announce-gen: Improve diagnostics.
23086         * build-aux/announce-gen: When parsing command line options,
23087         prefer "announce-gen: option --release-type requires an argument"
23088         to "Option release-type requires an argument".
23090 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23092         maint.mk: gpg_key_ID: use sed more portably
23093         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
23094         the closing brace.
23095         (refresh-po): Fuse two sed invocations into one.
23097 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
23099         gitlog-to-changelog: support the log message format used in Bison.
23100         * build-aux/gitlog-to-changelog: Support --strip-tab and
23101         --strip-cherry-picked.
23103 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
23105         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
23106         the rest of the current time slice to another thread in the current
23107         process. So if the thread that feeds the file decscriptor we're
23108         polling is not in the current process, we get busy-waiting.
23109         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
23110         Patch from Theodore Leblond.
23111         * lib/select.c: Split polling out of the loop that sets the output
23112         fd_sets.  Check for zero result and loop if the wait timeout is
23113         infinite.
23115 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23117         select: Fix build error on IRIX 6.5.
23118         * lib/select.c: Include stddef.h for NULL.
23120 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23122         gc: fix libgcrypt detection on older machines.
23123         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
23124         copyright years because the file has been distributed every year
23125         since it was created.
23127 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
23129         crypto: fix bug in large buffer handling
23130         Problem reported by Serge Belyshev for glibc in
23131         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
23132         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
23133         * lib/md4.c (md4_process_block):
23134         * lib/md5.c (md5_process_block):
23135         * lib/sha1.c (sha1_process_block):
23136         * lib/sha256.c (sha256_process_block):
23137         Don't assume the buffer length is less than 2**32.
23138         * lib/sha512.c (sha512_process_block): Likewise.
23139         Here, the bug is present only in the rare case where the host does
23140         not support uint64_t or where size_t is wider than 64 bits.
23141         Use u64size to work around the problems.
23142         * lib/u64.h (u64size): New macro.
23144 2012-05-15  Pádraig Brady  <P@draigBrady.com>
23146         fsusage: fix block size returned on older Linux 2.6
23148         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
23149         which is available since Linux 2.6.
23150         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
23151         when the member is available so it can be used as a fallback.
23152         * doc/posix-functions/statvfs.texi: Mention the hang issue
23153         on Linux < 2.6.36.
23155 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23157         bootstrap: suppress stderr chatter
23158         * build-aux/bootstrap (insert_sorted_if_absent, main program):
23159         Omit unnecessary chatter to stderr.  The main program chatter
23160         was there only inadvertantly.
23162         bootstrap: .gitignore files created by autopoint, libtool
23163         I ran into this problem when bootstrapping the latest diffutils.
23164         After './bootstrap', 'git status' reported lots of untracked files
23165         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
23166         autopoint and do not need to be version-controlled.
23167         * build-aux/bootstrap: Put into .gitignore the files that
23168         autopoint and libtool create, by keeping track of files that exist
23169         after but not before these programs are run.
23170         (version_controlled_file): Move up.  2nd arg is now full file
23171         name, not base name; this is more convenient.  Put CVS at the end,
23172         as it's now somewhat deprecated.
23174 2012-05-14  Jim Meyering  <meyering@redhat.com>
23176         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
23177         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
23178         definition.  Reported by Bruno Haible.
23180 2012-05-13  Bruno Haible  <bruno@clisp.org>
23181             Paul Eggert  <eggert@cs.ucla.edu>
23183         binary-io: Define set_binary_mode function.
23184         * lib/binary-io.h (set_binary_mode): New function.
23185         (SET_BINARY): Define in terms of set_binary_mode.
23186         * modules/binary-io (configure.ac): Require AC_C_INLINE.
23187         * tests/test-binary-io.c (main): Accept an argument, and test either
23188         set_binary_mode or SET_BINARY depending on the argument.
23189         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
23190         argument. Clean up also t-bin-out0.tmp.
23192 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
23194         bootstrap: take advantage of POSIX shell features
23196         The 'bootstrap' script offered by Gnulib script already uses POSIX
23197         shell features (like $((...)) arithmetic expansions) that are not
23198         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
23199         means that bootstrap must already be run using a proper POSIX shell,
23200         which will thus provide more features, like ${var#pattern} parameter
23201         expansion or inversion of a command exit status with '!'.  We can
23202         thus use these features to improve the clarity and the performances
23203         of the bootstrap script.
23205         Suggested by Eric Blake.
23207         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
23208         of sed/expr plus command substitutions, to save some forks.  While
23209         we are at it, prefer the POSIX $(...) form of command substitution,
23210         rather than the legacy form `...` (since the former is visually
23211         clearer and interacts better with quoting), and prefer the idiom:
23212           "if ! CMD; then ACTION ..."
23213         over the idiom:
23214           "if CMD; then :; else ACTION ..."
23215         which was required by legacy Bourne shells not supporting '!'.
23217 2012-05-12  Bruno Haible  <bruno@clisp.org>
23219         system-quote: Add more comments.
23220         * lib/system-quote.h: Add more comments about wilcards and limitations.
23221         Suggested by Eli Zaretskii <eliz@gnu.org>.
23223         sh-quote, system-quote: Add comments about wildcards.
23224         * lib/sh-quote.h: Clarify what happens with wildcard characters.
23225         * lib/system-quote.h: Likewise.
23226         Reported by Eli Zaretskii <eliz@gnu.org>.
23228 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23230         fsusage: check for GNU/Linux statvfs problem dynamically
23231         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
23232         Define STAT_STATFS2_BSIZE too, since in this case the code now
23233         checks dynamically whether statvfs is reliable, falling back on
23234         Linux-style statfs otherwise.
23235         (statvfs_works): New function, for dynamically testing statvfs.
23236         (get_fs_usage) [STAT_STATVFS]: Use it.
23237         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
23238         statvfs on GNU/Linux hosts, since it's now done dynamically.
23240 2012-05-10  Bruno Haible  <bruno@clisp.org>
23242         system-quote, execute, spawn-pipe: Escape '?' on Windows.
23243         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
23244         '?' character.
23245         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
23246         * tests/test-system-quote-main.c (check_all): Check also strings like
23247         "??????????".
23248         Reported by Eli Zaretskii <eliz@gnu.org>.
23250 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23252         _Noreturn: port config.h to gcc -Wundef
23253         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
23254         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
23255         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
23257 2012-05-10  Bruno Haible  <bruno@clisp.org>
23259         system-quote: Refactor.
23260         * lib/system-quote.h (system_quote_copy): Fix comment.
23261         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
23262         New functions, extracted from system_quote_copy.
23263         (system_quote_length, system_quote_copy): Use these functions.
23264         Reported by Paul Eggert.
23266 2012-05-08  Bruno Haible  <bruno@clisp.org>
23268         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
23269         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
23271 2012-05-08  Bruno Haible  <bruno@clisp.org>
23273         Tests for module 'system-quote'.
23274         * modules/system-quote-tests: New file.
23275         * tests/test-system-quote.sh: New file.
23276         * tests/test-system-quote-main.c: New file.
23277         * tests/test-system-quote-child.c: New file.
23279         New module 'system-quote'.
23280         * lib/system-quote.h: New file.
23281         * lib/system-quote.c: New file.
23282         * modules/system-quote: New file.
23284 2012-05-08  Bruno Haible  <bruno@clisp.org>
23286         sh-quote: Make C++ safe and allow multiple inclusion.
23287         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23288         declarations in extern "C".
23290 2012-05-08  Bruno Haible  <bruno@clisp.org>
23292         sh-quote tests: Make tests stricter.
23293         * tests/test-sh-quote.c (check_one): Check the return value of
23294         shell_quote_copy.
23295         (main): Check a string with a CR character. Check a string that
23296         contains UCHAR_MAX.
23298 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23300         warnings.m4: provide a means to specify the program to compile.
23301         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
23302         (gl_WARN_ADD): here.
23303         Use gl_AS_VAR_APPEND.
23304         Support an argument to specify the program to compile.
23305         (gl_WARN_ADD): Accept an argument to specify the program to compile.
23306         AC_SUBST the WARN_CFLAGS when they are used.
23307         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
23308         leave this to gl_WARN_ADD.
23310 2012-05-08  Eric Blake  <eblake@redhat.com>
23312         doc: recommendations on gettext version
23313         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
23314         choice between versions.
23315         * DEPENDENCIES (gettext): Cover both approaches.
23317 2012-05-08  Jim Meyering  <meyering@redhat.com>
23319         init.sh: explain why EXEEXT support uses aliases rather than functions
23320         * tests/init.sh: Add a comment.
23322         init.sh: don't let bash aliases interfere with tests
23323         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
23324         is bash.  This avoids problems for those who alias standard commands to
23325         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
23326         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
23328 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23330         stdint: be more consistent with glibc, SunOS libc
23331         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23332         (gl_int_fast16_t, gl_uint_fast16_t)
23333         (gl_int_fast32_t, gl_uint_fast32_t)
23334         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23335         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23336         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23337         Be consistent with glibc by default, and with SunOS 5.10 and later
23338         if __sun is defined.  This lessens the likelihood of clashes if
23339         code compiled for older hosts is combined with code compiled for
23340         newer ones.  Problem reported by Niels Möller in
23341         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23343 2012-05-07  Eric Blake  <eblake@redhat.com>
23345         isatty: relax license to LGPLv2+
23346         * modules/isatty (License): Relax license.
23348 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23350         stat-size: comment fix
23351         * lib/stat-size.h: Remove obsolete comment about indenting.
23353 2012-05-06  Bruno Haible  <bruno@clisp.org>
23355         Tests for module 'sh-quote'.
23356         * modules/sh-quote-tests: New file.
23357         * tests/test-sh-quote.c: New file.
23359 2012-05-06  Bruno Haible  <bruno@clisp.org>
23361         sh-quote: Improve shell_quote_argv's signature.
23362         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23363         * lib/sh-quote.c (shell_quote_argv): Likewise.
23365 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23367         stdint: document issues with int_fast8_t etc.
23368         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23369         stdint.h substitutes may define these types differently.  See
23370         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23372 2012-05-05  Bruno Haible  <bruno@clisp.org>
23374         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23376         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23377         or 'guessing no (mishandles large arguments)'.
23379 2012-05-05  Bruno Haible  <bruno@clisp.org>
23381         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23382         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23383         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23384         set gl_cv_func_link_follows_symlink to "guessing no".
23386 2012-05-05  Bruno Haible  <bruno@clisp.org>
23388         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23389         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23390         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23391         "guessing no".
23392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23394 2012-05-05  Bruno Haible  <bruno@clisp.org>
23396         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23397         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23398         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23399         set gl_cv_struct_dirent_d_ino to "guessing yes".
23401 2012-05-05  Bruno Haible  <bruno@clisp.org>
23403         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23404         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23405         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23406         "guessing yes".
23408 2012-05-05  Bruno Haible  <bruno@clisp.org>
23410         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23411         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23412         compiling to a glibc system, set gl_cv_func_signbit and
23413         gl_cv_func_signbit_gcc to "guessing yes".
23415 2012-05-05  Bruno Haible  <bruno@clisp.org>
23417         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23418         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23419         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23420         to "guessing yes".
23421         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23422         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23424 2012-05-05  Bruno Haible  <bruno@clisp.org>
23426         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23427         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23428         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23429         gl_cv_func_realpath_works to "guessing yes".
23431 2012-05-05  Bruno Haible  <bruno@clisp.org>
23433         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23435         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23437 2012-05-04  Bruno Haible  <bruno@clisp.org>
23439         Tweak last commit.
23440         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23441         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23443 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23445         unistd_h: make it easier to avoid sys_types_h
23446         This is useful for Emacs, which has its own method of porting to
23447         Windows, and which therefore does not need the sys_types_h module.
23448         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23449         code moved here from gl_SYS_TYPES_H.
23450         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23451         using the code directly.
23452         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23453         gl_SYS_TYPES_H.
23454         * modules/sys_types (Files):
23455         * modules/unistd (Files): Add m4/off_t.m4.
23457 2012-05-03  Bruno Haible  <bruno@clisp.org>
23459         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23460         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23461         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23462         "guessing yes" or "guessing no".
23463         (gl_FUNC_LSTAT): Update.
23464         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23465         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23466         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23468 2012-05-03  Bruno Haible  <bruno@clisp.org>
23470         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23471         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23472         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23473         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23474         cross-compiling, choose the first alternative on glibc systems.
23475         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23477 2012-05-03  Bruno Haible  <bruno@clisp.org>
23479         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23480         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23481         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23483 2012-05-03  Bruno Haible  <bruno@clisp.org>
23485         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23486         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23488 2012-05-03  Bruno Haible  <bruno@clisp.org>
23490         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23491         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23492         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23493         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23494         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23495         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23496         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23497         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23498         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23499         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23500         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23501         gl_cv_func_chown_ctime_works to "guessing yes".
23502         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23503         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23504         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23505         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23506         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23508         compiling to glibc systems, set gl_cv_func_open_directory_works to
23509         "guessing yes".
23510         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23511         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23512         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23513         "guessing yes".
23514         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23515         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23516         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23517         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23518         "guessing yes".
23519         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23520         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23521         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23522         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23523         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23524         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23525         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23526         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23527         "guessing yes".
23528         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23529         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23530         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23531         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23532         "guessing yes".
23533         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23534         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23535         "guessing yes".
23536         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23537         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23538         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23539         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23540         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23541         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23542         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23543         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23544         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23545         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23546         "guessing yes".
23547         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23548         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23549         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23550         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23551         "guessing yes".
23552         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23553         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23554         "guessing yes".
23555         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23556         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23557         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23558         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23559         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23560         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23561         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23562         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23563         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23564         "guessing yes".
23565         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23566         compiling to glibc systems, set gl_cv_func_mknod_works to
23567         "guessing yes".
23568         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23569         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23570         "guessing yes".
23571         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23572         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23573         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23574         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23575         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23576         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23577         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23578         compiling to glibc systems, set gl_cv_func_svid_putenv to
23579         "guessing yes".
23580         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23581         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23582         "guessing yes".
23583         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23584         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23585         "guessing yes".
23586         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23587         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23588         to "guessing yes".
23589         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23590         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23591         to "guessing yes".
23592         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23593         compiling to glibc systems, set gl_cv_func_rmdir_works to
23594         "guessing yes".
23595         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23596         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23597         gl_cv_func_unlink_parent_fails to "guessing yes".
23598         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23599         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23600         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23601         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23602         gl_cv_func_rename_dest_works to "guessing yes".
23603         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23604         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23606         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23607         "guessing yes".
23608         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23609         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23610         "guessing yes".
23611         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23612         compiling to glibc systems, set gl_cv_func_setenv_works to
23613         "guessing yes".
23614         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23615         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23616         "guessing yes".
23617         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23618         compiling to glibc systems, set gl_cv_func_sleep_works to
23619         "guessing yes".
23620         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23621         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23622         "guessing yes".
23623         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23624         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23625         "guessing yes".
23626         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23627         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23628         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23629         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23630         "guessing yes".
23631         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23632         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23633         "guessing yes".
23634         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23635         compiling to glibc systems, set gl_cv_func_usleep_works to
23636         "guessing yes".
23637         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23638         compiling to glibc systems, set gl_cv_func_futimesat_works to
23639         "guessing yes".
23641 2012-05-03  Bruno Haible  <bruno@clisp.org>
23643         Say "guessing yes" or "guessing no" when cross-compiling.
23644         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23645         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23646         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23647         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23648         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23649         am_cv_func_working_getline to "guessing yes" or "guessing no".
23650         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23651         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23652         (gl_FUNC_MEMMEM): When cross-compiling, set
23653         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23655         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23657         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23658         "guessing no".
23659         (gl_FUNC_STRCASESTR): When cross-compiling, set
23660         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23661         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23662         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23663         (gl_FUNC_STRSTR): When cross-compiling, set
23664         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23665         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23666         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23667         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23668         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23670 2012-05-01  Bruno Haible  <bruno@clisp.org>
23672         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23673         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23674         * build-aux/reloc-ldflags: Likewise.
23675         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23677 2012-05-01  Bruno Haible  <bruno@clisp.org>
23679         gnulib-tool: Remove transitional code.
23680         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23681         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23683 2012-05-01  Bruno Haible  <bruno@clisp.org>
23685         getcwd: Fix misindentation.
23686         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23688 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23690         exclude: process exclude and include directives in order
23691         This restores the pre-2009 behavior, and is part of a fix of a
23692         grep bug reported by Quentin Arce in
23693         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23694         * lib/exclude.c (struct exclude): Remove 'tail' member.
23695         (new_exclude_segment): Prepend the new segment instead of appending.
23696         Return void, since that's now more convenient.
23697         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23698         (file_name_matches): Renamed from excluded_file_name_p.
23699         (file_pattern_matches, file_name_matches):
23700         Return true if the pattern matches, not if it excludes.
23701         All callers changed.
23702         (excluded_file_name): Process the list in reverse order;
23703         since the list is now reversed this restores the pre-2009 behavior.
23704         (add_exclude): Adjust to new reversed-order list.  Use local var
23705         rather than macro, for clarity.
23706         * tests/test-exclude7.sh: Adjust to corrected behavior.
23708         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23709         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23710         it's not possible here.  Handle the case of \ at end of pattern
23711         without dumping core.
23712         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23714         _Noreturn: future-proof non-GNU and non-MSVC compilers
23715         * build-aux/snippet/_Noreturn.h (_Noreturn):
23716         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23717         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23718         C11 or later.  This is more likely to work with random future C
23719         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23720         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23722         exclude: handle wildcards with FNM_EXTMATCH
23723         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23724         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23725         comment that "has wildcards" really means "has or may have
23726         wildcards".  Simplify by avoiding the need to call strcspn.
23728 2012-04-29  Bruno Haible  <bruno@clisp.org>
23730         gnulib-tool: Fix list of authors.
23731         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23733 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23735         bootstrap: support Automake-NG in $buildreq
23736         * bootstrap (check_versions): Handle automake and aclocal from
23737         Automake-NG specially.  They can be specified as respectively
23738         the "automake-ng" and "aclocal-ng" requirements.
23740 2012-04-25  Eric Blake  <eblake@redhat.com>
23742         bootstrap: only force latest Makefile.in.in for gettext module
23743         * build-aux/bootstrap (with_gettext): Only install latest
23744         Makefile.in.in for projects requesting bleeding edge gettext.
23746 2012-04-22  Bruno Haible  <bruno@clisp.org>
23748         doc: Mention reason for replacement on glibc/Linux systems.
23749         * doc/posix-functions/dprintf.texi: Mention the problem with special
23750         'long double' values.
23751         * doc/posix-functions/fprintf.texi: Likewise.
23752         * doc/posix-functions/printf.texi: Likewise.
23753         * doc/posix-functions/snprintf.texi: Likewise.
23754         * doc/posix-functions/sprintf.texi: Likewise.
23755         * doc/posix-functions/vdprintf.texi: Likewise.
23756         * doc/posix-functions/vfprintf.texi: Likewise.
23757         * doc/posix-functions/vprintf.texi: Likewise.
23758         * doc/posix-functions/vsnprintf.texi: Likewise.
23759         * doc/posix-functions/vsprintf.texi: Likewise.
23760         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23761         platforms with F_DUPFD_CLOEXEC problems.
23762         * doc/posix-functions/glob.texi: Mention which platforms are affected
23763         by the problem with symbolic links.
23764         * doc/posix-functions/linkat.texi: Mention the problem with
23765         AT_SYMLINK_FOLLOW on Linux.
23767 2012-04-22  Bruno Haible  <bruno@clisp.org>
23769         pwrite: Don't replace on all platforms.
23770         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23772 2012-04-22  Bruno Haible  <bruno@clisp.org>
23774         rint* tests: Avoid gcc warnings.
23775         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23776         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23777         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23779 2012-04-21  Bruno Haible  <bruno@clisp.org>
23781         users.txt: Update.
23782         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23783         switched from CVS to git, bzr, or svn.
23785 2012-04-21  Bruno Haible  <bruno@clisp.org>
23787         Large File Support for native Windows platforms.
23789         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23790         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23792         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23793         type.
23794         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23795         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23796         * doc/posix-headers/sys_types.texi: Mention the effect of the
23797         'largefile' module.
23799         * lib/fcntl.in.h: Add comments about off_t.
23800         * modules/fcntl-h (Depends-on): Add sys_types.
23802         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23803         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23804         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23805         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23806         * modules/unistd (Depends-on): Add sys_types.
23807         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23809         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23810         instead of lseek.
23811         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23812         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23813         * modules/lseek (Depends-on): Add sys_types.
23815         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23816         msvc-nothrow.h.
23817         (SetFileSize): New function.
23818         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23819         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23820         if Large File Support is requested.
23821         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23822         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23824         * lib/stdio.in.h: Add comments about off_t.
23825         * modules/stdio (Depends-on): Add sys_types.
23827         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23828         instead of ftello.
23829         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23830         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23831         (gl_PREREQ_FTELLO): New macro.
23832         * modules/ftello (Depends-on): Add sys_types.
23833         (configure.ac): Incoke gl_PREREQ_FTELLO.
23835         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23836         instead of fseeko.
23837         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23838         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23839         (gl_PREREQ_FSEEKO): New macro.
23840         * modules/fseeko (Depends-on): Add sys_types.
23841         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23843         * lib/sys_stat.in.h: Add comments about off_t.
23844         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23845         64-bit integer for st_size in 'struct stat'.
23846         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23847         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23848         * modules/sys_stat (Depends-on): Add sys_types.
23849         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23851         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23852         instead of stat or _stat.
23854         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23855         'struct _stati64' instead of fstat and 'struct stat'.
23856         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23857         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23859         Reported by Ray Satiro <raysatiro@yahoo.com>.
23861 2012-04-19  Eric Blake  <eblake@redhat.com>
23863         bootstrap: accommodate older libtool
23864         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23865         Reported by Daniel P. Berrange.
23867 2012-04-19  Jim Meyering  <meyering@redhat.com>
23869         announce-gen: avoid failure due to lack of Digest::SHA1
23870         Even with the preferred Digest::SHA available, this script
23871         would fail when the backup module, Digest::SHA1, was not installed.
23872         * build-aux/announce-gen: Quote the conditional use of "use".
23873         Reported by Reuben Thomas in:
23874         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23876         bootstrap: don't let a user's CDPATH setting affect this script
23877         When CDPATH is set, cd will sometimes generate output.
23878         When "cd" is run in a subshell whose output matters, that
23879         surprising-to-some output can cause malfunction.
23880         Unsetting CDPATH turns off this shell "feature."
23881         * build-aux/bootstrap (CDPATH): Unset.
23882         Reported by Reuben Thomas in:
23883         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23884         and inspired by his patch here:
23885         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23887 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23888         and Jim Meyering  <meyering@redhat.com>
23890         maint.mk: catch "see @xref{}" and similar
23891         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23892         prohibit "See also @xref{", "Also see @pxref{", and similar.
23894 2012-04-16  Jim Meyering  <meyering@redhat.com>
23896         bootstrap: really use gnulib's po/Makefile.in.in
23897         * build-aux/bootstrap: Correct the source file name in previous change.
23898         Reported by Akim Demaille.
23900         configmake: correct minor inconsistency in Makefile rule
23901         * modules/configmake (Makefile.am): All other rules like this one
23902         run the final "mv -f ..." in the same backslash-continued command
23903         as the one that does everything else.  This one put the mv -f ...
23904         command on a separate, non-backslash-continued line.
23905         Make it like the others.
23907         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23908         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23909         the one from gettext.  Reported by Akim Demaille.
23911 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23913         Fix recursion of install-* into po directories.
23914         Bison's install-pdf bug reported by Hans Aberg at
23915         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23916         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23917         (install-info, install-pdf, install-ps): New targets.
23919 2012-04-16  Jim Meyering  <meyering@redhat.com>
23921         maint: avoid spurious "make sc_maint" failure
23922         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23923         exempt all *.class file names, for lib/javaversion.class.
23925 2012-04-15  Bruno Haible  <bruno@clisp.org>
23927         lseek: Make configure test independent of environment.
23928         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23929         Windows, we know that lseek() on pipes is broken; skip the runtime
23930         test.
23932 2012-04-14  Bruno Haible  <bruno@clisp.org>
23934         stat: Bypass buggy override in mingw64.
23935         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23936         * lib/stat.c (stat) [mingw64]: Define to _stat.
23937         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23939 2012-04-14  Bruno Haible  <bruno@clisp.org>
23941         pathmax: Fix compilation error on MSVC 9.
23942         * modules/pathmax (Depends-on): Add unistd.
23944 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23946         README: document pointer comparison assumption
23947         * README (Portability guidelines): Document assumption about
23948         pointer comparisons, in response to a recent bug-gnulib comment by
23949         Jeffrey Kegler.
23951 2012-04-12  Bruno Haible  <bruno@clisp.org>
23953         Tests for module 'getrusage'.
23954         * modules/getrusage-tests: New file.
23955         * tests/test-getrusage.c: New file.
23957         New module 'getrusage'.
23958         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23959         warn-on-use.h.
23960         (getrusage): New declaration.
23961         * lib/getrusage.c: New file.
23962         * m4/getrusage.m4: New file.
23963         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23964         is declared.
23965         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23966         HAVE_GETRUSAGE.
23967         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23968         snippet/c++defs, snippet/warn-on-use.
23969         (Makefile.am): Update generation of sys/resource.h. Substitute
23970         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23971         * modules/getrusage: New file.
23972         * doc/posix-functions/getrusage.texi: Mention the new module.
23974 2012-04-12  Bruno Haible  <bruno@clisp.org>
23976         Tests for module 'sys_resource'.
23977         * modules/sys_resource-tests: New file.
23978         * tests/test-sys_resource.c: New file.
23980         New module 'sys_resource'.
23981         * lib/sys_resource.in.h: New file.
23982         * m4/sys_resource_h.m4: New file.
23983         * modules/sys_resource: New file.
23984         * doc/posix-headers/sys_resource.texi: Mention the new module.
23986 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23988         ioctl: Fix compilation error on mingw.
23989         * lib/ioctl.c: Include <windows.h>.
23990         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23992 2012-04-04  Jim Meyering  <meyering@redhat.com>
23994         regex: correct #pragma guard expression
23995         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23996         not 4.3.  Correct its cpp guard expression.
23998 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24000         regex: remove unnecessary type punning
24001         Problem reported by Vladimir Serbinenko in
24002         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
24003         * lib/regex.h (struct re_pattern_buffer): Change the type of
24004         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
24005         Fix comment to match code.
24006         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
24007         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
24008         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24009         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
24010         (set_regs):
24011         Omit no-longer-necessary casts.
24013 2012-04-03  Bruno Haible  <bruno@clisp.org>
24015         Tests for module 'ilogbl'.
24016         * modules/ilogbl-tests: New file.
24017         * tests/test-ilogbl.c: New file.
24019         New module 'ilogbl'.
24020         * lib/math.in.h (ilogbl): New declaration.
24021         * lib/ilogbl.c: New file.
24022         * m4/ilogbl.m4: New file.
24023         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
24024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
24025         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
24026         Split sed invocation, to avoid the limit of 100 substitutions of
24027         HP-UX 'sed'.
24028         * modules/ilogbl: New file.
24029         * tests/test-math-c++.cc: Check the declaration of ilogbl.
24030         * doc/posix-functions/ilogbl.texi: Mention the new module.
24032 2012-04-03  Bruno Haible  <bruno@clisp.org>
24034         Tests for module 'ilogbf'.
24035         * modules/ilogbf-tests: New file.
24036         * tests/test-ilogbf.c: New file.
24038         New module 'ilogbf'.
24039         * lib/math.in.h (ilogbf): New declaration.
24040         * lib/ilogbf.c: New file.
24041         * m4/ilogbf.m4: New file.
24042         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
24043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
24044         REPLACE_ILOGBF.
24045         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
24046         REPLACE_ILOGBF.
24047         * modules/ilogbf: New file.
24048         * tests/test-math-c++.cc: Check the declaration of ilogbf.
24049         * doc/posix-functions/ilogbf.texi: Mention the new module.
24051 2012-04-03  Bruno Haible  <bruno@clisp.org>
24053         Tests for module 'ilogb'.
24054         * modules/ilogb-tests: New file.
24055         * tests/test-ilogb.c: New file.
24056         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
24057         tests/test-logb-ieee.h.
24059         New module 'ilogb'.
24060         * lib/math.in.h (ilogb): New declaration.
24061         * lib/ilogb.c: New file.
24062         * m4/ilogb.m4: New file.
24063         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
24064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
24065         REPLACE_ILOGB.
24066         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
24067         REPLACE_ILOGB.
24068         * modules/ilogb: New file.
24069         * tests/test-math-c++.cc: Check the declaration of ilogb.
24070         * doc/posix-functions/ilogb.texi: Mention the new module.
24072 2012-04-03  Bruno Haible  <bruno@clisp.org>
24074         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
24075         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
24076         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
24077         (main): Check their values.
24078         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
24079         problem.
24081 2012-04-03  Bruno Haible  <bruno@clisp.org>
24083         Tests for module 'logbl-ieee'.
24084         * modules/logbl-ieee-tests: New file.
24085         * tests/test-logbl-ieee.c: New file.
24087         New module 'logbl-ieee'.
24088         * modules/logbl-ieee: New file.
24090         Tests for module 'logb-ieee'.
24091         * modules/logb-ieee-tests: New file.
24092         * tests/test-logb-ieee.c: New file.
24094         New module 'logb-ieee'.
24095         * modules/logb-ieee: New file.
24097         Tests for module 'logbf-ieee'.
24098         * modules/logbf-ieee-tests: New file.
24099         * tests/test-logbf-ieee.c: New file.
24100         * tests/test-logb-ieee.h: New file.
24102         New module 'logbf-ieee'.
24103         * modules/logbf-ieee: New file.
24105 2012-04-03  Bruno Haible  <bruno@clisp.org>
24107         Tests for module 'logbl'.
24108         * modules/logbl-tests: New file.
24109         * tests/test-logbl.c: New file.
24111         New module 'logbl'.
24112         * lib/math.in.h (logbl): New declaration.
24113         * lib/logbl.c: New file.
24114         * m4/logbl.m4: New file.
24115         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
24116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
24117         REPLACE_LOGBL.
24118         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
24119         REPLACE_LOGBL.
24120         * modules/logbl: New file.
24121         * tests/test-math-c++.cc: Check the declaration of logbl.
24122         * doc/posix-functions/logbl.texi: Mention the new module.
24124 2012-04-02  Bruno Haible  <bruno@clisp.org>
24126         Tests for module 'logbf'.
24127         * modules/logbf-tests: New file.
24128         * tests/test-logbf.c: New file.
24130         New module 'logbf'.
24131         * lib/math.in.h (logbf): New declaration.
24132         * lib/logbf.c: New file.
24133         * m4/logbf.m4: New file.
24134         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
24135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
24136         REPLACE_LOGBF.
24137         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
24138         REPLACE_LOGBF.
24139         * modules/logbf: New file.
24140         * tests/test-math-c++.cc: Check the declaration of logbf.
24141         * doc/posix-functions/logbf.texi: Mention the new module.
24143 2012-04-02  Bruno Haible  <bruno@clisp.org>
24145         logb tests: More tests.
24146         * tests/test-logb.h: New file, based on tests/test-logb.c and
24147         tests/test-frexp.h.
24148         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
24149         (main): Just invoke test_function.
24150         * modules/logb-tests (Files): Add tests/test-logb.h,
24151         tests/minus-zero.h, tests/randomd.c.
24152         (Makefile.am): Add randomd.c to test_logb_SOURCES.
24154         logb: Provide replacement and workarounds.
24155         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
24156         is 1.
24157         * lib/logb.c: New file.
24158         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
24159         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
24160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
24161         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
24162         * modules/logb (Files): Add lib/logb.c.
24163         (Depends-on): Add isfinite, frexp, isnand.
24164         (configure.ac): Compile the replacement code logb.c if needed.
24165         * tests/test-math-c++.cc: Check the declaration of logb.
24166         * doc/posix-functions/logb.texi: Mention the replacement and the bug
24167         with subnormal numbers.
24169 2012-04-02  Bruno Haible  <bruno@clisp.org>
24171         log10* tests: Speed up.
24172         * tests/test-log10.h (test_function): Reduce amount of random numbers
24173         to test.
24175 2012-04-01  Bruno Haible  <bruno@clisp.org>
24177         logf-ieee: Fix test whether logf works.
24178         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
24180 2012-04-01  Bruno Haible  <bruno@clisp.org>
24182         log10l: Work around log10l-ieee test failure on IRIX 6.5.
24183         * lib/log10l.c: Include <float.h>
24184         (log10l): On IRIX, normalize the +Infinity value.
24185         * modules/log10l (Depends-on): Add 'float'.
24186         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
24187         +Infinity.
24189         log10f-ieee: Work around test failure on NetBSD 5.1.
24190         * m4/log10f-ieee.m4: New file.
24191         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
24192         test whether log10f works with a negative argument. Replace it if not.
24193         * lib/log10f.c (log10f): For negative arguments, return NaN.
24194         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
24195         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
24196         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
24198         log10f-ieee: Work around test failure on Solaris 9.
24199         * modules/log10f-ieee (Depends-on): Add log10-ieee.
24200         (configure.ac): Require gl_FUNC_LOG10F.
24202         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24203         * m4/log10-ieee.m4: New file.
24204         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
24205         whether log10 works with a negative argument. Replace it if not.
24206         * lib/log10.c (log10): For negative arguments, return NaN.
24207         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
24208         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
24209         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
24211         Tests for module 'log10l-ieee'.
24212         * modules/log10l-ieee-tests: New file.
24213         * tests/test-log10l-ieee.c: New file.
24215         New module 'log10l-ieee'.
24216         * modules/log10l-ieee: New file.
24218         Tests for module 'log10-ieee'.
24219         * modules/log10-ieee-tests: New file.
24220         * tests/test-log10-ieee.c: New file.
24222         New module 'log10-ieee'.
24223         * modules/log10-ieee: New file.
24225         Tests for module 'log10f-ieee'.
24226         * modules/log10f-ieee-tests: New file.
24227         * tests/test-log10f-ieee.c: New file.
24228         * tests/test-log10-ieee.h: New file.
24230         New module 'log10f-ieee'.
24231         * modules/log10f-ieee: New file.
24233 2012-04-01  Bruno Haible  <bruno@clisp.org>
24235         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
24236         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
24237         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
24238         workaround.
24239         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
24240         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
24241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
24242         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
24243         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
24244         (Depends-on): Update conditions.
24245         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
24246         IRIX 6.5, OSF/1 5.1 problems.
24248 2012-04-01  Bruno Haible  <bruno@clisp.org>
24250         log10f: Work around OSF/1 5.1 bug.
24251         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
24252         * lib/log10f.c (log10f): If logf exists, use it and provide just the
24253         workaround.
24254         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
24255         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
24257         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
24258         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
24259         (Depends-on): Update conditions.
24260         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
24262 2012-04-01  Bruno Haible  <bruno@clisp.org>
24264         log10: Work around OSF/1 5.1 bug.
24265         * lib/math.in.h (log10): New declaration.
24266         * lib/log10.c: New file.
24267         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
24268         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
24269         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
24270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
24271         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
24272         * modules/log10 (Files): Add lib/log10.c.
24273         (Depends-on): Add math.
24274         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
24275         * tests/test-math-c++.cc: Check the declaration of log10.
24276         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
24278 2012-03-31  Bruno Haible  <bruno@clisp.org>
24280         log10l tests: More tests.
24281         * modules/log10l-tests (Files): Add tests/test-log10l.h,
24282         tests/minus-zero.h, tests/randoml.c.
24283         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
24284         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24285         (main): Invoke test_function.
24287         log10f tests: More tests.
24288         * modules/log10f-tests (Files): Add tests/test-log10.h,
24289         tests/minus-zero.h, tests/randomf.c.
24290         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
24291         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
24292         (main): Invoke test_function.
24294         log10 tests: More tests.
24295         * tests/test-log10.h: New file.
24296         * modules/log10-tests (Files): Add tests/test-log10.h,
24297         tests/minus-zero.h, tests/randomd.c.
24298         (Makefile.am): Add randomd.c to test_log10_SOURCES.
24299         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
24300         (main): Invoke test_function.
24302 2012-03-31  Simon Josefsson  <simon@josefsson.org>
24304         fflush: Fix syntax error.
24305         * lib/fflush.c: Include unused-parameter.h, needed for
24306         _GL_UNUSED_PARAMETER.
24307         * modules/fflush (Depends-on): Add snippet/unused-parameter.
24309 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24311         regex: pacify GCC when compiling GRUB
24312         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
24313         a diagnostic.  Reported by Vladimir Serbinenko in
24314         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
24316 2012-03-29  Eric Blake  <eblake@redhat.com>
24318         stdio: don't assume gets any more
24319         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
24320         support.
24321         * modules/stdio (Makefile.am): Likewise.
24322         * lib/stdio-read.c (gets): Likewise.
24323         * tests/test-stdio-c++.cc: Likewise.
24324         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24325         * lib/stdio.in.h (gets): Make warning occur in more places.
24326         * doc/posix-functions/gets.texi (gets): Update documentation.
24327         Reported by Christer Solskogen.
24329         maint.mk: fix syntax checks without exclusions
24330         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24331         Reported by Daniel P. Berrange.
24333         strerror_r: avoid compiler warning
24334         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24335         level.
24337         fflush: avoid compiler warning
24338         * lib/fflush.c (update_fpos_cache): Mark variables that are
24339         potentially unused.
24341 2012-03-25  Bruno Haible  <bruno@clisp.org>
24343         Tests for module 'localeconv'.
24344         * modules/localeconv-tests: New file.
24345         * tests/test-localeconv.c: New file.
24347         New module 'localeconv'.
24348         * lib/locale.in.h (localeconv): New declaration.
24349         * lib/localeconv.c: New file.
24350         * m4/localeconv.m4: New file.
24351         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24352         REPLACE_LOCALECONV.
24353         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24354         REPLACE_LOCALECONV.
24355         * modules/localeconv: New file.
24356         * modules/nl_langinfo (Depends-on): Add localeconv.
24357         * modules/human (Depends-on): Likewise.
24358         * doc/posix-functions/localeconv.texi: Mention the new module.
24360 2012-03-25  Bruno Haible  <bruno@clisp.org>
24362         locale: Provide a complete 'struct lconv'.
24363         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24364         'struct lconv' does not contain int_p_cs_precedes.
24365         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24366         * doc/posix-headers/locale.texi: Update.
24368         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24369         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24370         * doc/posix-headers/locale.texi: Update.
24372         locale: Provide a working 'struct lconv'.
24373         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24374         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24375         'struct lconv' does not even contain decimal_point.
24376         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24377         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24378         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24379         * doc/posix-headers/locale.texi: Mention the problems with
24380         'struct lconv'.
24381         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24383 2012-03-24  Bruno Haible  <bruno@clisp.org>
24385         Enable common subexpression optimization in GCC.
24386         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24387         macros.
24388         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24389         GCC attribute 'const'.
24390         (uc_locale_language): Declare with GCC attribute 'pure'.
24391         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24392         with GCC attribute 'const'.
24393         * lib/unictype.in.h (uc_is_general_category_withtable,
24394         uc_combining_class, uc_combining_class_name,
24395         uc_combining_class_long_name, uc_bidi_class_name,
24396         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24397         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24398         uc_decimal_value, uc_digit_value, uc_numeric_value,
24399         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24400         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24401         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24402         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24403         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24404         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24405         Declare with GCC attribute 'const'.
24406         (uc_general_category_name, uc_general_category_long_name,
24407         uc_general_category_byname, uc_general_category,
24408         uc_is_general_category, uc_combining_class_byname,
24409         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24410         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24411         Declare with GCC attribute 'pure'.
24412         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24413         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24414         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24415         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24416         with GCC attribute 'pure'.
24417         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24418         'const'.
24419         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24420         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24421         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24422         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24423         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24424         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24425         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24426         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24427         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24428         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24429         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24430         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24431         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24432         GCC attribute 'pure'.
24433         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24434         'const'.
24435         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24436         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24437         u32_strwidth): Declare with GCC attribute 'pure'.
24439         Enable common subexpression optimization in GCC.
24440         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24441         (alphasort): Declare with GCC attribute 'pure'.
24442         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24443         (atoll): Declare with GCC attribute 'pure'.
24444         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24445         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24446         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24447         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24448         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24449         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24450         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24452 2012-03-24  Bruno Haible  <bruno@clisp.org>
24454         gnulib-tool: Avoid unintended error output from 'cmp'.
24455         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24456         "cmp -s", not "cmp > /dev/null".
24458 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24460         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24462         It's not just Automake versions < 1.9b that creates an empty
24463         pkgdatadir at installation time if pkgdata_DATA is specified
24464         to empty; modern automake versions do this as well, at least
24465         until automake 1.11.4 (not yet released at the moment of writing,
24466         but soon to appear).  That behaviour was generally considered a
24467         feature rather than a bug, at least until this discussion:
24468         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24470         See also automake bugs #10997 and #11030.
24472         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24473         reference to relevant automake bug numbers.
24474         (func_emit_tests_Makefile_am): Likewise.
24476 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24478         announce-gen: use Digest::SHA when possible
24479         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24480         back to Digest::SHA1 if necessary.
24482 2012-03-20  Jim Meyering  <meyering@redhat.com>
24484         tests: avoid gcc warnings about argv vs. const initializers
24485         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24486         warnings about discarding 'const' qualifier from pointer target type.
24487         * tests/test-posix_spawn2.c (main): Likewise.
24489 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24491         README-release: simplify slightly
24492         * top/README-release: Run "git checkout master" only once.
24494 2012-03-15  Mark Wielaard  <mark@klomp.org>
24496         git-merge-changelog: add specific example on how to use with hg.
24497         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24499 2012-03-18  Mark Wielaard  <mark@klomp.org>
24501         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24503 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24505         git-version-gen: don't let "prefix" envvar cause trouble
24506         * build-aux/git-version-gen (prefix): Initialize properly,
24507         so as not to use a value specified via the environment.
24508         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24510 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24512         regex: diagnose too-large repeat counts in EREs
24513         Previously, the code did not diagnose the too-large repeat count
24514         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24515         as if it were 'b\{1000000000}', which is unexpected.
24516         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24517         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24518         is a reasonable one for this problem.  Another option would be to
24519         create a new REG_OVERFLOW error for repeat counts that are too large.
24520         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24521         count is too large, so that the caller can distinguish the two cases.
24522         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24523         "Too large" return code, and that repeat counts are one example of this.
24525 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24527         doc: some glibc x32 integer width issues
24528         * doc/posix-headers/sys_types.texi (sys/types.h):
24529         * doc/posix-headers/time.texi (time.h):
24530         Mention that glibc x32 does not conform to POSIX in a couple of
24531         areas related to integer widths.
24533 2012-03-15  Bruno Haible  <bruno@clisp.org>
24535         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24536         * lib/fma.c (VOLATILE): New macro.
24537         (FUNC): Use it to work around a GCC compiler bug.
24539 2012-03-13  Bruno Haible  <bruno@clisp.org>
24541         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24542         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24543         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24544         REPLACE_HYPOTL to 1.
24545         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24547 2012-03-13  Bruno Haible  <bruno@clisp.org>
24549         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24550         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24551         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24552         REPLACE_REMAINDERL to 1.
24553         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24554         bug.
24556 2012-03-13  Bruno Haible  <bruno@clisp.org>
24558         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24559         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24560         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24561         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24562         too big rounding errors.
24563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24564         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24565         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24566         (Depends-on): Update conditions.
24567         * tests/test-sqrtl.c (my_ldexpl): New function.
24568         (main): Add test of a particular value.
24569         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24571 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24573         doc: Update timer_* platform portability notes.
24574         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24575         that always return ENOSYS.
24576         * doc/posix-functions/timer_delete.texi: Likewise.
24577         * doc/posix-functions/timer_gettime.texi: Likewise.
24578         * doc/posix-functions/timer_settime.texi: Likewise.
24580 2012-03-13  Bruno Haible  <bruno@clisp.org>
24582         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24583         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24584         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24585         REPLACE_CBRTL to 1.
24586         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24588 2012-03-13  Bruno Haible  <bruno@clisp.org>
24590         remainderl: Avoid compilation error on AIX >= 5.2.
24591         * lib/math.in.h (remainderl): Undefine macro from the system header.
24593 2012-03-13  Bruno Haible  <bruno@clisp.org>
24595         Avoid compilation errors with MSVC option -fp:strict.
24596         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24597         * lib/cbrtf.c: Likewise.
24598         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24600 2012-03-12  Bruno Haible  <bruno@clisp.org>
24602         uninorm: Don't crash in out-of-memory conditions.
24603         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24604         gracefully.
24605         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24606         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24608 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24610         quote: fix syntax-check
24611         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24612         also exports quote_quoting_options.
24614 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24616         Collapse list of copyright years to ranges.  See
24617         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24618         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24619         build-aux/csharpexec.sh.in, build-aux/gnupload,
24620         build-aux/install-reloc, build-aux/javacomp.sh.in,
24621         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24622         build-aux/move-if-change, build-aux/reloc-ldflags,
24623         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24625 2012-03-11  Bruno Haible  <bruno@clisp.org>
24627         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24628         * m4/log2f-ieee.m4: New file.
24629         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24630         whether log2f works with a minus zero argument. Replace it if not.
24631         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24632         (Depends-on): Add log2-ieee.
24633         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24634         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24636         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24637         * m4/log2-ieee.m4: New file.
24638         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24639         whether log2 works with a minus zero argument. Replace it if not.
24640         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24641         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24642         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24644         Tests for module 'log2l-ieee'.
24645         * modules/log2l-ieee-tests: New file.
24646         * tests/test-log2l-ieee.c: New file.
24648         New module 'log2l-ieee'.
24649         * modules/log2l-ieee: New file.
24651         Tests for module 'log2-ieee'.
24652         * modules/log2-ieee-tests: New file.
24653         * tests/test-log2-ieee.c: New file.
24655         New module 'log2-ieee'.
24656         * modules/log2-ieee: New file.
24658         Tests for module 'log2f-ieee'.
24659         * modules/log2f-ieee-tests: New file.
24660         * tests/test-log2f-ieee.c: New file.
24661         * tests/test-log2-ieee.h: New file.
24663         New module 'log2f-ieee'.
24664         * modules/log2f-ieee: New file.
24666 2012-03-11  Bruno Haible  <bruno@clisp.org>
24668         Tests for module 'log2l'.
24669         * modules/log2l-tests: New file.
24670         * tests/test-log2l.c: New file.
24672         New module 'log2l'.
24673         * lib/math.in.h (log2l): New declaration.
24674         * lib/log2l.c: New file.
24675         * m4/log2l.m4: New file.
24676         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24678         REPLACE_LOG2L.
24679         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24680         REPLACE_LOG2L.
24681         * modules/log2l: New file.
24682         * tests/test-math-c++.cc: Check the declaration of log2l.
24683         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24684         and OSF/1 problems.
24686 2012-03-11  Bruno Haible  <bruno@clisp.org>
24688         Tests for module 'log2f'.
24689         * modules/log2f-tests: New file.
24690         * tests/test-log2f.c: New file.
24692         New module 'log2f'.
24693         * lib/math.in.h (log2f): New declaration.
24694         * lib/log2f.c: New file.
24695         * m4/log2f.m4: New file.
24696         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24698         REPLACE_LOG2F.
24699         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24700         REPLACE_LOG2F.
24701         * modules/log2f: New file.
24702         * tests/test-math-c++.cc: Check the declaration of log2f.
24703         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24704         and OSF/1 and Cygwin problems.
24706 2012-03-11  Bruno Haible  <bruno@clisp.org>
24708         Tests for module 'log2'.
24709         * modules/log2-tests: New file.
24710         * tests/test-log2.c: New file.
24711         * tests/test-log2.h: New file.
24713         New module 'log2'.
24714         * lib/math.in.h (log2): New declaration.
24715         * lib/log2.c: New file.
24716         * m4/log2.m4: New file.
24717         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24719         REPLACE_LOG2.
24720         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24721         REPLACE_LOG2.
24722         * modules/log2: New file.
24723         * tests/test-math-c++.cc: Check the declaration of log2.
24724         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24725         and OSF/1 and Cygwin problems.
24727 2012-03-11  Bruno Haible  <bruno@clisp.org>
24729         exp2* tests: More tests.
24730         * tests/test-exp2.h (test_function): Test all integral arguments that
24731         don't need to overflow or denormalized numbers.
24732         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24733         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24734         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24736 2012-03-10  Bruno Haible  <bruno@clisp.org>
24738         log1pl-ieee: Work around test failure on AIX 7.1.
24739         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24741         log1pl-ieee: Work around test failure on IRIX 6.5.
24742         * m4/log1pl-ieee.m4: New file.
24743         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24744         test whether log1pl works with a minus zero argument. Replace it if
24745         not.
24746         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24748         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24749         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24750         (Depends-on): Update conditions.
24751         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24752         m4/signbit.m4.
24753         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24754         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24756         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24757         * m4/log1pf-ieee.m4: New file.
24758         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24759         test whether log1pf works with a minus zero argument. Replace it if
24760         not.
24761         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24762         m4/signbit.m4.
24763         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24764         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24766         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24767         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24768         (configure.ac): Require gl_FUNC_LOG1PF.
24770         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24771         * m4/log1p-ieee.m4: New file.
24772         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24773         whether log1p works with a minus zero argument. Replace it if not.
24774         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24776         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24777         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24778         (Depends-on): Update conditions.
24779         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24780         m4/signbit.m4.
24781         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24782         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24784         Tests for module 'log1pl-ieee'.
24785         * modules/log1pl-ieee-tests: New file.
24786         * tests/test-log1pl-ieee.c: New file.
24788         New module 'log1pl-ieee'.
24789         * modules/log1pl-ieee: New file.
24791         Tests for module 'log1p-ieee'.
24792         * modules/log1p-ieee-tests: New file.
24793         * tests/test-log1p-ieee.c: New file.
24795         New module 'log1p-ieee'.
24796         * modules/log1p-ieee: New file.
24798         Tests for module 'log1pf-ieee'.
24799         * modules/log1pf-ieee-tests: New file.
24800         * tests/test-log1pf-ieee.c: New file.
24801         * tests/test-log1p-ieee.h: New file.
24803         New module 'log1pf-ieee'.
24804         * modules/log1pf-ieee: New file.
24806 2012-03-10  Bruno Haible  <bruno@clisp.org>
24808         Tests for module 'log1pl'.
24809         * modules/log1pl-tests: New file.
24810         * tests/test-log1pl.c: New file.
24812         New module 'log1pl'.
24813         * lib/math.in.h (log1pl): New declaration.
24814         * lib/log1pl.c: New file.
24815         * m4/log1pl.m4: New file.
24816         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24818         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24819         * modules/log1pl: New file.
24820         * tests/test-math-c++.cc: Check the declaration of log1pl.
24821         * doc/posix-functions/log1pl.texi: Mention the new module.
24823 2012-03-10  Bruno Haible  <bruno@clisp.org>
24825         Tests for module 'log1pf'.
24826         * modules/log1pf-tests: New file.
24827         * tests/test-log1pf.c: New file.
24829         New module 'log1pf'.
24830         * lib/math.in.h (log1pf): New declaration.
24831         * lib/log1pf.c: New file.
24832         * m4/log1pf.m4: New file.
24833         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24835         REPLACE_LOG1PF.
24836         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24837         REPLACE_LOG1PF.
24838         * modules/log1pf: New file.
24839         * tests/test-math-c++.cc: Check the declaration of log1pf.
24840         * doc/posix-functions/log1pf.texi: Mention the new module.
24842 2012-03-10  Bruno Haible  <bruno@clisp.org>
24844         log1p tests: More tests.
24845         * tests/test-log1p.h: New file.
24846         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24847         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24848         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24849         (main): Invoke test_function.
24851         log1p: Provide replacement for Minix and MSVC.
24852         * lib/math.in.h (log1p): New declaration.
24853         * lib/log1p.c: New file.
24854         * m4/log1p.m4: New file.
24855         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24857         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24858         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24859         (Depends-on): Add math, isnand, log, round.
24860         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24861         HAVE_LOG1P is 0.
24862         * tests/test-math-c++.cc: Check the declaration of log1p.
24863         * doc/posix-functions/log1p.texi: Mention the replacement.
24865 2012-03-10  Bruno Haible  <bruno@clisp.org>
24867         math tests: Small simplification.
24868         * tests/test-exp.h (test_function): Use the same err_bound for
24869         'double' on platforms with sizeof (long double) == sizeof (double)
24870         than on platforms with sizeof (long double) > sizeof (double).
24871         * tests/test-exp2.h (test_function): Likewise.
24872         * tests/test-expm1.h (test_function): Likewise.
24873         * tests/test-log.h (test_function): Likewise.
24875 2012-03-10  Bruno Haible  <bruno@clisp.org>
24877         Fix some comments.
24878         * lib/expl.c: Fix an ambiguous comment.
24879         * lib/expm1.c: Likewise.
24880         * lib/expm1l.c: Likewise.
24881         * lib/exp2.c: Likewise.
24882         * lib/exp2l.c: Likewise.
24884 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24886         regex: allow inclusion of <regex.h> before <limits.h>
24887         Without this patch, portable programs had to include <limits.h> before
24888         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24889         I ran into this problem with a test version of GNU grep on Solaris 8.
24890         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24891         This is done conditionally so that this change can be merged
24892         back to glibc.
24893         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24894         using the included regex.
24896         fts: depend on fdopendir
24897         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24898         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24899         problem was introduced when fdopendir was split out.
24901 2012-03-10  Bruno Haible  <bruno@clisp.org>
24903         Remove unused variables.
24904         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24905         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24907 2012-03-10  Bruno Haible  <bruno@clisp.org>
24909         isnanf-nolibm: Fix last commit.
24910         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24912         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24913         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24915 2012-03-10  Bruno Haible  <bruno@clisp.org>
24917         logf-ieee: Work around test failure on NetBSD 5.1.
24918         * m4/logf-ieee.m4: New file.
24919         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24920         whether logf works with a negative argument. Replace it if not.
24921         * lib/logf.c (logf): For negative arguments, return NaN.
24922         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24923         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24924         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24926         logf-ieee: Work around test failure on Solaris 9.
24927         * modules/logf-ieee (Depends-on): Add log-ieee.
24928         (configure.ac): Require gl_FUNC_LOGF.
24930         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24931         * m4/log-ieee.m4: New file.
24932         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24933         log works with a negative argument. Replace it if not.
24934         * lib/log.c (log): For negative arguments, return NaN.
24935         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24936         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24937         * doc/posix-functions/log.texi: Mention the log-ieee module.
24939         Tests for module 'logl-ieee'.
24940         * modules/logl-ieee-tests: New file.
24941         * tests/test-logl-ieee.c: New file.
24943         New module 'logl-ieee'.
24944         * modules/logl-ieee: New file.
24946         Tests for module 'log-ieee'.
24947         * modules/log-ieee-tests: New file.
24948         * tests/test-log-ieee.c: New file.
24950         New module 'log-ieee'.
24951         * modules/log-ieee: New file.
24953         Tests for module 'logf-ieee'.
24954         * modules/logf-ieee-tests: New file.
24955         * tests/test-logf-ieee.c: New file.
24956         * tests/test-log-ieee.h: New file.
24958         New module 'logf-ieee'.
24959         * modules/logf-ieee: New file.
24961 2012-03-10  Bruno Haible  <bruno@clisp.org>
24963         log: Fix bug introduced on 2012-03-09.
24964         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24966 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24968         timer-time: link explicitly with pthreads on glibc
24969         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24970         to support static linking, when newer glibc is
24971         detected, as that contains pthread emulation of
24972         POSIX timer functions where required.
24973         * modules/timer-time: Depend on threadlib to
24974         pull in the appropriate library to link.
24976 2012-03-10  Bruno Haible  <bruno@clisp.org>
24978         log* tests: More tests.
24979         * tests/test-log.h: New file.
24980         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24981         (main): Invoke test_function.
24982         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24983         (main): Invoke test_function.
24984         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24985         (main): Invoke test_function.
24986         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24987         tests/randomd.c.
24988         (Makefile.am): Add randomd.c to test_log_SOURCES.
24989         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24990         tests/randomf.c.
24991         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24992         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24993         tests/randoml.c.
24994         (Depends-on): Add 'float'.
24995         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24997 2012-03-09  Bruno Haible  <bruno@clisp.org>
24999         logl: Work around OSF/1 5.1 bug.
25000         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
25001         * lib/logl.c (logl): If logl exists, use it and provide just the
25002         workaround.
25003         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
25004         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
25005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
25006         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
25007         * modules/logl (configure.ac): Consider REPLACE_LOGL.
25008         (Depends-on): Update conditions.
25009         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
25011 2012-03-09  Bruno Haible  <bruno@clisp.org>
25013         logf: Work around OSF/1 5.1 bug.
25014         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
25015         * lib/logf.c (logf): If logf exists, use it and provide just the
25016         workaround.
25017         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
25018         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
25019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
25020         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
25021         * modules/logf (configure.ac): Consider REPLACE_LOGF.
25022         (Depends-on): Update conditions.
25023         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
25025 2012-03-09  Bruno Haible  <bruno@clisp.org>
25027         log: Work around OSF/1 5.1 bug.
25028         * lib/math.in.h (log): New declaration.
25029         * lib/log.c: New file.
25030         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
25031         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
25032         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
25033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
25034         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
25035         * modules/log (Files): Add lib/log.c.
25036         (Depends-on): Add math.
25037         (configure.ac): If REPLACE_LOG is 1, compile an override.
25038         * tests/test-math-c++.cc: Check the declaration of log.
25039         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
25041 2012-03-09  Jim Meyering  <meyering@redhat.com>
25043         readtokens.c: adjust wording in a comment
25044         * lib/readtokens.c: Insert omitted "that" in a comment.
25046 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25048         modechange: add notations +40, 00440, etc.
25049         * lib/modechange.c (mode_compile): Support new notations
25050         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
25052 2012-03-08  Bruno Haible  <bruno@clisp.org>
25054         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
25055         * m4/exp2l-ieee.m4: New file.
25056         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
25057         test whether exp2l works with a NaN argument and with a negative
25058         infinity argument. Replace it if not.
25059         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
25060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
25061         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
25062         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
25063         (Depends-on): Update conditions.
25064         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
25065         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
25066         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
25068         Tests for module 'exp2l-ieee'.
25069         * modules/exp2l-ieee-tests: New file.
25070         * tests/test-exp2l-ieee.c: New file.
25072         New module 'exp2l-ieee'.
25073         * modules/exp2l-ieee: New file.
25075         Tests for module 'exp2-ieee'.
25076         * modules/exp2-ieee-tests: New file.
25077         * tests/test-exp2-ieee.c: New file.
25079         New module 'exp2-ieee'.
25080         * modules/exp2-ieee: New file.
25082         Tests for module 'exp2f-ieee'.
25083         * modules/exp2f-ieee-tests: New file.
25084         * tests/test-exp2f-ieee.c: New file.
25085         * tests/test-exp2-ieee.h: New file.
25087         New module 'exp2f-ieee'.
25088         * modules/exp2f-ieee: New file.
25090 2012-03-08  Bruno Haible  <bruno@clisp.org>
25092         Tests for module 'exp2l'.
25093         * modules/exp2l-tests: New file.
25094         * tests/test-exp2l.c: New file.
25096         New module 'exp2l'.
25097         * lib/math.in.h (exp2l): New declaration.
25098         * lib/exp2l.c: New file.
25099         * lib/expl-table.c: New file, extracted from lib/expl.c.
25100         * lib/expl.c (gl_expl_table): New declaration.
25101         (expl): Remove expl_table. Update reference.
25102         * m4/exp2l.m4: New file.
25103         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
25104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
25105         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
25106         * modules/exp2l: New file.
25107         * modules/expl (Files): Add lib/expl-table.c.
25108         (configure.ac): Compile also expl-table.c.
25109         * tests/test-math-c++.cc: Check the declaration of exp2l.
25110         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
25111         problem.
25113 2012-03-08  Bruno Haible  <bruno@clisp.org>
25115         Tests for module 'exp2f'.
25116         * modules/exp2f-tests: New file.
25117         * tests/test-exp2f.c: New file.
25119         New module 'exp2f'.
25120         * lib/math.in.h (exp2f): New declaration.
25121         * lib/exp2f.c: New file.
25122         * m4/exp2f.m4: New file.
25123         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
25124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
25125         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
25126         * modules/exp2f: New file.
25127         * tests/test-math-c++.cc: Check the declaration of exp2f.
25128         * doc/posix-functions/exp2f.texi: Mention the new module and the
25129         IRIX problem.
25131 2012-03-08  Bruno Haible  <bruno@clisp.org>
25133         Tests for module 'exp2'.
25134         * modules/exp2-tests: New file.
25135         * tests/test-exp2.c: New file.
25136         * tests/test-exp2.h: New file.
25138         New module 'exp2'.
25139         * lib/math.in.h (exp2): New declaration.
25140         * lib/exp2.c: New file.
25141         * m4/exp2.m4: New file.
25142         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
25143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
25144         REPLACE_EXP2.
25145         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
25146         REPLACE_EXP2.
25147         * modules/exp2: New file.
25148         * tests/test-math-c++.cc: Check the declaration of exp2.
25149         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
25150         and OpenBSD problems.
25152 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25154         savedir: fix comment typo
25155         * lib/savedir.c (savedirstream): Fix typo in comment.
25157 2012-03-08  Bruno Haible  <bruno@clisp.org>
25159         test-readtokens.c: use const; remove unwarranted cast
25160         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
25162 2012-03-08  Bruno Haible  <bruno@clisp.org>
25164         fmal: Avoid compilation error on AIX.
25165         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
25166         AIX 5.2..7.1.
25168 2012-03-08  Bruno Haible  <bruno@clisp.org>
25170         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
25171         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
25172         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
25173         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
25174         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
25175         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
25176         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
25178 2012-03-08  Bruno Haible  <bruno@clisp.org>
25180         remainderf: Override buggy system function on IRIX 6.5.
25181         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
25182         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
25183         when it exists.
25184         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
25186 2012-03-08  Jim Meyering  <meyering@redhat.com>
25188         test-readtokens.c: avoid const-related compilation warnings
25189         * tests/test-readtokens.c: Avoid const-related compilation warnings.
25191 2012-03-07  Jim Meyering  <meyering@redhat.com>
25192             Bruno Haible  <bruno@clisp.org>
25194         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
25195         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
25196         tests/randomd.c.
25197         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
25198         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
25199         tests/randoml.c.
25200         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
25202 2012-03-07  Bruno Haible  <bruno@clisp.org>
25204         expm1l: Avoid compilation error on AIX.
25205         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
25206         AIX 5.2..7.1.
25208 2012-03-07  Bruno Haible  <bruno@clisp.org>
25210         expm1l: Don't override undeclared system function on IRIX 6.5.
25211         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
25212         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
25213         it exists. Set HAVE_DECL_EXPM1L.
25214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
25215         HAVE_EXPM1L.
25216         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
25217         HAVE_EXPM1L.
25218         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
25220 2012-03-07  Bruno Haible  <bruno@clisp.org>
25222         remainderl: Don't override undeclared system function on IRIX 6.5.
25223         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
25224         HAVE_REMAINDERL.
25225         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
25226         declared when it exists. Set HAVE_DECL_REMAINDERL.
25227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
25228         not HAVE_REMAINDERL.
25229         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
25230         HAVE_REMAINDERL.
25231         * doc/posix-functions/remainderl.texi: Mention missing declaration
25232         problem.
25234 2012-03-07  Bruno Haible  <bruno@clisp.org>
25236         rintf: Don't override undeclared system function on IRIX 6.5.
25237         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
25238         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
25239         exists. Set HAVE_DECL_RINTF.
25240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
25241         HAVE_RINTF.
25242         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
25243         HAVE_RINTF.
25244         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
25246 2012-03-07  Bruno Haible  <bruno@clisp.org>
25248         roundl: Avoid compilation error on AIX.
25249         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
25250         AIX 5.2..7.1.
25252 2012-03-07  Bruno Haible  <bruno@clisp.org>
25254         roundl: Don't override undeclared system function on IRIX 6.5.
25255         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
25256         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
25257         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25258         * modules/roundl (configure.ac): For replacement code, test
25259         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25260         (Depends-on): Update conditions.
25261         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
25263 2012-03-07  Bruno Haible  <bruno@clisp.org>
25265         roundf: Don't override undeclared system function on IRIX 6.5.
25266         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
25267         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
25268         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25269         * modules/roundf (configure.ac): For replacement code, test
25270         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25271         (Depends-on): Update conditions.
25272         * modules/roundf-ieee (Depends-on): Update conditions.
25273         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
25275 2012-03-07  Bruno Haible  <bruno@clisp.org>
25277         round: Don't override undeclared system function on IRIX 6.5.
25278         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
25279         argument.
25280         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
25281         also when it is not declared. Set HAVE_ROUND. For replacement code,
25282         test HAVE_ROUND, not HAVE_DECL_ROUND.
25283         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
25284         not HAVE_DECL_ROUND.
25285         (Depends-on): Update conditions.
25286         * modules/round-ieee (Depends-on): Update conditions.
25287         * doc/posix-functions/round.texi: Mention the IRIX problem.
25289 2012-03-07  Bruno Haible  <bruno@clisp.org>
25291         copysignf: Don't override undeclared system function on IRIX 6.5.
25292         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
25293         HAVE_COPYSIGNF.
25294         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
25295         declared when it exists. Set HAVE_DECL_COPYSIGNF.
25296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
25297         not HAVE_COPYSIGNF.
25298         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
25299         HAVE_COPYSIGNF.
25300         * doc/posix-functions/copysignf.texi: Mention missing declaration
25301         problem.
25303 2012-03-07  Jim Meyering  <meyering@redhat.com>
25305         readtokens: add tests
25306         * modules/readtokens-tests: New file.
25307         * tests/test-readtokens.c: New file.
25309 2012-03-07  Jim Meyering  <meyering@redhat.com>
25311         quotearg: the module must now include quote.h
25312         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
25313         So must the module.
25314         * modules/quotearg (Files): Add quote.h.
25316 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25318         readtokens: avoid core dumps with unusual calling patterns
25319         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
25320         * lib/readtokens.c: Include limits.h.
25321         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
25322         (readtoken): Don't cache the delimiters; the cache code was buggy
25323         if !delim && saved_delim, or if the new n_delim differs from the old.
25324         Also, it wasn't thread-safe.
25326 2012-03-07  Bruno Haible  <bruno@clisp.org>
25328         quote: Adhere to common module description layout.
25329         * modules/quote (Makefile.am): Add back empty section.
25331 2012-03-06  Akim Demaille  <demaille@gostai.com>
25333         quote: fuse into quotearg
25334         This patch is made for the benefit of Bison.
25335         quote does not leave the choice of the quoting style to the user.
25336         quoting_style provides poor customizability, yet quoting_options,
25337         which is very rich, is hidden inside quotearg.c.  So in order to
25338         allow quote customization, move its implementation to quotearg.c.
25339         * lib/quote.c: Remove.
25340         * modules/quote: Adjust.
25341         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25342         warning: provide all the members of literal structs.
25343         (quote_quoting_options): New.
25344         (quote, quote_n): Import implementation from quote.c.
25345         * lib/quote.h: Import the comments from quote.c.
25346         (quote_quoting_options): New.
25348 2012-03-06  Bruno Haible  <bruno@clisp.org>
25350         Tests for module 'expm1l-ieee'.
25351         * modules/expm1l-ieee-tests: New file.
25352         * tests/test-expm1l-ieee.c: New file.
25354         New module 'expm1l-ieee'.
25355         * modules/expm1l-ieee: New file.
25357         Tests for module 'expm1f-ieee'.
25358         * modules/expm1f-ieee-tests: New file.
25359         * tests/test-expm1f-ieee.c: New file.
25361         New module 'expm1f-ieee'.
25362         * modules/expm1f-ieee: New file.
25364         Tests for module 'expm1-ieee'.
25365         * modules/expm1-ieee-tests: New file.
25366         * tests/test-expm1-ieee.c: New file.
25367         * tests/test-expm1-ieee.h: New file.
25369         New module 'expm1-ieee'.
25370         * modules/expm1-ieee: New file.
25371         * m4/expm1-ieee.m4: New file.
25372         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25373         whether expm1 works with a minus zero argument. Replace it if not.
25374         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25376         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25377         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25378         (Depends-on): Update conditions.
25379         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25380         AIX problem.
25382 2012-03-06  Bruno Haible  <bruno@clisp.org>
25384         Work around expm1f bug on IRIX 6.5.
25385         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25386         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25387         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25388         not work.
25389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25390         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25391         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25392         (Depends-on): Update conditions.
25393         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25395 2012-03-06  Bruno Haible  <bruno@clisp.org>
25397         Tests for module 'expm1l'.
25398         * modules/expm1l-tests: New file.
25399         * tests/test-expm1l.c: New file.
25401         New module 'expm1l'.
25402         * lib/math.in.h (expm1l): New declaration.
25403         * lib/expm1l.c: New file.
25404         * m4/expm1l.m4: New file.
25405         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25407         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25408         * modules/expm1l: New file.
25409         * tests/test-math-c++.cc: Check the declaration of expm1l.
25410         * doc/posix-functions/expm1l.texi: Mention the new module.
25412 2012-03-06  Bruno Haible  <bruno@clisp.org>
25414         Tests for module 'expm1f'.
25415         * modules/expm1f-tests: New file.
25416         * tests/test-expm1f.c: New file.
25418         New module 'expm1f'.
25419         * lib/math.in.h (expm1f): New declaration.
25420         * lib/expm1f.c: New file.
25421         * m4/expm1f.m4: New file.
25422         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25424         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25425         * modules/expm1f: New file.
25426         * tests/test-math-c++.cc: Check the declaration of expm1f.
25427         * doc/posix-functions/expm1f.texi: Mention the new module.
25429 2012-03-06  Bruno Haible  <bruno@clisp.org>
25431         Tests for module 'expm1'.
25432         * modules/expm1-tests: New file.
25433         * tests/test-expm1.c: New file.
25434         * tests/test-expm1.h: New file.
25436         New module 'expm1'.
25437         * lib/math.in.h (expm1): New declaration.
25438         * lib/expm1.c: New file.
25439         * m4/expm1.m4: New file.
25440         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25442         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25443         * modules/expm1: New file.
25444         * tests/test-math-c++.cc: Check the declaration of expm1.
25445         * doc/posix-functions/expm1.texi: Mention the new module.
25447 2012-03-06  Bruno Haible  <bruno@clisp.org>
25449         math: Ensure declarations of math functions.
25450         * modules/acosf (Depends-on): Add 'extensions'.
25451         * modules/asinf (Depends-on): Likewise.
25452         * modules/atan2f (Depends-on): Likewise.
25453         * modules/atanf (Depends-on): Likewise.
25454         * modules/cbrt (Depends-on): Likewise.
25455         * modules/cbrtf (Depends-on): Likewise.
25456         * modules/cbrtl (Depends-on): Likewise.
25457         * modules/copysignf (Depends-on): Likewise.
25458         * modules/copysignl (Depends-on): Likewise.
25459         * modules/cosf (Depends-on): Likewise.
25460         * modules/coshf (Depends-on): Likewise.
25461         * modules/expf (Depends-on): Likewise.
25462         * modules/fabsf (Depends-on): Likewise.
25463         * modules/fabsl (Depends-on): Likewise.
25464         * modules/fmaf (Depends-on): Likewise.
25465         * modules/fmal (Depends-on): Likewise.
25466         * modules/fmodf (Depends-on): Likewise.
25467         * modules/fmodl (Depends-on): Likewise.
25468         * modules/frexpf (Depends-on): Likewise.
25469         * modules/frexpl (Depends-on): Likewise.
25470         * modules/hypot (Depends-on): Likewise.
25471         * modules/hypotf (Depends-on): Likewise.
25472         * modules/hypotl (Depends-on): Likewise.
25473         * modules/ldexpf (Depends-on): Likewise.
25474         * modules/ldexpl (Depends-on): Likewise.
25475         * modules/log10f (Depends-on): Likewise.
25476         * modules/log10l (Depends-on): Likewise.
25477         * modules/log1p (Depends-on): Likewise.
25478         * modules/logb (Depends-on): Likewise.
25479         * modules/logf (Depends-on): Likewise.
25480         * modules/modff (Depends-on): Likewise.
25481         * modules/modfl (Depends-on): Likewise.
25482         * modules/powf (Depends-on): Likewise.
25483         * modules/remainderf (Depends-on): Likewise.
25484         * modules/remainderl (Depends-on): Likewise.
25485         * modules/rintf (Depends-on): Likewise.
25486         * modules/rintl (Depends-on): Likewise.
25487         * modules/sinf (Depends-on): Likewise.
25488         * modules/sinhf (Depends-on): Likewise.
25489         * modules/sqrtf (Depends-on): Likewise.
25490         * modules/tanf (Depends-on): Likewise.
25491         * modules/tanhf (Depends-on): Likewise.
25492         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25493         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25494         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25495         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25496         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25497         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25498         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25499         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25500         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25501         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25502         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25503         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25504         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25505         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25506         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25507         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25508         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25509         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25510         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25511         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25512         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25513         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25514         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25515         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25516         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25517         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25518         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25519         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25520         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25521         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25522         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25523         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25524         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25525         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25526         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25527         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25528         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25529         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25530         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25531         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25532         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25534 2012-03-06  Bruno Haible  <bruno@clisp.org>
25536         math: Update module names in warnings.
25537         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25538         tanl): Use specific module name in warn-on-use warning.
25540 2012-03-06  Bruno Haible  <bruno@clisp.org>
25542         expl: Simplify computation.
25543         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25545 2012-03-05  Bruno Haible  <bruno@clisp.org>
25547         exp* tests: More tests.
25548         * tests/test-exp.h: New file.
25549         * tests/test-exp.c: Include <float.h> and test-exp.h.
25550         (main): Invoke test_function.
25551         * tests/test-expf.c: Include <float.h> and test-exp.h.
25552         (main): Invoke test_function.
25553         * tests/test-expl.c: Include <float.h> and test-exp.h.
25554         (main): Invoke test_function.
25555         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25556         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25557         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25558         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25559         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25560         (Depends-on): Add 'float'.
25561         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25563         expl: Fix precision of computed result.
25564         * lib/expl.c: Completely rewritten.
25565         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25566         (Maintainer): Add me.
25567         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25569 2012-03-05  Bruno Haible  <bruno@clisp.org>
25571         cbrt* tests: More tests.
25572         * tests/test-cbrt.h: New file.
25573         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25574         (main): Invoke test_function.
25575         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25576         (main): Invoke test_function.
25577         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25578         (main): Invoke test_function.
25579         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25580         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25581         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25582         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25583         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25584         (Depends-on): Add 'float'.
25585         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25587 2012-03-05  Bruno Haible  <bruno@clisp.org>
25589         hypot* tests: More tests.
25590         * tests/test-hypot.h: New file, partially extracted from
25591         tests/test-hypotl.c.
25592         * tests/test-hypot.c: Include test-hypot.h.
25593         (main): Invoke test_function.
25594         * tests/test-hypotf.c: Include test-hypot.h.
25595         (main): Invoke test_function.
25596         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25597         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25598         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25599         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25600         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25601         tests/randomf.c.
25602         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25603         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25604         tests/randoml.c.
25605         (Depends-on): Add 'fpucw', 'float'.
25606         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25608 2012-03-05  Bruno Haible  <bruno@clisp.org>
25610         fpucw: Doc about FreeBSD.
25611         * lib/fpucw.h: Mention FreeBSD in comments.
25613 2012-03-04  Bruno Haible  <bruno@clisp.org>
25615         sqrt* tests: More tests.
25616         * tests/test-sqrt.h: New file.
25617         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25618         (main): Invoke test_function.
25619         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25620         (main): Invoke test_function.
25621         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25622         (main): Invoke test_function.
25623         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25624         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25625         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25626         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25627         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25628         (Depends-on): Add 'float'.
25629         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25631 2012-03-04  Bruno Haible  <bruno@clisp.org>
25633         remainder* tests: More tests.
25634         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25635         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25636         (main): Invoke test_function.
25637         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25638         (main): Invoke test_function.
25639         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25640         (main): Invoke test_function.
25641         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25642         tests/randomd.c.
25643         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25644         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25645         tests/randomf.c.
25646         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25647         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25648         tests/randoml.c.
25649         (Depends-on): Add 'float'.
25650         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25652 2012-03-04  Bruno Haible  <bruno@clisp.org>
25654         remainder, remainderf, remainderl: Fix computation for large quotients.
25655         * lib/remainder.c: Completely rewritten.
25656         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25657         USE_FLOAT.
25658         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25659         USE_LONG_DOUBLE.
25660         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25661         isnand, isinf. Remove round, fma.
25662         * modules/remainderf (Files): Add lib/remainder.c.
25663         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25664         Remove roundf, fmaf.
25665         * modules/remainderl (Files): Add lib/remainder.c.
25666         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25667         isinf. Remove roundl, fmal.
25668         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25669         REMAINDER_LIBM.
25670         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25671         REMAINDERF_LIBM.
25672         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25673         REMAINDERL_LIBM.
25675 2012-03-04  Bruno Haible  <bruno@clisp.org>
25677         fmod* tests: More tests.
25678         * tests/test-fmod.h (my_ldexp): New function.
25679         (test_function): Reduce amount of random numbers to test. Add tests
25680         of very large quotients x / y.
25681         * tests/test-fmod.c (MAX_EXP): New macro.
25682         * tests/test-fmodf.c (MAX_EXP): Likewise.
25683         * tests/test-fmodl.c (MAX_EXP): Likewise.
25685 2012-03-04  Bruno Haible  <bruno@clisp.org>
25687         fmod, fmodl: Fix computation for large quotients x / y.
25688         * lib/fmod.c: Completely rewritten.
25689         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25690         USE_LONG_DOUBLE.
25691         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25692         isnand. Remove fma.
25693         * modules/fmodl (Files): Add lib/fmod.c.
25694         (Depends-on): Add float, isfinite, signbit, fabsl,
25695         frexpl, ldexpl, isnanl. Remove fma.
25696         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25697         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25699 2012-03-03  Bruno Haible  <bruno@clisp.org>
25701         fmod* tests: More tests.
25702         * tests/test-fmod.h: New file.
25703         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25704         (main): Invoke test_function.
25705         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25706         (main): Invoke test_function.
25707         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25708         (main): Invoke test_function.
25709         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25710         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25711         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25712         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25713         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25714         (Depends-on): Add 'float'.
25715         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25717 2012-03-03  Bruno Haible  <bruno@clisp.org>
25719         rint* tests: More tests.
25720         * tests/test-rint.h: New file, partially extracted from
25721         tests/test-rintl.c.
25722         * tests/test-rint.c: Include test-rint.h.
25723         (main): Invoke test_function.
25724         * tests/test-rintf.c: Include test-rint.h.
25725         (main): Invoke test_function.
25726         * tests/test-rintl.c: Include test-rint.h.
25727         (main): Invoke test_function.
25728         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25729         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25730         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25731         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25732         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25733         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25735 2012-03-03  Bruno Haible  <bruno@clisp.org>
25737         modf* tests: More tests.
25738         * tests/test-modf.h: New file.
25739         * tests/test-modf.c: Include <float.h> and test-modf.h.
25740         (main): Invoke test_function.
25741         * tests/test-modff.c: Include <float.h> and test-modf.h.
25742         (main): Invoke test_function.
25743         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25744         (main): Invoke test_function.
25745         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25746         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25747         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25748         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25749         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25750         (Depends-on): Add 'float'.
25751         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25753 2012-03-03  Bruno Haible  <bruno@clisp.org>
25755         fabs* tests: More tests.
25756         * tests/test-fabs.h: New file, partially extracted from
25757         tests/test-fabsl.c.
25758         * tests/test-fabs.c (RANDOM): New macro.
25759         * tests/test-fabsf.c (RANDOM): New macro.
25760         * tests/test-fabsl.c (RANDOM): New macro.
25761         * modules/fabs-tests (Files): Add tests/randomd.c.
25762         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25763         * modules/fabsf-tests (Files): Add tests/randomf.c.
25764         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25765         * modules/fabsl-tests (Files): Add tests/randoml.c.
25766         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25768 2012-03-03  Bruno Haible  <bruno@clisp.org>
25770         ldexp* tests: More tests.
25771         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25772         * tests/test-ldexp.c (RANDOM): New macro.
25773         * tests/test-ldexpf.c (RANDOM): New macro.
25774         * tests/test-ldexpl.c (RANDOM): New macro.
25775         * modules/ldexp-tests (Files): Add tests/randomd.c.
25776         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25777         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25778         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25779         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25780         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25782 2012-03-03  Bruno Haible  <bruno@clisp.org>
25784         frexp* tests: More tests.
25785         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25786         * tests/test-frexp.c (RANDOM): New macro.
25787         * tests/test-frexpf.c (RANDOM): New macro.
25788         * tests/test-frexpl.c (RANDOM): New macro.
25789         * modules/frexp-tests (Files): Add tests/randomd.c.
25790         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25791         * modules/frexpf-tests (Files): Add tests/randomf.c.
25792         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25793         * modules/frexpl-tests (Files): Add tests/randoml.c.
25794         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25796 2012-03-03  Bruno Haible  <bruno@clisp.org>
25798         Support for pseudo-random numbers in tests.
25799         * tests/randomf.c: New file.
25800         * tests/randomd.c: New file.
25801         * tests/randoml.c: New file.
25802         * tests/macros.h (randomf, randomd, randoml): New declarations.
25804 2012-03-03  Bruno Haible  <bruno@clisp.org>
25806         frexp* tests: Refactor.
25807         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25808         * tests/test-frexp.c: Include and use it.
25809         * tests/test-frexpf.c: Likewise.
25810         * tests/test-frexpl.c: Likewise.
25811         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25812         * modules/frexpf-tests (Files): Likewise.
25813         * modules/frexpl-tests (Files): Likewise.
25815 2012-03-02  Jim Meyering  <meyering@redhat.com>
25817         maint: don't specify XZ_OPT=-9ev in dist-related rule
25818         Using xz's -9 option is warranted only if you have a very large
25819         tarball (see xz's documentation for the sizes vs. presets), and
25820         requires 64MiB of memory at decompression time.
25821         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25822         Automake's default of just "-e" is fine.  Override on a
25823         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25825 2012-03-01  Eric Blake  <eblake@redhat.com>
25827         maint.mk: allow announcement for non-gnulib project
25828         * maint.mk (announcement): Skip gnulib version if not used.
25830 2012-03-01  Jim Meyering  <meyering@redhat.com>
25832         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25833         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25834         envvar settings cannot interfere.  Otherwise, setting envvars like
25835         prohibit=foo require=bar, etc. would cause spurious test failures.
25837 2012-03-01  Eric Blake  <eblake@redhat.com>
25839         maint.mk: add per-line exclusions to prohibitions
25840         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25841         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25842         (sc_const_long_option): Use it.
25844 2012-03-01  Bruno Haible  <bruno@clisp.org>
25846         Tests for module 'expl-ieee'.
25847         * modules/expl-ieee-tests: New file.
25848         * tests/test-expl-ieee.c: New file.
25850         New module 'expl-ieee'.
25851         * modules/expl-ieee: New file.
25853         Tests for module 'exp-ieee'.
25854         * modules/exp-ieee-tests: New file.
25855         * tests/test-exp-ieee.c: New file.
25857         New module 'exp-ieee'.
25858         * modules/exp-ieee: New file.
25860         Tests for module 'expf-ieee'.
25861         * modules/expf-ieee-tests: New file.
25862         * tests/test-expf-ieee.c: New file.
25863         * tests/test-exp-ieee.h: New file.
25865         New module 'expf-ieee'.
25866         * modules/expf-ieee: New file.
25868 2012-02-29  Bruno Haible  <bruno@clisp.org>
25870         cbrtl-ieee: Work around test failure on IRIX 6.5.
25871         * m4/cbrtl-ieee.m4: New file.
25872         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25873         test whether cbrtl works with a minus zero argument. Replace it if not.
25874         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25876         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25877         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25878         (Depends-on): Update conditions.
25879         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25880         m4/signbit.m4.
25881         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25882         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25883         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25885         Tests for module 'cbrtl-ieee'.
25886         * modules/cbrtl-ieee-tests: New file.
25887         * tests/test-cbrtl-ieee.c: New file.
25889         New module 'cbrtl-ieee'.
25890         * modules/cbrtl-ieee: New file.
25892         Tests for module 'cbrt-ieee'.
25893         * modules/cbrt-ieee-tests: New file.
25894         * tests/test-cbrt-ieee.c: New file.
25896         New module 'cbrt-ieee'.
25897         * modules/cbrt-ieee: New file.
25899         Tests for module 'cbrtf-ieee'.
25900         * modules/cbrtf-ieee-tests: New file.
25901         * tests/test-cbrtf-ieee.c: New file.
25902         * tests/test-cbrt-ieee.h: New file.
25904         New module 'cbrtf-ieee'.
25905         * modules/cbrtf-ieee: New file.
25907 2012-02-29  Bruno Haible  <bruno@clisp.org>
25909         cbrtf: Work around bug in IRIX 6.5 system function.
25910         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25911         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25912         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25913         work.
25914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25915         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25916         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25917         (Depends-on): Update conditions.
25918         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25920 2012-02-29  Bruno Haible  <bruno@clisp.org>
25922         Tests for module 'cbrtl'.
25923         * modules/cbrtl-tests: New file.
25924         * tests/test-cbrtl.c: New file.
25926         New module 'cbrtl'.
25927         * lib/math.in.h (cbrtl): New declaration.
25928         * lib/cbrtl.c: New file.
25929         * m4/cbrtl.m4: New file.
25930         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25932         HAVE_DECL_CBRTL.
25933         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25934         HAVE_DECL_CBRTL.
25935         * modules/cbrtl: New file.
25936         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25937         * doc/posix-functions/cbrtl.texi: Mention the new module.
25939 2012-02-29  Bruno Haible  <bruno@clisp.org>
25941         Tests for module 'cbrtf'.
25942         * modules/cbrtf-tests: New file.
25943         * tests/test-cbrtf.c: New file.
25945         New module 'cbrtf'.
25946         * lib/math.in.h (cbrtf): New declaration.
25947         * lib/cbrtf.c: New file.
25948         * m4/cbrtf.m4: New file.
25949         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25951         HAVE_DECL_CBRTF.
25952         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25953         HAVE_DECL_CBRTF.
25954         * modules/cbrtf: New file.
25955         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25956         * doc/posix-functions/cbrtf.texi: Mention the new module.
25958 2012-02-29  Bruno Haible  <bruno@clisp.org>
25960         cbrt: Provide replacement on MSVC and Minix.
25961         * lib/math.in.h (cbrt): New declaration.
25962         * lib/cbrt.c: New file.
25963         * m4/cbrt.m4: New file.
25964         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25966         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25967         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25968         (Depends-on): Add dependencies.
25969         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25970         * tests/test-math-c++.cc: Check the declaration of cbrt.
25971         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25972         replacement.
25974 2012-02-29  Bruno Haible  <bruno@clisp.org>
25976         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25977         * m4/hypotl-ieee.m4: New file.
25978         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25979         test whether hypotl works with mixed NaN and Infinity arguments.
25980         Replace it if not.
25981         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25983         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25984         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25985         (Depends-on): Update conditions.
25986         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25987         (Depends-on): Add hypot-ieee.
25988         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25989         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25991         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25992         * m4/hypotf-ieee.m4: New file.
25993         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25994         test whether hypotf works with mixed NaN and Infinity arguments.
25995         Replace it if not.
25996         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25997         (Depends-on): Add hypot-ieee.
25998         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25999         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
26001         hypot-ieee: Work around test failure on OSF/1 and native Windows.
26002         * lib/math.in.h (hypot): New declaration.
26003         * lib/hypot.c: New file.
26004         * m4/hypot-ieee.m4: New file.
26005         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
26006         whether hypot works with mixed NaN and Infinity arguments. Replace it
26007         if not.
26008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
26009         REPLACE_HYPOT.
26010         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
26011         * modules/hypot (Files): Add lib/hypot.c.
26012         (Depends-on): Add dependencies.
26013         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
26014         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
26015         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
26016         * tests/test-math-c++.cc: Check the declaration of hypot.
26017         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
26019         Tests for module 'hypotl-ieee'.
26020         * modules/hypotl-ieee-tests: New file.
26021         * tests/test-hypotl-ieee.c: New file.
26023         New module 'hypotl-ieee'.
26024         * modules/hypotl-ieee: New file.
26026         Tests for module 'hypot-ieee'.
26027         * modules/hypot-ieee-tests: New file.
26028         * tests/test-hypot-ieee.c: New file.
26030         New module 'hypot-ieee'.
26031         * modules/hypot-ieee: New file.
26033         Tests for module 'hypotf-ieee'.
26034         * modules/hypotf-ieee-tests: New file.
26035         * tests/test-hypotf-ieee.c: New file.
26036         * tests/test-hypot-ieee.h: New file.
26038         New module 'hypotf-ieee'.
26039         * modules/hypotf-ieee: New file.
26041 2012-02-29  Bruno Haible  <bruno@clisp.org>
26043         Remove unused variables.
26044         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
26045         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
26046         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
26047         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
26049 2012-02-29  Eric Blake  <eblake@redhat.com>
26051         termios: fix pid_t always, not just for tcgetsid
26052         * doc/posix-headers/termios.texi (termios.h): Mention problem.
26053         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
26054         just when building tcgetsid.
26056 2012-02-29  Bruno Haible  <bruno@clisp.org>
26058         Tests for module 'hypotl'.
26059         * modules/hypotl-tests: New file.
26060         * tests/test-hypotl.c: New file.
26062         New module 'hypotl'.
26063         * lib/math.in.h (hypotl): New declaration.
26064         * lib/hypotl.c: New file.
26065         * m4/hypotl.m4: New file.
26066         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
26068         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
26069         * modules/hypotl: New file.
26070         * tests/test-math-c++.cc: Check the hypotl declaration.
26071         * doc/posix-functions/hypotl.texi: Mention the new module.
26073 2012-02-29  Eric Blake  <eblake@redhat.com>
26075         tcgetsid: fix cygwin header bug
26076         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
26078         docs: update cygwin progress
26079         * doc/posix-functions/llround.texi (llround): Added in cygwin
26080         1.7.8.
26081         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
26082         * doc/glibc-functions/program_invocation_name.texi
26083         (program_invocation_name): Likewise.
26084         * doc/glibc-functions/program_invocation_short_name.texi
26085         (program_invocation_short_name): Likewise.
26086         * doc/glibc-functions/madvise.texi (madvise): Likewise.
26087         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
26088         Likewise.
26089         * doc/posix-functions/pthread_spin_destroy.texi
26090         (pthread_spin_destroy): Added in cygwin 1.7.10.
26091         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
26092         Likewise.
26093         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
26094         Likewise.
26095         * doc/posix-functions/pthread_spin_trylock.texi
26096         (pthread_spin_trylock): Likewise.
26097         * doc/posix-functions/pthread_spin_unlock.texi
26098         (pthread_spin_unlock): Likewise.
26099         * doc/posix-functions/pthread_setschedprio.texi
26100         (pthread_setschedprio): Likewise.
26101         * doc/posix-functions/pthread_attr_getstack.texi
26102         (pthread_attr_getstack): Likewise.
26103         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
26104         (pthread_attr_getstackaddr): Likewise.
26105         * doc/glibc-functions/pthread_getattr_np.texi
26106         (pthread_getattr_np): Likewise.
26107         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
26108         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
26109         * doc/posix-functions/clock_settime.texi (clock_settime):
26110         Likewise.
26111         * doc/posix-functions/pthread_attr_getguardsize.texi
26112         (pthread_attr_getguardsize): Likewise.
26113         * doc/posix-functions/pthread_attr_setguardsize.texi
26114         (pthread_attr_setguardsize): Likewise.
26115         * doc/posix-functions/pthread_attr_setstack.texi
26116         (pthread_attr_setstack): Likewise.
26117         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
26118         (pthread_attr_setstackaddr): Likewise.
26119         * doc/posix-functions/clock_getcpuclockid.texi
26120         (clock_getcpuclockid): Likewise.
26121         * doc/posix-functions/pthread_getcpuclockid.texi
26122         (pthread_getcpuclockid): Likewise.
26123         * doc/glibc-functions/error.texi (error): Likewise.
26124         * doc/glibc-functions/error_at_line.texi (error_at_line):
26125         Likewise.
26126         * doc/glibc-functions/error_message_count.texi
26127         (error_message_count): Likewise.
26128         * doc/glibc-functions/error_one_per_line.texi
26129         (error_one_per_line): Likewise.
26130         * doc/glibc-functions/error_print_progname.texi
26131         (error_print_progname): Likewise.
26132         * doc/posix-functions/pthread_condattr_getclock.texi
26133         (pthread_condattr_getclock): Likewise.
26134         * doc/posix-functions/pthread_condattr_setclock.texi
26135         (pthread_condattr_setclock): Likewise.
26136         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
26137         Likewise.
26138         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
26139         * doc/glibc-functions/getpt.texi (getpt): Likewise.
26140         * doc/glibc-functions/get_current_dir_name.texi
26141         (get_current_dir_name): Likewise.
26142         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
26143         Likewise.
26144         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
26145         wrong return type.
26146         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
26147         1.7.11.
26149 2012-02-29  Bruno Haible  <bruno@clisp.org>
26151         Tests for module 'hypotf'.
26152         * modules/hypotf-tests: New file.
26153         * tests/test-hypotf.c: New file.
26155         New module 'hypotf'.
26156         * lib/math.in.h (hypotf): New declaration.
26157         * lib/hypotf.c: New file.
26158         * m4/hypotf.m4: New file.
26159         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
26161         REPLACE_HYPOTF.
26162         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
26163         REPLACE_HYPOTF.
26164         * modules/hypotf: New file.
26165         * tests/test-math-c++.cc: Check the hypotf declaration.
26166         * doc/posix-functions/hypotf.texi: Mention the new module.
26168         hypot: Prepare for hypotf module.
26169         * m4/hypot.m4: New file.
26170         * modules/hypot (Files): Add m4/hypot.m4.
26171         (configure.ac): Invoke gl_FUNC_HYPOT.
26173 2012-02-29  Bruno Haible  <bruno@clisp.org>
26175         hypot tests: More tests.
26176         * tests/test-hypot.c: Include <float.h>.
26177         (main): Add tests about overflow and underflow.
26179 2012-02-29  Bruno Haible  <bruno@clisp.org>
26181         math code: Add comments.
26182         * lib/acosl.c: Add comment about related glibc source files.
26183         * lib/asinl.c: Likewise.
26184         * lib/atanl.c: Likewise.
26185         * lib/expl.c: Likewise.
26186         * lib/logl.c: Likewise.
26187         * lib/sincosl.c: Likewise.
26188         * lib/sinl.c: Likewise.
26189         * lib/tanl.c: Likewise.
26190         * lib/trigl.c: Likewise.
26191         * lib/cosl.c: Likewise. Fix comments.
26193 2012-02-28  Bruno Haible  <bruno@clisp.org>
26195         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
26196         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
26197         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
26198         HUGE_VALL are defined.
26199         (numeric_equald): Renamed from numeric_equal.
26200         (numeric_equalf, numeric_equall): New functions.
26201         (main): Check also HUGE_VALF, HUGE_VALL.
26202         * modules/math-tests (Files): Add tests/macros.h.
26203         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
26204         HUGE_VALL.
26206 2012-02-28  Bruno Haible  <bruno@clisp.org>
26208         doc: Move ISO C11 feature notes into POSIX chapters.
26209         * doc/posix-functions/aligned_alloc.texi: Renamed from
26210         doc/glibc-functions/aligned_alloc.texi.
26211         * doc/posix-functions/quick_exit.texi: Renamed from
26212         doc/glibc-functions/quick_exit.texi.
26213         * doc/posix-headers/uchar.texi: Renamed from
26214         doc/glibc-headers/uchar.texi.
26215         * doc/posix-functions/c16rtomb.texi: Renamed from
26216         doc/glibc-functions/c16rtomb.texi.
26217         * doc/posix-functions/c32rtomb.texi: Renamed from
26218         doc/glibc-functions/c32rtomb.texi.
26219         * doc/posix-functions/mbrtoc16.texi: Renamed from
26220         doc/glibc-functions/mbrtoc16.texi.
26221         * doc/posix-functions/mbrtoc32.texi: Renamed from
26222         doc/glibc-functions/mbrtoc32.texi.
26223         * doc/gnulib.texi: Update.
26224         (Glibc uchar.h): Remove section.
26225         Suggested by Eric Blake.
26227 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
26229         stdnoreturn: port to MSVC better
26230         MSVC standard headers use __declspec(noreturn), so #define noreturn
26231         to empty on that platform.  Reported by Bruno Haible in
26232         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
26233         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
26234         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
26236 2012-02-28  Bruno Haible  <bruno@clisp.org>
26238         doc: Mention new glibc headers and functions.
26239         * doc/glibc-headers/uchar.texi: New file.
26240         * doc/glibc-functions/aligned_alloc.texi: New file.
26241         * doc/glibc-functions/c16rtomb.texi: New file.
26242         * doc/glibc-functions/c32rtomb.texi: New file.
26243         * doc/glibc-functions/clock_adjtime.texi: New file.
26244         * doc/glibc-functions/fanotify_init.texi: New file.
26245         * doc/glibc-functions/fanotify_mark.texi: New file.
26246         * doc/glibc-functions/inet6_opt_append.texi: New file.
26247         * doc/glibc-functions/inet6_opt_find.texi: New file.
26248         * doc/glibc-functions/inet6_opt_finish.texi: New file.
26249         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
26250         * doc/glibc-functions/inet6_opt_init.texi: New file.
26251         * doc/glibc-functions/inet6_opt_next.texi: New file.
26252         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
26253         * doc/glibc-functions/inet6_rth_add.texi: New file.
26254         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
26255         * doc/glibc-functions/inet6_rth_init.texi: New file.
26256         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
26257         * doc/glibc-functions/inet6_rth_segments.texi: New file.
26258         * doc/glibc-functions/inet6_rth_space.texi: New file.
26259         * doc/glibc-functions/login.texi: New file.
26260         * doc/glibc-functions/mbrtoc16.texi: New file.
26261         * doc/glibc-functions/mbrtoc32.texi: New file.
26262         * doc/glibc-functions/name_to_handle_at.texi: New file.
26263         * doc/glibc-functions/ntp_gettimex.texi: New file.
26264         * doc/glibc-functions/open_by_handle_at.texi: New file.
26265         * doc/glibc-functions/prlimit.texi: New file.
26266         * doc/glibc-functions/process_vm_readv.texi: New file.
26267         * doc/glibc-functions/process_vm_writev.texi: New file.
26268         * doc/glibc-functions/recvmmsg.texi: New file.
26269         * doc/glibc-functions/scandirat.texi: New file.
26270         * doc/glibc-functions/sendmmsg.texi: New file.
26271         * doc/glibc-functions/setns.texi: New file.
26272         * doc/glibc-functions/timespec_get.texi: New file.
26273         * doc/gnulib.texi: Include them.
26274         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
26275         sections.
26276         Reported by Eric Blake.
26278 2012-02-28  Bruno Haible  <bruno@clisp.org>
26280         Avoid compilation errors with MSVC option -fp:strict.
26281         * lib/floor.c: Use MSVC specific pragma fenv_access.
26282         * lib/ceil.c: Likewise.
26283         * lib/trunc.c: Likewise.
26284         * lib/round.c: Likewise.
26285         * lib/rint.c: Likewise.
26286         * lib/fma.c: Likewise.
26287         * lib/integer_length.c: Likewise.
26288         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26289         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26290         * tests/test-floor2.c: Likewise.
26291         * tests/test-floorf2.c: Likewise.
26292         * tests/test-ceil2.c: Likewise.
26293         * tests/test-ceilf2.c: Likewise.
26294         * tests/test-trunc2.c: Likewise.
26295         * tests/test-truncf2.c: Likewise.
26296         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26298 2012-02-27  Bruno Haible  <bruno@clisp.org>
26300         Tests for module 'sqrtl-ieee'.
26301         * modules/sqrtl-ieee-tests: New file.
26302         * tests/test-sqrtl-ieee.c: New file.
26304         New module 'sqrtl-ieee'.
26305         * modules/sqrtl-ieee: New file.
26307         Tests for module 'sqrt-ieee'.
26308         * modules/sqrt-ieee-tests: New file.
26309         * tests/test-sqrt-ieee.c: New file.
26311         New module 'sqrt-ieee'.
26312         * modules/sqrt-ieee: New file.
26314         Tests for module 'sqrtf-ieee'.
26315         * modules/sqrtf-ieee-tests: New file.
26316         * tests/test-sqrtf-ieee.c: New file.
26317         * tests/test-sqrt-ieee.h: New file.
26319         New module 'sqrtf-ieee'.
26320         * modules/sqrtf-ieee: New file.
26322 2012-02-27  Bruno Haible  <bruno@clisp.org>
26324         remainderl-ieee: Work around test failure on OSF/1.
26325         * m4/remainderl-ieee.m4: New file.
26326         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
26327         present, test whether remainderl works with a zero second argument.
26328         Replace it if not.
26329         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26331         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26332         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26333         (Depends-on): Update conditions.
26334         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26335         (Depends-on): Add remainder-ieee.
26336         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26337         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26338         module.
26340         remainderf-ieee: Work around test failure on OSF/1.
26341         * m4/remainderf-ieee.m4: New file.
26342         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26343         present, test whether remainderf works with a zero second argument.
26344         Replace it if not.
26345         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26347         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26348         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26349         (Depends-on): Update conditions.
26350         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26351         (Depends-on): Add remainder-ieee.
26352         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26353         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26354         module.
26356         remainder-ieee: Work around test failure on OSF/1.
26357         * m4/remainder-ieee.m4: New file.
26358         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26359         present, test whether remainder works with a zero second argument.
26360         Replace it if not.
26361         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26363         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26364         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26365         (Depends-on): Update dependencies.
26366         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26367         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26368         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26370         Tests for module 'remainderl-ieee'.
26371         * modules/remainderl-ieee-tests: New file.
26372         * tests/test-remainderl-ieee.c: New file.
26374         New module 'remainderl-ieee'.
26375         * modules/remainderl-ieee: New file.
26377         Tests for module 'remainder-ieee'.
26378         * modules/remainder-ieee-tests: New file.
26379         * tests/test-remainder-ieee.c: New file.
26381         New module 'remainder-ieee'.
26382         * modules/remainder-ieee: New file.
26384         Tests for module 'remainderf-ieee'.
26385         * modules/remainderf-ieee-tests: New file.
26386         * tests/test-remainderf-ieee.c: New file.
26387         * tests/test-remainder-ieee.h: New file.
26389         New module 'remainderf-ieee'.
26390         * modules/remainderf-ieee: New file.
26392 2012-02-27  Bruno Haible  <bruno@clisp.org>
26394         modff, modfl: Fix configure syntax error.
26395         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26396         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26398 2012-02-27  Bruno Haible  <bruno@clisp.org>
26400         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26401         * m4/fmodl-ieee.m4: New file.
26402         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26403         whether fmodl works with zero arguments. Replace it if not.
26404         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26405         (Depends-on): Add fmod-ieee.
26406         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26407         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26409         fmodf-ieee: Work around test failure on OSF/1.
26410         * m4/fmodf-ieee.m4: New file.
26411         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26412         whether fmodf works with zero arguments. Replace it if not.
26413         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26415         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26416         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26417         (Depends-on): Update dependencies.
26418         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26419         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26420         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26422         fmodf-ieee: Work around test failure on MSVC 9.
26423         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26424         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26426         fmod-ieee: Work around test failures on OSF/1, mingw.
26427         * m4/fmod-ieee.m4: New file.
26428         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26429         whether fmod works with zero arguments. Replace it if not.
26430         * lib/math.in.h (fmod): New declaration.
26431         * lib/fmod.c: New file.
26432         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26434         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26435         * modules/fmod (Files): Add lib/fmod.c.
26436         (Depends-on): Add math, isinf, trunc, fma.
26437         (configure.ac): Arrange to compile lib/fmod.c if needed.
26438         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26439         m4/signbit.m4.
26440         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26441         * tests/test-math-c++.cc: Check the declaration of fmod.
26442         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26444         fmodl-ieee: Fix test failures.
26445         * lib/fmodl.c (fmodl): Treat Inf specially.
26446         * modules/fmodl (Depends-on): Add isinf.
26448         Tests for module 'fmodl-ieee'.
26449         * modules/fmodl-ieee-tests: New file.
26450         * tests/test-fmodl-ieee.c: New file.
26452         New module 'fmodl-ieee'.
26453         * modules/fmodl-ieee: New file.
26455         Tests for module 'fmod-ieee'.
26456         * modules/fmod-ieee-tests: New file.
26457         * tests/test-fmod-ieee.c: New file.
26459         New module 'fmod-ieee'.
26460         * modules/fmod-ieee: New file.
26462         Tests for module 'fmodf-ieee'.
26463         * modules/fmodf-ieee-tests: New file.
26464         * tests/test-fmodf-ieee.c: New file.
26465         * tests/test-fmod-ieee.h: New file.
26467         New module 'fmodf-ieee'.
26468         * modules/fmodf-ieee: New file.
26470 2012-02-27  Bruno Haible  <bruno@clisp.org>
26472         Tests for module 'rintl-ieee'.
26473         * modules/rintl-ieee-tests: New file.
26474         * tests/test-rintl-ieee.c: New file.
26476         New module 'rintl-ieee'.
26477         * modules/rintl-ieee: New file.
26479         Tests for module 'rint-ieee'.
26480         * modules/rint-ieee-tests: New file.
26481         * tests/test-rint-ieee.c: New file.
26483         New module 'rint-ieee'.
26484         * modules/rint-ieee: New file.
26486         Tests for module 'rintf-ieee'.
26487         * modules/rintf-ieee-tests: New file.
26488         * tests/test-rintf-ieee.c: New file.
26489         * tests/test-rint-ieee.h: New file.
26491         New module 'rintf-ieee'.
26492         * modules/rintf-ieee: New file.
26494 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26496         regex: re_search etc. should return -2 when memory exhausted
26497         This bug was uncovered when testing 'grep'.  Without the fix,
26498         re_search and friends return -1 when memory is exhausted, but -1
26499         means no match, and this causes grep to falsely report no-match
26500         instead of memory-exhaustion.  See
26501         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26502         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26503         trouble; this can occur if re_search_internal ran out of memory.
26505 2012-02-26  Bruno Haible  <bruno@clisp.org>
26507         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26508         * m4/modfl-ieee.m4: New file.
26509         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26510         whether modfl works with Inf. Replace it if not.
26511         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26513         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26514         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26515         (Depends-on): Update dependencies.
26516         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26517         m4/signbit.m4.
26518         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26519         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26521         modfl-ieee: Fix dependencies.
26522         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26524         modfl-ieee: Fix test failures.
26525         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26526         * modules/modfl (Depends-on): Add isfinite, isinf.
26528         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26529         * m4/modff-ieee.m4: New file.
26530         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26531         whether modff works with NaN and Inf. Replace it if not.
26532         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26534         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26535         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26536         (Depends-on): Update dependencies.
26537         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26538         m4/signbit.m4.
26539         (Depends-on): Add modf-ieee.
26540         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26541         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26543         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26544         * m4/modf-ieee.m4: New file.
26545         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26546         whether modf works with NaN and Inf. Replace it if not.
26547         * lib/math.in.h (modf): New declaration.
26548         * lib/modf.c: New file.
26549         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26551         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26552         * modules/modf (Files): Add lib/modf.c.
26553         (Depends-on): Add math, isfinite, trunc, isinf.
26554         (configure.ac): Addrange to compile lib/modf.c if needed.
26555         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26556         m4/signbit.m4.
26557         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26558         * tests/test-math-c++.cc: Check the declaration of modf.
26559         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26561         Tests for module 'modfl-ieee'.
26562         * modules/modfl-ieee-tests: New file.
26563         * tests/test-modfl-ieee.c: New file.
26565         New module 'modfl-ieee'.
26566         * modules/modfl-ieee: New file.
26568         Tests for module 'modf-ieee'.
26569         * modules/modf-ieee-tests: New file.
26570         * tests/test-modf-ieee.c: New file.
26572         New module 'modf-ieee'.
26573         * modules/modf-ieee: New file.
26575         Tests for module 'modff-ieee'.
26576         * modules/modff-ieee-tests: New file.
26577         * tests/test-modff-ieee.c: New file.
26578         * tests/test-modf-ieee.h: New file.
26580         New module 'modff-ieee'.
26581         * modules/modff-ieee: New file.
26583 2012-02-26  Bruno Haible  <bruno@clisp.org>
26585         Tests for module 'fabsl-ieee'.
26586         * modules/fabsl-ieee-tests: New file.
26587         * tests/test-fabsl-ieee.c: New file.
26589         New module 'fabsl-ieee'.
26590         * modules/fabsl-ieee: New file.
26592         Tests for module 'fabs-ieee'.
26593         * modules/fabs-ieee-tests: New file.
26594         * tests/test-fabs-ieee.c: New file.
26596         New module 'fabs-ieee'.
26597         * modules/fabs-ieee: New file.
26599         Tests for module 'fabsf-ieee'.
26600         * modules/fabsf-ieee-tests: New file.
26601         * tests/test-fabsf-ieee.c: New file.
26602         * tests/test-fabs-ieee.h: New file.
26604         New module 'fabsf-ieee'.
26605         * modules/fabsf-ieee: New file.
26607 2012-02-26  Bruno Haible  <bruno@clisp.org>
26609         Tests for module 'fmal-ieee'.
26610         * modules/fmal-ieee-tests: New file.
26611         * tests/test-fmal-ieee.c: New file.
26613         New module 'fmal-ieee'.
26614         * modules/fmal-ieee: New file.
26616         Tests for module 'fma-ieee'.
26617         * modules/fma-ieee-tests: New file.
26618         * tests/test-fma-ieee.c: New file.
26620         New module 'fma-ieee'.
26621         * modules/fma-ieee: New file.
26623         Tests for module 'fmaf-ieee'.
26624         * modules/fmaf-ieee-tests: New file.
26625         * tests/test-fmaf-ieee.c: New file.
26626         * tests/test-fma-ieee.h: New file.
26628         New module 'fmaf-ieee'.
26629         * modules/fmaf-ieee: New file.
26631 2012-02-26  Bruno Haible  <bruno@clisp.org>
26633         Tests for module 'ldexpl-ieee'.
26634         * modules/ldexpl-ieee-tests: New file.
26635         * tests/test-ldexpl-ieee.c: New file.
26637         New module 'ldexpl-ieee'.
26638         * modules/ldexpl-ieee: New file.
26640         Tests for module 'ldexp-ieee'.
26641         * modules/ldexp-ieee-tests: New file.
26642         * tests/test-ldexp-ieee.c: New file.
26644         New module 'ldexp-ieee'.
26645         * modules/ldexp-ieee: New file.
26647         Tests for module 'ldexpf-ieee'.
26648         * modules/ldexpf-ieee-tests: New file.
26649         * tests/test-ldexpf-ieee.c: New file.
26650         * tests/test-ldexp-ieee.h: New file.
26652         New module 'ldexpf-ieee'.
26653         * modules/ldexpf-ieee: New file.
26655 2012-02-26  Bruno Haible  <bruno@clisp.org>
26657         Refactor frexp*-ieee tests.
26658         * tests/test-frexp-ieee.h: New file.
26659         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26660         (main): Just call test_function.
26661         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26662         (main): Just call test_function.
26663         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26664         (main): Just call test_function.
26665         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26666         * modules/frexp-ieee-tests (Files): Likewise.
26667         * modules/frexpl-ieee-tests (Files): Likewise.
26669         Tests for module 'frexpl-ieee'.
26670         * modules/frexpl-ieee-tests: New file.
26671         * tests/test-frexpl-ieee.c: New file.
26673         New module 'frexpl-ieee'.
26674         * modules/frexpl-ieee: New file.
26676         Tests for module 'frexp-ieee'.
26677         * modules/frexp-ieee-tests: New file.
26678         * tests/test-frexp-ieee.c: New file.
26680         New module 'frexp-ieee'.
26681         * modules/frexp-ieee: New file.
26683         Tests for module 'frexpf-ieee'.
26684         * modules/frexpf-ieee-tests: New file.
26685         * tests/test-frexpf-ieee.c: New file.
26687         New module 'frexpf-ieee'.
26688         * modules/frexpf-ieee: New file.
26690 2012-02-26  Bruno Haible  <bruno@clisp.org>
26692         roundl-ieee tests: More tests.
26693         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26694         (main): Add tests for [MX] shaded specification in POSIX.
26695         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26696         (Depends-on): Add isnanl-nolibm.
26698         round-ieee tests: More tests.
26699         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26700         (main): Add tests for [MX] shaded specification in POSIX.
26701         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26702         (Depends-on): Add isnand-nolibm.
26704         roundf-ieee tests: More tests.
26705         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26706         (main): Add tests for [MX] shaded specification in POSIX.
26707         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26708         (Depends-on): Add isnanf-nolibm.
26710         truncl-ieee tests: More tests.
26711         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26712         (main): Add tests for [MX] shaded specification in POSIX.
26713         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26714         (Depends-on): Add isnanl-nolibm.
26716         trunc-ieee tests: More tests.
26717         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26718         (main): Add tests for [MX] shaded specification in POSIX.
26719         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26720         (Depends-on): Add isnand-nolibm.
26722         truncf-ieee tests: More tests.
26723         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26724         (main): Add tests for [MX] shaded specification in POSIX.
26725         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26726         (Depends-on): Add isnanf-nolibm.
26728         ceill-ieee tests: More tests.
26729         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26730         (main): Add tests for [MX] shaded specification in POSIX.
26731         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26732         (Depends-on): Add isnanl-nolibm.
26734         ceil-ieee tests: More tests.
26735         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26736         (main): Add tests for [MX] shaded specification in POSIX.
26737         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26738         (Depends-on): Add isnand-nolibm.
26740         ceilf-ieee tests: More tests.
26741         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26742         (main): Add tests for [MX] shaded specification in POSIX.
26743         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26744         (Depends-on): Add isnanf-nolibm.
26746         floorl-ieee tests: More tests.
26747         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26748         (main): Add tests for [MX] shaded specification in POSIX.
26749         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26750         (Depends-on): Add isnanl-nolibm.
26752         floor-ieee tests: More tests.
26753         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26754         (main): Add tests for [MX] shaded specification in POSIX.
26755         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26756         (Depends-on): Add isnand-nolibm.
26758         floorf-ieee tests: More tests.
26759         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26760         (main): Add tests for [MX] shaded specification in POSIX.
26761         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26762         (Depends-on): Add isnanf-nolibm.
26764 2012-02-26  Bruno Haible  <bruno@clisp.org>
26766         fpieee: More comments.
26767         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26769 2012-02-25  Bruno Haible  <bruno@clisp.org>
26771         Tests for module 'log10l'.
26772         * modules/log10l-tests: New file.
26773         * tests/test-log10l.c: New file.
26774         * tests/test-math-c++.cc: Check the declaration of log10l.
26776         New module 'log10l'.
26777         * lib/math.in.h (log10l): New declaration.
26778         * lib/log10l.c: New file.
26779         * m4/log10l.m4: New file.
26780         * modules/log10l: New file.
26781         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26783         HAVE_DECL_LOG10L.
26784         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26785         HAVE_DECL_LOG10L.
26786         * doc/posix-functions/log10l.texi: Mention the new module.
26788 2012-02-25  Bruno Haible  <bruno@clisp.org>
26790         fmodl, remainder*: Avoid wrong results due to rounding errors.
26791         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26792         expected bounds.
26793         * lib/remainderf.c (remainderf): Likewise.
26794         * lib/remainder.c (remainder): Likewise.
26795         * lib/remainderl.c (remainderl): Likewise.
26797 2012-02-25  Bruno Haible  <bruno@clisp.org>
26799         Tests for module 'remainderl'.
26800         * modules/remainderl-tests: New file.
26801         * tests/test-remainderl.c: New file.
26802         * tests/test-math-c++.cc: Check the declaration of remainderl.
26804         New module 'remainderl'.
26805         * lib/math.in.h (remainderl): New declaration.
26806         * lib/remainderl.c: New file.
26807         * m4/remainderl.m4: New file.
26808         * modules/remainderl: New file.
26809         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26811         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26812         HAVE_REMAINDERL.
26813         * doc/posix-functions/remainderl.texi: Mention the new module.
26815 2012-02-25  Bruno Haible  <bruno@clisp.org>
26817         Tests for module 'remainderf'.
26818         * modules/remainderf-tests: New file.
26819         * tests/test-remainderf.c: New file.
26820         * tests/test-math-c++.cc: Check the declaration of remainderf.
26822         New module 'remainderf'.
26823         * lib/math.in.h (remainderf): New declaration.
26824         * lib/remainderf.c: New file.
26825         * m4/remainderf.m4: New file.
26826         * modules/remainderf: New file.
26827         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26829         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26830         HAVE_REMAINDERF.
26831         * doc/posix-functions/remainderf.texi: Mention the new module.
26833 2012-02-25  Bruno Haible  <bruno@clisp.org>
26835         remainder: Support for MSVC.
26836         * lib/math.in.h (remainder): New declaration.
26837         * lib/remainder.c: New file.
26838         * m4/remainder.m4: New file.
26839         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26840         (Depends-on): Add math, round, fma.
26841         (configure.ac): Use results of gl_FUNC_REMAINDER.
26842         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26844         HAVE_DECL_REMAINDER.
26845         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26846         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26847         * tests/test-math-c++.cc: Check the declaration of remainder.
26848         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26849         problems are fixed.
26851 2012-02-25  Bruno Haible  <bruno@clisp.org>
26853         Tests for module 'fmodl'.
26854         * modules/fmodl-tests: New file.
26855         * tests/test-fmodl.c: New file.
26856         * tests/test-math-c++.cc: Check the declaration of fmodl.
26858         New module 'fmodl'.
26859         * lib/math.in.h (fmodl): New declaration.
26860         * lib/fmodl.c: New file.
26861         * m4/fmodl.m4: New file.
26862         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26864         REPLACE_FMODL.
26865         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26866         REPLACE_FMODL.
26867         * modules/fmodl: New file.
26868         * doc/posix-functions/fmodl.texi: Mention the new module.
26870 2012-02-25  Bruno Haible  <bruno@clisp.org>
26872         Tests for module 'modfl'.
26873         * modules/modfl-tests: New file.
26874         * tests/test-modfl.c: New file.
26875         * tests/test-math-c++.cc: Check the declaration of modfl.
26877         New module 'modfl'.
26878         * lib/math.in.h (modfl): New declaration.
26879         * lib/modfl.c: New file.
26880         * m4/modfl.m4: New file.
26881         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26883         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26884         * modules/modfl: New file.
26885         * doc/posix-functions/modfl.texi: Mention the new module.
26887 2012-02-25  Bruno Haible  <bruno@clisp.org>
26889         Tests for module 'fabsl'.
26890         * modules/fabsl-tests: New file.
26891         * tests/test-fabsl.c: New file.
26892         * tests/test-math-c++.cc: Check the declaration of fabsl.
26894         New module 'fabsl'.
26895         * lib/math.in.h (fabsl): New declaration.
26896         * lib/fabsl.c: New file.
26897         * m4/fabsl.m4: New file.
26898         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26900         REPLACE_FABSL.
26901         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26902         REPLACE_FABSL.
26903         * modules/fabsl: New file.
26904         * doc/posix-functions/fabsl.texi: Mention the new module.
26906 2012-02-25  Bruno Haible  <bruno@clisp.org>
26908         fabs tests: More tests.
26909         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26910         (zero): New variable.
26911         (main): Add tests for signed zero.
26912         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26914         fabsf tests: More tests.
26915         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26916         (zero): New variable.
26917         (main): Add tests for signed zero.
26918         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26920 2012-02-24  Bruno Haible  <bruno@clisp.org>
26922         atanl: Provide function definition on MSVC.
26923         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26924         function pointer.
26925         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26927 2012-02-24  Bruno Haible  <bruno@clisp.org>
26929         acosl: Provide function definition on MSVC.
26930         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26931         function pointer.
26932         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26934 2012-02-24  Bruno Haible  <bruno@clisp.org>
26936         asinl: Provide function definition on MSVC.
26937         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26938         function pointer.
26939         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26941 2012-02-24  Bruno Haible  <bruno@clisp.org>
26943         tanl: Provide function definition on MSVC.
26944         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26945         function pointer.
26946         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26948 2012-02-24  Bruno Haible  <bruno@clisp.org>
26950         cosl: Provide function definition on MSVC.
26951         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26952         function pointer.
26953         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26955 2012-02-24  Bruno Haible  <bruno@clisp.org>
26957         sinl: Provide function definition on MSVC.
26958         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26959         function pointer.
26960         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26962 2012-02-24  Bruno Haible  <bruno@clisp.org>
26964         logl: Provide function definition on MSVC.
26965         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26966         function pointer.
26967         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26969 2012-02-24  Bruno Haible  <bruno@clisp.org>
26971         expl: Provide function definition on MSVC.
26972         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26973         function pointer.
26974         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26976 2012-02-24  Bruno Haible  <bruno@clisp.org>
26978         sqrtl: Provide function definition on MSVC.
26979         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26980         a function pointer.
26981         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26983 2012-02-24  Bruno Haible  <bruno@clisp.org>
26985         ceill: Provide function definition on MSVC.
26986         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26987         used as a function pointer.
26988         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26990 2012-02-24  Bruno Haible  <bruno@clisp.org>
26992         floorl: Provide function definition on MSVC.
26993         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26994         used as a function pointer.
26995         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26997 2012-02-24  Bruno Haible  <bruno@clisp.org>
26999         ceilf: Provide function definition on MSVC.
27000         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
27001         used as a function pointer.
27002         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
27004 2012-02-24  Bruno Haible  <bruno@clisp.org>
27006         floorf: Provide function definition on MSVC.
27007         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
27008         used as a function pointer.
27009         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
27011 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27013         stdnoreturn: new module
27014         This implements a replacement for C11's <stdnoreturn.h>.
27015         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
27016         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
27017         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
27018         * tests/test-stdnoreturn.c: New files.
27020 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
27022         regex: fix false multibyte matches in some regular expressions
27023         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
27024         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
27025         * lib/regex_internal.c (re_string_skip_chars):
27026         Fix miscomputation of remain_len that may cause incomplete
27027         multi-byte character and false match.
27029 2012-02-24  Jim Meyering  <meyering@redhat.com>
27031         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
27032         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
27033         uses with "==" *before* the call, e.g., 0 == strcmp (...)
27034         Remove now-unnecessary str''cmp obfuscation.
27035         Suggested by Akim Demaille.
27037 2012-02-24  Bruno Haible  <bruno@clisp.org>
27039         streq: Rename macro.
27040         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
27041         * NEWS: Mention the change.
27042         * lib/mbrtowc.c (mbrtowc): Update.
27043         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
27044         * lib/wcwidth.c (wcwidth): Update.
27045         Suggested by Akim Demaille and Jim Meyering.
27047 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27049         regex: fix typo in definition of MIN
27050         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
27051         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
27053 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27054             Bruno Haible  <bruno@clisp.org>
27056         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
27057         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
27058         entries into a stack-allocated buffer directly.
27059         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
27061 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27062             Bruno Haible  <bruno@clisp.org>
27064         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
27066          - There were several instances of this pattern:
27068              for (;;) {
27069                n = acl (f, GETACLCNT, 0, NULL);
27070                [ allocate an array A of size N ]
27071                if (acl (f, GETACL, n, a) == n)
27072                  break;
27073              }
27075            This loop might never terminate if some other process is constantly
27076            manipulating the file's ACL.  The loop should be rewritten to
27077            terminate.
27079          - The acl (... GETACLNT ...) call is merely an optimization; its value
27080            is merely a hint as to how big to make the array.  A better
27081            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
27082            and just guess a reasonably-big size, growing the size and trying
27083            again if it's not large enough.  This guarantees termination, and
27084            saves a system call.
27086         * lib/acl-internal.h: Include <limits.h>.
27087         (MIN, SIZE_MAX): New macros.
27088         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
27089         a stack-allocated buffer, and use malloc if it does not fit. Don't
27090         use GETACLCNT.
27091         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
27093 2012-02-19  Bruno Haible  <bruno@clisp.org>
27095         acl: Fix endless loop on Solaris with vxfs.
27096         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
27097         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
27098         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
27099         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
27100         * tests/test-sameacls.c (main)[Solaris]: Likewise.
27101         Reported by Bill Jones in
27102         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
27104 2012-02-19  Bruno Haible  <bruno@clisp.org>
27106         acl: Fix copy-acl test failure on Solaris 11.0.
27107         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
27108         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
27109         that this function returns 0 in some more cases.
27111 2012-02-19  Bruno Haible  <bruno@clisp.org>
27113         acl: Update doc references.
27114         * doc/acl-resources.txt: Update links to Solaris documentation.
27116 2012-02-19  Bruno Haible  <bruno@clisp.org>
27118         Fix test failure in many locales on Solaris 11.
27119         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
27120         'tr' arguments.
27121         * tests/test-pipe-filter-ii1.c (main): Likewise.
27122         * build-aux/bootstrap (check_versions): Run 'tr' command with range
27123         expressions in the C locale.
27124         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27125         * m4/host-os.m4 (gl_HOST_OS): Likewise.
27127 2012-02-19  Bruno Haible  <bruno@clisp.org>
27129         gnulib-tool: Improve usage message.
27130         * gnulib-tool (func_usage): Move doc of --help and --version to the
27131         section "Operation modes".
27133 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
27135         README-release: make it easier to execute commands
27136         * top/README-release: break commands out on to separate lines.
27138 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
27140         GNUmakefile: simplify detection of unconfigured trees
27141         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
27142         whether the tree make is being run from is already configured or
27143         not.  Related simplifications.
27145 2012-02-13  Simon Josefsson  <simon@josefsson.org>
27147         * gnulib-tool (func_usage): Document --help and --version.
27149 2012-02-11  Jim Meyering  <meyering@redhat.com>
27151         bootstrap: don't exit 0 upon gnulib-tool failure
27152         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
27153         its exit status, not 0.
27155 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
27157         README-release: various improvements
27158         * top/README-release: Give a command to push changes for the
27159         release.  Add "distcheck" to list of other pre-release checks.
27160         Fix instance of "make stable" which should be "make TYPE".
27162 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27164         maint: replace FSF snail-mail addresses with URLs
27165         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
27166         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
27167         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
27168         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
27169         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
27170         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
27171         * lib/check-version.c, lib/check-version.h, lib/config.charset:
27172         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
27173         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
27174         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
27175         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
27176         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
27177         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
27178         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
27179         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
27180         * lib/glthread/thread.c, lib/glthread/thread.h:
27181         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
27182         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
27183         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
27184         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
27185         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
27186         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
27187         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
27188         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
27189         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
27190         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
27191         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
27192         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
27193         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
27194         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
27195         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
27196         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
27197         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
27198         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
27199         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
27200         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
27201         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
27202         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
27203         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
27204         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
27205         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
27206         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
27207         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
27208         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
27209         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
27210         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
27211         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
27212         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
27213         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
27214         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
27215         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
27216         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
27217         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
27218         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
27219         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
27220         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
27221         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
27222         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
27223         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
27224         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
27225         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
27226         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
27227         * tests/test-poll.c, tests/test-quotearg-simple.c:
27228         * tests/test-quotearg.c, tests/test-quotearg.h:
27229         * tests/test-round-ieee.c, tests/test-round1.c:
27230         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
27231         * tests/test-roundl-ieee.c, tests/test-roundl.c:
27232         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
27233         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
27234         * tests/test-strerror.c, tests/test-strerror_r.c:
27235         * tests/test-strsignal.c, tests/test-strverscmp.c:
27236         * tests/test-xmemdup0.c:
27237         Replace FSF snail mail addresses with URLs, as per GNU coding
27238         standards.  See glibc bug
27239         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
27241 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
27243         README-release: capitalize a word and split a line
27244         * top/README-release: Fix punctuation and spacing.
27246 2012-02-08  Akim Demaille  <demaille@gostai.com>
27248         fatal-signal: use C prototypes (with explicit void).
27249         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27250         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
27252 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27254         regex: spelling fix
27255         * lib/regexec.c: spelling fix
27257         regex: rely on stdint.h for SIZE_MAX
27258         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
27260 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27262         regex: merge glibc changes
27264         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
27265         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
27266         (init_word_char): Work even if bitset words are not exactly 32 or
27267         64 bits wide.  Don't assume there are no padding bits.
27268         * lib/regex.c [_LIBC]: Do not include <config.h>.
27269         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
27270         and -Wtype-limits.
27271         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
27272         needless disagreement with glibc.  All uses changed.  Define it to
27273         1 only if _GNU_SOURCE, to match glibc.
27274         (_REG_RM_NAME): Remove; no longer needed, since the names in
27275         question are now all protected by __USE_GNU.
27276         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
27277         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
27278         * lib/regex_internal.h (MIN): New macro.
27280         2012-01-03 Ulrich Drepper <drepper@gmail.com>
27281         * lib/regcomp.c (init_word_char): Optimize regex a bit.
27283         2011-12-30 Jakub Jelinek <jakub@redhat.com>
27284         * lib/regex_internal.c (re_string_fetch_byte_case):
27285         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
27286         is miscompiled, and it turns out it is because of an incorrect
27287         attribute on re_string_fetch_byte_case.  Unlike
27288         re_string_peek_byte_case, this one is really not pure, it modifies
27289         memory (increments pstr->cur_idx), and with the pure attribute GCC
27290         assumed it doesn't and it cached the presumed value of
27291         regexp->cur_idx in a variable across the
27292          for (;; ++i)
27293            {
27294              if (i >= BRACKET_NAME_BUF_SIZE)
27295                return REG_EBRACK;
27296              if (token->type == OP_OPEN_CHAR_CLASS)
27297                ch = re_string_fetch_byte_case (regexp);
27298              else
27299                ch = re_string_fetch_byte (regexp);
27300              if (re_string_eoi(regexp))
27301                return REG_EBRACK;
27302              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
27303                break;
27304              elem->opr.name[i] = ch;
27305            }
27307         2011-11-29 Andreas Schwab <schwab@redhat.com>
27308         * lib/regcomp.c (build_equiv_class):
27309         Fix access after end of search string in regex matcher.
27311         2011-11-12 Ulrich Drepper <drepper@redhat.com>
27312         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
27314         2011-10-12 Ulrich Drepper <drepper@redhat.com>
27315         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
27317         2011-10-11 Ulrich Drepper <drepper@redhat.com>
27318         * lib/regcomp.c (parse_branch, parse_sub_exp):
27319         More regex memory leak fixes and tests.
27320         (parse_sub_exp, parse_bracket_exp):
27321         Fix memory leak for some invalid regular expressions.
27323         2011-05-28 Ulrich Drepper <drepper@gmail.com>
27324         * lib/regex_internal.c, lib/regexec.c:
27325         Fix unnecessary overallocation due to incomplete character.  When
27326         incomplete characters are found at the end of a string the code
27327         ran amok and allocated lots of memory.  Stricter limits are now in
27328         place.
27330         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27331         * lib/regex.h: Update documentation.
27333         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27334         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27336         2010-05-05 Andreas Schwab <schwab@redhat.com>
27337         * lib/regexec.c (find_collation_sequence_value):
27338         Fix lookup of collation sequence value during regexp matching.
27340         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27341         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27343         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27344         * lib/regex.h: Cleanup namespace.
27346         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27347         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27349         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27350         * lib/regex_internal.h: Prevent some declarations and definitions
27351         to be seen when used in tests.
27353         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27354         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27355         __libc_lock_* macros if not _LIBC.
27356         (struct re_dfa_t): Add lock.
27358 2012-02-07  Eric Blake  <eblake@redhat.com>
27360         maint.mk: also prohibit lower-case @var@
27361         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27362         lower case, like @top_srcdir@.
27364 2012-02-04  Eric Blake  <eblake@redhat.com>
27366         canonicalize: avoid uninitialized memory use
27367         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27368         random '/' left in dest.
27369         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27371 2012-02-04  Bruno Haible  <bruno@clisp.org>
27373         isatty: Fix test failure of ptsname_r on native Windows.
27374         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27375         and don't set errno.
27376         (isatty): Test first whether fd is valid. Set errno when returning 0.
27378 2012-02-04  Bruno Haible  <bruno@clisp.org>
27380         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27381         * tests/test-spawn-pipe-main.c: Include progname.h.
27382         (main): Invoke set_program_name.
27383         * modules/spawn-pipe-tests (Depends-on): Add progname.
27385         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27386         * tests/test-nonblocking-socket-main.c: Include progname.h.
27387         (main): Invoke set_program_name.
27388         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27390         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27391         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27392         (main): Invoke set_program_name.
27393         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27395 2012-02-04  Eric Blake  <eblake@redhat.com>
27397         canonicalize-lgpl: fix // handling
27398         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27400         canonicalize: fix // handling
27401         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27402         /// to //, since only // is special.
27404 2012-02-04  Bruno Haible  <bruno@clisp.org>
27406         ioctl: Fix test failure on native Windows.
27407         * lib/ioctl.c: Include msvc-nothrow.h.
27408         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27410 2012-02-04  Bruno Haible  <bruno@clisp.org>
27412         fsync: Avoid test failure on native Windows.
27413         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27414         read-only.
27416 2012-02-04  Bruno Haible  <bruno@clisp.org>
27418         sys_select: Avoid syntax error on OpenBSD 5.0.
27419         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27420         currently being included, just include the system's <sys/select.h>.
27422 2012-02-04  Bruno Haible  <bruno@clisp.org>
27424         sys_select: Avoid syntax error on OpenBSD 5.0.
27425         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27426         <sys/select.h>, not before.
27427         Reported by Jiri B <jirib@devio.us>.
27429 2012-02-04  Bruno Haible  <bruno@clisp.org>
27431         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27432         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27433         global variables.
27434         * tests/test-get-rusage-data.c (main): Likewise.
27435         Reported by Jim Meyering.
27437 2012-02-04  Bruno Haible  <bruno@clisp.org>
27439         stdioext: Fix last commit.
27440         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27442 2012-02-03  Bruno Haible  <bruno@clisp.org>
27444         stdioext: Add tentative support for Plan9.
27445         * lib/stdio-impl.h: Include <errno.h>.
27446         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27447         * lib/freadable.c (freadable): Likewise.
27448         * lib/fwritable.c (fwritable): Likewise.
27449         * lib/fbufmode.c (fbufmode): Likewise.
27450         * lib/freading.c (freading): Likewise.
27451         * lib/fwriting.c (fwriting): Likewise.
27452         * lib/freadptr.c (freadptr): Likewise.
27453         * lib/freadseek.c (freadptrinc): Likewise.
27454         * lib/freadahead.c (freadahead): Likewise.
27455         * lib/fpurge.c (fpurge): Likewise.
27456         * lib/fseeko.c (rpl_fseeko): Likewise.
27457         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27458         Reported by Jens Staal <staal1978@gmail.com>.
27460 2012-02-02  Jim Meyering  <meyering@redhat.com>
27462         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27463         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27464         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27465         not even to try to add the attribute.  Instead, add a pragma to suppress
27466         the suggestion/warning.
27468 2012-01-31  Karl Berry  <karl@gnu.org>
27470         setstate doc: typo.
27471         * doc/posix-functions/setstate.texi (setstate): { not (.
27473 2012-01-31  Bruno Haible  <bruno@clisp.org>
27475         popen: Make more robust on Windows.
27476         * lib/popen.c: On native Windows, use the _popen based code even if
27477         HAVE_POPEN is set.
27478         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27479         environment variable on native Windows.
27481 2012-01-30  Bruno Haible  <bruno@clisp.org>
27483         pclose: Fix typo.
27484         * lib/stdio.in.h (pclose): Fix typo in warning message.
27486 2012-01-30  Bruno Haible  <bruno@clisp.org>
27488         doc about getlogin_r, setstate.
27489         * doc/posix-functions/getlogin_r.texi: List the incompatible
27490         declaration problem under "not fixed by gnulib".
27491         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27492         problem on Solaris 11 and other platforms.
27494 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27495             Bruno Haible  <bruno@clisp.org>
27497         poll tests: Make test more robust.
27498         * tests/test-poll.c: Include macros.h.
27499         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27500         return value of various I/O operations.
27501         * modules/poll-tests (Files): Add tests/macros.h.
27503 2012-01-30  Bruno Haible  <bruno@clisp.org>
27505         sys_stat: Fix support for mingw64 and MSVC.
27506         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27507         header files already do it.
27508         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27509         stat itself.
27510         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27512 2012-01-30  Bruno Haible  <bruno@clisp.org>
27514         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27516         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27518 2012-01-29  Bruno Haible  <bruno@clisp.org>
27520         quotearg: Fix test failure on MacOS X 10.5.
27521         * tests/test-quotearg-simple.c: Include localcharset.h.
27522         (main): If the locale encoding is not ASCII, bypass the tests of
27523         locale_quoting_style and clocale_quoting_style.
27524         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27526 2012-01-29  Jim Meyering  <meyering@redhat.com>
27528         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27529         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27530         detect uses of canonicalize_file_name.
27532 2012-01-28  Bruno Haible  <bruno@clisp.org>
27534         test-framework-sh: Fix test failure with AIX 7.1 diff.
27535         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27536         in column 1, like 'diff -c' does.
27537         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27538         whether 'diff -u' is used. Instead, test whether the output contains
27539         some '@' character.
27541 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27543         strtoimax: eliminate need for stdint.h, inttypes.h checks
27544         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27545         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27546         the prerequisites for a recently-introduced strtoimax test.
27547         I guess this might cause strtoimax to be replaced when not
27548         strictly necessary on older hosts, but this shouldn't introduce
27549         any bugs and it should make Emacs 'configure' faster on typical
27550         modern hosts.  Problem discovered when importing the latest gnulib
27551         to an Emacs test version.
27552         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27554 2012-01-28  Bruno Haible  <bruno@clisp.org>
27556         sys_time: Override 'struct timeval' on some native Windows platforms.
27557         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27558         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27559         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27560         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27561         needs to be overridden.
27562         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27563         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27564         * tests/test-sys_select.c: Check that the tv_sec member has the same
27565         size as a 'time_t'.
27566         * tests/test-sys_time.c: Likewise.
27567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27568         is set, set also REPLACE_GETTIMEOFDAY.
27569         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27570         convert the resulting 'struct timeval' before returning.
27571         * lib/select.c: Include <sys/time.h>.
27572         (select, timeval): Undefine at the right place.
27573         * modules/select (Depends-on): Add sys_time.
27574         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27575         some Windows platforms.
27576         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27578 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27580         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27581         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27582         an integer.
27583         * lib/fcntl.c (dupfd): Likewise.
27584         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27586 2012-01-28  Bruno Haible  <bruno@clisp.org>
27588         fcntl: Avoid compilation error on native Windows.
27589         * modules/fcntl (Depends-on): Add 'close'.
27591 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27593         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27594         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27595         pointer to an integer.
27596         * lib/poll.c (IsConsoleHandle): Likewise.
27597         * lib/isatty.c (IsConsoleHandle): Likewise.
27599 2012-01-28  Jim Meyering  <meyering@redhat.com>
27601         doc: clarify README-release
27602         * top/README-release: Clarify: you should make a point to have
27603         the latest stable versions of build tools in your PATH, and the
27604         reference to buildreq is solely for its list of tool names, not
27605         for its minimal-functional version numbers.
27606         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27608         maint.mk: use more readable (yet functionally equivalent) quoting
27609         It is common to quote a single quote in a single quoted string like
27610         this:  '...'\''...'.  Unless you know the idiom, that looks like
27611         gibberish, so prefer to double-quote the string when possible.
27612         Then you can use a more readable, lone single quote: "...'..."
27613         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27614         "don't" is more readable than the equivalent 'don'\''t'.
27615         (sc_cast_of_x_alloc_return_value): Likewise.
27616         (sc_cast_of_alloca_return_value): Likewise.
27617         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27618         rather than '\'':'\''.
27620 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27622         stdalign: relax _Alignof and tighten _Alignas test
27623         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27624         as it was too strict: alignof must divide offsetof, but it need
27625         not equal offsetof.  Inspired by Joseph S. Myers's comment
27626         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27627         Conversely, tighten the _Alignas test a bit, as the resulting
27628         alignment must be exactly 8.
27630 2012-01-27  Bruno Haible  <bruno@clisp.org>
27632         stdalign: Document the last change.
27633         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27635 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27637         stdalign: check that alignof and offsetof are consistent
27638         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27639         Problem reported for gnulib by Richard W.M. Jones in
27640         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27642 2012-01-27  Jim Meyering  <meyering@redhat.com>
27644         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27645         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27646         convert a sequence with gaps to the minimal containing range.
27647         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27648         * tests/test-update-copyright.sh: Test for this.
27649         The FSF confirmed it is ok to do this, assuming there is at
27650         least one significant change per year in the affected range:
27651         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27653 2012-01-26  Bruno Haible  <bruno@clisp.org>
27655         pipe2: refine doc about thread-safety
27656         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27657         multithread-safety problem.
27658         * doc/glibc-functions/accept4.texi: Likewise.
27660 2012-01-26  Bruno Haible  <bruno@clisp.org>
27662         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27663         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27664         In the test program, include <fcntl.h>, for O_RDONLY.
27666 2012-01-26  Eric Blake  <eblake@redhat.com>
27668         pipe2: document lack of thread-safety in replacement
27669         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27670         issue in replacement.
27671         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27672         Based on a report by Eric Wong.
27674 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27675             Bruno Haible  <bruno@clisp.org>
27677         malloca: Avoid warnings on x86_64 mingw64.
27678         * lib/malloca.c: Include <stdint.h>.
27679         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27680         * modules/malloca (Depends-on): Add stdint.
27681         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27683 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27685         obstack: remove __STDC__ conditionals
27686         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27687         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27688         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27689         m4/include_next.m4 as the only gnulib-maintained places that still
27690         refer to __STDC__.
27692 2012-01-24  Bruno Haible  <bruno@clisp.org>
27694         havelib: Modern quoting.
27695         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27696         the recent change to the GNU coding standards.
27698 2012-01-24  Bruno Haible  <bruno@clisp.org>
27700         stdint: Improve support for Android.
27701         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27702         Reported by Simon Josefsson <simon@josefsson.org>.
27704 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27706         doc: omit trailing empty lines from INSTALL etc.
27707         * doc/Makefile (INSTALL): Omit trailing empty lines.
27708         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27709         omit trailing empty lines.  This simplifies the build procedure.
27711 2012-01-23  Jim Meyering  <meyering@redhat.com>
27713         tests: avoid spurious warnings about gl_sockets_startup
27714         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27715         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27716         reporting a "statement with no effect".
27717         * tests/test-accept.c (main): Mark as "(void)".
27718         * tests/test-accept4.c (main): Likewise.
27719         * tests/test-bind.c (main): Likewise.
27720         * tests/test-connect.c (main): Likewise.
27721         * tests/test-getpeername.c (main): Likewise.
27722         * tests/test-getsockname.c (main): Likewise.
27723         * tests/test-getsockopt.c (main): Likewise.
27724         * tests/test-listen.c (main): Likewise.
27725         * tests/test-recv.c (main): Likewise.
27726         * tests/test-recvfrom.c (main): Likewise.
27727         * tests/test-send.c (main): Likewise.
27728         * tests/test-sendto.c (main): Likewise.
27729         * tests/test-setsockopt.c (main): Likewise.
27730         * tests/test-shutdown.c (main): Likewise.
27732 2012-01-21  Bruno Haible  <bruno@clisp.org>
27734         locale-fr.m4: Fix for Android.
27735         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27736         failure of the test program on Bionic libc.
27738 2012-01-21  Jim Meyering  <meyering@redhat.com>
27740         bootstrap: fail when bootstrap_post_import_hook fails
27741         Otherwise, it's far too easy to miss diagnostics emitted
27742         between gnulib-tool's output and that of running configure.
27743         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27745 2012-01-17  Jim Meyering  <meyering@redhat.com>
27747         maint: enable sc_trailing_blank
27748         * build-aux/pmccabe.css: Remove trailing blanks.
27749         * doc/acl-cygwin.txt: Likewise.
27750         * doc/gnu-oids.texi: Likewise
27751         * cfg.mk: Enable sc_trailing_blank.
27752         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27754 2012-01-17  Jim Meyering  <meyering@redhat.com>
27756         maint: enable sc_prohibit_openat_without_use
27757         * cfg.mk: Enable sc_prohibit_openat_without_use.
27758         Exempt lib/selinux-at.c.
27760 2012-01-17  Jim Meyering  <meyering@redhat.com>
27762         maint: enable sc_prohibit_cloexec_without_use
27763         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27764         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27766 2012-01-17  Jim Meyering  <meyering@redhat.com>
27768         maint: enable sc_prohibit_intprops_without_use
27769         * cfg.mk: Enable sc_prohibit_intprops_without_use
27770         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27772 2012-01-17  Jim Meyering  <meyering@redhat.com>
27774         maint: enable sc_prohibit_hash_pjw_without_use
27775         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27776         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27777         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27778         following " (".
27780 2012-01-17  Jim Meyering  <meyering@redhat.com>
27782         maint: enable double-word-prohibiting rule
27783         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27784         Exempt three files.
27786 2012-01-17  Jim Meyering  <meyering@redhat.com>
27788         maint: remove empty lines at EOF, but excluding modules/*
27789         Apply syntax rules at home as well as abroad.  Most changes
27790         were induced by running this:
27791           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27792             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27793             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27794         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27795         Exempt modules/* and two binary files.
27796         Also exempt doc/INSTALL*, per request from Bruno Haible.
27797         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27798         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27799         * doc/Copyright/request-assign.future: Likewise.
27800         * doc/Copyright/request-disclaim.changes: Likewise.
27801         * doc/INSTALL: Likewise.
27802         * doc/INSTALL.ISO: Likewise.
27803         * doc/INSTALL.UTF-8: Likewise.
27804         * doc/acl-cygwin.txt: Likewise.
27805         * doc/acl-resources.txt: Likewise.
27806         * doc/fdl-1.2.texi: Likewise.
27807         * doc/fdl-1.3.texi: Likewise.
27808         * doc/fdl.texi: Likewise.
27809         * lib/argp-pin.c: Likewise.
27810         * lib/round.c: Likewise.
27811         * lib/unicase/u16-totitle.c: Likewise.
27812         * lib/unictype/block_test.c: Likewise.
27813         * lib/uninorm/canonical-decomposition.c: Likewise.
27814         * m4/README: Likewise.
27815         * m4/relocatable-lib.m4: Likewise.
27816         * tests/test-isnand-nolibm.c: Likewise.
27817         * tests/test-isnand.c: Likewise.
27818         * tests/uninorm/NormalizationTest.txt: Likewise.
27820 2012-01-17  Jim Meyering  <meyering@redhat.com>
27822         maint: add framework to run syntax-check rules against gnulib sources
27823         * cfg.mk: New file, to disable all currently-failing tests.
27824         We'll enable them one by one, as they are made to pass.
27825         * Makefile (sc_maint): New rule.
27827 2012-01-21  Bruno Haible  <bruno@clisp.org>
27829         stdint: Add support for Android.
27830         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27831         include the system's <stdint.h>.
27832         Reported by Simon Josefsson <simon@josefsson.org>.
27834 2012-01-19  Jim Meyering  <meyering@redhat.com>
27836         bootstrap: add bootstrap_post_import_hook
27837         Bison does still need something like the gnulib_mk_hook whose
27838         invocation I had to remove along with slurp in commit 767ccd40.
27839         Technically, we could get along without it, but doing so would
27840         have required living with a warning and a mandatory post-bootstrap
27841         automake rerun.
27842         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27843         (bootstrap_post_import_hook): New function.
27844         Invoke it after gnulib-tool --import and before autoreconf.
27846 2012-01-18  Jim Meyering  <meyering@redhat.com>
27848         gitlog-to-changelog: don't use "no_"-prefixed variable name
27849         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27850         to enable both --cluster and --no-cluster.  Change variable name,
27851         s/\$no_cluster/$cluster/, and reverse usage to match.
27853         gitlog-to-changelog: use "||", not "or" in expressions
27854         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27855         expressions.
27857 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27859         gitlog-to-changelog: new option --no-cluster
27860         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27861         clustering of adjacent commit messages.
27863 2012-01-17  Jim Meyering  <meyering@redhat.com>
27865         maint: spell file systems with two words, not one
27866         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27867         two words, not one.
27869 2012-01-16  Jim Meyering  <meyering@redhat.com>
27871         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27872         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27874 2012-01-16  Eric Blake  <eblake@redhat.com>
27876         bootstrap: cater to autoconf 2.59
27877         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27878         is not available.
27880         bootstrap: properly check for libtool
27881         * build-aux/bootstrap (libtoolize): Also run libtool when older
27882         usage is detected.
27884 2012-01-15  Bruno Haible  <bruno@clisp.org>
27886         Improve support for MSVC 9.
27887         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27888         clashes on MSVC.
27889         * lib/fcntl.in.h: Likewise.
27890         * lib/stdlib.in.h: Likewise.
27891         * lib/sys_stat.in.h: Likewise.
27893 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27895         gnupload: we hold the master copy of this script now
27896         For motivation and more information, see:
27897         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27898         * build-aux/gnupload: Make it clear in the heading comments that the
27899         master copy of this file is maintained by gnulib.  Since we are at
27900         it, bump its copyright year and ...
27901         ($scriptversion): ... the date in its version.
27902         ($usage): Patches and bug reports should be sent to the gnulib list,
27903         not the automake one.
27904         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27905         anymore.
27907 2012-01-15  Bruno Haible  <bruno@clisp.org>
27909         Fix module 'random'.
27910         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27911         initstate, setstate are declared.
27913 2012-01-14  Bruno Haible  <bruno@clisp.org>
27915         Tests for module 'random'.
27916         * modules/random-tests: New file.
27917         * tests/test-random.c: New file, based on tests/test-random_r.c.
27919         New module 'random'.
27920         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27921         declarations.
27922         * lib/random.c: New file, based on glibc/stdlib/random.c.
27923         * m4/random.m4: New file.
27924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27925         HAVE_RANDOM.
27926         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27927         * modules/random: New file.
27928         * config/srclist.txt: Add an entry for random.c.
27929         * doc/posix-functions/random.texi: Mention the 'random' module.
27930         * doc/posix-functions/initstate.texi: Likewise.
27931         * doc/posix-functions/setstate.texi: Likewise.
27932         * doc/posix-functions/srandom.texi: Likewise.
27934 2012-01-12  Bruno Haible  <bruno@clisp.org>
27936         random_r: Use common idioms.
27937         * lib/random_r.c: Include <stdlib.h> first.
27939         random_r: Override incompatible API on AIX, OSF/1.
27940         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27941         Override the system function if REPLACE_RANDOM_R is 1.
27942         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27943         and OSF/1, set REPLACE_RANDOM_R.
27944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27945         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27946         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27947         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27948         * doc/glibc-functions/random_r.texi: Likewise.
27949         * doc/glibc-functions/setstate_r.texi: Likewise.
27951         random_r: Support for MSVC 9.
27952         * lib/random_r.c: Include stdint.h, not inttypes.h.
27954 2012-01-12  Eric Blake  <eblake@redhat.com>
27956         inet_ntop: guard extra work by IF_LINT
27957         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27958         better code generation when not checking for warnings.
27959         Suggested by Paul Eggert and Jim Meyering.
27961         strptime: fix regression on mingw
27962         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27963         Fix regression.  Reported by Bruno Haible.
27965 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27966             Bruno Haible  <bruno@clisp.org>
27968         copy-file: add error-code-returning variant.
27969         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27970         (qcopy_file_preserving): New declaration.
27971         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27972         copy_file_preserving. Change return type to 'int'. Don't emit an error
27973         message here.
27974         (copy_file_preserving): New function.
27975         * tests/test-copy-file.c: Include <stdlib.h>.
27976         (main): Test qcopy_file_preserving if the environment variable
27977         NO_STDERR_OUTPUT is set.
27978         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27979         with NO_STDERR_OUTPUT
27980         * tests/test-copy-file-2.sh: Likewise.
27982 2012-01-10  Bruno Haible  <bruno@clisp.org>
27984         copy-file: Use 'quote' module consistently.
27985         * lib/copy-file.c (copy_file_preserving): Use quote().
27987         copy-file: Refactor.
27988         * lib/copy-file.c: Include quote.h.
27989         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27990         message here.
27991         * modules/copy-file (Depends-on): Add quote.
27993         acl: Export qcopy_acl.
27994         * lib/acl.h (qcopy_acl): New declaration.
27995         * lib/copy-acl.c (qcopy_acl): Make non-static.
27997         acl: Rename a local variable.
27998         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
28000         acl: Align return values of copy_acl and qcopy_acl.
28001         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
28002         maybe < -1.
28004 2012-01-11  Eric Blake  <eblake@redhat.com>
28006         strptime: silence gcc warnings
28007         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
28008         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
28009         Reported by Daniel P. Berrange.
28011         inet_ntop: silence gcc warning
28012         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
28013         Reported by Daniel P. Berrange.
28015 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
28017         getloadavg test: skip the test on GNU/Linux without /proc mounted
28018         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
28019         file.  When /proc is not mounted, it always fails with ENOENT.
28020         * tests/test-getloadavg.c (main): Treat ENOENT return code from
28021         getloadavg(3) the same way as ENOSYS and ENOTSUP.
28023 2012-01-10  Bruno Haible  <bruno@clisp.org>
28025         regex: Avoid link error on MSVC 9.
28026         * modules/regex (Depends-on): Add wctype.
28028 2012-01-10  Bruno Haible  <bruno@clisp.org>
28030         doc: Mention --with-tests option.
28031         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
28032         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
28033         --with-tests.
28034         Reported by Reuben Thomas.
28036 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
28038         users.txt: order package names lexicographically.
28039         * users.txt: Order package names lexicographically.
28041 2012-01-10  Jim Meyering  <meyering@redhat.com>
28043         maint.mk: fix description in comment
28044         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
28046         ignore-value: remove deprecated ignore_ptr function
28047         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
28048         * NEWS: Note this.
28050 2012-01-09  Jim Meyering  <meyering@redhat.com>
28052         test-init.sh: avoid a subshell
28053         * tests/test-init.sh: Remove protective subshell.
28054         Suggested by Bernhard Voelker.  While a subshell is normally
28055         required to protect against older shells (Solaris, FreeBSD) that
28056         warn about a missing program before performing redirection, the
28057         shell-selection tests performed by init.sh probably exclude any
28058         offending shell.
28060 2012-01-08  Bruno Haible  <bruno@clisp.org>
28062         setlocale tests: Avoid test failure on Solaris 11.0.
28063         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
28064         variable.
28066 2012-01-08  Bruno Haible  <bruno@clisp.org>
28068         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
28069         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28070         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
28071         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
28072         macro.
28073         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
28074         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
28075         * lib/spawn_faction_addopen.c: Add workaround implementation if
28076         HAVE_WORKING_POSIX_SPAWN.
28077         * modules/spawn (Makefile): Substitute
28078         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
28079         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
28080         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
28081         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
28082         (Depends-on): Update conditions.
28083         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28084         the Solaris 11 bug.
28086 2012-01-08  Bruno Haible  <bruno@clisp.org>
28088         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
28089         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28090         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
28091         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
28092         macro.
28093         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
28094         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
28095         * lib/spawn_faction_adddup2.c: Add workaround implementation if
28096         HAVE_WORKING_POSIX_SPAWN.
28097         * modules/spawn (Makefile): Substitute
28098         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
28099         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
28100         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
28101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
28102         (Depends-on): Update conditions.
28103         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28104         the Solaris 11 bug.
28106 2012-01-08  Bruno Haible  <bruno@clisp.org>
28108         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
28109         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28110         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
28111         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
28112         HAVE_WORKING_POSIX_SPAWN.
28113         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
28114         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
28115         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28116         * lib/spawn_faction_addclose.c: Add workaround implementation if
28117         HAVE_WORKING_POSIX_SPAWN.
28118         * modules/spawn (Makefile): Substitute
28119         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
28120         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
28121         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
28122         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28123         (Depends-on): Update conditions.
28124         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28125         the Solaris 11 bug.
28127 2012-01-08  Bruno Haible  <bruno@clisp.org>
28129         doc: Update for Solaris 11.0.
28130         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
28131         * m4/printf.m4: Update comments.
28133 2012-01-08  Bruno Haible  <bruno@clisp.org>
28135         mktime: Avoid compilation error on Solaris 11.
28136         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
28138 2012-01-08  Bruno Haible  <bruno@clisp.org>
28140         doc: Small fix.
28141         * doc/posix-headers/nl_types.texi: Correct platforms list.
28143 2012-01-08  Simon Josefsson  <simon@josefsson.org>
28145         Add lgpl-3.0 module.
28146         * MODULES.html.sh (Support for building documentation): Add
28147         lgpl-3.0.
28148         * modules/lgpl-3.0: New file.
28150 2012-01-08  Jim Meyering  <meyering@redhat.com>
28152         select.c: indent with spaces, not TABs
28153         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
28155 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28157         quotearg: do not use grave accent for left quote
28158         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
28159         locale_quoting_style.
28160         (quotearg_buffer_restyled): Fix example.
28161         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
28163 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28165         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
28166         Most programs do not have translation catalogs for English and much
28167         less separate catalogs for British and American English.  Drop the
28168         suggestion to translators about these two, and provide it
28169         automatically for Unicode locales.  Like most programs, even those
28170         using American English, we use single quotation marks.  This conflicts
28171         with the American typographic convention, but works better when you
28172         cite the entire error message within double quotes.  It also tries not
28173         to clash with established practice and with what non-gnulib programs
28174         will usually do.
28175         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
28176         using an UTF-8 or GB-18030 locale.  The list of other locales with
28177         quotes was provided by Bruno Haible.
28178         (quotearg_buffer_restyled): Adjust instructions to translators.
28179         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
28180         text, since this would be wrong when using Unicode.
28181         * modules/quotearg: Depend on c-strcaseeq.
28183 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28185         quotearg: fix Wikipedia link
28186         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
28188 2012-01-07  Simon Josefsson  <simon@josefsson.org>
28190         Fix for mingw with MSVC9.
28191         * m4/ld-version-script.m4: Check that compiler rejects version
28192         scripts with syntax errors.  Reported by Bruno Haible
28193         <bruno@clisp.org>.
28195 2012-01-06  Bruno Haible  <bruno@clisp.org>
28197         Talk about "native Windows API", not "Woe32".
28198         * lib/accept4.c: Update comments to mention native Windows.
28199         * lib/execute.c: Likewise.
28200         * lib/fatal-signal.c: Likewise.
28201         * lib/localcharset.c: Likewise.
28202         * lib/nanosleep.c: Likewise.
28203         * lib/nl_langinfo.c: Likewise.
28204         * lib/pclose.c: Likewise.
28205         * lib/pipe-filter-gi.c: Likewise.
28206         * lib/pipe-filter-ii.c: Likewise.
28207         * lib/pipe.c: Likewise.
28208         * lib/pipe2.c: Likewise.
28209         * lib/popen.c: Likewise.
28210         * lib/progreloc.c: Likewise.
28211         * lib/relocatable.c: Likewise.
28212         * lib/sigaction.c: Likewise.
28213         * lib/sigprocmask.c: Likewise.
28214         * lib/spawn-pipe.h: Likewise.
28215         * lib/spawn-pipe.c: Likewise.
28216         * lib/spawni.c: Likewise.
28217         * lib/stat-time.h: Likewise.
28218         * lib/w32spawn.h: Likewise.
28219         * tests/test-isatty.c: Likewise.
28220         * lib/config.charset: More comments.
28221         * doc/gnulib-intro.texi: Mention native Windows.
28222         * doc/posix-functions/_Exit_C99.texi: Likewise.
28223         * doc/posix-headers/fcntl.texi: Likewise.
28225 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
28227         argp: Avoid crash if translator uses % characters in a translation.
28228         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
28229         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28231 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28233         doc: C11 and C++11 are now official
28234         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
28235         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
28236         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
28237         * modules/stdalign:
28238         Replace references to draft C1X to C11, and to draft C++0X to C++11.
28240 2012-01-06  Bruno Haible  <bruno@clisp.org>
28242         uc-is-grapheme-break tests: Tweak.
28243         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
28244         message.
28246 2012-01-06  Bruno Haible  <bruno@clisp.org>
28248         test-init.sh: correct the test for diff -u
28249         * tests/test-init.sh: Also redirect stdout to /dev/null.
28251 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28253         Use ', not `, for quoting output.
28254         * build-aux/announce-gen (usage, sizes, print_news_deltas)
28255         (print_changelog_deltas, get_tool_versions, main program):
28256         * build-aux/git-version-gen:
28257         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
28258         * build-aux/move-if-change (help):
28259         * build-aux/useless-if-before-free (usage, main program):
28260         * check-module (parse_module_file, usage)
28261         (find_included_lib_files, check_module):
28262         * lib/argmatch.c (main) [TEST]:
28263         * lib/argp-help.c (_help):
28264         * lib/getopt1.c (main) [TEST]:
28265         * lib/git-merge-changelog.c (usage):
28266         * lib/xstrtol-error.c (xstrtol_error):
28267         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
28268         * m4/argz.m4 (gl_FUNC_ARGZ):
28269         * m4/bison.m4 (gl_BISON):
28270         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
28271         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28272         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28273         * m4/fpending.m4 (gl_PREREQ_FPENDING):
28274         * m4/gc-random.m4 (gl_GC_RANDOM):
28275         * m4/intl.m4 (gt_CHECK_DECL):
28276         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
28277         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
28278         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
28279         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
28280         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28281         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
28282         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
28283         * tests/test-dirname.c (main):
28284         * tests/test-getpass.c (main):
28285         * tests/test-iconvme.c (main):
28286         * tests/test-parse-datetime.c (LOG):
28287         * tests/test-xstrtoimax.sh:
28288         * tests/test-xstrtol.sh:
28289         * tests/test-xstrtoll.sh:
28290         * tests/test-xstrtoumax.sh:
28291         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
28292         * top/GNUmakefile (abort-due-to-no-makefile):
28293         Quote 'like this', not `like this', as per the recent change to
28294         the GNU coding standards.
28296 2012-01-05  Bruno Haible  <bruno@clisp.org>
28298         strtoimax: Don't force a replacement on systems where intmax_t is int.
28299         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
28300         'intmax_t' is not larger than 'int'.
28301         Reported by Pádraig Brady <P@draigBrady.com>.
28303 2012-01-05  Bruno Haible  <bruno@clisp.org>
28305         doc: Mention NetBSD bugs.
28306         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
28307         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
28309 2012-01-05  Bruno Haible  <bruno@clisp.org>
28311         strtoumax tests: Enhance tests.
28312         * tests/test-strtoumax.c (main): Add tests for large values.
28314 2012-01-05  Bruno Haible  <bruno@clisp.org>
28316         strtoimax: Work around AIX 5.1 bug.
28317         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
28318         definition.
28319         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
28320         Set HAVE_STRTOIMAX.
28321         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
28322         REPLACE_STRTOIMAX.
28323         * modules/inttypes-incomplete (Makefile.am): Substitute
28324         REPLACE_STRTOIMAX.
28325         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28326         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
28327         (Depends-on): Update conditions.
28328         * tests/test-strtoimax.c (main): Add tests for large values.
28329         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28331 2012-01-05  Bruno Haible  <bruno@clisp.org>
28333         inttypes: Modernize.
28334         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28335         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28336         (Makefile.am): Update inttypes.h rule.
28338 2012-01-05  Jim Meyering  <meyering@redhat.com>
28340         init.sh: don't waste a subshell just to redirect stderr
28341         * tests/init.sh: In testing for diff -u and diff -c, use a
28342         stderr-redirecting exec inside `...` rather than a subshell.
28344         test-init.sh: avoid failure on HP-UX 11.00
28345         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28346         resolves to diff -c or cmp.  Reported by Bruno Haible.
28348 2012-01-05  Bruno Haible  <bruno@clisp.org>
28350         Tests for module 'strtoull'.
28351         * modules/strtoull-tests: New file.
28352         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28354 2012-01-05  Bruno Haible  <bruno@clisp.org>
28356         Tests for module 'strtoll'.
28357         * modules/strtoll-tests: New file.
28358         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28360 2012-01-05  Bruno Haible  <bruno@clisp.org>
28362         Tests for module 'strtoul'.
28363         * modules/strtoul-tests: New file.
28364         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28366 2012-01-05  Bruno Haible  <bruno@clisp.org>
28368         Tests for module 'strtol'.
28369         * modules/strtol-tests: New file.
28370         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28372 2012-01-04  Jim Meyering  <meyering@redhat.com>
28374         test-init.sh: accommodate Solaris 5.10's different diff -u output
28375         * tests/test-init.sh: Also exempt @@ lines from the comparison
28376         of diff output, since Solaris 5.10 and GNU diff formats differ.
28377         Reported by Stefano Lattarini.
28379 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28381         test-posixtm: don't assume signed integer wraparound
28382         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28383         after signed integer overflow.  Inspired by (though it may not
28384         fix) Bruno Haible's bug report in
28385         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28387         Spell out "Windows 9x" and "Windows XP".
28388         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28389         "Windows 9x" and "WinXP" with "Windows XP".
28391 2012-01-04  Jim Meyering  <meyering@redhat.com>
28393         test-vc-list-files-cvs.sh: remove obsolete comment
28394         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28395         double exit.  Now that's all encapsulated via skip_ and Exit.
28397 2012-01-04  Bruno Haible  <bruno@clisp.org>
28399         Talk about "native Windows API", not "Win32".
28400         * lib/classpath.c: Update comments to mention native Windows.
28401         * lib/csharpexec.c: Likewise.
28402         * lib/dup2.c: Likewise.
28403         * lib/error.c: Likewise.
28404         * lib/fcntl.c: Likewise.
28405         * lib/filename.h: Likewise.
28406         * lib/findprog.c: Likewise.
28407         * lib/get-rusage-as.c: Likewise.
28408         * lib/get-rusage-data.c: Likewise.
28409         * lib/getpagesize.c: Likewise.
28410         * lib/javaexec.c: Likewise.
28411         * lib/msvc-inval.c: Likewise.
28412         * lib/msvc-nothrow.c: Likewise.
28413         * lib/nanosleep.c: Likewise.
28414         * lib/nonblocking.c: Likewise.
28415         * lib/printf-parse.c: Likewise.
28416         * lib/setlocale.c: Likewise.
28417         * lib/sigaction.c: Likewise.
28418         * lib/strerror_r.c: Likewise.
28419         * lib/tmpdir.c: Likewise.
28420         * lib/vasnprintf.c: Likewise.
28421         * lib/w32spawn.h: Likewise.
28422         * lib/waitpid.c: Likewise.
28423         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28424         * m4/locale-ar.m4: Likewise.
28425         * m4/locale-fr.m4: Likewise.
28426         * m4/locale-ja.m4: Likewise.
28427         * m4/locale-tr.m4: Likewise.
28428         * m4/locale-zh.m4: Likewise.
28429         * m4/printf.m4: Likewise.
28430         * tests/test-cloexec.c: Likewise.
28431         * tests/test-copy-acl.sh: Likewise.
28432         * tests/test-copy-file.sh: Likewise.
28433         * tests/test-file-has-acl.sh: Likewise.
28434         * tests/test-set-mode-acl.sh: Likewise.
28435         * tests/test-dup-safer.c: Likewise.
28436         * tests/test-dup2.c: Likewise.
28437         * tests/test-dup3.c: Likewise.
28438         * tests/test-fcntl.c: Likewise.
28439         * tests/test-nonblocking-pipe.h: Likewise.
28440         * tests/test-nonblocking-socket.h: Likewise.
28441         * tests/test-pipe.c: Likewise.
28442         * tests/test-pipe2.c: Likewise.
28443         * tests/test-spawn-pipe-child.c: Likewise.
28444         * doc/acl-resources.txt: Likewise.
28445         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28446         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28447         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28448         * lib/localcharset.c: Update comments to mention native Windows.
28449         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28450         * lib/localename.c: Likewise.
28451         * lib/progreloc.c: Likewise.
28452         * lib/relocatable.c: Likewise.
28453         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28454         (windows_compute_revents): Renamed from win32_compute_revents.
28455         (windows_compute_revents_socket): Renamed from
28456         win32_compute_revents_socket.
28457         * lib/select.c: Update comments to mention native Windows.
28458         (windows_poll_handle): Renamed from win32_poll_handle.
28459         * m4/threadlib.m4: Update comments to mention native Windows.
28460         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28461         --enable-threads=windows instead of --enable-threads=win32. Set
28462         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28463         * lib/glthread/lock.h: Update comments to mention native Windows.
28464         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28465         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28466         USE_WIN32_THREADS.
28467         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28468         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28469         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28470         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28471         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28472         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28473         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28474         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28475         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28476         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28477         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28478         * tests/test-tls.c: Likewise.
28479         Rationale:
28480         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28481         on both 32-bit and 64-bit Windows systems.
28482         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28483         line of distinction is between "native Windows" on one side and Unix/
28484         POSIX systems on the other side. More details in
28485         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28486         Suggested by Paul Eggert.
28488 2012-01-03  Bruno Haible  <bruno@clisp.org>
28490         isatty: Support for MSVC 9.
28491         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28492         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28493         (_isatty_nothrow): New function.
28494         (isatty): Use it instead of _isatty.
28495         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28496         * lib/poll.c (IsConsoleHandle): Likewise.
28497         * lib/select.c (IsConsoleHandle): Likewise.
28498         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28499         (gl_PREREQ_ISATTY): New macro.
28500         * modules/isatty (Depends-on): Add msvc-inval.
28501         (configure.ac): Invoke gl_PREREQ_ISATTY.
28503 2012-01-03  Jim Meyering  <meyering@redhat.com>
28505         maint.mk: remove temporary transition aid from over 1.5 years ago
28506         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28507         purpose was to aid in the transition (avoiding silent malfunction)
28508         from that old name to the new _sc_search_regexp.  This shim was
28509         added by commit 219c504b.
28511         init.sh: do not try to accommodate compare arguments starting with "-"
28512         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28513         compare arguments that start with "-".  Besides, we do not worry
28514         about this when invoking diff or cmp; why start now with sed?
28515         Using "--" to separate options from argument would trigger sed
28516         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28517         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28519 2012-01-02  Bruno Haible  <bruno@clisp.org>
28521         Enhance tests for module 'isatty'.
28522         * modules/isatty-tests (Depends-on): Add pipe-posix.
28523         * tests/test-isatty.c: Include <fcntl.h>.
28524         (DEV_NULL): New macro.
28525         (main): Test the resut of isatty() also on regular files, pipes, and
28526         /dev/null.
28528         New module 'isatty'.
28529         * lib/unistd.in.h (isatty): New declaration.
28530         * lib/isatty.c: New file, based on an idea of
28531         Bastien Roucariès <roucaries.bastien@gmail.com>.
28532         * m4/isatty.m4: New file.
28533         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28534         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28535         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28536         REPLACE_ISATTY.
28537         * modules/isatty: New file.
28538         * doc/posix-functions/isatty.texi: Mention the new module.
28539         Suggested by Paolo Bonzini.
28541 2012-01-02  Bruno Haible  <bruno@clisp.org>
28543         canonicalize: Tweak 2011-12-29 commit.
28544         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28545         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28547 2012-01-02  Jim Meyering  <meyering@redhat.com>
28549         gitlog-to-changelog: describe input syntax in --help output
28550         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28552         gitlog-to-changelog: fix typo in --help: show backslash before email @
28553         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28554         in sources, but not in actual output.
28556 2011-12-30  Jim Meyering  <meyering@redhat.com>
28558         gitlog-to-changelog: don't malfunction when name contains %-directive
28559         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28560         in a name string cause trouble.  E.g., with a user name of "%s",
28561         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28563 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28565         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28566         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28567         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28568         the "  (tiny change)" notation that is appended to the standard
28569         ChangeLog "date  name  email" header line.
28571 2012-01-01  Jim Meyering  <meyering@redhat.com>
28573         test-framework-sh: init.sh: fix "make dist" failure
28574         When using gnulib-tool's --with-tests option and any module that
28575         depends on test-framework-sh, "make dist" would fail due to the
28576         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28577         in the gltests directory, and not in the gllib/ directory.
28578         One way to work around that is to move the EXTRA_DIST += init.sh
28579         from the primary module to the -tests one:
28580         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28581         * modules/test-framework-sh (Makefile.am): ...not here.
28582         Reported by Tom G. Christensen in
28583         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28585         version-etc: update copyright year reported by --version
28586         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28588 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28590         canonicalize: only stat() if required
28591         * lib/canonicalize.c (canonicalize_filename_mode):
28592         Avoid calling l?stat() when both CAN_MISSING,
28593         and CAN_NOLINKS are set, as we neither need
28594         to resolve symlinks or test component existence.
28596 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28598         doc: cover st_ino issues once; add OpenVMS etc.
28599         * doc/posix-functions/stat.texi (stat):
28600         * doc/posix-functions/lstat.texi (lstat):
28601         * doc/posix-functions/fstatat.texi (fstatat):
28602         * doc/posix-functions/fstat.texi (fstat):
28603         Move general 'struct stat' stuff to sys_stat.texi,
28604         leaving behind a pointer.
28605         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28606         Merge duplicate info about 'struct stat' problems into here.
28607         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28608         and suggest partial workarounds.
28610         same-inode: port to OpenVMS
28611         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28612         three st_ino values.
28614 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28616         canonicalize: fix references to stat() and lstat()
28617         * lib/canonicalize.c (canonicalize_filename_mode):
28618         Ensure references always resolve to a replacement
28619         function if required (even via a macro).
28621 2011-12-30  Jim Meyering  <meyering@redhat.com>
28623         gitlog-to-changelog: remove a little duplication
28624         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28625         rather than twice.
28627 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28629         canonicalize: add support for not resolving symlinks
28630         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28631         indicate we don't want to follow symlinks.  Also
28632         provide CAN_MODE_MASK to aid setting these existing
28633         mutually exclusive values.
28634         * lib/canonicalize.c (canonicalize_filename_mode):
28635         Extract the flags from can_mode parameter, which
28636         are currently just used to select between stat()
28637         and lstat().  Also ensure that mutually exclusive
28638         values are flagged immediately as invalid.
28639         * tests/test-canonicalize.c: Verify symlinks are
28640         not followed, and that invalid flag combinations
28641         are diagnosed.
28643 2011-12-25  Jim Meyering  <meyering@redhat.com>
28645         gitlog-to-changelog: do not clump multi-paragraph entries
28646         Identical header lines (date,name,email+coauthors) are suppressed,
28647         thus putting all entries with those same characteristics under
28648         a single header.  However, when a log entry consists of two or
28649         more paragraphs, it may not be clear where it starts and ends.
28650         This change makes it so that such an entry is always separated
28651         from others by a header line, even when that header would
28652         otherwise be suppressed.
28653         * build-aux/gitlog-to-changelog: Implement the above.
28654         Inspired by a related request from Stefano Lattarini in
28655         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28657 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28659         announce-gen: fix `cmd' typo in diagnostic
28660         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28661         diagnostic: a missing '$' meant that the command was not output.
28663 2011-12-23  Jim Meyering  <meyering@redhat.com>
28665         test-framework-sh: distribute init.sh
28666         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28667         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28668         fail due to the lack of init.sh.
28670         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28671         * modules/atexit-tests: Rather than listing tests/init.sh,
28672         now that there's a module for it, simply depend on that new module.
28673         * modules/closein-tests: Likewise.
28674         * modules/exclude-tests: Likewise.
28675         * modules/getcwd-tests: Likewise.
28676         * modules/perror-tests: Likewise.
28677         * modules/pread-tests: Likewise.
28678         * modules/pwrite-tests: Likewise.
28679         * modules/vc-list-files-tests: Likewise.
28680         * modules/verify-tests: Likewise.
28681         * modules/xalloc-die-tests: Likewise.
28682         * modules/xstrtoimax-tests: Likewise.
28683         * modules/xstrtol-tests: Likewise.
28684         * modules/xstrtoll-tests: Likewise.
28685         * modules/xstrtoumax-tests: Likewise.
28686         * modules/yesno-tests: Likewise.
28688 2011-12-22  Jim Meyering  <meyering@redhat.com>
28690         test-framework-sh: add minimal tests of init.sh's compare function
28691         * modules/test-framework-sh-tests: New file.
28692         * tests/test-init.sh: New file.
28694         test-framework-sh: new module
28695         * modules/test-framework-sh: New file.
28696         * MODULES.html.sh (Support for maintaining and releasing projects):
28697         List it.
28699         init.sh: do not emit simulated diff output to stderr
28700         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28702 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28704         .gitignore: ignore gnulib.dvi and regex.info
28705         * doc/.gitignore:add gnulib.dvi and regex.info
28707 2011-12-22  Jim Meyering  <meyering@redhat.com>
28709         init.sh: correct previous change
28710         * tests/init.sh (compare): My previous change was wrong.
28711         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28713         init.sh: avoid unwarranted test failure when using "set -e"
28714         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28715         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28716         a use like "compare exp out" would get evoke an unconditional failure.
28718 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28720         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28721         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28722         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28723         autoreconf that did not.
28724         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28725         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28727 2011-12-17  Jim Meyering  <meyering@redhat.com>
28729         bootstrap: remove some now-unneeded code
28730         This script arose back when gnulib-tool was young.
28731         Since then, it has seen improvements that render much of this
28732         script unnecessary.  In particular, it can now make symlinks
28733         to the files it uses.  Also, I no longer see as much value in
28734         marking files as read-only via comments.
28735         If you relied on the symlink-creation feature of the preceding
28736         version of this script, you can get most of that functionality
28737         by adding the --symlink option to the definition of
28738         gnulib_tool_option_extras in your bootstrap.conf file.
28739         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28740         Run autopoint and libtoolize *before* gnulib-tool.
28741         After it, run an abbreviated autoreconf, rather than a loop around
28742         all tools.
28743         (slirp, bt_mark_as_generated): Remove functions.
28745 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28747         ftoastr: fix typo
28748         * lib/ftoastr.h: Fix misspelling in comment.
28750 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28752         * top/README-release: fix punctuation.
28754 2011-12-17  Jim Meyering  <meyering@redhat.com>
28756         bootstrap: correct the recent buildreq change
28757         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28758         had no effect.
28759         * build-aux/bootstrap (buildreq): Bracket each search term with
28760         "*...*", so that the shell "case" statement works as intended.
28761         Add comments.
28763 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28765         build: let bootstrap resort to wget when downloading .po files
28766         * build-aux/bootstrap (download_po_files): Fallback to wget when
28767         downloading the .po files via rsync fails.  This is necessary to
28768         bootstrap from behind a strict firewall.
28770 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28772         stdint: don't assume C++11 when compiling with g++
28773         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28774         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28775         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28776         work also in C++ before C++11, as that improperly inhibits
28777         generating a substitute stdint.h for that case.
28779 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28781         alloca: protect comment from gnulib-tool
28782         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28783         that gnulib-tool doesn't think it's a license, and munge it to
28784         say "GCC version 3".
28786 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28788         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28789         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28790         $(abs_top_builddir) instead of $(top_builddir).
28792 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28794         strftime-tests: also test nanoseconds
28795         * tests/test-strftime.c (T): Add a test of %N.
28797 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28799         inttypes, stdint: add C++11 support
28800         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28801         when including inttypes.h and stdint.h.  Support this change to
28802         the standard.
28803         * doc/posix-headers/inttypes.texi (inttypes.h):
28804         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28805         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28806         Define if not defined already, for the benefit of pre-C++11 hosts.
28807         Define the standard format macros (e.g., PRId8) always.
28808         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28809         Likewise, if __cpluspus.  Define the standard constant and limit
28810         macros (e.g., INT8_C, INT8_MAX) always.
28811         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28812         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28813         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28814         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28815         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28816         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28817         Likewise.
28819 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28821         nonblocking tests: Fix test failure on Linux/PPC.
28822         Suggested by Prerna Saxena in
28823         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28824         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28825         Set to 1100000.
28827 2011-12-12  Jim Meyering  <meyering@redhat.com>
28829         argmatch: don't hard-code `' when listing valid option arguments
28830         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28831         use the quote function to add quotes.  Use fputs rather than
28832         fprintf for the format string with no format directive.
28834 2011-12-07  Eric Blake  <eblake@redhat.com>
28836         bootstrap: detect tools required by gnulib-tool
28837         * build-aux/bootstrap (buildreq): Provide minimum implicit
28838         dependencies.
28839         * DEPENDENCIES: Mention patch as a prereq.
28841 2011-12-04  Bruno Haible  <bruno@clisp.org>
28843         sethostname: Port to Windows platforms.
28844         * lib/sethostname.c: Provide an alternate implementation for Windows
28845         platforms.
28846         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28847         (main): Skip the test if sethostname() fails with EPERM. On Windows
28848         platforms, don't check the result of gethostname().
28850 2011-12-04  Bruno Haible  <bruno@clisp.org>
28851             Jim Meyering  <meyering@redhat.com>
28853         tests: Avoid spurious error message on platforms without mktemp program.
28854         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28856 2011-12-04  Bruno Haible  <bruno@clisp.org>
28858         sethostname: Fix documentation.
28859         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28860         "not fixed" section.
28862 2011-12-03  Bruno Haible  <bruno@clisp.org>
28864         gnulib-tool: Verify that the License field is present and non-empty.
28865         * gnulib-tool (func_get_license_raw): New function, extracted from
28866         func_get_license.
28867         (func_get_license): Use it. Warn if the module is not a test module and
28868         has no license.
28869         Suggested by Jim Meyering.
28871 2011-12-03  Bruno Haible  <bruno@clisp.org>
28873         sethostname tests: Fix link error on mingw.
28874         * tests/test-sethostname1.c: New file, extracted from
28875         tests/test-sethostname.c.
28876         * tests/test-sethostname2.c: New file, extracted from
28877         tests/test-sethostname.c.
28878         * tests/test-sethostname.c: Remove file.
28879         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28880         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28881         (Depends-on): Add gethostname.
28882         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28883         Link the latter with $(GETHOSTNAME_LIB).
28885         sethostname tests: Fix compilation error on mingw.
28886         * tests/test-sethostname.c: Don't include <sys/types.h>.
28887         (geteuid): Use a dummy value without uid_t.
28888         * modules/sethostname-tests (Depends-on): Remove sys_types.
28890         sethostname tests: Avoid a gcc warning.
28891         * tests/test-sethostname.c (main): Remove an unused variable.
28893         Tweak last commit.
28894         * modules/sethostname-tests (Files): Sort by decreasing importance.
28895         (configure.ac): Check for geteuid.
28896         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28897         the test when there's nothing to test. Drop an unnecessary cast.
28898         Improve an error message. Verify that the final sethostname() call
28899         succeeds.
28901 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28903         Add a test suite for the sethostname module.
28904         * modules/sethostname-tests: New file.  A test program
28905         for the sethostname module.
28906         * tests/test-sethostname.c: Likewise.
28908 2011-12-03  Bruno Haible  <bruno@clisp.org>
28910         Tweak last commit.
28911         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28912         Fix preprocessor directives indentation. Fix typos.
28913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28914         * modules/unistd (Makefile): Likewise.
28916 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28918         Integrate the sethostname module into unistd.
28919         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28920         into the unistd.h header.
28921         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28922         preprocessor directives.
28923         * modules/unistd: Setup the Makefile substitutions of the
28924         SETHOSTNAME preprocessor directives.
28926 2011-12-03  Bruno Haible  <bruno@clisp.org>
28928         Tweak last commit.
28929         * lib/sethostname.c: Don't include <string.h>.
28930         (sethostname): No need to copy the argument string to the stack. Don't
28931         call clearerr. Preserve errno when fprintf failed.
28932         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28933         Don't invoke AC_REPLACE_FUNCS.
28934         * modules/sethostname (Link): Remove empty section.
28935         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28936         failure problem.
28938 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28940         New module 'sethostname'.
28941         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28942         for systems that lack it.
28943         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28944         sethostname declaration and function.
28945         * modules/sethostname: New file.  Define the sethostname module.
28947 2011-12-03  Bruno Haible  <bruno@clisp.org>
28949         Tweak last commit.
28950         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28952 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28954         Split the HOST_NAME_MAX detection into a separate m4 macro.
28955         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28956         macro so it can be used by the pending sethostname module.
28958 2011-12-03  Bruno Haible  <bruno@clisp.org>
28960         Fix module descriptions syntax.
28961         * modules/argv-iter (License): Fix syntax.
28962         * modules/di-set (License): Likewise.
28963         * modules/ino-map (License): Likewise.
28964         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28966 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28968         stdalign: port to Clang 3.0
28969         Problem reported by Simon Josefsson in
28970         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28971         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28972         which has <stdalign.h> but which does not define alignof.
28973         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28975 2011-12-01  Eric Blake  <eblake@redhat.com>
28977         mktempd: silence dd usage
28978         * build-aux/mktempd (rand_bytes): Silence dd.
28980 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28982         manywarnings: Don't mention gcc version in docstring.
28983         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28984         Jim Meyering <meyering@redhat.com>.
28986 2011-11-30  Jim Meyering  <meyering@redhat.com>
28988         hash: mark a few floating point constants with "f" suffix
28989         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28990         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28991         floating point constants with "f", since they're destined to be
28992         saved/used as "float"s.
28994 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28996         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28997         * tests/test-float.c (test_long_double): Correct and re-enable the
28998         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
29000 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
29002         Avoid subtracting two pointers that don't point into the same block.
29003         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
29004         only pointers into the same memory block are subtracted. We cannot
29005         assume that sizeof (ptrdiff_t) == sizeof (void *).
29007 2011-11-29  Eric Blake  <eblake@redhat.com>
29009         maint.mk: add syntax check for use of compare from init.sh
29010         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
29011         moved here from coreutils.
29013         manywarnings: drop -Wunsuffixed-float-constants
29014         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
29015         '1.0D', which is the only way to silence this warning for 'double'.
29017 2011-11-29  Jim Meyering  <meyering@redhat.com>
29019         hash: mark compute_bucket_size with the pure attribute
29020         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
29022         quotearg, propername: correct pragma guard expression
29023         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
29024         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
29026 2011-11-28  Jim Meyering  <meyering@redhat.com>
29028         propername: do not mark proper_name with the const attribute
29029         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
29030         since it examines data pointed to by its parameter.
29031         * lib/propername.c (proper_name): Instead, add a pragma to suppress
29032         the suggestion from -Wsuggest-attribute=const.
29034         propername: mark one more function as const
29035         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
29037 2011-11-27  Jim Meyering  <meyering@redhat.com>
29039         mark functions with const and pure attributes
29041         Mark functions per suggestions from gcc-4.6 when using these options:
29042         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
29043         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
29044         Follow these guidelines: when possible, apply the attribute to
29045         an extern declaration, not to its definition.  Apply it to the
29046         definition only when the definition is static.
29047         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
29048         * lib/argv-iter.h (argv_iter_n_args): Likewise.
29049         * lib/base64.h (isbase64): Likewise.
29050         * lib/basename-lgpl.c (last_component, base_len): Likewise.
29051         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
29052         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
29053         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
29054         (c_tolower, c_toupper): Likewise.
29055         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
29056         * lib/chdir-long.c (find_non_slash): Likewise.
29057         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
29058         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
29059         * lib/file-type.h (file_type): Likewise.
29060         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
29061         * lib/filevercmp.c (verrevcmp): Likewise.
29062         * lib/freadahead.h (freadahead): Likewise.
29063         * lib/fts.c (fts_maxarglen): Likewise.
29064         * lib/hash-pjw.h (hash_pjw): Likewise.
29065         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
29066         * lib/hash.c (is_prime, next_prime): Likewise.
29067         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
29068         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
29069         (hash_table_ok, hash_get_first, hash_string): Likewise.
29070         (compute_bucket_size): Likewise.
29071         * lib/i-ring.h (i_ring_empty): Likewise.
29072         * lib/isnan.c (isnanl): Likewise.
29073         * lib/math.h (isnanl, rpl_isnanl): Likewise.
29074         * lib/memcasecmp.h (memcasecmp): Likewise.
29075         * lib/memchr2.h (memchr2): Likewise.
29076         * lib/memcmp2.h (memcmp2): Likewise.
29077         * lib/parse-datetime.y (lookup_zone): Likewise.
29078         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
29079         [!WINDOWS_SOCKETS]: Likewise.
29080         * lib/strnlen1.h (strnlen1): Likewise.
29081         * lib/uniwidth.in.h (uc_width): Likewise.
29082         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
29083         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
29084         (quoting_options_from_style): Add a comment.
29085         * lib/propername.h (proper_name): Add a comment.
29087 2011-11-27  Bruno Haible  <bruno@clisp.org>
29089         Remove unused macros from !_LIBC code in glibc-borrowed files.
29090         * lib/fnmatch.c (STRCOLL): Remove macro.
29091         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
29092         * lib/glob.c (__stat, __readdir64): Remove macros.
29093         * lib/tempname.c (__open64, __xstat64): Remove macros.
29094         Suggested by Paul Eggert.
29096 2011-11-27  Bruno Haible  <bruno@clisp.org>
29098         getcwd: Fix link error on MSVC 9.
29099         * modules/getcwd (Depends-on): Add readdir, rewinddir.
29101 2011-11-27  Bruno Haible  <bruno@clisp.org>
29103         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
29104         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
29105         HAVE_OPENDIR is 0.
29106         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
29107         HAVE_CLOSEDIR is 0.
29108         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
29109         is 0.
29110         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
29112 2011-11-27  Bruno Haible  <bruno@clisp.org>
29114         getcwd: Fix bug from 2011-08-17.
29115         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
29116         platforms that need it.
29117         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
29118         code of 4 to be a failure, not a success. This ensures that
29119         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
29121 2011-11-27  Bruno Haible  <bruno@clisp.org>
29123         binary-io tests: Avoid test failure on mingw when libtool is used.
29124         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
29125         Don't verify the size of t-bin-out1.tmp here.
29126         * tests/test-binary-io.sh: Verify it here.
29127         Reported by Simon Josefsson.
29129 2011-11-26  Bruno Haible  <bruno@clisp.org>
29131         Fix conflict between two instantiations of module 'unistd'.
29132         * gnulib-tool (func_emit_autoconf_snippet): Substitute
29133         ${include_guard_prefix} also in the autoconf snippet.
29134         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
29135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
29136         GNULIB_UNISTD_H_GETOPT.
29137         * modules/getopt-posix (configure.ac): Set the
29138         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
29139         * modules/getopt-gnu (configure.ac): Likewise.
29140         * modules/unistd (Makefile.am): Change the substitution value of
29141         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
29142         Reported by Simon Josefsson.
29144 2011-11-25  Bruno Haible  <bruno@clisp.org>
29146         pagealign_alloc: Doc and comments.
29147         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
29148         module.
29149         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
29151 2011-11-25  Jim Meyering  <meyering@redhat.com>
29153         test-update-copyright.sh: avoid false-positive failure
29154         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
29155         around false positive failure on Cygwin/Windows.  The latter was
29156         matching erroneously-created files with names like
29157         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
29159 2011-11-25  Simon Josefsson  <simon@josefsson.org>
29161         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
29162         * m4/valgrind-tests.m4: Check that the parameters that will be
29163         used works, not just a subset of them.  Reported by Bruno Haible
29164         <bruno@clisp.org>.
29166 2011-11-24  Jim Meyering  <meyering@redhat.com>
29168         test-stdalign.c: comment out long double tests
29169         * tests/test-stdalign.c: Don't try to reduce alignment of long double
29170         variables.  That provokes errors like this from gcc-4.7.0 20111124:
29171         error: '_Alignas' specifiers cannot reduce alignment of \
29172         'static_longdouble_alignas'.
29174 2011-11-22  Jim Meyering  <meyering@redhat.com>
29176         init.sh: make "compare /dev/null FILE" output more readable
29177         * tests/init.sh (compare_): Document the preferred order of arguments.
29178         (emit_diff_u_header_): New function.
29179         (compare_dev_null_): Emit a simulated diff, rather than just the
29180         contents of the unexpected file.  Suggestion from Bruno Haible.
29182 2011-11-21  Jim Meyering  <meyering@redhat.com>
29183             Eric Blake  <eblake@redhat.com>
29185         init.sh: work around OSF/1 5.1's mishandling of /dev/null
29186         * tests/init.sh: Make our compare function slightly more portable.
29187         Reported by Bruno Haible in
29188         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
29190 2011-11-21  Simon Josefsson  <simon@josefsson.org>
29192         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
29193         before using it, in code that ends up in config.h.
29195 2011-11-20  Bruno Haible  <bruno@clisp.org>
29197         getcwd: Work around getcwd bug on AIX 5..7.
29198         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
29199         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
29200         Use a different value for gl_cv_func_getcwd_path_max. Move the
29201         definition of HAVE_PARTLY_WORKING_GETCWD from here...
29202         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
29203         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
29204         Define HAVE_MINIMALLY_WORKING_GETCWD.
29205         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
29206         where it is not even minimally working, that is, on AIX.
29207         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
29208         m4/getcwd-path-max.m4.
29209         (main): Update exit code computation.
29210         * doc/posix-functions/getcwd.texi: Mention list of platforms where
29211         getcwd does not handle long file names.
29213 2011-11-20  Bruno Haible  <bruno@clisp.org>
29215         getcwd: Fix bug from 2009-09-10.
29216         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
29217         like "no".
29219 2011-11-20  Simon Josefsson  <simon@josefsson.org>
29221         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
29223 2011-11-20  Bruno Haible  <bruno@clisp.org>
29225         fma tests: Avoid shadowing local variables.
29226         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
29227         expected.
29229 2011-11-20  Bruno Haible  <bruno@clisp.org>
29231         copysignf tests: Fix.
29232         * tests/test-copysignf.c: Fix signature check.
29234 2011-11-20  Bruno Haible  <bruno@clisp.org>
29236         fma: Remove unused code.
29237         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
29238         unused macros.
29240 2011-11-20  Bruno Haible  <bruno@clisp.org>
29242         sethostname: Fix doc about AIX.
29243         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
29244         sethostname; it has it.
29246         sethostname: Mention more portability problems.
29247         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
29248         problem.
29249         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29251 2011-11-19  Bruno Haible  <bruno@clisp.org>
29253         Depend on module fcntl-h when AT_FDCWD is used.
29254         * modules/utimens (Depends-on): Add fcntl-h.
29255         * modules/areadlinkat (Depends-on): Likewise.
29256         * modules/areadlinkat-with-size (Depends-on): Likewise.
29257         * modules/faccessat (Depends-on): Likewise.
29258         * modules/fchmodat (Depends-on): Likewise.
29259         * modules/fchownat (Depends-on): Likewise.
29260         * modules/getcwd (Depends-on): Likewise.
29261         * modules/mkdirat (Depends-on): Likewise.
29262         * modules/mkfifoat (Depends-on): Likewise.
29263         * modules/readlinkat (Depends-on): Likewise.
29264         * modules/symlinkat (Depends-on): Likewise.
29265         * modules/dup2-tests (Depends-on): Likewise.
29266         * modules/fdutimensat-tests (Depends-on): Likewise.
29267         * modules/futimens-tests (Depends-on): Likewise.
29269 2011-11-19  Bruno Haible  <bruno@clisp.org>
29271         euidaccess: Update a comment.
29272         * lib/euidaccess.c: Update comment about platforms with faccessat.
29274 2011-11-19  Bruno Haible  <bruno@clisp.org>
29276         openat: Fix file list.
29277         * modules/openat (Files): Remove lib/at-func.c.
29279 2011-11-19  Bruno Haible  <bruno@clisp.org>
29281         fstatat: Simplify.
29282         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
29283         gnulib should define rpl_fstatat, there is a
29284         "#define fstatat rpl_fstatat" in <sys/stat.h>.
29286 2011-11-19  Bruno Haible  <bruno@clisp.org>
29288         Ensure 'inline' can be used in tests/test-utimens-common.h.
29289         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
29290         * modules/futimens-tests (configure.ac): Likewise.
29291         * modules/utimens-tests (configure.ac): Likewise.
29292         * modules/utimensat-tests (configure.ac): Likewise.
29294 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29296         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
29297         not hash_insert0.
29298         (hash_insert_if_absent): Doc fix.
29300 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29302         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
29304 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29306         test-getcwd: disambiguate exit status
29307         * tests/test-getcwd.c (test_long_name): Return 0..7.
29308         (main): Exit with an unambiguous exit status.  The old
29309         code yielded a mysterious mixture of two failure codes.
29311         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
29312         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
29313         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
29314         rpl_fstatat or fstatat.  This should fix the other problem
29315         reported by Kai Habel in
29316         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29317         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
29318         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
29319         and I reproduced it on a Solaris 8 host we still have in production.
29321 2011-11-18  Jim Meyering  <meyering@redhat.com>
29323         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
29324         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
29325         Add a sentence to the comment.
29326         (hash_insert0): New function that simply calls hash_insert_if_absent.
29327         * lib/hash.h (hash_insert_if_absent): Declare it.
29328         (hash_insert0): Add deprecation attribute.
29329         (_GL_ATTRIBUTE_DEPRECATED): Define.
29330         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29331         not hash_insert0.
29332         * NEWS: Mention it, even though it's not really an incompatible change.
29334 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29336         openat: avoid compilation failure due to lack of <errno.h> inclusion
29337         * lib/openat.c: Include <errno.h>.
29339 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29341         * modules/getcwd (Depends-on): Add fdopendir.
29342         This fixes one of the two problems reported by Kai Habel in
29343         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29345         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29346         stdalign problem reported by Ian Beckwith in
29347         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29348         * modules/crypto/gc-arcfour (Depends-on):
29349         Depend conditionally on crypto/arcfour.
29350         * modules/crypto/gc-arctwo (Depends-on):
29351         Depend conditionally on crypto/arctwo.
29352         * modules/crypto/gc-des (Depends-on):
29353         Depend conditionally on crypto/des.
29354         * modules/crypto/gc-hmac-md5 (Depends-on):
29355         Depend conditionally on crypto/hmac-md5.
29356         * modules/crypto/gc-hmac-sha1 (Depends-on):
29357         Depend conditionally on crypto/hmac-sha1.
29358         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29359         * modules/crypto/gc-md4 (Depends-on):
29360         Depend conditionally on crypto/md4.
29361         * modules/crypto/gc-md5 (Depends-on):
29362         Depend conditionally on crypto/md5.
29363         * modules/crypto/gc-rijndael (Depends-on):
29364         Depend conditionally on crypto/rijndael.
29365         * modules/crypto/gc-sha1 (Depends-on):
29366         Depend conditionally on crypto/sha1.
29367         * modules/crypto/gc-arcfour:
29368         * modules/crypto/gc-arctwo:
29369         * modules/crypto/gc-des:
29370         * modules/crypto/gc-hmac-md5:
29371         * modules/crypto/gc-hmac-sha1:
29372         * modules/crypto/gc-md2:
29373         * modules/crypto/gc-md4:
29374         * modules/crypto/gc-md5:
29375         * modules/crypto/gc-rijndael:
29376         * modules/crypto/gc-sha1:
29377         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29378         now that the conditional dependencies do the work for us.
29380 2011-11-17  Jim Meyering  <meyering@redhat.com>
29382         tests: factor st_ctime-comparison out of two headers
29383         * tests/test-utimens-common.h (ctime_compare): Define.
29384         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29385         * tests/test-lutimens.h (test_lutimens): Likewise.
29386         * tests/test-utimens.h (test_utimens): Likewise.
29388         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29389         Invoke the test program via an init.sh-using wrapper.
29390         * tests/test-getcwd.sh: New file.
29391         * modules/getcwd-tests (Files): Add it.
29392         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29394 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29396         gitlog-to-changelog: support multi-author commits.
29397         The FSF cares about keeping track of all authors of patches to its
29398         projects, but Git doesn't provide obvious support for multi-author
29399         changesets. Consensus seems to be forming around the use of extra
29400         Signed-off-by inspired lines in the log message formatted as
29401         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29402         multi-author commits between version control systems.
29403         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29404         log message and output in standard ChangeLog multi-author format.
29405         Reported by Peter Rosin <peda@lysator.liu.se>
29407 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29408             Bruno Haible  <bruno@clisp.org>
29410         Fix some modules' file list.
29411         * modules/fstatat (Files): Add m4/lstat.m4.
29412         * modules/openat (Files): Likewise.
29413         * modules/unlinkat (Files): Likewise.
29415 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29417         maint.mk: fix tight-scope.mk generation in VPATH builds.
29418         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29419         reference with $(srcdir) so that the file is found correctly even
29420         when running `make syntax-check' in a VPATH build.
29422 2011-11-13  Bruno Haible  <bruno@clisp.org>
29423             Jim Meyering  <meyering@redhat.com>
29425         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29426         * tests/init.sh (compare): Remove "No differences encountered" or
29427         synonymous output from the 'diff' program.
29429 2011-11-13  Bruno Haible  <bruno@clisp.org>
29431         Makefile: Tweak indentation.
29432         * Makefile: Use tab as first character in every line that contains rule
29433         commands.
29435 2011-11-13  Bruno Haible  <bruno@clisp.org>
29437         Syntax check for copyright statements.
29438         * check-copyright: New file.
29439         * Makefile (sc_check_copyright): New rule.
29441 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29443         * build-aux/git-version-gen: Add --prefix to configure the tag
29444         match string.
29446 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29448         * build-aux/git-version-gen: Add --help and --version.
29450 2011-11-12  Jim Meyering  <meyering@redhat.com>
29452         revamp the other test-exclude?.sh scripts to use init.sh, too
29453         * tests/test-exclude1.sh: Use init.sh.
29454         * tests/test-exclude2.sh: Likewise.
29455         * tests/test-exclude3.sh: Likewise.
29456         * tests/test-exclude4.sh: Likewise.
29457         * tests/test-exclude5.sh: Likewise.
29458         * tests/test-exclude6.sh: Likewise.
29459         * tests/test-exclude7.sh: Likewise.
29460         * tests/test-exclude8.sh: Likewise.
29461         * modules/exclude-tests (Files): List init.sh.
29463         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29464         These shell scripts ignored failure of the binary test-exclude,
29465         so making the latter return 77 didn't cause them to be skipped.
29466         * tests/test-exclude5.sh: Exit with test-exclude's error status
29467         when that program fails.  Revamp to use init.sh.
29468         * tests/test-exclude2.sh: Likewise.
29470         test-exclude: fix a typo
29471         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29473 2011-11-11  Bruno Haible  <bruno@clisp.org>
29475         obstack: Fix compilation error on MSVC 9.
29476         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29478 2011-11-11  Jim Meyering  <meyering@redhat.com>
29480         test-exclude: skip tests rather than failing on deficient systems
29481         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29482         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29483         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29484         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29486 2011-11-10  Bruno Haible  <bruno@clisp.org>
29488         ptsname_r test: Avoid gcc warning on glibc systems.
29489         * tests/test-ptsname_r.c (null_ptr): New function.
29490         (test_errors): Use it.
29492 2011-11-10  Bruno Haible  <bruno@clisp.org>
29494         ptsname_r: Avoid compilation error on OSF/1 5.1.
29495         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29497         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29498         function is not declared or incompatibly declared.
29499         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29500         * modules/ptsname_r (Depends-on, configure.ac): Update.
29501         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29503 2011-11-10  Bruno Haible  <bruno@clisp.org>
29505         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29506         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29507         When cross-compiling, guess yes on all platforms except AIX.
29508         Reported by Ludovic Courtès <ludo@gnu.org>.
29510 2011-11-09  Bruno Haible  <bruno@clisp.org>
29512         ptsname_r tests: Fix bugs.
29513         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29514         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29516 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29518         fstatat: work with cross-compilation
29519         Problem reported by Ludovic Courtès in
29520         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29521         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29522         "cross-compiling" and assume the bug is present.  Replace
29523         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29524         an inverted sense, to be more conservative about our assumptions.
29525         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29527 2011-11-09  Bruno Haible  <bruno@clisp.org>
29529         Improve MODULES.html output.
29530         * modules/mkfifoat (Description): Use the word "function".
29531         * modules/readlinkat (Description): Likewise.
29532         * modules/symlinkat (Description): Likewise.
29534 2011-11-09  Eric Blake  <eblake@redhat.com>
29536         ptsname_r-tests: new test module
29537         * modules/ptsname_r-tests: New module.
29538         * tests/test-ptsname_r.c: New file.
29540         ptsname_r: new module
29541         * modules/ptsname_r: New module.
29542         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29543         * lib/ptsname.c (__ptsname_r): Split...
29544         * lib/ptsname_r.c: ...into new file.
29545         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29546         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29547         * modules/stdlib (Makefile.am): Substitute witnesses.
29548         * lib/stdlib.in.h (ptsname_r): Declare it.
29549         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29550         * MODULES.html.sh (Misc): Likewise.
29551         * modules/ptsname (Depends-on): Alter dependency.
29552         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29554 2011-11-09  Jim Meyering  <meyering@redhat.com>
29556         announce-gen: be more concise when there's only one URL+tarball
29557         * build-aux/announce-gen (get_tool_versions): When you distribute
29558         only one type of tarball, combine the first two "Here are..."
29559         sections and make the key-checking grammar independent of
29560         how many tarballs there are.
29562 2011-11-09  Eric Blake  <eblake@redhat.com>
29564         openpty: provide a stub on mingw
29565         * lib/pty.in.h (includes): Provide forward declarations.
29566         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29568         raise: fix mingw handling of SIGPIPE
29569         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29571 2011-11-08  Bruno Haible  <bruno@clisp.org>
29573         More conditional dependencies.
29574         * modules/faccessat (Depends-on): Add conditions.
29575         * modules/fchmodat (Depends-on): Likewise.
29576         * modules/fchownat (Depends-on): Likewise.
29577         * modules/fstatat (Depends-on): Likewise.
29578         * modules/mkfifoat (Depends-on): Likewise.
29579         * modules/readlinkat (Depends-on): Likewise.
29580         * modules/symlinkat (Depends-on): Likewise.
29581         * modules/unlinkat (Depends-on): Likewise.
29582         * modules/utimensat (Depends-on): Likewise.
29583         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29584         * modules/linkat (Depends-on): Refine the conditions.
29585         * modules/renameat (Depends-on): Likewise.
29587 2011-11-08  Bruno Haible  <bruno@clisp.org>
29589         faccessat: Move AC_LIBOBJ invocation to module description.
29590         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29591         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29592         invocation from here...
29593         * modules/faccessat (configure.ac): ... to here. Invoke
29594         gl_PREREQ_FACCESSAT.
29596 2011-11-08  Bruno Haible  <bruno@clisp.org>
29598         faccessat: Simplify autoconf macro.
29599         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29600         gl_FUNC_EUIDACCESS.
29602 2011-11-08  Bruno Haible  <bruno@clisp.org>
29604         renameat: Fix dependencies.
29605         * modules/renameat (Depends-on): Add stdbool.
29607 2011-11-08  Bruno Haible  <bruno@clisp.org>
29609         mkfifoat: Fix module description.
29610         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29611         not gl_UNISTD_MODULE_INDICATOR.
29613 2011-11-08  Bruno Haible  <bruno@clisp.org>
29615         fstatat: Remove unused dependency.
29616         * modules/fstatat (Depends-on): Remove fstat.
29618 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29620         GNUmakefile: behave when Makefile is missing.
29621         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29623 2011-11-08  Bruno Haible  <bruno@clisp.org>
29625         openat: Conditionalize dependencies.
29626         * lib/openat.c: Reduce the scope of some #includes.
29627         * modules/openat (Depends-on): Add conditions.
29629 2011-11-07  Jim Meyering  <meyering@redhat.com>
29631         maint.mk: extract GPG key ID without using a temporary file
29632         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29633         without using a temporary file.  Based on a suggestion from Werner Koch
29634         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29636 2011-11-07  Eric Blake  <eblake@redhat.com>
29638         grantpt: fix typo
29639         * lib/stdlib.in.h (grantpt): Check correct function.
29641         maint.mk: silence new syntax check
29642         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29644 2011-11-06  Bruno Haible  <bruno@clisp.org>
29646         Doc about floating-point and math API.
29647         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29648         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29650 2011-11-06  Bruno Haible  <bruno@clisp.org>
29652         stdalign tests: Skip the test when compiled by Sun C.
29653         * tests/test-stdalign.c (main): Skip the test on Sun C.
29655 2011-11-06  Bruno Haible  <bruno@clisp.org>
29657         ansi-c++-opt: Complete the 2011-06-05 change.
29658         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29659         does not support namespaces, set the variable to "no", not to ":".
29661 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29663         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29665 2011-11-06  Bruno Haible  <bruno@clisp.org>
29667         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29668         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29669         (minus_zerol) [HP-UX]: New macro.
29670         (unary_minus) [HP-UX]: New function.
29671         (copysignl) [HP-UX]: Use unary_minus function.
29673 2011-11-06  Bruno Haible  <bruno@clisp.org>
29675         ldexp, ldexpf, ldexpl: Enhance tests.
29676         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29677         and tests/test-ldexpl.c.
29678         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29679         LDEXP, MIN_EXP, MAX_EXP): New macros.
29680         Include test-ldexp.h.
29681         (main): Just call test_function.
29682         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29683         infinity.h, nan.h.
29684         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29685         MAX_EXP): New macros.
29686         Include test-ldexp.h.
29687         (x, y): Remove variables.
29688         (main): Just call test_function.
29689         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29690         infinity.h, nan.h.
29691         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29692         MAX_EXP): New macros.
29693         Include test-ldexp.h.
29694         (x, y): Remove variables.
29695         (main): Just call test_function.
29696         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29697         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29698         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29699         (Depends-on): Add isnand-nolibm, signbit, float.
29700         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29701         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29702         (Depends-on): Add isnanf-nolibm, signbit, float.
29704 2011-11-06  Bruno Haible  <bruno@clisp.org>
29706         math tests: Cosmetics.
29707         * tests/test-math-c++.cc: Reorder declarations.
29709 2011-11-05  Bruno Haible  <bruno@clisp.org>
29711         fma*: Simplify test.
29712         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29713         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29715         Tests for module 'fmal'.
29716         * modules/fmal-tests: New file.
29717         * tests/test-fmal1.c: New file.
29718         * tests/test-fmal2.c: New file.
29720         New module 'fmal'.
29721         * lib/math.in.h (fmal): New declaration.
29722         * lib/fmal.c: New file.
29723         * m4/fmal.m4: New file.
29724         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29726         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29727         REPLACE_FMAL.
29728         * modules/fmal: New file.
29729         * doc/posix-functions/fmal.texi: Mention the new module and the various
29730         bugs.
29732         Tests for module 'fmaf'.
29733         * modules/fmaf-tests: New file.
29734         * tests/test-fmaf1.c: New file.
29735         * tests/test-fmaf2.c: New file.
29737         New module 'fmaf'.
29738         * lib/math.in.h (fmaf): New declaration.
29739         * lib/fmaf.c: New file.
29740         * m4/fmaf.m4: New file.
29741         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29743         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29744         REPLACE_FMAF.
29745         * modules/fmaf: New file.
29746         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29747         bugs.
29749         Tests for module 'fma'.
29750         * modules/fma-tests: New file.
29751         * tests/test-fma1.c: New file.
29752         * tests/test-fma1.h: New file.
29753         * tests/test-fma2.c: New file.
29754         * tests/test-fma2.h: New file.
29756         New module 'fma'.
29757         * lib/math.in.h (fma): New declaration.
29758         * lib/fma.c: New file.
29759         * m4/fma.m4: New file.
29760         * m4/fegetround.m4: New file.
29761         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29763         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29764         REPLACE_FMA.
29765         * modules/fma: New file.
29766         * doc/posix-functions/fma.texi: Mention the new module and the various
29767         bugs.
29769         Extend gl_MATHFUNC.
29770         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29771         Support 'void' as argument type.
29772         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29774 2011-11-05  Jim Meyering  <meyering@redhat.com>
29776         maint.mk: also prohibit inclusion of dirent.h without use
29777         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29779 2011-11-05  Bruno Haible  <bruno@clisp.org>
29781         ldexpl tests: Avoid test failure on MSVC 9.
29782         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29783         value. Needed in order to enforce the conversion from a value greater
29784         than LDBL_MAX to Infinity.
29786 2011-11-05  Bruno Haible  <bruno@clisp.org>
29788         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29789         * modules/at-internal: New file, extracted from modules/openat.
29790         * modules/openat-h: New file.
29791         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29792         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29793         * modules/openat (Description): Add reference to POSIX function.
29794         (Files): Remove lib/openat.h, lib/openat-proc.c.
29795         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29796         intprops, unistd.
29797         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29798         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29799         gl_FCNTL_MODULE_INDICATOR.
29800         (Include): Remove unistd.h, openat.h.
29801         * modules/areadlinkat (Files): Add lib/at-func.c.
29802         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29803         openat-die, openat-h, save-cwd.
29804         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29805         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29806         openat-die, openat-h, save-cwd, unistd.
29807         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29808         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29809         openat-h, save-cwd. Remove fcntl-h, openat.
29810         * modules/fchmodat (Files): Remove lib/openat.h.
29811         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29812         openat, stdbool, unistd.
29813         * modules/fchownat (Files): Remove lib/openat.h.
29814         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29815         openat, stdbool, sys_stat.
29816         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29817         lib/openat-proc.c.
29818         (Depends-on): Add at-internal.
29819         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29820         * modules/fstatat (Files): Remove lib/openat.h.
29821         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29822         stdbool, unistd.
29823         * modules/fts (Depends-on): Add openat-h.
29824         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29825         openat.
29826         * modules/mkdirat (Files): Remove lib/openat.h.
29827         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29828         openat, stdbool, sys_stat.
29829         * modules/mkfifoat (Files): Add lib/at-func.c.
29830         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29831         openat-h, save-cwd. Remove fcntl-h, openat.
29832         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29833         * modules/readlinkat (Files): Add lib/at-func.c.
29834         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29835         openat-h, save-cwd. Remove fcntl-h, openat.
29836         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29837         openat.
29838         * modules/selinux-at (Files): Add lib/at-func.c.
29839         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29840         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29841         * modules/symlinkat (Files): Add lib/at-func.c.
29842         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29843         openat-h, save-cwd. Remove fcntl-h, openat.
29844         * modules/unlinkat (Files): Remove lib/openat.h.
29845         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29846         stdbool.
29847         * modules/utimensat (Files): Add lib/at-func.c.
29848         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29849         openat-die, openat-h, save-cwd.
29850         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29851         * modules/fdutimensat-tests (Depends-on): Add openat.
29852         * modules/fstatat-tests (Depends-on): Add openat-h.
29853         * modules/readlinkat-tests (Depends-on): Add openat.
29854         * modules/symlinkat-tests (Depends-on): Add openat.
29856 2011-11-05  Bruno Haible  <bruno@clisp.org>
29858         openat: Include <stdbool.h>.
29859         * lib/openat.c: Include <stdbool.h>.
29861 2011-11-04  Bruno Haible  <bruno@clisp.org>
29863         fchownat, renameat, unlinkat: Fix dependencies.
29864         * modules/fchownat (Depends-on): Add fstatat.
29865         * modules/renameat (Depends-on): Likewise.
29866         * modules/unlinkat (Depends-on): Likewise.
29868 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29870         openat: remove direct dependency on dirent
29871         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29872         and hasn't been needed ever since fdopendir was split into its own
29873         module on 2009-08-31.
29874         * modules/openat (Depends-on): Remove dirent.
29876 2011-11-04  Bruno Haible  <bruno@clisp.org>
29878         renameat: Optimize code size.
29879         * modules/renameat (configure.ac): Don't compile at-func2.c if
29880         REPLACE_RENAMEAT is 1.
29882 2011-11-04  Bruno Haible  <bruno@clisp.org>
29884         openat tests: Fix file list.
29885         * modules/openat-tests (Files): Add tests/test-open.h.
29887 2011-11-04  Bruno Haible  <bruno@clisp.org>
29889         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29890         * modules/fchmodat (Depends-on): Add openat-die.
29891         * modules/fchownat (Depends-on): Likewise.
29892         * modules/linkat (Depends-on): Likewise.
29893         * modules/renameat (Depends-on): Likewise.
29894         * modules/openat (Depends-on): Add dirent.
29896 2011-11-04  Jim Meyering  <meyering@redhat.com>
29898         at-func*.c: fix comments
29899         * lib/at-func2.c: Correct/improve first-line comment.
29900         * lib/at-func.c: Correct grammar in first-line comment.
29902 2011-11-04  Bruno Haible  <bruno@clisp.org>
29904         New module 'mkdirat', split off from module 'openat'.
29905         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29906         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29907         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29908         * modules/mkdirat: New file, extracted from modules/openat.
29909         * modules/openat (Files): Remove lib/mkdirat.c.
29910         (Depends-on): Remove mkdir.
29911         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29912         (Include): Remove <sys/stat.h>.
29913         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29914         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29915         tests/test-mkdir.h.
29916         (Depends-on): Remove ignore-value.
29917         (Makefile.am): Remove rules for test-mkdirat.
29918         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29919         of module 'openat'.
29920         * NEWS: Mention the change.
29922 2011-11-04  Bruno Haible  <bruno@clisp.org>
29924         closedir: Avoid warning on mingw.
29925         * lib/closedir.c: Include <unistd.h>.
29927 2011-11-04  Bruno Haible  <bruno@clisp.org>
29929         New module 'fstatat', split off from module 'openat'.
29930         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29931         defined.
29932         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29933         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29934         gl_FUNC_FSTATAT.
29935         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29936         * modules/fstatat: New file, extracted from modules/openat.
29937         * modules/openat (Files): Remove lib/fstatat.c.
29938         (Depends-on): Remove lstat.
29939         (configure.ac): Remove AC_LIBOBJ of fstatat.
29940         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29941         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29942         tests/test-lstat.h, tests/test-stat.h.
29943         (Depends-on): Remove getcwd-lgpl.
29944         (Makefile.am): Remove rules for test-fstatat.
29945         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29946         of module 'openat'.
29947         * NEWS: Mention the change.
29948         * modules/getcwd (Depends-on): Add fstatat.
29949         * modules/linkat (Depends-on): Likewise.
29950         * modules/mkfifoat-tests (Depends-on): Likewise.
29951         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29953 2011-11-03  Bruno Haible  <bruno@clisp.org>
29955         New module 'unlinkat', split off from module 'openat'.
29956         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29957         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29958         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29959         * modules/unlinkat: New file, extracted from modules/openat. Correct
29960         the dependency conditions.
29961         * modules/openat (Files): Remove lib/unlinkat.c.
29962         (Depends-on): Remove rmdir, unlink.
29963         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29964         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29965         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29966         tests/test-rmdir.h, tests/test-unlink.h.
29967         (Depends-on): Remove unlinkdir.
29968         (Makefile.am): Remove rules for test-unlinkat.
29969         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29970         of module 'openat'.
29971         * NEWS: Mention the change.
29972         * modules/linkat-tests (Depends-on): Add unlinkat.
29973         * modules/mkfifoat-tests (Depends-on): Likewise.
29974         * modules/readlinkat-tests (Depends-on): Likewise.
29976 2011-11-02  Bruno Haible  <bruno@clisp.org>
29978         New module 'fchmodat', split off from module 'openat'.
29979         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29980         defined.
29981         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29982         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29983         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29984         * modules/fchmodat: New file, extracted from modules/openat.
29985         * modules/openat (Files): Remove lib/fchmodat.c.
29986         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29987         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29988         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29989         (Makefile.am): Remove rules for test-fchmodat.
29990         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29991         of module 'openat'.
29992         * NEWS: Mention the change.
29994 2011-11-02  Jim Meyering  <meyering@redhat.com>
29996         putenv: indent #definition of "environ" to placate cppi
29997         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29999         gitlog-to-changelog: provide a ChangeLog-repair mechanism
30000         Git logs are often treated as immutable, because editing them
30001         changes the SHA1 checksums of all descendants.  Thus, errors in
30002         git logs tend to stay there forever.  However, when we generate
30003         a ChangeLog file -- typically for distribution -- from that git log,
30004         we can actually make corrections in the generated file.  The key
30005         lies in recording in machine-readable/applicable form the desired
30006         corrections.  See --help for description and an example.
30007         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
30008         (usage): Describe it; alphabetize option descriptions.
30009         (main): Honor the new option, carefully.
30011 2011-11-01  Jim Meyering  <meyering@redhat.com>
30013         gitlog-to-changelog: avoid an infloop
30014         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
30015         that ends up being empty.
30017 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30019         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
30020         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
30021         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
30022         contains (possibly-quoted) backslashes.  This should avoid
30023         all-too-common shell bugs if COMPLICATED contains backslashes in
30024         the "wrong" places.  Reported by David Evans in
30025         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
30026         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
30027         because we want ASCII ranges.  Is there some reason we don't use
30028         the C locale everywhere in this script?
30029         (func_module, top level): Avoid unwanted pathname expansion when
30030         $repo_url_prefix or $repo_url_suffix_repl contain shell
30031         metacharacters like '?' and '*'.
30033 2011-11-01  Bruno Haible  <bruno@clisp.org>
30035         fchownat: Improve description.
30036         * modules/fchownat (Description): Add link to function.
30038 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30040         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
30041         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
30042         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
30043         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
30045 2011-11-01  Bruno Haible  <bruno@clisp.org>
30047         alignof: Avoid collision with stdalign module.
30048         * lib/alignof.h (alignof): Remove macro.
30049         * NEWS: Mention the change.
30050         Reported by Paul Eggert.
30052 2011-11-01  Bruno Haible  <bruno@clisp.org>
30054         New module 'fchownat', split off from module 'openat'.
30055         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
30056         defined.
30057         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
30058         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
30059         invoke gl_FUNC_FCHOWNAT.
30060         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
30061         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
30062         * modules/fchownat: New file, extracted from modules/openat.
30063         * modules/openat (Files): Remove lib/fchownat.c.
30064         (Depends-on): Remove lchown.
30065         (configure.ac): Remove AC_LIBOBJ of fchownat.
30066         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
30067         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
30068         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
30069         (Depends-on): Remove mgetgroups, usleep, stat-time.
30070         (configure.ac): Remove test for getegid.
30071         (Makefile.am): Remove rules for test-fchownat.
30072         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
30073         of module 'openat'.
30074         * NEWS: Mention the change.
30076 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30078         stdalign: port better to MSVC and to Sun C 5.11
30079         This fixes some of the problems reported by Bruno Haible in
30080         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
30081         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
30082         shortcomings of MSVC and of Sun C 5.11.
30083         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
30084         around __declspec arg.
30085         * modules/stdalign-tests (Files): Add tests/macros.h.
30086         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
30087         Include macros.h, for ASSERT.
30088         (DECLARE_ALIGNED): Remove.
30089         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
30090         to catch bug), and to 1 if not (simplifies the rest of the code).
30091         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
30092         (CHECK_AUTO): Remove.
30093         (CHECK_ALIGNED): Check only the alignment of the static vars,
30094         since auto var alignment isn't supported by Sun C 5.11.
30095         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
30096         ASSERT failures are easier to diagnose.
30098 2011-10-31  Bruno Haible  <bruno@clisp.org>
30100         doc about some IRIX 5.3 problems.
30101         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
30102         on IRIX 5.3.
30103         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
30104         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
30105         5.3.
30106         * doc/posix-functions/grantpt.texi: Likewise.
30107         * doc/posix-functions/unlockpt.texi: Likewise.
30108         * doc/posix-functions/lgamma.texi: Likewise.
30109         * doc/posix-functions/nextafter.texi: Likewise.
30110         * doc/posix-functions/remainder.texi: Likewise.
30111         * doc/posix-functions/select.texi: Mention misplaced declaration on
30112         IRIX 5.3.
30113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30115 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
30117         gitlog-to-changelog: fix git-log invocation.
30118         git-log mishandles date strings before 1970-01-01 UTC, and there is
30119         no use to specify --since=1970-01-01 by default anyway.
30120         * build-aux/gitlog-to-changelog: By default, when no --since option
30121         was given, do not specify explicit --since option to git-log.
30123 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
30125         gitlog-to-changelog: new option --append-dot.
30126         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
30127         first non-blank line of each commit message terminated with a dot.
30129 2011-10-30  Bruno Haible  <bruno@clisp.org>
30131         ffsl, ffsll: Avoid compilation error due to 'restrict'.
30132         * lib/ffsl.h: Include <config.h>.
30133         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
30135 2011-10-30  Jim Meyering  <meyering@redhat.com>
30137         GNUmakefile: reenable "make syntax-check" for most projects
30138         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
30139         build-aux variable", "syntax-check" would do nothing but succeed with
30140         the "No version control files detected..." diagnostic (unless you
30141         happened to override _build-aux via cfg.mk).
30142         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
30143         to precede inclusion of maint.mk.  Otherwise, these variables would
30144         be used undefined in any project that does not override the default.
30146 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
30148         gitlog-to-changelog: treat a message with only blank lines as empty.
30149         * build-aux/gitlog-to-changelog: Move the code that removes leading and
30150         trailing blank lines before the code that issues a warning about an
30151         empty commit message.
30153 2011-10-30  Jim Meyering  <meyering@redhat.com>
30155         test-parse-datetime.c: avoid new DST-related false positive test failure
30156         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
30157         based on the time/date we'll convert, not the current time.
30158         Otherwise, the moment we cross a DST boundary like today's in
30159         Europe, (CEST to CET), that offset ends up being one hour off.
30161 2011-10-27  Bruno Haible  <bruno@clisp.org>
30163         fstat: Tweak documentation.
30164         * modules/fstat (Description): More precise description.
30166 2011-10-27  Bruno Haible  <bruno@clisp.org>
30168         Update documentation regarding 'largefile' module.
30169         * doc/posix-functions/fstat.texi: Tweak wording.
30170         * doc/posix-functions/opendir.texi: Mention that the module fixes the
30171         problems with huge directories and/or small ino_t types.
30172         * doc/posix-functions/readdir.texi: Likewise.
30173         * doc/posix-functions/rewinddir.texi: Likewise.
30175 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
30177         maint.mk: don't maintain a second build-aux variable.
30178         * maint.mk (build_aux): Removed.  The maintainer-makefile module
30179         depends on GNUmakefile, which already maintains a cfg.mk
30180         overridable $(_build-aux) for projects with a non-standard
30181         build-aux directory location, although without the $(srcdir)
30182         prefix.  Use that variable consistently instead of introducing a
30183         second one.  Adjust all call sites.
30185 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30187         Add stdalign module and use it in other modules.
30188         This is based on a previous proposal by Bruno Haible
30189         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
30191         stdalign: new module
30192         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
30193         * modules/stdalign: New files.
30194         * MODULES.html.sh (c1x_core_properties): Add stdalign.
30195         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
30197         stdalign-tests: new module
30198         * modules/stdalign-tests, tests/test-stdalign.c: New files.
30200         argp: use stdalign
30201         * lib/argp-parse.c: Include <stdalign.h>.
30202         (alignof): Remove.
30203         * modules/argp (Depends-on): Add stdalign.
30205         crypto libraries: use stdalign
30206         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
30207         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
30208         Do not include <stdlib.h> twice, in md4.c.
30209         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
30210         because we are accessing a pointer's bit-pattern, not a size.
30211         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
30212         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
30213         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
30214         * modules/crypto/sha512: Likewise.
30216         sys_socket: use stdalign, not alignof
30217         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
30218         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
30220 2011-10-27  Bruno Haible  <bruno@clisp.org>
30222         raise test: Avoid a test failure on Linux/MIPS.
30223         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
30224         because 99 is a valid signal on Linux/MIPS.
30226 2011-10-27  Bruno Haible  <bruno@clisp.org>
30228         nonblocking tests: Fix test failure on Linux/MIPS.
30229         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
30230         Set to 270000.
30232 2011-10-27  Bruno Haible  <bruno@clisp.org>
30234         utimensat: Work around problem on Linux/hppa.
30235         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
30236         values.
30237         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
30239 2011-10-25  Jim Meyering  <meyering@redhat.com>
30241         maint.mk: fix a bug in sc_prohibit_stddef_without_use
30242         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
30243         after symbols like NULL, size_t, etc.
30244         Reported by Alfred M. Szmidt.
30246         maint.mk: exempt ENODATA from a syntax-check rule
30247         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
30248         from the sc_prohibit_always-defined_macros syntax-check rule.
30249         Add a comment.  See this for more details:
30250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
30252 2011-10-23  Jim Meyering  <meyering@redhat.com>
30254         fts: close parent dir FD before returning from post-traversal fts_read
30255         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
30256         unlink A, even though an FD open on A remained.  This is suboptimal
30257         (holding a file descriptor open longer than needed), but otherwise not
30258         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
30259         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
30260         that represents a real problem: it causes the removal of A to fail
30261         with e.g., "rm: cannot remove `A': Device or resource busy"
30263         fts visits each directory twice and keeps a cache (fts_fd_ring) of
30264         directory file descriptors.  After completing the final, FTS_DP,
30265         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
30266         cache, but then proceeded to add a new FD to it via the subsequent
30267         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
30268         final file descriptor would be closed only via fts_close's call to
30269         fd_ring_clear.  Now, it is usually closed earlier, via the final
30270         FTS_DP-returning fts_read call.
30271         * lib/fts.c (restore_initial_cwd): New function, converted from
30272         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
30273         Update callers.
30274         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
30275         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
30277 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
30278             Bruno Haible  <bruno@clisp.org>
30279             Jim Meyering  <jim@meyering.net>
30281         readme-release: improve safety of release prep instructions.
30282         * README-release: Don't git pull all branches when only master
30283         is needed for the release process.
30284         Run make maintainer-clean before changing trees and merging.
30285         Don't try to run ./configure right after git pull in case files
30286         that influence the bootstrap process have changed, move the
30287         ./configure step to after running ./bootstrap.
30288         Don't bootstrap "one last time"... it's the first time!
30290 2011-10-22  Bruno Haible  <bruno@clisp.org>
30292         errno, strerror-override: Support for MSVC 10.
30293         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
30294         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
30295         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
30296         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
30297         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
30298         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
30299         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
30300         Assign values compatible with MSVC 10.
30301         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
30302         New macros.
30303         (GNULIB_defined_EWINSOCK): New macro.
30304         * lib/strerror-override.c (strerror_override): Update accordingly.
30305         * lib/strerror-override.h: Likewise.
30306         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
30307         longer equal to the corresponding errno value.
30308         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30310 2011-10-22  Bruno Haible  <bruno@clisp.org>
30312         perror: Recognize when test program crashes.
30313         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
30314         strerror, set gl_cv_func_perror_works to no.
30315         Reported by Daniel Richard G. <skunk@iskunk.org>.
30317         perror: Fix indentation.
30318         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30320 2011-10-22  Bruno Haible  <bruno@clisp.org>
30322         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
30323         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
30324         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
30325         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
30326         functions, not as a macro.
30327         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
30328         macros.
30329         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30330         absence of macro.
30331         Suggested by Eric Blake.
30332         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30334 2011-10-21  Bruno Haible  <bruno@clisp.org>
30336         relocatable-prog-wrapper: Don't leave object files behind.
30337         * build-aux/install-reloc: Re-synchronize list of .o files to be
30338         removed with list of compilation units.
30340 2011-10-20  Bruno Haible  <bruno@clisp.org>
30342         openpty, posix_openpt: Remove code duplication.
30343         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30344         * lib/openpty.c: Include <stdlib.h>.
30345         (openpty): Use posix_openpt on all platforms except IRIX.
30346         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30348 2011-10-20  Bruno Haible  <bruno@clisp.org>
30350         unlockpt: Detect invalid argument.
30351         * lib/unlockpt.c: Include <fcntl.h>.
30352         (unlockpt): Check whether fd is valid, using fcntl().
30353         * modules/unlockpt (Depends-on): Add fcntl-h.
30355 2011-10-20  Bruno Haible  <bruno@clisp.org>
30357         openpty: Avoid compilation error on AIX 6.1.
30358         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30360 2011-10-20  Bruno Haible  <bruno@clisp.org>
30362         posix_openpt: Support for OpenBSD.
30363         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30364         (posix_openpt) [OpenBSD]: New code.
30365         * lib/grantpt.c: Include <fcntl.h>.
30366         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30367         * modules/grantpt (Depends-on): Add fcntl-h.
30369 2011-10-20  Bruno Haible  <bruno@clisp.org>
30371         posix_openpt test: Coding style.
30372         * tests/test-posix_openpt.c: Use GNU coding style.
30374 2011-10-20  Bruno Haible  <bruno@clisp.org>
30376         grantpt: Support --avoid=pt_chown.
30377         * modules/grantpt (Files): Add lib/pty-private.h.
30379 2011-10-20  Bruno Haible  <bruno@clisp.org>
30381         posix_openpt: Fix autoconf macro.
30382         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30383         unneeded check for _getpty.
30385 2011-10-20  Bruno Haible  <bruno@clisp.org>
30387         openpty: Update comments.
30388         * lib/openpty.c: Add comments about Minix.
30390 2011-10-19  Eric Blake  <eblake@redhat.com>
30392         openpty: relax license
30393         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30395         pt_chown: use configmake to simplify build
30396         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30398         ptsname and others: relax license
30399         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30400         * modules/unlockpt (License): Likewise.
30401         * modules/pt_chown (License): Likewise.
30402         * modules/ptsname (License): Likewise.
30403         * modules/ttyname_r (License): Likewise.
30405 2011-10-19  Jim Meyering  <meyering@redhat.com>
30407         posix_openpt: remove spurious #endif
30408         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30410 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30412         maint.mk: Respect $(build_aux) in web-manual rule.
30413         * top/maint.mk (web-manual): Find gen-announce script in user's
30414         $(build_aux) directory instead of hard-coding 'build-aux'.
30416 2011-10-19  Bruno Haible  <bruno@clisp.org>
30418         posix_openpt: Fix compilation error.
30419         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30420         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30421         Mention the openpty module as an alternative.
30423 2011-10-19  Bruno Haible  <bruno@clisp.org>
30425         Support for old NeXTstep 3.3 frexp().
30426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30427         execution time of the test to 5 seconds.
30428         Reported by Daniel Richard G. <skunk@iskunk.org>.
30430 2011-10-19  Bruno Haible  <bruno@clisp.org>
30432         Support for old NeXTstep 3.3 sed.
30433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30434         part, use /.../, not \|...|. Escape periods in the header file name.
30435         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30436         Reported by Daniel Richard G. <skunk@iskunk.org>.
30438 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30440         Support for old NeXTstep 3.3 gcc.
30441         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30442         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30443         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30444         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30445         * lib/regex.h (_Restrict_arr_): Likewise.
30446         * lib/regex_internal.h (re_token_t): Likewise.
30447         * lib/regexec.c (check_node_accept_bytes): Likewise.
30448         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30450 2011-10-18  Eric Blake  <eblake@redhat.com>
30452         posix_openpt: new module
30453         * modules/posix_openpt: New module.
30454         * m4/posix_openpt.m4: New file.
30455         * lib/posix_openpt.c: Likewise.
30456         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30457         (gl_STDLIB_H_DEFAULTS): Set defaults.
30458         * modules/stdlib (Makefile.am): Substitute macros.
30459         * lib/stdlib.in.h (posix_openpt): Declare.
30460         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30461         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30462         * modules/posix_openpt-tests: New test module.
30463         * tests/test-posix_openpt.c: New test.
30465 2011-10-15  Bruno Haible  <bruno@clisp.org>
30467         xstrtoll: Fix compilation failure.
30468         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30469         from lib/strtol.c.
30470         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30471         some platforms.
30472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30474 2011-10-15  Bruno Haible  <bruno@clisp.org>
30476         vasnprintf: Optimize bit search operation.
30477         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30479         gl_DOUBLE_EXPONENT_LOCATION.
30480         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30481         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30482         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30483         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30484         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30485         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30486         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30487         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30488         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30490 2011-10-15  Bruno Haible  <bruno@clisp.org>
30492         vasnprintf: Fix comments.
30493         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30495 2011-10-14  Bruno Haible  <bruno@clisp.org>
30497         Tests for module 'integer_length_ll'.
30498         * modules/integer_length_ll-tests: New file.
30499         * tests/test-integer_length_ll.c: New file.
30501         New module 'integer_length_ll'.
30502         * lib/integer_length_ll.c: New file.
30503         * modules/integer_length_ll: New file.
30505 2011-10-14  Bruno Haible  <bruno@clisp.org>
30507         Tests for module 'integer_length_l'.
30508         * modules/integer_length_l-tests: New file.
30509         * tests/test-integer_length_l.c: New file.
30511         New module 'integer_length_l'.
30512         * lib/integer_length_l.c: New file.
30513         * modules/integer_length_l: New file.
30515 2011-10-14  Bruno Haible  <bruno@clisp.org>
30517         Tests for module 'integer_length'.
30518         * modules/integer_length-tests: New file.
30519         * tests/test-integer_length.c: New file.
30521         New module 'integer_length'.
30522         * lib/integer_length.h: New file.
30523         * lib/integer_length.c: New file.
30524         * modules/integer_length: New file.
30526 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30528         popen: Fix dependency conditions.
30529         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30531 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30533         perror: Fix autoconf test.
30534         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30535         <stdlib.h> and <string.h>.
30537 2011-10-14  Bruno Haible  <bruno@clisp.org>
30539         ffsl: Optimize on 64-bit platforms.
30540         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30541         unrolling.
30543 2011-10-13  Bruno Haible  <bruno@clisp.org>
30545         ffsl: Optimize on 32-bit platforms.
30546         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30547         use ffs() without a loop.
30549         ffsl, ffsll: Optimize for GCC.
30550         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30551         * lib/ffsl.c (GCC_BUILTIN): New macro.
30552         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30554 2011-10-13  Bruno Haible  <bruno@clisp.org>
30556         ffs, bcopy, memset: Support symbol renaming via config.h.
30557         * lib/ffs.c: Include <config.h>.
30558         * lib/bcopy.c: Likewise.
30559         * lib/memset.c: Likewise.
30561 2011-10-10  Bruno Haible  <bruno@clisp.org>
30563         atanl: Simplify for platforms where 'long double' == 'double'.
30564         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30565         alternative implementation.
30566         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30567         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30568         * modules/atanl (Depends-on): Add atan. Update conditions.
30570 2011-10-10  Bruno Haible  <bruno@clisp.org>
30572         acosl: Simplify for platforms where 'long double' == 'double'.
30573         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30574         alternative implementation.
30575         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30576         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30577         * modules/acosl (Depends-on): Add acos. Update conditions.
30579 2011-10-10  Bruno Haible  <bruno@clisp.org>
30581         asinl: Simplify for platforms where 'long double' == 'double'.
30582         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30583         alternative implementation.
30584         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30585         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30586         * modules/asinl (Depends-on): Add asin. Update conditions.
30588 2011-10-10  Bruno Haible  <bruno@clisp.org>
30590         tanl: Simplify for platforms where 'long double' == 'double'.
30591         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30592         implementation.
30593         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30594         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30595         * modules/tanl (Depends-on): Add tan. Update conditions.
30596         (configure.ac): Don't compile trigl.c if
30597         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30599 2011-10-10  Bruno Haible  <bruno@clisp.org>
30601         cosl: Simplify for platforms where 'long double' == 'double'.
30602         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30603         implementation.
30604         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30605         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30606         * modules/cosl (Depends-on): Add cos. Update conditions.
30607         (configure.ac): Don't compile sincosl.c and trigl.c if
30608         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30610 2011-10-10  Bruno Haible  <bruno@clisp.org>
30612         sinl: Simplify for platforms where 'long double' == 'double'.
30613         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30614         implementation.
30615         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30616         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30617         * modules/sinl (Depends-on): Add sin. Update conditions.
30618         (configure.ac): Don't compile sincosl.c and trigl.c if
30619         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30621 2011-10-10  Bruno Haible  <bruno@clisp.org>
30623         logl: Simplify for platforms where 'long double' == 'double'.
30624         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30625         implementation.
30626         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30627         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30628         * modules/logl (Depends-on): Add log. Update conditions.
30630 2011-10-10  Bruno Haible  <bruno@clisp.org>
30632         expl: Simplify for platforms where 'long double' == 'double'.
30633         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30634         implementation.
30635         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30636         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30637         * modules/expl (Depends-on): Add exp. Update conditions.
30639 2011-10-10  Bruno Haible  <bruno@clisp.org>
30641         sqrtl: Simplify for platforms where 'long double' == 'double'.
30642         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30643         alternative implementation.
30644         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30645         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30646         * modules/sqrtl (Depends-on): Update conditions.
30648 2011-10-10  Bruno Haible  <bruno@clisp.org>
30650         ldexpl: Simplify for platforms where 'long double' == 'double'.
30651         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30652         alternative implementation.
30653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30654         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30655         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30657 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30659         ffsll: set correct witness
30660         * modules/ffsll (configure.ac): Fix typo.
30662 2011-10-10  Bruno Haible  <bruno@clisp.org>
30664         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30665         * lib/printf-frexpl.c: Include <config.h>.
30666         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30667         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30668         second time.
30669         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30670         gl_LONG_DOUBLE_VS_DOUBLE.
30671         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30672         conditions.
30674 2011-10-10  Bruno Haible  <bruno@clisp.org>
30676         frexpl: Simplify for platforms where 'long double' == 'double'.
30677         * lib/frexpl.c: Include <config.h>.
30678         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30679         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30680         time.
30681         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30682         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30683         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30684         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30685         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30686         conditions.
30688 2011-10-10  Jim Meyering  <meyering@redhat.com>
30690         test-renameat: don't leave behind a temporary file
30691         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30692           ERROR: files left in build directory after distclean:
30693           ./gltests/test-renameat.too
30694           make[1]: *** [distcleancheck] Error 1
30695         Reported by Tom G. Christensen.
30697 2011-10-09  Bruno Haible  <bruno@clisp.org>
30699         rint: Determine RINT_LIBM correctly on AIX 7.
30700         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30701         directly, not only through a function pointer. Also accept an optional
30702         4th argument with extra code.
30703         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30704         rintf() call by gcc when optimizing.
30706         mathfunc.m4: Refactor.
30707         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30708         m4 variable.
30710 2011-10-09  Bruno Haible  <bruno@clisp.org>
30712         rintl: Simplify for platforms where 'long double' == 'double'.
30713         * lib/rintl.c: Include <config.h>.
30714         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30715         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30716         time.
30717         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30718         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30719         * modules/rintl (Depends-on): Add rint. Update conditions.
30721 2011-10-09  Bruno Haible  <bruno@clisp.org>
30723         roundl: Simplify for platforms where 'long double' == 'double'.
30724         * lib/roundl.c: Include <config.h>.
30725         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30726         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30727         time.
30728         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30729         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30730         * modules/roundl (Depends-on): Add round. Update conditions.
30732 2011-10-09  Bruno Haible  <bruno@clisp.org>
30734         truncl: Simplify for platforms where 'long double' == 'double'.
30735         * lib/truncl.c: Include <config.h>.
30736         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30737         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30738         time.
30739         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30740         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30741         * modules/truncl (Depends-on): Add trunc. Update conditions.
30743 2011-10-09  Bruno Haible  <bruno@clisp.org>
30745         ceill: Simplify for platforms where 'long double' == 'double'.
30746         * lib/ceill.c: Include <config.h>.
30747         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30748         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30749         time.
30750         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30751         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30752         * modules/ceill (Depends-on): Add ceil. Update conditions.
30754 2011-10-09  Bruno Haible  <bruno@clisp.org>
30756         floorl: Simplify for platforms where 'long double' == 'double'.
30757         * lib/floorl.c: Include <config.h>.
30758         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30759         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30760         time.
30761         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30762         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30763         * modules/floorl (Depends-on): Add floor. Update conditions.
30765 2011-10-09  Bruno Haible  <bruno@clisp.org>
30767         rint: Fix ordering constraints.
30768         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30769         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30770         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30772 2011-10-09  Bruno Haible  <bruno@clisp.org>
30774         copysignl: Simplify for platforms where 'long double' == 'double'.
30775         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30776         alternative.
30777         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30778         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30779         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30781 2011-10-09  Bruno Haible  <bruno@clisp.org>
30783         Tests for module 'rintl'.
30784         * modules/rintl-tests: New file.
30785         * tests/test-rintl.c: New file.
30787         New module 'rintl'.
30788         * lib/math.in.h (rintl): New declaration.
30789         * lib/rintl.c: New file.
30790         * m4/rintl.m4: New file.
30791         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30793         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30794         * modules/rintl: New file.
30795         * tests/test-math-c++.cc: Check the declaration of rintl.
30796         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30797         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30798         * doc/posix-functions/rintl.texi: Mention the new module.
30800 2011-10-09  Bruno Haible  <bruno@clisp.org>
30802         Tests for module 'rintf'.
30803         * modules/rintf-tests: New file.
30804         * tests/test-rintf.c: New file.
30806         New module 'rintf'.
30807         * lib/math.in.h (rintf): New declaration.
30808         * lib/rintf.c: New file.
30809         * m4/rintf.m4: New file.
30810         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30812         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30813         * modules/rintf: New file.
30814         * tests/test-math-c++.cc: Check the declaration of rintf.
30815         * doc/posix-functions/rintf.texi: Mention the new module.
30817 2011-10-09  Bruno Haible  <bruno@clisp.org>
30819         rint: Support for MSVC.
30820         * lib/math.in.h (rint): New declaration.
30821         * lib/rint.c: New file.
30822         * m4/rint.m4: New file.
30823         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30825         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30826         * modules/rint (Description): Fix.
30827         (Files): Add lib/rint.c, m4/rint.m4.
30828         (Depends-on): Add math.
30829         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30830         gl_MATH_MODULE_INDICATOR.
30831         * tests/test-math-c++.cc: Check the declaration of rint.
30832         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30833         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30834         * doc/posix-functions/rint.texi: Mention the replacement provided by
30835         the module.
30837         rint tests: More tests.
30838         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30839         minus-zero.h, infinity.h, nan.h.
30840         (main): Skip the test if the current rounding mode is not standard. Add
30841         tests for negative numbers, minus zero, infinity, NaN.
30842         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30843         tests/nan.h.
30844         (Depends-on): Add isnand-nolibm.
30846 2011-10-09  Bruno Haible  <bruno@clisp.org>
30848         Tests for module 'copysignl'.
30849         * modules/copysignl-tests: New file.
30850         * tests/test-copysignl.c: New file.
30852         New module 'copysignl'.
30853         * lib/math.in.h (copysignl): New declaration.
30854         * lib/copysignl.c: New file.
30855         * m4/copysignl.m4: New file.
30856         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30858         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30859         HAVE_COPYSIGNL.
30860         * modules/copysignl: New file.
30861         * tests/test-math-c++.cc: Check the declaration of copysignl.
30862         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30863         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30864         * doc/posix-functions/copysignl.texi: Mention the new module.
30866 2011-10-09  Bruno Haible  <bruno@clisp.org>
30868         Tests for module 'copysignf'.
30869         * modules/copysignf-tests: New file.
30870         * tests/test-copysignf.c: New file.
30872         New module 'copysignf'.
30873         * lib/math.in.h (copysignf): New declaration.
30874         * lib/copysignf.c: New file.
30875         * m4/copysignf.m4: New file.
30876         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30878         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30879         HAVE_COPYSIGNF.
30880         * modules/copysignf: New file.
30881         * tests/test-math-c++.cc: Check the declaration of copysignf.
30882         * doc/posix-functions/copysignf.texi: Mention the new module.
30884 2011-10-09  Bruno Haible  <bruno@clisp.org>
30886         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30887         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30888         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30889         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30890         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30891         gl_SIGNAL_H_DEFAULTS.
30893 2011-10-09  Bruno Haible  <bruno@clisp.org>
30895         poll: Make macro safer.
30896         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30897         ac_cv_header_poll_h is not set.
30899 2011-10-09  Bruno Haible  <bruno@clisp.org>
30901         copysign: Provide replacement.
30902         * lib/math.in.h (copysign): New declaration.
30903         * lib/copysign.c: New file.
30904         * m4/copysign.m4: New file.
30905         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30907         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30908         HAVE_COPYSIGN.
30909         * modules/copysign (Description): Clarify.
30910         (Files): Add lib/copysign.c, m4/copysign.m4.
30911         (Depends-on): Add math, signbit.
30912         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30913         gl_MATH_MODULE_INDICATOR.
30914         * tests/test-math-c++.cc: Check the declaration of copysign.
30915         * doc/posix-functions/copysign.texi: Mention the effects of the module
30916         on Minix and MSVC.
30918 2011-10-09  Bruno Haible  <bruno@clisp.org>
30920         isinf: Ensure macro on AIX 5.1.
30921         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30922         macro.
30923         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30925 2011-10-09  Bruno Haible  <bruno@clisp.org>
30927         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30928         * modules/snprintf-posix-tests (configure.ac): Require
30929         gl_LONG_DOUBLE_VS_DOUBLE.
30930         * modules/sprintf-posix-tests (configure.ac): Likewise.
30931         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30932         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30933         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30934         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30935         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30936         tests on platforms where 'long double' is the same as 'double'.
30937         * tests/test-sprintf-posix.h (test_function): Likewise.
30938         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30939         * tests/test-vasprintf-posix.c (test_function): Likewise.
30941         *printf: Fix for platforms where 'long double' == 'double'.
30942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30943         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30944         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30945         * modules/fprintf-posix (Files): Likewise.
30946         * modules/obstack-printf-posix (Files): Likewise.
30947         * modules/snprintf-posix (Files): Likewise.
30948         * modules/sprintf-posix (Files): Likewise.
30949         * modules/vasnprintf (Files): Likewise.
30950         * modules/vasnprintf-posix (Files): Likewise.
30951         * modules/vasprintf-posix (Files): Likewise.
30952         * modules/vdprintf-posix (Files): Likewise.
30953         * modules/vfprintf-posix (Files): Likewise.
30954         * modules/vsnprintf-posix (Files): Likewise.
30955         * modules/vsprintf-posix (Files): Likewise.
30956         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30957         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30958         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30959         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30960         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30961         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30962         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30964         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30965         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30966         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30967         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30968         'long double'.
30969         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30971         isinf: Fix for platforms where 'long double' == 'double'.
30972         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30973         Don't blindly assume 80-bit 'long double'.
30975         isfinite: Fix for platforms where 'long double' == 'double'.
30976         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30977         Don't blindly assume 80-bit 'long double'.
30979         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30980         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30981         * modules/isfinite-tests (configure.ac): Require
30982         gl_LONG_DOUBLE_VS_DOUBLE.
30983         * modules/isinf-tests (configure.ac): Likewise.
30984         * modules/isnan-tests (configure.ac): Likewise.
30985         * modules/isnanl-tests (configure.ac): Likewise.
30986         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30987         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30988         tests on platforms where 'long double' is the same as 'double'.
30989         * tests/test-isinf.c (test_isinfl): Likewise.
30990         * tests/test-isnan.c (test_long_double): Likewise.
30991         * tests/test-isnanl.h (main): Likewise.
30993 2011-10-08  Bruno Haible  <bruno@clisp.org>
30995         Tests for module 'tanhf'.
30996         * modules/tanhf-tests: New file.
30997         * tests/test-tanhf.c: New file.
30999         New module 'tanhf'.
31000         * lib/math.in.h (tanhf): New declaration.
31001         * lib/tanhf.c: New file.
31002         * m4/tanhf.m4: New file.
31003         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
31004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
31005         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
31006         * modules/tanhf: New file.
31007         * tests/test-math-c++.cc: Check the declaration of tanhf.
31008         * doc/posix-functions/tanhf.texi: Mention the new module.
31010         tanh: Use a .m4 file.
31011         * m4/tanh.m4: New file.
31012         * modules/tanh (Files): Add it.
31013         (configure.ac): Just invoke gl_FUNC_TANH.
31015 2011-10-08  Bruno Haible  <bruno@clisp.org>
31017         Tests for module 'coshf'.
31018         * modules/coshf-tests: New file.
31019         * tests/test-coshf.c: New file.
31021         New module 'coshf'.
31022         * lib/math.in.h (coshf): New declaration.
31023         * lib/coshf.c: New file.
31024         * m4/coshf.m4: New file.
31025         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
31026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
31027         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
31028         * modules/coshf: New file.
31029         * tests/test-math-c++.cc: Check the declaration of coshf.
31030         * doc/posix-functions/coshf.texi: Mention the new module.
31032         cosh: Use a .m4 file.
31033         * m4/cosh.m4: New file.
31034         * modules/cosh (Files): Add it.
31035         (configure.ac): Just invoke gl_FUNC_COSH.
31037 2011-10-08  Bruno Haible  <bruno@clisp.org>
31039         Tests for module 'sinhf'.
31040         * modules/sinhf-tests: New file.
31041         * tests/test-sinhf.c: New file.
31043         New module 'sinhf'.
31044         * lib/math.in.h (sinhf): New declaration.
31045         * lib/sinhf.c: New file.
31046         * m4/sinhf.m4: New file.
31047         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
31048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
31049         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
31050         * modules/sinhf: New file.
31051         * tests/test-math-c++.cc: Check the declaration of sinhf.
31052         * doc/posix-functions/sinhf.texi: Mention the new module.
31054         sinh: Use a .m4 file.
31055         * m4/sinh.m4: New file.
31056         * modules/sinh (Files): Add it.
31057         (configure.ac): Just invoke gl_FUNC_SINH.
31059 2011-10-08  Bruno Haible  <bruno@clisp.org>
31061         Tests for module 'atan2f'.
31062         * modules/atan2f-tests: New file.
31063         * tests/test-atan2f.c: New file.
31065         New module 'atan2f'.
31066         * lib/math.in.h (atan2f): New declaration.
31067         * lib/atan2f.c: New file.
31068         * m4/atan2f.m4: New file.
31069         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
31070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
31071         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
31072         * modules/atan2f: New file.
31073         * tests/test-math-c++.cc: Check the declaration of atan2f.
31074         * doc/posix-functions/atan2f.texi: Mention the new module.
31076         atan2: Use a .m4 file.
31077         * m4/atan2.m4: New file.
31078         * modules/atan2 (Files): Add it.
31079         (configure.ac): Just invoke gl_FUNC_ATAN2.
31081 2011-10-08  Bruno Haible  <bruno@clisp.org>
31083         Tests for module 'atanf'.
31084         * modules/atanf-tests: New file.
31085         * tests/test-atanf.c: New file.
31087         New module 'atanf'.
31088         * lib/math.in.h (atanf): New declaration.
31089         * lib/atanf.c: New file.
31090         * m4/atanf.m4: New file.
31091         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
31092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
31093         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
31094         * modules/atanf: New file.
31095         * tests/test-math-c++.cc: Check the declaration of atanf.
31096         * doc/posix-functions/atanf.texi: Mention the new module.
31098         atan: Use a .m4 file.
31099         * m4/atan.m4: New file.
31100         * modules/atan (Files): Add it.
31101         (configure.ac): Just invoke gl_FUNC_ATAN.
31103 2011-10-08  Bruno Haible  <bruno@clisp.org>
31105         Tests for module 'acosf'.
31106         * modules/acosf-tests: New file.
31107         * tests/test-acosf.c: New file.
31109         New module 'acosf'.
31110         * lib/math.in.h (acosf): New declaration.
31111         * lib/acosf.c: New file.
31112         * m4/acosf.m4: New file.
31113         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
31114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
31115         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
31116         * modules/acosf: New file.
31117         * tests/test-math-c++.cc: Check the declaration of acosf.
31118         * doc/posix-functions/acosf.texi: Mention the new module.
31120         acos: Use a .m4 file.
31121         * m4/acos.m4: New file.
31122         * modules/acos (Files): Add it.
31123         (configure.ac): Just invoke gl_FUNC_ACOS.
31125 2011-10-08  Bruno Haible  <bruno@clisp.org>
31127         Tests for module 'asinf'.
31128         * modules/asinf-tests: New file.
31129         * tests/test-asinf.c: New file.
31131         New module 'asinf'.
31132         * lib/math.in.h (asinf): New declaration.
31133         * lib/asinf.c: New file.
31134         * m4/asinf.m4: New file.
31135         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
31136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
31137         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
31138         * modules/asinf: New file.
31139         * tests/test-math-c++.cc: Check the declaration of asinf.
31140         * doc/posix-functions/asinf.texi: Mention the new module.
31142         asin: Use a .m4 file.
31143         * m4/asin.m4: New file.
31144         * modules/asin (Files): Add it.
31145         (configure.ac): Just invoke gl_FUNC_ASIN.
31147 2011-10-08  Bruno Haible  <bruno@clisp.org>
31149         Tests for module 'tanf'.
31150         * modules/tanf-tests: New file.
31151         * tests/test-tanf.c: New file.
31153         New module 'tanf'.
31154         * lib/math.in.h (tanf): New declaration.
31155         * lib/tanf.c: New file.
31156         * m4/tanf.m4: New file.
31157         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
31158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
31159         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
31160         * modules/tanf: New file.
31161         * tests/test-math-c++.cc: Check the declaration of tanf.
31162         * doc/posix-functions/tanf.texi: Mention the new module.
31164         tan: Use a .m4 file.
31165         * m4/tan.m4: New file.
31166         * modules/tan (Files): Add it.
31167         (configure.ac): Just invoke gl_FUNC_TAN.
31169 2011-10-08  Bruno Haible  <bruno@clisp.org>
31171         Tests for module 'cosf'.
31172         * modules/cosf-tests: New file.
31173         * tests/test-cosf.c: New file.
31175         New module 'cosf'.
31176         * lib/math.in.h (cosf): New declaration.
31177         * lib/cosf.c: New file.
31178         * m4/cosf.m4: New file.
31179         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
31180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
31181         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
31182         * modules/cosf: New file.
31183         * tests/test-math-c++.cc: Check the declaration of cosf.
31184         * doc/posix-functions/cosf.texi: Mention the new module.
31186         cos: Use a .m4 file.
31187         * m4/cos.m4: New file.
31188         * modules/cos (Files): Add it.
31189         (configure.ac): Just invoke gl_FUNC_COS.
31191 2011-10-08  Bruno Haible  <bruno@clisp.org>
31193         Tests for module 'sinf'.
31194         * modules/sinf-tests: New file.
31195         * tests/test-sinf.c: New file.
31197         New module 'sinf'.
31198         * lib/math.in.h (sinf): New declaration.
31199         * lib/sinf.c: New file.
31200         * m4/sinf.m4: New file.
31201         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
31202         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
31203         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
31204         * modules/sinf: New file.
31205         * tests/test-math-c++.cc: Check the declaration of sinf.
31206         * doc/posix-functions/sinf.texi: Mention the new module.
31208         sin: Use a .m4 file.
31209         * m4/sin.m4: New file.
31210         * modules/sin (Files): Add it.
31211         (configure.ac): Just invoke gl_FUNC_SIN.
31213 2011-10-08  Bruno Haible  <bruno@clisp.org>
31215         Tests for module 'powf'.
31216         * modules/powf-tests: New file.
31217         * tests/test-powf.c: New file.
31219         New module 'powf'.
31220         * lib/math.in.h (powf): New declaration.
31221         * lib/powf.c: New file.
31222         * m4/powf.m4: New file.
31223         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
31224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
31225         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
31226         * modules/powf: New file.
31227         * tests/test-math-c++.cc: Check the declaration of powf.
31228         * doc/posix-functions/powf.texi: Mention the new module.
31230         pow: Use a .m4 file.
31231         * m4/pow.m4: New file.
31232         * modules/pow (Files): Add it.
31233         (configure.ac): Just invoke gl_FUNC_POW.
31235 2011-10-08  Bruno Haible  <bruno@clisp.org>
31237         Tests for module 'log10f'.
31238         * modules/log10f-tests: New file.
31239         * tests/test-log10f.c: New file.
31241         New module 'log10f'.
31242         * lib/math.in.h (log10f): New declaration.
31243         * lib/log10f.c: New file.
31244         * m4/log10f.m4: New file.
31245         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
31246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
31247         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
31248         * modules/log10f: New file.
31249         * tests/test-math-c++.cc: Check the declaration of log10f.
31250         * doc/posix-functions/log10f.texi: Mention the new module.
31252         log10: Use a .m4 file.
31253         * m4/log10.m4: New file.
31254         * modules/log10 (Files): Add it.
31255         (configure.ac): Just invoke gl_FUNC_LOG10.
31257 2011-10-08  Bruno Haible  <bruno@clisp.org>
31259         Tests for module 'logf'.
31260         * modules/logf-tests: New file.
31261         * tests/test-logf.c: New file.
31263         New module 'logf'.
31264         * lib/math.in.h (logf): New declaration.
31265         * lib/logf.c: New file.
31266         * m4/logf.m4: New file.
31267         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
31268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
31269         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
31270         * modules/logf: New file.
31271         * tests/test-math-c++.cc: Check the declaration of logf.
31272         * doc/posix-functions/logf.texi: Mention the new module.
31274         log: Use a .m4 file.
31275         * m4/log.m4: New file.
31276         * modules/log (Files): Add it.
31277         (configure.ac): Just invoke gl_FUNC_LOG.
31279 2011-10-08  Bruno Haible  <bruno@clisp.org>
31281         Tests for module 'expf'.
31282         * modules/expf-tests: New file.
31283         * tests/test-expf.c: New file.
31285         New module 'expf'.
31286         * lib/math.in.h (expf): New declaration.
31287         * lib/expf.c: New file.
31288         * m4/expf.m4: New file.
31289         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
31290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
31291         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
31292         * modules/expf: New file.
31293         * tests/test-math-c++.cc: Check the declaration of expf.
31294         * doc/posix-functions/expf.texi: Mention the new module.
31296         exp: Use a .m4 file.
31297         * m4/exp.m4: New file.
31298         * modules/exp (Files): Add it.
31299         (configure.ac): Just invoke gl_FUNC_EXP.
31301 2011-10-08  Bruno Haible  <bruno@clisp.org>
31303         Tests for module 'sqrtf'.
31304         * modules/sqrtf-tests: New file.
31305         * tests/test-sqrtf.c: New file.
31307         New module 'sqrtf'.
31308         * lib/math.in.h (sqrtf): New declaration.
31309         * lib/sqrtf.c: New file.
31310         * m4/sqrtf.m4: New file.
31311         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
31312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
31313         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
31314         * modules/sqrtf: New file.
31315         * tests/test-math-c++.cc: Check the declaration of sqrtf.
31316         * doc/posix-functions/sqrtf.texi: Mention the new module.
31318 2011-10-08  Bruno Haible  <bruno@clisp.org>
31320         Tests: Avoid link failures w.r.t. libintl.
31321         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
31322         $(LIBINTL).
31323         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
31324         $(LIBINTL).
31325         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
31326         against $(LIBINTL).
31327         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
31328         $(LIBINTL).
31329         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31330         $(LIBINTL).
31331         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31333 2011-10-08  Bruno Haible  <bruno@clisp.org>
31335         pow tests: Defeat compiler optimizations.
31336         * tests/test-pow.c (main): Assign arguments to x and y before use.
31338 2011-10-08  Bruno Haible  <bruno@clisp.org>
31340         gnulib-tool: Improve last commit.
31341         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31342         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31343         ignore dependencies that are not among the modules list.
31345 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31347         gnulib-tool: don't follow dependencies to avoided modules
31348         This fixes a bug that is related to the previous one.
31349         * gnulib-tool (func_modules_transitive_closure)
31350         (func_emit_autoconf_snippets):
31351         Check whether a dependency is acceptable before using it.
31352         (--extract-dependencies): Report an error if --avoid is also used,
31353         since this combination of options is not yet supported.
31355         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31356         Problem reported by Peter Dyballa in
31357         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31358         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31359         when echoing "$condition".
31361 2011-10-07  Bruno Haible  <bruno@clisp.org>
31363         Fix documentation about math functions on MacOS X.
31364         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31365         MacOS X 10.5.
31366         * doc/posix-functions/fdim.texi: Likewise.
31367         * doc/posix-functions/feclearexcept.texi: Likewise.
31368         * doc/posix-functions/fegetenv.texi: Likewise.
31369         * doc/posix-functions/fegetround.texi: Likewise.
31370         * doc/posix-functions/feholdexcept.texi: Likewise.
31371         * doc/posix-functions/feraiseexcept.texi: Likewise.
31372         * doc/posix-functions/fesetenv.texi: Likewise.
31373         * doc/posix-functions/fesetround.texi: Likewise.
31374         * doc/posix-functions/fetestexcept.texi: Likewise.
31375         * doc/posix-functions/feupdateenv.texi: Likewise.
31376         * doc/posix-functions/fmax.texi: Likewise.
31377         * doc/posix-functions/fmin.texi: Likewise.
31378         * doc/posix-functions/log2.texi: Likewise.
31379         * doc/posix-functions/modff.texi: Likewise.
31380         * doc/posix-functions/nan.texi: Likewise.
31381         * doc/posix-functions/nanf.texi: Likewise.
31382         * doc/posix-functions/nextafterf.texi: Likewise.
31383         * doc/posix-functions/remquo.texi: Likewise.
31385 2011-10-07  Bruno Haible  <bruno@clisp.org>
31387         modff: Drop assumption about library that defines modff.
31388         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31389         AC_CHECK_FUNCS.
31390         * modules/modff (Files): Add m4/mathfunc.m4.
31392 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31394         raise tests: Avoid a GCC warning.
31395         * tests/test-raise.c (handler): Use _Noreturn.
31397 2011-10-07  Bruno Haible  <bruno@clisp.org>
31399         Tests for module 'ldexpf'.
31400         * modules/ldexpf-tests: New file.
31401         * tests/test-ldexpf.c: New file.
31403         New module 'ldexpf'.
31404         * lib/math.in.h (ldexpf): New declaration.
31405         * lib/ldexpf.c: New file.
31406         * m4/ldexpf.m4: New file.
31407         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31409         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31410         * modules/ldexpf: New file.
31411         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31412         * doc/posix-functions/ldexpf.texi: Mention the new module.
31414 2011-10-06  Bruno Haible  <bruno@clisp.org>
31416         frexpf: Work around problems on IRIX and mingw.
31417         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31419         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31420         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31421         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31422         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31423         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31425 2011-10-06  Bruno Haible  <bruno@clisp.org>
31427         fabsf: Drop assumption about library that defines fabsf.
31428         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31429         AC_CHECK_FUNCS.
31430         * modules/fabsf (Files): Add m4/mathfunc.m4.
31432 2011-10-06  Bruno Haible  <bruno@clisp.org>
31434         frexpf: Drop assumption about library that defines frexpf.
31435         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31436         'int *', 'float *', 'long double *', 'float', 'long double'.
31437         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31438         AC_CHECK_FUNCS.
31439         * modules/frexpf (Files): Add m4/mathfunc.m4.
31441         Tests for module 'frexpf'.
31442         * modules/frexpf-tests: New file.
31443         * tests/test-frexpf.c: New file.
31445         New module 'frexpf'.
31446         * lib/math.in.h (frexpf): New declaration.
31447         * lib/frexpf.c: New file.
31448         * m4/frexpf.m4: New file.
31449         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31451         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31452         * modules/frexpf: New file.
31453         * tests/test-math-c++.cc: Check the declaration of frexpf.
31454         * doc/posix-functions/frexpf.texi: Mention the new module.
31456 2011-10-06  Bruno Haible  <bruno@clisp.org>
31458         math: Sort function declarations of math.in.h.
31459         * lib/math.in.h (frexp, logb): Move declarations.
31461 2011-10-05  Bruno Haible  <bruno@clisp.org>
31463         Tests for module 'modff'.
31464         * modules/modff-tests: New file.
31465         * tests/test-modff.c: New file.
31467         New module 'modff'.
31468         * lib/math.in.h (modff): New declaration.
31469         * lib/modff.c: New file.
31470         * m4/modff.m4: New file.
31471         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31473         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31474         * modules/modff: New file.
31475         * tests/test-math-c++.cc: Check the declaration of modff.
31476         * doc/posix-functions/modff.texi: Mention the new module.
31478         modf tests: Make test sharper.
31479         * tests/test-modf.c (main): Strengthen upper bound.
31481         modf: Use a .m4 file.
31482         * m4/modf.m4: New file.
31483         * modules/modf (Files): Add it.
31484         (configure.ac): Just invoke gl_FUNC_MODF.
31486 2011-10-05  Bruno Haible  <bruno@clisp.org>
31488         Tests for module 'fmodf'.
31489         * modules/fmodf-tests: New file.
31490         * tests/test-fmodf.c: New file.
31492         New module 'fmodf'.
31493         * lib/math.in.h (fmodf): New declaration.
31494         * lib/fmodf.c: New file.
31495         * m4/fmodf.m4: New file.
31496         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31498         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31499         * modules/fmodf: New file.
31500         * tests/test-math-c++.cc: Check the declaration of fmodf.
31501         * doc/posix-functions/fmodf.texi: Mention the new module.
31503         fmod: Use a .m4 file.
31504         * m4/fmod.m4: New file.
31505         * modules/fmod (Files): Add it.
31506         (configure.ac): Just invoke gl_FUNC_FMOD.
31508 2011-10-05  Bruno Haible  <bruno@clisp.org>
31510         Tests for module 'fabsf'.
31511         * modules/fabsf-tests: New file.
31512         * tests/test-fabsf.c: New file.
31514         New module 'fabsf'.
31515         * lib/math.in.h (fabsf): New declaration.
31516         * lib/fabsf.c: New file.
31517         * m4/fabsf.m4: New file.
31518         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31520         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31521         * modules/fabsf: New file.
31522         * tests/test-math-c++.cc: Check the declaration of fabsf.
31523         * doc/posix-functions/fabsf.texi: Mention the new module.
31525         fabs: Use a .m4 file.
31526         * m4/fabs.m4: New file.
31527         * modules/fabs (Files): Add it.
31528         (configure.ac): Just invoke gl_FUNC_FABS.
31530 2011-10-05  Jim Meyering  <meyering@redhat.com>
31532         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31533         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31534         ls -lL regression introduced in coreutils-8.12, it does so at the
31535         cost of an additional stat call in the common case.  Besides, now
31536         that the kernel change that prompted commit 95f7c57f has been reverted
31537         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31538         we have no use for commit 95f7c57f, "file-has-acl: use
31539         acl_extended_file_nofollow if available".
31541 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31543         file-has-acl: revert unintended change in behavior of ls -L
31544         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31545         derived from...
31546         (file_has_acl): ...code here.  Call it.
31547         This problem was introduced with 2011-07-22 commit 95f7c57f,
31548         "file-has-acl: use acl_extended_file_nofollow if available".
31549         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31551 2011-10-03  Bruno Haible  <bruno@clisp.org>
31553         poll: Avoid link errors on MSVC.
31554         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31555         * modules/poll (Depends-on): Add sockets.
31556         (Link): New section.
31557         * NEWS: Mention the change.
31558         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31559         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31560         $(LIB_POLL) instead of $(LIBSOCKET).
31562 2011-10-03  Bruno Haible  <bruno@clisp.org>
31564         sys_select tests: Fix link error on MSVC 9.
31565         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31566         with $(LIB_SELECT) instead of $(LIBSOCKET).
31568 2011-10-03  Bruno Haible  <bruno@clisp.org>
31570         sys_select: Fix compilation error on mingw.
31571         * lib/sys_select.in.h: On native Windows, include <io.h>.
31573 2011-10-03  Bruno Haible  <bruno@clisp.org>
31575         wmemset: Support for MSVC.
31576         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31577         whether wmemset() exists.
31579 2011-10-03  Bruno Haible  <bruno@clisp.org>
31581         wmemmove: Support for MSVC.
31582         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31583         whether wmemmove() exists.
31585 2011-10-03  Bruno Haible  <bruno@clisp.org>
31587         wmemcpy: Support for MSVC.
31588         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31589         whether wmemcpy() exists.
31591 2011-10-03  Bruno Haible  <bruno@clisp.org>
31593         wmemcmp: Support for MSVC.
31594         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31595         whether wmemcmp() exists.
31597 2011-10-03  Bruno Haible  <bruno@clisp.org>
31599         wmemchr: Support for MSVC.
31600         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31601         whether wmemchr() exists.
31603 2011-10-03  Bruno Haible  <bruno@clisp.org>
31605         glthread/*, strsignal: Support for MSVC.
31606         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31607         including <winsock.h> on MSVC 9.
31608         * lib/glthread/lock.h: Likewise.
31609         * lib/glthread/thread.h: Likewise.
31610         * lib/glthread/tls.h: Likewise.
31611         * lib/glthread/yield.h: Likewise.
31612         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31613         if HAVE_UNISTD_H is false.
31614         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31616 2011-10-03  Bruno Haible  <bruno@clisp.org>
31618         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31619         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31620         Set to 100000.
31622 2011-10-03  Bruno Haible  <bruno@clisp.org>
31624         acl: Fix specification.
31625         * lib/file-has-acl.c (file_has_acl): Fix specification.
31627 2011-10-03  Bruno Haible  <bruno@clisp.org>
31629         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31630         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31631         (compute_curr_prefix, shared_library_fullname,
31632         find_shared_library_fullname, get_shared_library_fullname, relocate):
31633         Use it together with PIC && INSTALLDIR.
31634         Reported by <jojelino@gmail.com>
31635         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31637 2011-10-01  Jim Meyering  <meyering@redhat.com>
31639         maint.mk: adjust a release-related rule not to require use of gzip
31640         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31641         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31642         projects that build only .tar.xz files.  Also fix an erroneous test.
31644         test-linkat: don't leave behind a temporary file
31645         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31646         Otherwise, coreutils' "make distcheck" would fail with this:
31647           Only in /c/cu/tests/torture/coreutils/test/\
31648             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31649           make[2]: *** [my-distcheck] Error 1
31651         float, math: add omitted file
31652         * lib/itold.c: Add file, required for yesterday's float change.
31654 2011-10-01  Bruno Haible  <bruno@clisp.org>
31656         isinf: Fix for OpenBSD/x86.
31657         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31658         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31659         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31661 2011-10-01  Bruno Haible  <bruno@clisp.org>
31663         isfinite: Fix syntax error in configure test.
31664         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31666         isfinite: Fix typo.
31667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31668         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31670 2011-10-01  Bruno Haible  <bruno@clisp.org>
31672         nonblocking tests: Fix test failure on Linux/IA-64.
31673         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31674         Set to 270000.
31676 2011-10-01  Bruno Haible  <bruno@clisp.org>
31678         mkfifoat tests: Fix a test failure on mingw.
31679         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31680         with error ENOSYS.
31682 2011-09-30  Bruno Haible  <bruno@clisp.org>
31684         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31685         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31686         'long double'. Set REPLACE_ITOLD.
31687         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31688         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31689         * lib/itold.c: New file.
31690         * modules/float (Files): Add lib/itold.c.
31691         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31692         (Makefile.am): Substitute REPLACE_ITOLD.
31693         * modules/math (Depends-on): Add float.
31694         (Makefile.am): Substitute REPLACE_ITOLD.
31695         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31696         * doc/posix-headers/math.texi: Likewise.
31697         * doc/posix-functions/logl.texi: Likewise.
31699 2011-09-30  Bruno Haible  <bruno@clisp.org>
31701         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31702         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31703         Set to 140000.
31705 2011-09-30  Bruno Haible  <bruno@clisp.org>
31707         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31708         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31709         invocation, say "right after AC_PROG_CC_STDC", not "right after
31710         AC_PROG_CC".
31711         Reported by Gary V. Vaughan <gary@gnu.org>.
31713 2011-09-30  Bruno Haible  <bruno@clisp.org>
31715         Centralize C99 requirement.
31716         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31717         * modules/stdarg (configure.ac-early): Invoke it instead of
31718         AC_PROG_CC_STDC.
31719         Reported by Gary V. Vaughan and Paul Eggert.
31721 2011-09-29  Bruno Haible  <bruno@clisp.org>
31723         float: Fix LDBL_MAX value on Linux/PowerPC.
31724         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31725         on Linux/PowerPC.
31726         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31727         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31728         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31729         platform.
31730         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31732 2011-09-29  Bruno Haible  <bruno@clisp.org>
31734         doc: Improve doc about gl_EARLY.
31735         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31736         AC_PROG_CC_STDC invocation.
31737         Reported by Gary V. Vaughan <gary@gnu.org>.
31739 2011-09-28  Bruno Haible  <bruno@clisp.org>
31741         fgetc, fputc, fread, fwrite tests: Fix link error.
31742         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31743         on non-MSVC platforms.
31744         * tests/test-fputc.c (main): Likewise.
31745         * tests/test-fread.c (main): Likewise.
31746         * tests/test-fwrite.c (main): Likewise.
31747         Reported by Jim Meyering.
31749 2011-09-27  Bruno Haible  <bruno@clisp.org>
31751         fputc, fwrite tests: Avoid test failure on MSVC.
31752         * tests/test-fgetc.c: Include msvc-inval.h.
31753         (main): Invoke gl_msvc_inval_ensure_handler.
31754         * tests/test-fputc.c: Include msvc-inval.h.
31755         (main): Invoke gl_msvc_inval_ensure_handler.
31756         * tests/test-fread.c: Include msvc-inval.h.
31757         (main): Invoke gl_msvc_inval_ensure_handler.
31758         * tests/test-fwrite.c: Include msvc-inval.h.
31759         (main): Invoke gl_msvc_inval_ensure_handler.
31760         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31761         * modules/fputc-tests (Depends-on): Likewise.
31762         * modules/fread-tests (Depends-on): Likewise.
31763         * modules/fwrite-tests (Depends-on): Likewise.
31765 2011-09-27  Bruno Haible  <bruno@clisp.org>
31767         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31768         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31769         (raise): Remove older, duplicated declaration.
31770         (_gl_raise_SIGPIPE): New declaration.
31771         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31772         (rpl_raise): Remove function.
31773         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31774         a gnulib-defined SIGPIPE here.
31775         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31776         'sigprocmask' has detected missing signal-blocking and the module
31777         'sigpipe' is enabled.
31778         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31780 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31782         base64-tests: avoid memory leak
31783         * tests/test-base64.c (main): Plug memory leak.
31785         base32: new module
31786         * modules/base32: New module.
31787         * lib/base32.c: New file.
31788         * lib/base32.h: Likewise.
31789         * m4/base32.m4: Likewise.
31790         * modules/base32-tests: New test.
31791         * tests/test-base32.c: Likewise.
31792         * MODULES.html.sh (Misc): Mention it.
31794 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31796         gnulib: use more-standard license notice wording
31797         * gnulib-tool (func_emit_copyright_notice): When emitting a
31798         license notice into a file, use the standard wording as suggested
31799         by the current information for GNU maintainers, except say "file"
31800         rather than "program".  The new wording gives a license version
31801         number, which addresses an issue raised by Glenn Morris in
31802         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31803         * m4/onceonly.m4: Use that same wording here, too.
31805         dup2: minor simplification
31806         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31807         as lib/dup2.c no longer uses 'inline'.
31809 2011-09-25  Bruno Haible  <bruno@clisp.org>
31811         strings: Fix compilation error on MSVC.
31812         * lib/strings.in.h: Include <stddef.h> for size_t.
31814 2011-09-25  Bruno Haible  <bruno@clisp.org>
31816         fflush et al.: Document limitation on MSVC.
31817         * doc/posix-functions/fflush.texi: Document possible crash in handling
31818         mode other than DEFAULT_HANDLING.
31819         * doc/posix-functions/fgetc.texi: Likewise.
31820         * doc/posix-functions/fputc.texi: Likewise.
31821         * doc/posix-functions/fread.texi: Likewise.
31822         * doc/posix-functions/fwrite.texi: Likewise.
31824 2011-09-25  Bruno Haible  <bruno@clisp.org>
31826         msvc-inval: Allow three invalid parameter handling modes.
31827         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31828         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31829         macros.
31830         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31831         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31832         SANE_LIBRARY_HANDLING as a no-op.
31833         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31834         <stdlib.h>.
31835         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31837 2011-09-25  Bruno Haible  <bruno@clisp.org>
31839         msvc-inval: Make handler multithread-safe.
31840         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31841         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31842         declarations.
31843         (gl_msvc_inval_current): New declaration.
31844         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31845         Operate on the structure returned by gl_msvc_inval_current().
31846         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31847         Remove varaiables.
31848         (tls_index, tls_initialized): New variables.
31849         (not_per_thread): New variable.
31850         (gl_msvc_inval_current): New function.
31851         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31852         returned by gl_msvc_inval_current().
31854 2011-09-25  Bruno Haible  <bruno@clisp.org>
31856         msvc-inval: Install handler globally.
31857         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31858         !_MSC_VER.
31859         (gl_msvc_invalid_parameter_handler): Remove declaration.
31860         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31861         declarations.
31862         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31863         Install the handler globally, don't uninstall it.
31864         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31865         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31866         currently valid, call RaiseException instead.
31867         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31868         for !_MSC_VER.
31870 2011-09-25  Bruno Haible  <bruno@clisp.org>
31872         strerror_r-posix: Fix for MSVC 9.
31873         * lib/strerror_r.c (local_snprintf): New function.
31874         (snprintf): Define to local_snprintf, not to _snprintf.
31876 2011-09-25  Bruno Haible  <bruno@clisp.org>
31878         ftruncate: Support for MSVC 9.
31879         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31880         (chsize_nothrow): New function.
31881         (chsize): Redefine as a macro.
31882         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31883         * modules/ftruncate (Depends-on): Add msvc-inval.
31885 2011-09-25  Bruno Haible  <bruno@clisp.org>
31887         New module 'fstat'.
31888         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31889         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31890         * lib/fchdir.c (rpl_fstat): Remove function.
31891         * m4/fstat.m4: New file.
31892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31894         declared.
31895         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31896         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31897         * modules/fstat: New file.
31898         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31899         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31900         is set.
31901         * doc/posix-functions/fstat.texi: Mention the new module and the
31902         problem on MSVC.
31903         * NEWS: Mention the change.
31904         * modules/acl (Depends-on): Add fstat.
31905         * modules/chdir-safer (Depends-on): Likewise.
31906         * modules/chown (Depends-on): Likewise.
31907         * modules/copy-file (Depends-on): Likewise.
31908         * modules/fchdir (Depends-on): Likewise.
31909         * modules/fdopendir (Depends-on): Likewise.
31910         * modules/fopen (Depends-on): Likewise.
31911         * modules/fts (Depends-on): Likewise.
31912         * modules/getcwd (Depends-on): Likewise.
31913         * modules/isapipe (Depends-on): Likewise.
31914         * modules/linkat (Depends-on): Likewise.
31915         * modules/lseek (Depends-on): Likewise.
31916         * modules/mkdir-p (Depends-on): Likewise.
31917         * modules/open (Depends-on): Likewise.
31918         * modules/openat (Depends-on): Likewise.
31919         * modules/read-file (Depends-on): Likewise.
31920         * modules/renameat (Depends-on): Likewise.
31921         * modules/utimens (Depends-on): Likewise.
31923 2011-09-25  Bruno Haible  <bruno@clisp.org>
31925         linkat: Fix compilation on MSVC 9.
31926         * lib/linkat.c: Don't include <stdint.h>.
31928 2011-09-25  Bruno Haible  <bruno@clisp.org>
31930         fclose: Support for MSVC 9.
31931         * lib/fclose.c: Include msvc-inval.h.
31932         (fclose_nothrow): New function.
31933         (rpl_fclose): Use it.
31934         * modules/fclose (Depends-on): Add msvc-inval.
31935         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31937 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31939         dup2: minor simplifications
31940         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31941         that it's a performance win.
31942         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31943         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31945 2011-09-24  Jim Meyering  <meyering@redhat.com>
31947         test-futimens: avoid a warning from gcc -Wshadow
31948         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31949         to avoid a shadowing warning.
31951 2011-09-24  Bruno Haible  <bruno@clisp.org>
31953         fdopen: Support for MSVC 9.
31954         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31955         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31956         * lib/fdopen.c: Include msvc-inval.h.
31957         (fdopen_nothrow): New function.
31958         (rpl_fdopen): Use it.
31959         * modules/fdopen (Depends-on): Add msvc-inval.
31960         * modules/fclose-tests (Depends-on): Add fdopen.
31961         * modules/fflush-tests (Depends-on): Likewise.
31962         * modules/fgetc-tests (Depends-on): Likewise.
31963         * modules/fputc-tests (Depends-on): Likewise.
31964         * modules/fread-tests (Depends-on): Likewise.
31965         * modules/freopen-tests (Depends-on): Likewise.
31966         * modules/fseeko-tests (Depends-on): Likewise.
31967         * modules/ftello-tests (Depends-on): Likewise.
31968         * modules/fwrite-tests  (Depends-on): Likewise.
31969         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31971 2011-09-24  Bruno Haible  <bruno@clisp.org>
31973         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31974         * modules/fgetc-tests (Depends-on): Add unistd.
31975         * modules/fputc-tests (Depends-on): Likewise.
31976         * modules/fread-tests (Depends-on): Likewise.
31977         * modules/fwrite-tests (Depends-on): Likewise.
31979 2011-09-24  Bruno Haible  <bruno@clisp.org>
31981         dup: Simplify autoconf test.
31982         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31983         on gl_MSVC_INVAL's result.
31985 2011-09-24  Bruno Haible  <bruno@clisp.org>
31987         Tests for function fwrite().
31988         * modules/fwrite-tests: New file.
31989         * tests/test-fwrite.c: New file.
31990         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31992         Tests for function fread().
31993         * modules/fread-tests: New file.
31994         * tests/test-fread.c: New file.
31995         * modules/stdio-tests (Depends-on): Add fread-tests.
31997         Activate fputc tests.
31998         * modules/stdio-tests (Depends-on): Add fputc-tests.
32000         Enhance fgetc, fputc tests.
32001         * tests/test-fgetc.c (main): Also test the stream's error indicator.
32002         * tests/test-fputc.c (main): Likewise.
32004 2011-09-24  Bruno Haible  <bruno@clisp.org>
32006         write: Support for MSVC 9.
32007         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
32008         is not 1.
32009         * lib/write.c (write_nothrow): New function.
32010         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
32011         not 1. Use write_nothrow.
32012         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
32013         invalid parameter handler.
32014         (gl_PREREQ_WRITE): New macro.
32015         * modules/write (Depends-on): Add msvc-inval.
32016         (configure.ac): Invoke gl_PREREQ_WRITE.
32017         * doc/posix-functions/write.texi: Mention the problem on MSVC.
32019 2011-09-24  Bruno Haible  <bruno@clisp.org>
32021         read: Fix last commit.
32022         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
32024 2011-09-24  Bruno Haible  <bruno@clisp.org>
32026         dup2: Fix last commit.
32027         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
32028         (rpl_dup2): Disable fcntl workaround on native Windows.
32030         sigprocmask: Make code safer.
32031         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
32032         section that changes macro definitions for this compilation unit.
32034 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32036         dup2: clarify by coalescing Windows-specific material
32037         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
32038         "msvc-nothrow.h"' to the Windows-specific section, so that the
32039         Emacs source need not contain these include files.
32040         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
32041         Windows-specific fixes into this function rather than just the
32042         nothrow fix, as this shortens and clarifies the code.  Always
32043         define as a function, as that's a bit cleaner than having it be
32044         sometimes a function and sometimes a macro.
32045         (rpl_dup2): Move the Windows-specific stuff out of here and into
32046         ms_windows_dup2.  Don't protect the Haiku-related fix with
32047         "#if !defined __linux__", as the same code also works around
32048         a Linux kernel bug, and it doesn't add any system calls on any
32049         platform.  Add comment about FreeBSD 6.1.
32051         sigprocmask: move #include directive
32052         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
32053         Windows-specific section, so that the Emacs source need not
32054         contain msvc-inval.h.
32056 2011-09-23  Bruno Haible  <bruno@clisp.org>
32058         read: Support for MSVC 9.
32059         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
32060         is not 1.
32061         * lib/read.c (read_nothrow): New function.
32062         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
32063         read_nothrow.
32064         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
32065         invalid parameter handler.
32066         (gl_PREREQ_READ): New macro.
32067         * modules/read (Depends-on): Add msvc-inval.
32068         (configure.ac): Invoke gl_PREREQ_READ.
32069         * doc/posix-functions/read.texi: Mention the problem on MSVC.
32071 2011-09-23  Bruno Haible  <bruno@clisp.org>
32073         close: Support for MSVC 9.
32074         * lib/close.c: Include <errno.h>, msvc-inval.h.
32075         (close_nothrow): New function.
32076         (rpl_close): Use it.
32077         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
32078         invalid parameter handler.
32079         * modules/close (Depends-on): Add msvc-inval.
32080         * modules/dup2-tests (Depends-on): Add close.
32081         * modules/dup3-tests (Depends-on): Likewise.
32082         * modules/fcntl-tests (Depends-on): Likewise.
32083         * modules/spawn-pipe-tests (Depends-on): Likewise.
32084         * modules/unistd-safer-tests (Depends-on): Likewise.
32085         * doc/posix-functions/close.texi: Mention the problem on MSVC.
32087 2011-09-23  Bruno Haible  <bruno@clisp.org>
32089         New module 'dup'.
32090         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
32091         Allow replacement.
32092         * lib/dup.c: New file.
32093         * lib/fchdir.c (rpl_dup): Remove function.
32094         * m4/dup.m4: New file.
32095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
32096         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
32097         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
32098         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
32099         * modules/dup: New file.
32100         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
32101         'dup' module is in use.
32102         * modules/fdopendir (Depends-on): Add dup.
32103         * modules/fdutimensat-tests (Depends-on): Likewise.
32104         * modules/fts (Depends-on): Likewise.
32105         * modules/futimens-tests (Depends-on): Likewise.
32106         * modules/posix_spawnp-tests (Depends-on): Likewise.
32107         * modules/unistd-safer-tests (Depends-on): Likewise.
32108         * modules/utimens-tests (Depends-on): Likewise.
32109         * doc/posix-functions/dup.texi: Mention the new module and the problem
32110         on MSVC.
32112 2011-09-23  Bruno Haible  <bruno@clisp.org>
32114         getdtablesize: Support for MSVC 9.
32115         * lib/getdtablesize.c: Include msvc-inval.h.
32116         (_setmaxstdio_nothrow): New function.
32117         (_setmaxstdio): Redefine it.
32118         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
32119         * modules/getdtablesize (Depends-on): Add msvc-inval.
32120         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
32122 2011-09-23  Bruno Haible  <bruno@clisp.org>
32124         signal-h: Rename from signal.
32125         * modules/signal-h: Renamed from modules/signal.
32126         * modules/pthread_sigmask (Depends-on): Update.
32127         * modules/raise (Depends-on): Likewise.
32128         * modules/sigaction (Depends-on): Likewise.
32129         * modules/sigpipe (Depends-on): Likewise.
32130         * modules/sigprocmask (Depends-on): Likewise.
32131         * modules/sys_select (Depends-on): Likewise.
32132         * modules/signal-h-tests: Renamed from modules/signal-tests.
32133         (Files, Depends-on, Makefile.am): Update.
32134         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
32135         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
32136         (Files, Makefile.am): Update.
32137         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
32138         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
32139         * modules/signal: New placeholder file.
32140         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
32141         * doc/posix-headers/signal.texi: Update.
32142         * NEWS: Mention the change.
32144 2011-09-23  Bruno Haible  <bruno@clisp.org>
32146         sigprocmask: Avoid crashes through signal() on MSVC 9.
32147         * lib/sigprocmask.c: Include msvc-inval.h.
32148         (signal_nothrow): New function.
32149         (signal): Redefine it.
32150         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
32151         * modules/sigprocmask (Depends-on): Add msvc-inval.
32152         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
32154 2011-09-23  Bruno Haible  <bruno@clisp.org>
32156         Tests for module 'raise'.
32157         * modules/raise-tests: New file.
32158         * tests/test-raise.c: New file.
32160         raise: Support for MSVC.
32161         * lib/signal.in.h (raise): New declaration.
32162         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
32163         for native Windows platforms.
32164         * m4/raise.m4: New file.
32165         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
32166         HAVE_RAISE, REPLACE_RAISE.
32167         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
32168         REPLACE_RAISE.
32169         * modules/raise (Status, Notice): Remove fields.
32170         (Files): Add m4/raise.m4.
32171         (Depends-on): Add signal, msvc-inval.
32172         (configure.ac): Use the common idioms.
32173         (Maintainer): Add me.
32174         * tests/test-signal-c++.cc: Check the signature of raise.
32175         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
32177 2011-09-23  Bruno Haible  <bruno@clisp.org>
32179         pipe2: Fix compilation on pre-C99 compilers.
32180         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
32182 2011-09-23  Bruno Haible  <bruno@clisp.org>
32184         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
32185         * lib/msvc-nothrow.h: New file.
32186         * lib/msvc-nothrow.c: New file.
32187         * m4/msvc-nothrow.m4: New file.
32188         * modules/msvc-nothrow: New file.
32189         * lib/dup2.c: Include msvc-nothrow.h.
32190         (rpl_dup2): No need to protect _get_osfhandle call here.
32191         * lib/accept4.c: Include msvc-nothrow.h.
32192         * lib/error.c: Likewise.
32193         * lib/fcntl.c: Likewise.
32194         * lib/lseek.c: Likewise.
32195         * lib/nonblocking.c: Likewise.
32196         * lib/poll.c: Likewise.
32197         * lib/read.c: Likewise.
32198         * lib/select.c: Likewise.
32199         * lib/sockets.h: Likewise.
32200         * lib/sockets.c: Likewise.
32201         * lib/stdio-read.c: Likewise.
32202         * lib/stdio-write.c: Likewise.
32203         * lib/write.c: Likewise.
32204         * lib/w32sock.h: Likewise.
32205         * lib/w32spawn.h: Likewise.
32206         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
32207         * lib/fsync.c: Likewise.
32208         * lib/isapipe.c: Likewise.
32209         * modules/dup2 (Depends-on): Add msvc-nothrow.
32210         * modules/accept4 (Depends-on): Likewise.
32211         * modules/error (Depends-on): Likewise.
32212         * modules/fcntl (Depends-on): Likewise.
32213         * modules/lseek (Depends-on): Likewise.
32214         * modules/nonblocking (Depends-on): Likewise.
32215         * modules/poll (Depends-on): Likewise.
32216         * modules/read (Depends-on): Likewise.
32217         * modules/select (Depends-on): Likewise.
32218         * modules/sockets (Depends-on): Likewise.
32219         * modules/sigpipe (Depends-on): Likewise.
32220         * modules/write (Depends-on): Likewise.
32221         * modules/accept (Depends-on): Likewise.
32222         * modules/bind (Depends-on): Likewise.
32223         * modules/connect (Depends-on): Likewise.
32224         * modules/gethostname (Depends-on): Likewise.
32225         * modules/getpeername (Depends-on): Likewise.
32226         * modules/getsockname (Depends-on): Likewise.
32227         * modules/getsockopt (Depends-on): Likewise.
32228         * modules/ioctl (Depends-on): Likewise.
32229         * modules/listen (Depends-on): Likewise.
32230         * modules/recv (Depends-on): Likewise.
32231         * modules/recvfrom (Depends-on): Likewise.
32232         * modules/send (Depends-on): Likewise.
32233         * modules/sendto (Depends-on): Likewise.
32234         * modules/setsockopt (Depends-on): Likewise.
32235         * modules/shutdown (Depends-on): Likewise.
32236         * modules/socket (Depends-on): Likewise.
32237         * modules/execute (Depends-on): Likewise.
32238         * modules/spawn-pipe (Depends-on): Likewise.
32239         * modules/flock (Depends-on): Likewise.
32240         * modules/fsync (Depends-on): Likewise.
32241         * modules/isapipe (Depends-on): Likewise.
32242         * tests/test-cloexec.c: Include msvc-nothrow.h.
32243         * tests/test-dup-safer.c: Likewise.
32244         * tests/test-dup2.c: Likewise.
32245         * tests/test-dup3.c: Likewise.
32246         * tests/test-fcntl.c: Likewise.
32247         * tests/test-pipe.c: Likewise.
32248         * tests/test-pipe2.c: Likewise.
32249         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
32250         * modules/unistd-safer-tests (Depends-on): Likewise.
32251         * modules/dup2-tests (Depends-on): Likewise.
32252         * modules/dup3-tests (Depends-on): Likewise.
32253         * modules/fcntl-tests (Depends-on): Likewise.
32254         * modules/pipe-posix-tests (Depends-on): Likewise.
32255         * modules/pipe2-tests (Depends-on): Likewise.
32257 2011-09-23  Bruno Haible  <bruno@clisp.org>
32259         dup2: Make code more maintainable.
32260         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
32261         (rpl_dup2): Use it.
32262         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
32263         * modules/dup2 (configure.ac): Invoke it.
32264         Reported by Paul Eggert.
32266 2011-09-23  Bruno Haible  <bruno@clisp.org>
32268         msvc-inval: Fix compilation error.
32269         * lib/msvc-inval.h: Include <excpt.h>.
32271 2011-09-23  Bruno Haible  <bruno@clisp.org>
32273         mkdir: Tweak for MSVC 9.
32274         * lib/sys_stat.in.h: Update comments.
32275         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
32277         Tests for module 'chdir'.
32278         * modules/chdir-tests: New file.
32279         * tests/test-chdir.c: New file.
32281         New module 'chdir'.
32282         * modules/chdir: New file.
32283         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
32284         (chdir): New declaration.
32285         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
32286         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
32287         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
32288         * tests/test-unistd-c++.cc: Check signature of chdir.
32289         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
32290         * modules/chdir-long (Depends-on): Add chdir.
32291         * modules/fchdir (Depends-on): Likewise.
32292         * modules/rename (Depends-on): Likewise.
32293         * modules/savewd (Depends-on): Likewise.
32295         rmdir: Support for mingw, MSVC 9.
32296         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
32297         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
32299         getcwd: Tweak for MSVC 9.
32300         * lib/unistd.in.h: Update comments.
32301         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
32303 2011-09-22  Bruno Haible  <bruno@clisp.org>
32305         strerror_r-posix: Avoid a link error on MSVC.
32306         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
32307         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
32309 2011-09-22  Bruno Haible  <bruno@clisp.org>
32311         select: Avoid link errors on MSVC.
32312         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
32313         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
32314         * modules/pselect (Link): Likewise.
32315         * NEWS: Mention the change.
32316         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
32317         test-select-stdin against $(LIB_SELECT).
32318         * modules/pselect-tests (Makefile.am): Link test-pselect against
32319         $(LIB_SELECT).
32321 2011-09-22  Bruno Haible  <bruno@clisp.org>
32323         select: Avoid compilation error on MSVC.
32324         * lib/select.c: Don't include <stdbool.h>.
32326 2011-09-21  Bruno Haible  <bruno@clisp.org>
32328         Consolidate all uses of PATH_MAX in *.m4 files.
32329         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32330         macros.
32331         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32332         and gl_PATHMAX_SNIPPET.
32333         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32334         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32335         * modules/chdir-long (Files): Add m4/pathmax.m4.
32336         * modules/getcwd (Files): Likewise.
32338 2011-09-21  Bruno Haible  <bruno@clisp.org>
32340         ftruncate: Un-deprecate, concentrate on Win32 support.
32341         * modules/ftruncate (Status, Notice): Remove sections.
32342         (Depends-on): Add largefile.
32343         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32344         non-mingw platforms.
32345         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32346         include <io.h>.
32347         * modules/perror-tests (Depends-on): Add ftruncate.
32348         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32349         'ftruncate' module.
32351 2011-09-21  Bruno Haible  <bruno@clisp.org>
32353         Add dependencies to new dirent related modules.
32354         * modules/opendir (Depends-on): Add closedir.
32355         * modules/getcwd (Depends-on): Add opendir, closedir.
32356         * modules/dirent-safer-tests (Depends-on): Likewise.
32357         * modules/fdopendir-tests (Depends-on): Likewise.
32358         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32359         * modules/renameat-tests (Depends-on): Likewise.
32361 2011-09-21  Bruno Haible  <bruno@clisp.org>
32363         opendir: Avoid compilation error on mingw.
32364         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32365         * modules/opendir (Depends-on): Add unistd.
32367 2011-09-21  Bruno Haible  <bruno@clisp.org>
32369         ftruncate tests: Avoid a test failure on mingw.
32370         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32372 2011-09-21  Bruno Haible  <bruno@clisp.org>
32374         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32375         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32376         native Windows.
32378 2011-09-21  Bruno Haible  <bruno@clisp.org>
32380         New module 'fdopen'.
32381         * lib/stdio.in.h (fdopen): New declaration.
32382         * lib/fdopen.c: New file.
32383         * m4/fdopen.m4: New file.
32384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32385         REPLACE_FDOPEN.
32386         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32387         REPLACE_FDOPEN.
32388         * modules/fdopen: New file.
32389         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32390         * tests/test-stdio-c++.cc: Check signature of fdopen.
32391         * doc/posix-functions/fdopen.texi: Mention the new module.
32393 2011-09-21  Bruno Haible  <bruno@clisp.org>
32395         unlockpt tests: Avoid test failure on NetBSD 5.1.
32396         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32397         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32399 2011-09-21  Bruno Haible  <bruno@clisp.org>
32401         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32402         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32403         * tests/test-getlogin_r.c (main): Likewise.
32405 2011-09-20  Bruno Haible  <bruno@clisp.org>
32407         time tests: Don't require pid_t.
32408         * doc/posix-headers/time.texi: Revert last change.
32409         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32410         * tests/test-time.c: Comment out the check for pid_t.
32412 2011-09-20  Bruno Haible  <bruno@clisp.org>
32414         fsync tests: Avoid a test failure on mingw.
32415         * tests/test-fsync.c (main): Allow a failure with EIO.
32417 2011-09-20  Bruno Haible  <bruno@clisp.org>
32419         euidaccess: Update comments.
32420         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32422 2011-09-20  Bruno Haible  <bruno@clisp.org>
32424         Ensure EBADF returns for socket functions on mingw.
32425         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32426         descriptor is invalid.
32427         * lib/bind.c (rpl_bind): Likewise.
32428         * lib/connect.c (rpl_connect): Likewise.
32429         * lib/getpeername.c (rpl_getpeername): Likewise.
32430         * lib/getsockname.c (rpl_getsockname): Likewise.
32431         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32432         * lib/listen.c (rpl_listen): Likewise.
32433         * lib/recv.c (rpl_recv): Likewise.
32434         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32435         * lib/send.c (rpl_send): Likewise.
32436         * lib/sendto.c (rpl_sendto): Likewise.
32437         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32438         * lib/shutdown.c (rpl_shutdown): Likewise.
32440 2011-09-20  Bruno Haible  <bruno@clisp.org>
32442         select tests: EBADF tests.
32443         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32444         test_bad_fd): New functions.
32445         (test_function): Invoke also test_bad_fd.
32447 2011-09-20  Bruno Haible  <bruno@clisp.org>
32449         Tests for module 'posix_spawn_file_actions_addopen.
32450         * modules/posix_spawn_file_actions_addopen-tests: New file.
32451         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32453         Tests for module 'posix_spawn_file_actions_adddup2'.
32454         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32455         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32457         Tests for module 'posix_spawn_file_actions_addclose'.
32458         * modules/posix_spawn_file_actions_addclose-tests: New file.
32459         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32461 2011-09-20  Bruno Haible  <bruno@clisp.org>
32463         Tests for module 'unlockpt'.
32464         * modules/unlockpt-tests: New file.
32465         * tests/test-unlockpt.c: New file.
32466         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32468         Tests for module 'grantpt'.
32469         * modules/grantpt-tests: New file.
32470         * tests/test-grantpt.c: New file.
32471         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32473 2011-09-20  Bruno Haible  <bruno@clisp.org>
32475         freopen tests: EBADF tests.
32476         * tests/test-freopen.c: Include errno.h, unistd.h.
32477         (main): Add tests for EBADF, commented out for the moment.
32479         fclose tests: EBADF tests.
32480         * tests/test-fclose.c (main): Add tests for EBADF.
32482         fflush tests: EBADF tests.
32483         * tests/test-fflush.c: Include errno.h, macros.h.
32484         (main): Add tests for EBADF.
32486         ftello tests: EBADF tests.
32487         * tests/test-ftello4.sh: New file.
32488         * tests/test-ftello4.c: New file.
32489         * modules/ftello-tests (Files): Add them.
32490         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32492         fseeko tests: EBADF tests.
32493         * tests/test-fseeko4.sh: New file.
32494         * tests/test-fseeko4.c: New file.
32495         * modules/fseeko-tests (Files): Add them.
32496         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32498         Tests for function fputc().
32499         * modules/fputc-tests: New file.
32500         * tests/test-fputc.c: New file.
32501         * modules/stdio-tests (Depends-on): Add fputc-tests.
32503         Tests for function fgetc().
32504         * modules/fgetc-tests: New file.
32505         * tests/test-fgetc.c: New file.
32506         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32508         Tests for function fdopen().
32509         * modules/fdopen-tests: New file.
32510         * tests/test-fdopen.c: New file.
32511         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32513         Tests for module 'vdprintf'.
32514         * modules/vdprintf-tests: New file.
32515         * tests/test-vdprintf.c: New file.
32517         Tests for module 'dprintf'.
32518         * modules/dprintf-tests: New file.
32519         * tests/test-dprintf.c: New file.
32521 2011-09-20  Bruno Haible  <bruno@clisp.org>
32523         Tests for module 'ioctl'.
32524         * modules/ioctl-tests: New file.
32525         * tests/test-ioctl.c: New file.
32527 2011-09-20  Bruno Haible  <bruno@clisp.org>
32529         fcntl tests: EBADF tests.
32530         * tests/test-fcntl.c (main): Add more tests for EBADF.
32532 2011-09-20  Bruno Haible  <bruno@clisp.org>
32534         utimensat tests: EBADF tests.
32535         * tests/test-utimensat.c (main): Add tests for EBADF.
32537         renameat tests: EBADF tests.
32538         * tests/test-renameat.c (main): Add tests for EBADF.
32540         mkfifoat tests: EBADF tests.
32541         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32543         readlinkat tests: EBADF tests.
32544         * tests/test-readlinkat.c (main): Add tests for EBADF.
32546         symlinkat tests: EBADF tests.
32547         * tests/test-symlinkat.c (main): Add tests for EBADF.
32549         linkat tests: EBADF tests.
32550         * tests/test-linkat.c (main): Add tests for EBADF.
32552         Tests for module 'faccessat'.
32553         * modules/faccessat-tests: New file.
32554         * tests/test-faccessat.c: New file.
32556         fdopendir tests: EBADF tests.
32557         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32559         openat tests: EBADF tests.
32560         * tests/test-fchownat.c (main): Add tests for EBADF.
32561         * tests/test-fstatat.c (main): Likewise.
32562         * tests/test-mkdirat.c (main): Likewise.
32563         * tests/test-openat.c (main): Likewise.
32564         * tests/test-unlinkat.c (main): Likewise.
32565         * tests/test-fchmodat.c: New file.
32566         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32567         (Makefile.am): Also run 'test-fchmodat'.
32569 2011-09-20  Bruno Haible  <bruno@clisp.org>
32571         utimens, futimens, fdutimensat tests: EBADF tests.
32572         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32574         Tests for function fstat().
32575         * modules/fstat-tests: New file.
32576         * tests/test-fstat.c: New file.
32577         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32579 2011-09-20  Bruno Haible  <bruno@clisp.org>
32581         test-ttyname_r tests: EBADF tests.
32582         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32584         Tests for module 'isatty'.
32585         * modules/isatty-tests: New file.
32586         * tests/test-isatty.c: New file.
32588         Tests for module 'write'.
32589         * modules/write-tests: New file.
32590         * tests/test-write.c: New file.
32592         Tests for module 'read'.
32593         * modules/read-tests: New file.
32594         * tests/test-read.c: New file.
32596         pwrite tests: EBADF tests.
32597         * tests/test-pwrite.c (main): Add tests for EBADF.
32599         pread tests: EBADF tests.
32600         * tests/test-pread.c (main): Add tests for EBADF.
32602         lseek tests: EBADF tests.
32603         * tests/test-lseek.c (main): Add more tests for EBADF.
32605         Tests for module 'ftruncate'.
32606         * modules/ftruncate-tests: New file.
32607         * tests/test-ftruncate.sh: New file.
32608         * tests/test-ftruncate.c: New file.
32610         fsync tests: EBADF tests.
32611         * tests/test-fsync.c (main): Add more tests for EBADF.
32613         fdatasync tests: EBADF tests.
32614         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32616         Tests for module 'fchown'.
32617         * modules/fchown-tests: New file.
32618         * tests/test-fchown.c: New file.
32620         Tests for module 'fchmod'.
32621         * modules/fchmod-tests: New file.
32622         * tests/test-fchmod.c: New file.
32624         fchdir tests: EBADF tests.
32625         * tests/test-fchdir.c (main): Add more tests for EBADF.
32627         dup2 tests: EBADF tests.
32628         * tests/test-dup2.c (main): Add more tests for EBADF.
32630         Tests for module 'dup'.
32631         * modules/dup-tests: New file.
32632         * tests/test-dup.c: New file.
32634         Tests for module 'close'.
32635         * modules/close-tests: New file.
32636         * tests/test-close.c: New file.
32638 2011-09-20  Bruno Haible  <bruno@clisp.org>
32640         Tests for module 'shutdown'.
32641         * modules/shutdown-tests: New file.
32642         * tests/test-shutdown.c: New file.
32644         Tests for module 'setsockopt'.
32645         * modules/setsockopt-tests: New file.
32646         * tests/test-setsockopt.c: New file.
32648         Tests for module 'sendto'.
32649         * modules/sendto-tests: New file.
32650         * tests/test-sendto.c: New file.
32652         Tests for module 'send'.
32653         * modules/send-tests: New file.
32654         * tests/test-send.c: New file.
32656         Tests for module 'recvfrom'.
32657         * modules/recvfrom-tests: New file.
32658         * tests/test-recvfrom.c: New file.
32660         Tests for module 'recv'.
32661         * modules/recv-tests: New file.
32662         * tests/test-recv.c: New file.
32664         Tests for module 'listen'.
32665         * modules/listen-tests: New file.
32666         * tests/test-listen.c: New file.
32668         Tests for module 'getsockopt'.
32669         * modules/getsockopt-tests: New file.
32670         * tests/test-getsockopt.c: New file.
32672         Tests for module 'getsockname'.
32673         * modules/getsockname-tests: New file.
32674         * tests/test-getsockname.c: New file.
32676         Tests for module 'getpeername'.
32677         * modules/getpeername-tests: New file.
32678         * tests/test-getpeername.c: New file.
32680         Tests for module 'connect'.
32681         * modules/connect-tests: New file.
32682         * tests/test-connect.c: New file.
32684         Tests for module 'bind'.
32685         * modules/bind-tests: New file.
32686         * tests/test-bind.c: New file.
32688         accept4 tests: Fix for native Windows.
32689         * tests/test-accept4.c: Include sockets.h.
32690         (main): Invoke gl_sockets_startup.
32691         * modules/accept4-tests (Depends-on): Add sockets.
32693         accept tests: Fix for native Windows.
32694         * tests/test-accept.c: Include sockets.h.
32695         (main): Invoke gl_sockets_startup.
32696         * modules/accept-tests (Depends-on): Add sockets.
32698 2011-09-19  Bruno Haible  <bruno@clisp.org>
32700         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32701         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32702         do...while(0).
32703         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32704         Suggested by Paul Eggert.
32706 2011-09-19  Bruno Haible  <bruno@clisp.org>
32708         sched: Ensure pid_t is defined.
32709         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32710         not define pid_t.
32711         * lib/sched.in.h: Include <sys/types.h>.
32712         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32715 2011-09-19  Bruno Haible  <bruno@clisp.org>
32717         msvc-inval: Ensure the entire expansion is a single statement.
32718         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32719         of braces.
32721 2011-09-19  Jim Meyering  <meyering@redhat.com>
32723         tests: use printf, not echo in init.sh's warn_ function
32724         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32725         misbehave when given strings containing a backslash or starting
32726         with e.g., -n.  James Youngman suggested setting IFS.
32728 2011-09-19  Eric Blake  <eblake@redhat.com>
32730         futimens: enhance test
32731         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32732         closed non-negative fd.
32734         date: accept 'hence' as opposite of 'ago'
32735         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32736         * tests/test-parse-datetime.c (main): Enhance test.
32737         Suggested by Jesse Wilson.
32739 2011-09-19  Jim Meyering  <meyering@redhat.com>
32741         getcwd: don't fail in a deep directory on a system without openat
32742         Before this change, getcwd would fail when called from a directory
32743         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32744         the non-openat implementation used "..", "../..", "../../..", etc.
32745         to access ancestor directories.  With too many, that string would
32746         be longer than PATH_MAX.
32747         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32748         using gnulib's openat replacement.
32749         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32750         we're using the replacement function.
32752 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32754         maint.mk: avoid warnings from perl about missing files
32755         * top/maint.mk (def_sym_regex): Ignore files listed in
32756         $(gl_other_headers_) that do not exist, say because a project
32757         does not use a corresponding module.
32759 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32761         stat: use pathmax.h only if needed
32762         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32763         This is better for Emacs, which does not have a mingw port and
32764         therefore can avoid the pathmax module.
32766         utimens: remove dependency on dup2
32767         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32768         to work around the Linux kernel bug.
32769         * modules/utimens (Depends-on): Remove dup2.
32771 2011-09-18  Bruno Haible  <bruno@clisp.org>
32773         inet_ntop, inet_pton: Look for it also in libresolv.
32774         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32775         libnsl, search for it in libresolv.
32776         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32777         Needed on Solaris 7.
32779 2011-09-18  Bruno Haible  <bruno@clisp.org>
32781         accept, accept4 tests: Avoid link error on Solaris.
32782         * modules/accept-tests (Makefile.am): Link test-accept against
32783         $(LIBSOCKET).
32784         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32785         $(LIBSOCKET).
32787         accept4: Avoid link error on Solaris.
32788         * modules/accept4 (Link): New section.
32790         socket functions: Avoid link errors on Solaris.
32791         * modules/accept (Depends-on): Add socketlib.
32792         (Link): New section.
32793         * modules/bind (Depends-on): Add socketlib.
32794         (Link): New section.
32795         * modules/connect (Depends-on): Add socketlib.
32796         (Link): New section.
32797         * modules/getpeername (Depends-on): Add socketlib.
32798         (Link): New section.
32799         * modules/getsockname (Depends-on): Add socketlib.
32800         (Link): New section.
32801         * modules/getsockopt (Depends-on): Add socketlib.
32802         (Link): New section.
32803         * modules/listen (Depends-on): Add socketlib.
32804         (Link): New section.
32805         * modules/recv (Depends-on): Add socketlib.
32806         (Link): New section.
32807         * modules/recvfrom (Depends-on): Add socketlib.
32808         (Link): New section.
32809         * modules/send (Depends-on): Add socketlib.
32810         (Link): New section.
32811         * modules/sendto (Depends-on): Add socketlib.
32812         (Link): New section.
32813         * modules/setsockopt (Depends-on): Add socketlib.
32814         (Link): New section.
32815         * modules/shutdown (Depends-on): Add socketlib.
32816         (Link): New section.
32817         * modules/socket (Depends-on): Add socketlib.
32818         (Link): New section.
32820 2011-09-18  Bruno Haible  <bruno@clisp.org>
32822         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32823         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32824         than 5 seconds.
32825         * modules/ptsname-tests (configure.ac): Test for alarm.
32827 2011-09-18  Bruno Haible  <bruno@clisp.org>
32829         posix_spawn_file_actions_add*: Fix module dependencies.
32830         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32831         posix_spawn_file_actions_init.
32832         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32833         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32835 2011-09-18  Bruno Haible  <bruno@clisp.org>
32837         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32838         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32839         * tests/test-renameat.c (main): Likewise.
32841 2011-09-18  Bruno Haible  <bruno@clisp.org>
32843         Tests for module 'accept4'.
32844         * modules/accept4-tests: New file.
32845         * tests/test-accept4.c: New file.
32847 2011-09-18  Bruno Haible  <bruno@clisp.org>
32849         Tests for module 'accept'.
32850         * modules/accept-tests: New file.
32851         * tests/test-accept.c: New file.
32853 2011-09-18  Bruno Haible  <bruno@clisp.org>
32855         dup2: Support for MSVC.
32856         * lib/dup2.c: Include msvc-inval.h.
32857         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32858         _get_osfhandle calls.
32859         * modules/dup2 (Depends-on): Add msvc-inval.
32860         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32862         New module 'msvc-inval'.
32863         * lib/msvc-inval.h: New file.
32864         * lib/msvc-inval.c: New file.
32865         * m4/msvc-inval.m4: New file.
32866         * modules/msvc-inval: New file.
32868 2011-09-17  Bruno Haible  <bruno@clisp.org>
32870         Tests for module 'pclose'.
32871         * modules/pclose-tests: New file.
32873         New module 'pclose'.
32874         * lib/stdio.in.h (pclose): New declaration.
32875         * lib/pclose.c: New file.
32876         * m4/pclose.m4: New file.
32877         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32878         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32879         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32880         * modules/pclose: New file.
32881         * modules/popen-tests (Depends-on): Add pclose.
32882         * modules/popen-safer-tests (Depends-on): Likewise.
32883         * doc/posix-functions/pclose.texi: Mention the new module.
32885 2011-09-17  Bruno Haible  <bruno@clisp.org>
32887         popen: Support for MSVC.
32888         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32889         * lib/popen.c (popen): Provide alternate definition for native Windows.
32890         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32892         * modules/popen (Depends-on, configure.ac): Update condition.
32893         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32894         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32895         fixed.
32897 2011-09-17  Bruno Haible  <bruno@clisp.org>
32899         isnanl, isnand, isnanf: Work around MSVC bug.
32900         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32902 2011-09-17  Bruno Haible  <bruno@clisp.org>
32904         sys_socket tests: Fix recent mistake.
32905         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32907 2011-09-17  Bruno Haible  <bruno@clisp.org>
32909         putenv: Support for MSVC.
32910         * modules/putenv (Depends-on): Add environ.
32911         * lib/putenv.c (environ): Disable declaration.
32912         * lib/unistd.in.h: Update comment.
32914 2011-09-17  Bruno Haible  <bruno@clisp.org>
32916         math: Avoid macro redefinition warnings on MSVC.
32917         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32918         Undefine before redefining.
32920 2011-09-17  Bruno Haible  <bruno@clisp.org>
32922         doc: Mention functions which are declared as macros.
32923         * doc/posix-functions/*[fl].texi: Mention that some functions are
32924         defined as macros with arguments only.
32926 2011-09-17  Bruno Haible  <bruno@clisp.org>
32928         Add dependencies to new dirent related modules.
32929         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32930         * modules/fts (Depends-on): Likewise.
32931         * modules/glob (Depends-on): Likewise.
32932         * modules/savedir (Depends-on): Likewise.
32933         * modules/scandir (Depends-on): Likewise.
32934         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32935         * modules/fdopendir (Depends-on): Add opendir.
32937 2011-09-17  Bruno Haible  <bruno@clisp.org>
32939         inet_pton: Support for MSVC on Windows Vista or newer.
32940         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32941         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32942         HAVE_DECL_INET_PTON is defined.
32943         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32944         On platforms with <winsock2.h>, test whether inet_pton is declared in
32945         <ws2tcpip.h>. If so, arrange to replace it.
32946         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32947         REPLACE_INET_PTON.
32948         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32949         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32950         (Depends-on, configure.ac): Update condition.
32951         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32953 2011-09-17  Bruno Haible  <bruno@clisp.org>
32955         inet_ntop: Support for MSVC on Windows Vista or newer.
32956         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32957         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32958         HAVE_DECL_INET_NTOP is defined.
32959         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32960         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32961         <ws2tcpip.h>. If so, arrange to replace it.
32962         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32963         REPLACE_INET_NTOP.
32964         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32965         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32966         (Depends-on, configure.ac): Update condition.
32967         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32969 2011-09-16  Eric Blake  <eblake@redhat.com>
32971         test-fsync: yet another enhancement
32972         * tests/test-fsync.c (main): Also test behavior on read-only text
32973         file.
32975 2011-09-16  Bruno Haible  <bruno@clisp.org>
32977         Enhance fsync, fdatasync tests.
32978         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32979         * tests/test-fdatasync.c (main): Likewise.
32981 2011-09-16  Bruno Haible  <bruno@clisp.org>
32983         Support for MSVC compiler: Ensure mode_t gets defined.
32984         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32985         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32987         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32988         * tests/test-fcntl-h.c: Check that mode_t is defined.
32989         * tests/test-sys_stat.c: Likewise.
32990         * tests/test-sys_types.c: Likewise.
32991         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32992         * doc/posix-headers/sys_stat.texi: Likewise.
32993         * doc/posix-headers/sys_types.texi: Likewise.
32995 2011-09-16  Bruno Haible  <bruno@clisp.org>
32997         sys_stat: Support for MSVC.
32998         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32999         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
33000         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
33001         MSVC.
33003 2011-09-16  Bruno Haible  <bruno@clisp.org>
33005         Support for MSVC compiler: Ensure off_t gets defined.
33006         * lib/unistd.in.h: Include <sys/types.h>.
33007         * tests/test-fcntl-h.c: Check that off_t is defined.
33008         * tests/test-sys_stat.c: Likewise.
33009         * tests/test-sys_types.c: Likewise.
33011 2011-09-16  Eric Blake  <eblake@redhat.com>
33013         fdatasync: port to Solaris
33014         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
33015         * modules/fdatasync (Link): Document it.
33016         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
33018         fdatasync: port to MacOS X 10.7
33019         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
33020         declared.
33021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
33022         * modules/unistd (Makefile.am): Substitute it.
33023         * lib/unistd.in.h (fdatasync): Declare on MacOS.
33024         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
33026         fdatasync: minor improvements
33027         * modules/fdatasync (Depends-on): Add condition for fsync.
33028         * lib/fdatasync.c (fdatasync): Add comment.
33029         * tests/test-unistd-c++.cc: Test fdatasync.
33031         unistd: update refs to newer POSIX
33032         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
33033         Suggested by Bruno Haible.
33035         fdatasync: new module
33036         * modules/fsync (Description): Document difference to fdatasync.
33037         * modules/fdatasync: New module.
33038         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
33039         * lib/fdatasync.c (fdatasync): Likewise.
33040         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
33041         defaults.
33042         * modules/unistd (Makefile.am): Set witnesses.
33043         * lib/unistd.in.h (fdatasync): Declare.
33044         * MODULES.html.sh: Document it.
33045         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
33046         * modules/fdatasync-tests: New test.
33047         * tests/test-fdatasync.c: Likewise.
33049 2011-09-16  Eric Blake  <eblake@redhat.com>
33051         test-fsync: enhance tests
33052         * modules/fsync-tests (Depends-on): Add errno, for mingw.
33053         * tests/test-fsync.c (main): Enhance test.
33055 2011-09-15  Bruno Haible  <bruno@clisp.org>
33057         Support for MSVC compiler: Ensure ssize_t gets defined.
33058         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
33059         * doc/posix-headers/stdio.texi: Likewise.
33060         * modules/stdio (Depends-on): Add ssize_t.
33061         * modules/sys_socket (Depends-on): Likewise.
33062         * modules/sys_types (Depends-on): Likewise.
33063         * modules/sys_uio (Depends-on): Likewise.
33064         * modules/unistd (Depends-on): Likewise.
33065         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
33066         * tests/test-sys_types.c: Check that ssize_t is defined.
33068 2011-09-14  Bruno Haible  <bruno@clisp.org>
33070         Avoid using #, the m4 comment starter character, near brackets.
33071         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
33072         delimiter character in sed expressions.
33073         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
33074         Suggested by Eric Blake.
33076         Properly quote AC_CHECK_DECLS' 4th argument.
33077         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
33078         argument.
33079         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33080         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33081         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33082         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33083         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33084         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
33085         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
33086         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
33087         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
33088         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33089         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
33090         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
33091         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33092         * m4/isinf.m4 (gl_ISINF): Likewise.
33093         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
33094         * m4/readutmp.m4 (gl_READUTMP): Likewise.
33095         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33096         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33097         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33098         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
33099         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
33100         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
33101         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
33102         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
33103         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33104         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
33106         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33108         Reported by Eric Blake.
33110         Properly quote AC_CHECK_DECL's 4th argument.
33111         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
33112         argument.
33113         * m4/argp.m4 (gl_ARGP): Likewise.
33114         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
33115         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33116         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
33117         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
33118         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
33119         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
33120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
33121         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
33122         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33123         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
33124         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
33125         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
33126         Reported by Eric Blake.
33128 2011-09-14  Eric Blake  <eblake@redhat.com>
33130         opendir: avoid compile warning
33131         * lib/opendir.c (includes): Always include errno.h.
33132         Reported by Tatsuro MATSUOKA.
33134 2011-09-14  Jim Meyering  <meyering@redhat.com>
33136         maint.mk: sc_tight_scope: propagate failure from sub-make
33137         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
33138         Reported by Martin von Gagern.
33140 2011-09-13  Bruno Haible  <bruno@clisp.org>
33142         tempname: Support for MSVC.
33143         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
33144         MSVC.
33145         * modules/tempname (Depends-on): Add fcntl-h.
33147 2011-09-13  Bruno Haible  <bruno@clisp.org>
33149         sys_time: Support for MSVC.
33150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
33151         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
33152         include <winsock2.h>.
33153         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
33154         function declarations that collide with POSIX.
33155         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
33156         (Makefile.am): Substitute HAVE_WINSOCK2_H.
33158 2011-09-13  Bruno Haible  <bruno@clisp.org>
33160         stat: Support for MSVC.
33161         * lib/stat.c: Include pathmax.h.
33162         * modules/stat (Depends-on): Add pathmax.
33164         pathmax: Support for native Windows.
33165         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
33167 2011-09-12  Bruno Haible  <bruno@clisp.org>
33169         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
33170         * lib/dirent.in.h (struct dirent): New type.
33171         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
33172         DT_WHT): New macros.
33173         (DIR): New type.
33174         (opendir, closedir): Declare only if the module 'opendir' is enabled.
33175         (readdir, rewinddir): New declarations.
33176         * lib/dirent-private.h: New file.
33177         * lib/opendir.c: New file.
33178         * lib/readdir.c: New file.
33179         * lib/rewinddir.c: New file.
33180         * lib/closedir.c: New file.
33181         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
33182         * m4/opendir.m4: New file.
33183         * m4/readdir.m4: New file.
33184         * m4/rewinddir.m4: New file.
33185         * m4/closedir.m4: New file.
33186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
33187         REPLACE_CLOSEDIR here.
33188         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
33189         readdir, rewinddir are declared.
33190         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
33191         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
33192         HAVE_REWINDDIR, HAVE_CLOSEDIR.
33193         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
33194         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
33195         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
33196         * modules/opendir: New file.
33197         * modules/readdir: New file.
33198         * modules/rewinddir: New file.
33199         * modules/closedir: New file.
33200         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
33201         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
33202         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
33203         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
33204         * NEWS: Mention the 'fchdir' change.
33206 2011-09-11  Bruno Haible  <bruno@clisp.org>
33208         asm-underscore.m4: Support for MSVC.
33209         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
33210         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
33212 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
33214         Doc about crypt functions.
33215         * doc/posix-functions/crypt.texi: Expand range of glibc versions
33216         needing for _GNU_SOURCE to get crypt.
33217         * doc/posix-functions/encrypt.texi: Likewise.
33218         * doc/posix-functions/setkey.texi: Likewise.
33220 2011-09-11  Bruno Haible  <bruno@clisp.org>
33222         doc: Update regarding MSVC 9.
33223         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
33224         tested".
33225         * doc/posix-functions/*.texi: Update with info about MSVC 9.
33226         * doc/posix-headers/*.texi: Likewise.
33227         * doc/pastposix-functions/*.texi: Likewise.
33228         * doc/glibc-functions/*.texi: Likewise.
33229         * doc/glibc-headers/*.texi: Likewise.
33231 2011-09-11  Bruno Haible  <bruno@clisp.org>
33233         unistd et al.: Don't assume <unistd.h> exists.
33234         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
33235         does not exist.
33236         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
33237         exist. But include <stdlib.h>.
33238         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
33239         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
33240         symlink() does not exist.
33241         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
33242         include <io.h> instead.
33243         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
33244         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
33245         include <direct.h> instead.
33246         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
33247         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33248         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
33249         <io.h> instead.
33250         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
33251         correctly if the system does not have hard links.
33252         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
33253         <direct.h> instead.
33254         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
33255         it when looking for function declarations.
33256         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
33257         <direct.h> and <io.h> instead.
33258         * doc/posix-headers/unistd.texi: More details about MSVC problem.
33260 2011-09-11  Bruno Haible  <bruno@clisp.org>
33262         strcase: Support for MSVC.
33263         * modules/strcase (Status, Notice): Remove obsoletion mark.
33264         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
33265         * doc/posix-functions/strncasecmp.texi: Likewise.
33267         strings: Don't assume <strings.h> exists.
33268         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
33269         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
33270         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
33271         * doc/posix-headers/strings.texi: Mention the MSVC problem.
33273 2011-09-11  Bruno Haible  <bruno@clisp.org>
33275         dirent: Don't assume <dirent.h> exists.
33276         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
33277         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
33278         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
33279         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
33281 2011-09-11  Bruno Haible  <bruno@clisp.org>
33283         Fix wint_t on MSVC.
33284         * lib/wchar.in.h (wint_t): On MSVC, override it.
33285         * lib/wctype.in.h (wint_t): Likewise.
33286         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
33287         MSVC.
33288         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
33289         * doc/posix-headers/wctype.texi: Likewise.
33291 2011-09-11  Bruno Haible  <bruno@clisp.org>
33293         sys_types: Fix typo.
33294         * lib/sys_types.in.h: Fix typo in comment.
33295         Reported by Paul Eggert.
33297         Support for MSVC compiler: Ensure size_t gets defined.
33298         * modules/strings (Depends-on): Add 'sys_types'.
33299         * modules/sys_uio (Depends-on): Likewise.
33300         * lib/sys_uio.in.h: Update comment.
33302         C++ tests for module 'sys_types'.
33303         * modules/sys_types-c++-tests: New file.
33304         * tests/test-sys_types-c++.cc: New file.
33306         Tests for module 'sys_types'.
33307         * modules/sys_types-tests: New file.
33308         * tests/test-sys_types.c: New file.
33310         New module 'sys_types'.
33311         * lib/sys_types.in.h: New file.
33312         * m4/sys_types_h.m4: New file.
33313         * modules/sys_types: New file.
33314         * doc/posix-headers/sys_types.texi: Mention the new module and the
33315         size_t problem on MSVC 9.
33317 2011-09-11  Bruno Haible  <bruno@clisp.org>
33319         Support for MSVC compiler: Avoid division by a literal 0.
33320         * lib/math.in.h (NAN): Define through a function call also on MSVC.
33321         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
33322         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
33323         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
33324         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
33325         * tests/infinity.h: New file.
33326         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
33327         on MSVC.
33328         * tests/test-ceilf1.c: Include infinity.h.
33329         (main): Use Infinityf.
33330         * tests/test-ceil1.c: Include infinity.h.
33331         (main): Use Infinityd.
33332         * tests/test-ceill.c: Include infinity.h.
33333         (main): Use Infinityl.
33334         * tests/test-dprintf-posix.c: Include infinity.h.
33335         (test_function): Use Infinityd.
33336         * tests/test-floorf1.c: Include infinity.h.
33337         (main): Use Infinityf.
33338         * tests/test-floor1.c: Include infinity.h.
33339         (main): Use Infinityd.
33340         * tests/test-floorl.c: Include infinity.h.
33341         (main): Use Infinityl.
33342         * tests/test-fprintf-posix.c: Include infinity.h.
33343         (test_function): Use Infinityd.
33344         * tests/test-frexp.c: Include infinity.h.
33345         (main): Use Infinityd.
33346         * tests/test-frexpl.c: Include infinity.h.
33347         (main): Use Infinityl.
33348         * tests/test-isfinite.c: Include infinity.h.
33349         (test_isfinitef): Use Infinityf.
33350         (test_isfinited): Use Infinityd.
33351         (test_isfinitel): Use Infinityl.
33352         * tests/test-isinf.c: Include infinity.h.
33353         (test_isinff): Use Infinityf.
33354         (test_isinfd): Use Infinityd.
33355         (test_isinfl): Use Infinityl.
33356         * tests/test-isnan.c: Include infinity.h.
33357         (test_float): Use Infinityf.
33358         (test_double): Use Infinityd.
33359         (test_long_double): Use Infinityl.
33360         * tests/test-isnanf.h: Include infinity.h.
33361         (main): Use Infinityf.
33362         * tests/test-isnand.h: Include infinity.h.
33363         (main): Use Infinityd.
33364         * tests/test-isnanl.h: Include infinity.h.
33365         (main): Use Infinityl.
33366         * tests/test-ldexpl.c: Include infinity.h.
33367         (main): Use Infinityl.
33368         * tests/test-printf-posix.h: Include infinity.h.
33369         (test_function): Use Infinityd.
33370         * tests/test-roundf1.c: Include infinity.h.
33371         (main): Use Infinityf.
33372         * tests/test-round1.c: Include infinity.h.
33373         (main): Use Infinityd.
33374         * tests/test-roundl.c: Include infinity.h.
33375         (main): Use Infinityl.
33376         * tests/test-signbit.c: Include infinity.h.
33377         (test_signbitf): Use Infinityf.
33378         (test_signbitd): Use Infinityd.
33379         (test_signbitl): Use Infinityl.
33380         * tests/test-snprintf-posix.h: Include infinity.h.
33381         (test_function): Use Infinityd, Infinityl.
33382         * tests/test-sprintf-posix.h: Include infinity.h.
33383         (test_function): Use Infinityd, Infinityl.
33384         * tests/test-truncf1.c: Include infinity.h.
33385         (main): Use Infinityf.
33386         * tests/test-trunc1.c: Include infinity.h.
33387         (main): Use Infinityd.
33388         * tests/test-truncl.c: Include infinity.h.
33389         (main): Use Infinityl.
33390         * tests/test-vasnprintf-posix.c: Include infinity.h.
33391         (test_function): Use Infinityd, Infinityl.
33392         * tests/test-vasprintf-posix.c: Include infinity.h.
33393         (test_function): Use Infinityd, Infinityl.
33394         * modules/ceilf-tests (Files): Add tests/infinity.h.
33395         * modules/ceil-tests (Files): Likewise.
33396         * modules/ceill-tests (Files): Likewise.
33397         * modules/dprintf-posix-tests (Files): Likewise.
33398         * modules/floorf-tests (Files): Likewise.
33399         * modules/floor-tests (Files): Likewise.
33400         * modules/floorl-tests (Files): Likewise.
33401         * modules/fprintf-posix-tests (Files): Likewise.
33402         * modules/frexp-tests (Files): Likewise.
33403         * modules/frexp-nolibm-tests (Files): Likewise.
33404         * modules/frexpl-tests (Files): Likewise.
33405         * modules/frexpl-nolibm-tests (Files): Likewise.
33406         * modules/isfinite-tests (Files): Likewise.
33407         * modules/isinf-tests (Files): Likewise.
33408         * modules/isnan-tests (Files): Likewise.
33409         * modules/isnanf-tests (Files): Likewise.
33410         * modules/isnanf-nolibm-tests (Files): Likewise.
33411         * modules/isnand-tests (Files): Likewise.
33412         * modules/isnand-nolibm-tests (Files): Likewise.
33413         * modules/isnanl-tests (Files): Likewise.
33414         * modules/isnanl-nolibm-tests (Files): Likewise.
33415         * modules/ldexpl-tests (Files): Likewise.
33416         * modules/printf-posix-tests (Files): Likewise.
33417         * modules/roundf-tests (Files): Likewise.
33418         * modules/round-tests (Files): Likewise.
33419         * modules/roundl-tests (Files): Likewise.
33420         * modules/signbit-tests (Files): Likewise.
33421         * modules/snprintf-posix-tests (Files): Likewise.
33422         * modules/sprintf-posix-tests (Files): Likewise.
33423         * modules/truncf-tests (Files): Likewise.
33424         * modules/trunc-tests (Files): Likewise.
33425         * modules/truncl-tests (Files): Likewise.
33426         * modules/vasnprintf-posix-tests (Files): Likewise.
33427         * modules/vasprintf-posix-tests (Files): Likewise.
33428         * modules/vdprintf-posix-tests (Files): Likewise.
33429         * modules/vfprintf-posix-tests (Files): Likewise.
33430         * modules/vprintf-posix-tests (Files): Likewise.
33431         * modules/vsnprintf-posix-tests (Files): Likewise.
33432         * modules/vsprintf-posix-tests (Files): Likewise.
33433         * modules/xprintf-posix-tests (Files): Likewise.
33435 2011-09-11  Bruno Haible  <bruno@clisp.org>
33437         Ensure pid_t gets defined.
33438         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33439         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33440         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33441         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33442         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33443         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33444         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33445         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33446         * tests/test-fcntl-h.c: Check that pid_t is defined.
33447         * tests/test-sched.c: Likewise.
33448         * tests/test-termios.c: Likewise.
33449         * tests/test-time.c: Likewise.
33450         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33451         * doc/posix-headers/signal.texi: Likewise.
33452         * doc/posix-headers/sys_types.texi: Likewise.
33453         * doc/posix-headers/time.texi: Likewise.
33455 2011-09-11  Bruno Haible  <bruno@clisp.org>
33457         acl: Fix compilation on Solaris 10 (older version).
33458         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33459         of ACE_EVERYONE.
33460         * lib/set-mode-acl.c (qset_acl): Likewise.
33461         Reported by Christian Jullien <eligis@orange.fr>.
33463 2011-09-10  Bruno Haible  <bruno@clisp.org>
33465         iconv, unsetenv: Add support for MSVC compiler.
33466         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33467         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33469 2011-09-10  Bruno Haible  <bruno@clisp.org>
33471         *printf: Add support for MSVC compiler.
33472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33473         handles the exception caused by the %n directive. When cross-compiling,
33474         guess no on native Windows.
33475         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33476         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33477         emulate it through vsnprintf.
33478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33479         * doc/posix-functions/dprintf.texi: Update documentation regarding
33480         MSVC 9.
33481         * doc/posix-functions/fprintf.texi: Likewise.
33482         * doc/posix-functions/printf.texi: Likewise.
33483         * doc/posix-functions/snprintf.texi: Likewise.
33484         * doc/posix-functions/sprintf.texi: Likewise.
33485         * doc/posix-functions/swprintf.texi: Likewise.
33486         * doc/posix-functions/vdprintf.texi: Likewise.
33487         * doc/posix-functions/vfprintf.texi: Likewise.
33488         * doc/posix-functions/vprintf.texi: Likewise.
33489         * doc/posix-functions/vsnprintf.texi: Likewise.
33490         * doc/posix-functions/vsprintf.texi: Likewise.
33491         * doc/glibc-functions/asprintf.texi: Likewise.
33492         * doc/glibc-functions/obstack_printf.texi: Likewise.
33493         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33494         * doc/glibc-functions/vasprintf.texi: Likewise.
33496 2011-09-10  Bruno Haible  <bruno@clisp.org>
33498         nocrash: Add support for native Windows.
33499         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33501 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33502             Bruno Haible  <bruno@clisp.org>
33504         absolute-header, include-next: Add support for MSVC compiler.
33505         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33506         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33507         directory separator in #line directives.
33508         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33509         recognize also backslash as directory separator in #line directives.
33511 2011-09-08  Jim Meyering  <meyering@redhat.com>
33513         maint.mk: mark the post-release commit log with "maint: " prefix
33514         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33515         one-line commit-log summary.
33517 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33518             Bruno Haible  <bruno@clisp.org>
33520         Doc about crypt functions.
33521         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33522         systems.
33523         * doc/posix-functions/encrypt.texi: Likewise.
33524         * doc/posix-functions/setkey.texi: Likewise.
33526 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33528         * lib/gc.h: Fix copyright header.
33530 2011-09-07  Bruno Haible  <bruno@clisp.org>
33532         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33533         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33534         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33536 2011-09-07  Bruno Haible  <bruno@clisp.org>
33538         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33539         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33540         * lib/freopen.c: Likewise.
33541         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33542         * lib/lstat.c: Likewise.
33543         * lib/stat.c: Likewise.
33544         * lib/open.c: Use different syntax for include of <fcntl.h>.
33545         * lib/openat.c: Include fcntl.h again, explicitly.
33547 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33549         parse-datetime: document the newly accepted format
33550         * doc/parse-datetime.texi (Combined date and time of day items):
33551         New section.
33553 2011-09-06  Bruno Haible  <bruno@clisp.org>
33555         acl: Fix a test failure on newer Solaris 10 with ZFS.
33556         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33557         ENOSYS as no ACL.
33558         Reported by Jim Meyering.
33560 2011-09-06  Bruno Haible  <bruno@clisp.org>
33562         acl: Update for AIX >= 5.3 with NFS.
33563         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33564         ENOSYS as no ACL.
33566         acl: Fix a test failure on AIX >= 5.3 with NFS.
33567         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33568         as no ACL.
33570 2011-09-06  Bruno Haible  <bruno@clisp.org>
33572         acl: Fix a test failure on IRIX 6.5 with NFS.
33573         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33574         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33575         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33576         * lib/copy-acl.c (qcopy_acl): Likewise.
33578 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33580         openat: port to AIX 7.1 with large files
33581         AIX 7.1 does a "#define openat open64at" if large files are in use,
33582         so we can't simply #undef openat.  Use the orig_openat trick (similar
33583         to orig_open in lib/open.c) to work around the problem.  Problem
33584         reported by Kevin Brott for GNU tar, in the thread containing
33585         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33586         * lib/openat.c (__need_system_fcntl_h): Define first.
33587         Include <fcntl.h> and <sys/types.h> before undefining.
33588         (orig_openat) [HAVE_OPENAT]: New inline function.
33589         (openat) [HAVE_OPENAT]: Do not undef.
33590         (rpl_openat): Use orig_openat, not openat.
33592 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33593             Bruno Haible  <bruno@clisp.org>
33595         acl: Avoid errors on NonStop Kernel.
33596         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33597         ENOTSUP errors.
33599 2011-09-05  Bruno Haible  <bruno@clisp.org>
33601         acl: Clean up Solaris code.
33602         * lib/acl-internal.h: Remove no-op #if.
33603         * lib/file-has-acl.c: Likewise.
33604         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33605         * lib/copy-acl.c (qcopy_acl): Likewise.
33607 2011-09-05  Bruno Haible  <bruno@clisp.org>
33609         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33610         binaries built on the original Solaris 10.
33611         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33612         trivial.
33614 2011-09-05  Bruno Haible  <bruno@clisp.org>
33616         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33617         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33618         10.
33619         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33620         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33621         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33622         instead of acl_get, facl_get, acl_set, facl_set.
33624 2011-09-05  Bruno Haible  <bruno@clisp.org>
33626         copy-file: Try unit tests on more file systems.
33627         * tests/test-copy-file-1.sh: New file.
33628         * tests/test-copy-file-2.sh: New file.
33629         * modules/copy-file-tests (Files): Add them.
33630         (Makefile.am): Add them to TESTS.
33632         acl: Try unit tests on more file systems.
33633         * tests/test-file-has-acl-1.sh: New file.
33634         * tests/test-file-has-acl-2.sh: New file.
33635         * tests/test-set-mode-acl-1.sh: New file.
33636         * tests/test-set-mode-acl-2.sh: New file.
33637         * tests/test-copy-acl-1.sh: New file.
33638         * tests/test-copy-acl-2.sh: New file.
33639         * modules/acl-tests (Files): Add them.
33640         (Makefile.am): Add them to TESTS.
33642 2011-09-04  Bruno Haible  <bruno@clisp.org>
33644         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33645         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33646         10.
33647         (OLD_ALLOW, OLD_DENY): New macros.
33648         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33649         ACE_ACCESS_ALLOWED_ACE_TYPE.
33650         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33651         ACE_ACCESS_DENIED_ACE_TYPE.
33652         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33653         (NEW_ACE_EXECUTE): Fix value.
33654         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33655         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33656         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33657         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33658         NEW_ACE_SYNCHRONIZE): New macros.
33659         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33660         instead of acl_fromtext, acl_set, facl_set.
33661         Fixes a coreutils/tests/cp/perm failure.
33663 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33665         openat: test for fstatat (..., 0) bug
33666         Further testing with tar suggests that fstatat (..., 0)
33667         does not work in general, on AIX 7.1; see
33668         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33669         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33670         replacement fstatat (which is what older AIX releases were using
33671         anyway).
33672         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33673         use is now changed to orig_fstatat.  This was probably the right
33674         thing to do anyway.
33675         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33676         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33677         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33678         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33679         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33680         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33681         if the bug is found.
33683         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33684         This tests for another fstatat bug on AIX 7.1:
33685         fstatat (AT_FDCWD, ..., 0) does not work.  See
33686         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33687         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33688         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33689         (rpl_fstatat): Adjust so that it works around either (or both)
33690         bugs if present.
33691         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33693 2011-09-03  Karl Berry  <karl@gnu.org>
33695         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33696         in index entries.
33698 2011-09-02  Bruno Haible  <bruno@clisp.org>
33700         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33701         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33702         values of AR, ARFLAGS, RANLIB.
33703         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33705 2011-09-02  Bruno Haible  <bruno@clisp.org>
33707         Find 'ar' program that fits with --host argument.
33708         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33710 2011-09-02  Bruno Haible  <bruno@clisp.org>
33712         tests: init.sh: Support any non-GNU diff.
33713         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33714         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33715         Solaris 8.
33717 2011-09-02  Bruno Haible  <bruno@clisp.org>
33719         tests: init.sh: work also with any non-GNU diff that supports -u
33720         * tests/init.sh: Relax check for diff -u support.
33721         Rather than checking for GNU diff via --version, simply check
33722         for support for -u itself.  Useful at least on OpenBSD 4.9,
33723         AIX 7.1, IRIX 6.5, and Solaris 10.
33725 2011-09-01  Bruno Haible  <bruno@clisp.org>
33727         strtoimax, strtoumax: Document problem on HP-UX 11.
33728         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33729         * doc/posix-functions/strtoumax.texi: Likewise.
33731 2011-09-01  Bruno Haible  <bruno@clisp.org>
33733         strtoumax: Avoid link error on OSF/1 with DTK cc.
33734         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33735         defined as a function.
33736         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33737         strtoumax is defined, not whether it is declared.
33739 2011-09-01  Bruno Haible  <bruno@clisp.org>
33741         strtoimax: Avoid link error on OSF/1 with DTK cc.
33742         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33743         defined as a function.
33744         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33745         strtoimax is defined, not whether it is declared.
33747 2011-09-01  Bruno Haible  <bruno@clisp.org>
33749         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33750         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33751         as a function.
33752         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33753         whether it is declared.
33755 2011-09-01  Bruno Haible  <bruno@clisp.org>
33757         imaxabs: Avoid link error on OSF/1 with DTK cc.
33758         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33759         as a function.
33760         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33761         whether it is declared.
33763 2011-09-01  Bruno Haible  <bruno@clisp.org>
33765         Tests for module 'strtoumax'.
33766         * modules/strtoumax-tests: New file.
33767         * tests/test-strtoumax.c: New file.
33769         Tests for module 'strtoimax'.
33770         * modules/strtoimax-tests: New file.
33771         * tests/test-strtoimax.c: New file.
33773         Tests for module 'imaxdiv'.
33774         * modules/imaxdiv-tests: New file.
33775         * tests/test-imaxdiv.c: New file.
33777         Tests for module 'imaxabs'.
33778         * modules/imaxabs-tests: New file.
33779         * tests/test-imaxabs.c: New file.
33781 2011-09-01  Bruno Haible  <bruno@clisp.org>
33783         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33784         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33785         pthread_create.
33787 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33789         openat: work around AIX 7.1 fstatat issue
33790         This should fix the problem that was not properly fixed
33791         in the previous change, dated 2011-08-30.
33792         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33793         __need_system_stat_h defined.
33794         (orig_fstatat) [HAVE_FSTATAT]: New function.
33795         (rpl_fstatat): Go back to the old way of doing things,
33796         except call orig_fstatat instead of fstatat.
33797         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33798         Remove unnecessary check whether fstatat fills in st_size etc.
33800 2011-09-01  Bruno Haible  <bruno@clisp.org>
33802         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33803         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33804         just include the system's header.
33806 2011-08-31  Jim Meyering  <meyering@redhat.com>
33808         tests: avoid spurious assertion failure in test-float.c on ppc64
33809         * tests/test-float.c (test_long_double): Comment out an assertion,
33810         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33811         with gcc-4.4.4.
33813         maint: indent with spaces, not TABs
33814         I need to get in the habit of running gnulib's "make check".
33815         Both of these would have been caught.
33816         * m4/largefile.m4: Indent with spaces, not TABs.
33817         * lib/parse-datetime.y (iso_8601_time): Likewise.
33818         Spotted by Pádraig Brady.
33820         test-parse-datetime.c: accommodate a relatively strict gcc warning
33821         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33822         to avoid a warning from gcc's -Werror=missing-declarations.
33823         Insert a few spaces-before-funcall-parenthesis.
33825 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33827         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33828         The parser now accepts ISO 8601 date-time strings with "T" as the
33829         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33830         with a space between the date and time strings.  Now it also parses
33831         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33832         variants like "2004-02-29T16:21:42.333-07:00"
33833         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33834         of day representation using the 'T' separator character.
33835         * doc/parse-datetime.texi (General date syntax): replace use of
33836         deprecated --iso-8601 option with --rfc-3339 in example of date
33837         command output formats that can be parsed.
33838         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33839         lib/parse-datetime.y.
33840         (gmt_offset): New function.
33841         (main): Add additional test cases to validate ISO8601 extended
33842         date and time of day parsing.
33844 2011-08-31  Bruno Haible  <bruno@clisp.org>
33846         freopen: Documentation.
33847         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33848         name.
33849         Reported by Claudio Bley <claudio.bley@gmail.com>.
33851 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33853         freopen: Don't crash if the filename argument is NULL.
33854         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33855         NULL.
33857 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33859         openat: work around AIX 7.1 fstatat bug
33860         Problem reported by Kevin Brott for GNU tar, in the thread containing
33861         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33862         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33863         FSTATAT_ST_SIZE_ETC_BROKEN.
33864         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33865         rpl_fstatat.
33866         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33867         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33868         AC_CHECK_FUNCS_ONCE for fstatat.
33869         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33870         fchmodat, mkdirat, openat and unlinkat.
33872 2011-08-30  Bruno Haible  <bruno@clisp.org>
33874         Avoid endless recursions if config.h includes some header files.
33875         * lib/fopen.c (__need_FILE): Define already before including config.h.
33876         * lib/freopen.c (__need_FILE): Likewise.
33877         * lib/open.c (__need_system_fcntl_h): Likewise.
33878         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33879         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33880         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33882 2011-08-25  Karl Berry  <karl@gnu.org>
33884         * config/srclist.txt (ylwrap): new try.
33885         * build-aux/ylwrap: new file.
33887 2011-08-23  Bruno Haible  <bruno@clisp.org>
33889         tmpdir: Use a good default directory on native Windows.
33890         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33891         (P_tmpdir): Default to _P_tmpdir on native Windows.
33892         (path_search): On native Windows, try the value returned by GetTempPath
33893         before trying P_tmpdir.
33894         * modules/tmpdir (Depends-on): Add pathmax.
33895         Suggested by John Darrington <john@darrington.wattle.id.au>.
33897 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33899         doc: fix typo in README-release
33900         * top/README-release: Capitalize first word of a sentence.
33902 2011-08-19  Jim Meyering  <meyering@redhat.com>
33904         fts: do not exhaust memory when processing million-entry directories
33905         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33906         directory would require about 256*N bytes of memory.  Thus, it was
33907         easy to construct a directory too large to be processed by any of
33908         those tools.  With this change, fts' maximum memory utilization is
33909         now limited to around 30MB.
33910         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33911         (fts_read): When we've processed the final entry (i.e., when
33912         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33913         using the parent entry to read any remaining entries.  Dispatch
33914         depending on what fts_build returns:
33915         - NULL+stop, aka failure: stop
33916         - NULL otherwise: move up in the dir hierarchy
33917         - non-NULL: handle this new entry
33918         (fts_build): Declare and use new local, continue_readdir.
33919         Prepare to be called from fts_read, when the entries
33920         from a partially-read directory have just been exhausted.
33921         In that case, we'll skip the opendir and instead use the parent's
33922         fts_dirp and derive dir_fd from that.
33923         Finally, in the readdir loop, if we read max_entries entries,
33924         exit the loop ensuring *not* to call closedir.  This is required
33925         so that fts_dirp can be reused on a subsequent call.
33926         Prompted by Ben England's report of memory exhaustion in find
33927         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33929         maint: fts: move decl of `dp' down into while loop; split a long line
33930         * lib/fts.c (fts_build): No semantic change.
33932         fts: add/use new struct member, fts_dirp
33933         We are about to use this to manage any directory with
33934         too many entries to read all of them into memory at once.
33935         To do that, we'll need to save the DIR* pointer in each
33936         affected FTSENT struct.
33937         * lib/fts_.h: Include <dirent.h>.
33938         (struct FTSENT) [fts_dirp]: New member.
33939         * lib/fts.c (closedir_and_clear): Define.
33940         Use it in place of closedir so that we are sure to
33941         clear the new fts_dirp member when done with it.
33942         (fts_alloc): Initialize the new member.
33943         (fts_lfree): Free, if needed.
33945         maint: fts: give __opendir2 a new parameter and rename
33946         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33947         than surreptitiously using sole caller's "dir_fd".
33948         (fts_opendir): Rename from __opendir2.
33950         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33951         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33953         maint: fts.c: correct off-by-one indentation
33954         * lib/fts.c (fts_build): Correct indentation, change style
33955         of a couple of block comments, and bracing style.
33957         maint: fts.c: move __opendir2 #define "up" out of function body
33958         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33960         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33961         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33962         out for a long time and besides was useful only on BSD systems.
33964 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33966         regex: port to Stratus OpenVOS
33967         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33968         define to empty, rather than attempting nonportable optimizations.
33969         Problem reported by Paul Green in:
33970         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33971         and fix suggested by Eric Blake in:
33972         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33974 2011-08-17  Eric Blake  <eblake@redhat.com>
33976         getcwd: fix test failures on mingw
33977         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33978         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33979         test if long directory cannot be created, and allow mingw errno.
33981         getcwd-lgpl: fix m4 to match relaxed test for BSD
33982         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33983         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33984         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33985         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33986         signature problem.
33988         getcwd: fix compilation on mingw64
33989         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33990         getcwd.
33991         Reported by Marc-André Lureau.
33993         pipe2: silence compiler warning
33994         * lib/pipe2.c (pipe2): Hide label if it is not used.
33996 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33998         relocatable-prog: fix link error
33999         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
34000         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
34001         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
34002         into modules/relocatable-lib without noticing that
34003         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
34004         also needs to build relocatable.c.
34006 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34008         getaddrinfo: fix sh typo in gai_strerrorA decl checking
34009         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
34010         shell code: it contained a 'break' that was not in a loop.
34011         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
34012         via a shell-language loop; this may have been true in old Autoconf
34013         versions, but it's not true in Autoconf 2.68.  I found this bug
34014         when testing coreutils git on Solaris 8, whose shell complains
34015         about the syntax error.
34017 2011-08-12  Simon Josefsson  <simon@josefsson.org>
34019         * lib/base64.c: Fix comment to reference RFC 4648.
34020         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
34021         <gvtulder@gmail.com>.
34023 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34025         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
34027         po/Makefile.in.in: fix make -q problem
34028         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
34029         rule, since there's no file named 'check-macro-version' and its
34030         use as a file breaks make -q.
34031         (all): Don't depend on check-macro-version.
34032         (CHECK_MACRO_VERSION): New macro.
34033         (stamp-po): Use it.
34035         configmake: fix make -q problem
34036         * modules/configmake (configmake.h): Update configmake.h's time stamp
34037         even if the file does not change.  Otherwise, 'make -q' fails.
34038         Problem reported by Simon Josefsson in
34039         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
34041 2011-08-11  Jim Meyering  <meyering@redhat.com>
34043         git-version-gen: correct the advice in a comment
34044         * build-aux/git-version-gen: Correct comment.
34045         Don't recommend to list .tarball-version in .gitignore.
34047 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34049         base64: fix off-by-one buffer size bug
34050         Problem and (trivial) fix reported by Gijs van Tulder in
34051         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
34052         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
34053         * tests/test-base64.c (main): Catch the bug.
34055 2011-08-10  Eric Blake  <eblake@redhat.com>
34057         closein: correct comments
34058         * lib/closein.c (close_stdin): Improve comments.
34060 2011-08-09  Bruno Haible  <bruno@clisp.org>
34062         More tests for 'fseeko'.
34063         * tests/test-fseeko3.c: New file, from Eric Blake.
34064         * tests/test-fseeko3.sh: New file.
34065         * modules/fseeko-tests (Files): Add them.
34066         (TESTS): Add test-fseeko3.sh.
34067         (check_PROGRAMS): Add test-fseeko3.
34069 2011-08-09  Eric Blake  <eblake@redhat.com>
34071         fseeko: remove unneeded hack
34072         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
34074         fseeko: fix bug on glibc
34075         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
34076         Reported by John W. Eaton.
34078 2011-08-08  Bruno Haible  <bruno@clisp.org>
34080         unictype/base: Fix interoperability with preinstalled libunistring.
34081         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
34082         Reported by Simon Josefsson.
34084 2011-08-08  Bruno Haible  <bruno@clisp.org>
34086         iswblank: Detect declaration correctly.
34087         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
34088         AC_CHECK_DECLS invocation.
34090 2011-08-08  Bruno Haible  <bruno@clisp.org>
34092         tcgetsid: Detect declaration correctly.
34093         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
34094         AC_CHECK_DECLS invocation.
34095         Reported by Simon Josefsson.
34097 2011-08-08  Eric Blake  <eblake@redhat.com>
34099         largefile: fix typo that regressed large file support
34100         * modules/largefile (configure.ac-early): Fix section name.
34102 2011-08-06  Karl Berry  <karl@gnu.org>
34104         * MODULES.html.sh (func_all_files): _Noreturn is no longer
34105         a separate module.
34107 2011-08-05  Simon Josefsson  <simon@josefsson.org>
34109         openat: Fix warnings and commens when building unlinkat.c on Hurd.
34110         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
34111         get prototype for free.
34113 2011-08-04  Bruno Haible  <bruno@clisp.org>
34115         Tests for module 'pathmax'.
34116         * modules/pathmax-tests: New file.
34117         * tests/test-pathmax.c: New file.
34119         canonicalize-lgpl: Support larger filenames on the Hurd.
34120         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
34121         Reported by Paul Eggert.
34123         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
34124         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
34125         * lib/chdir-long.h: Include pathmax.h.
34126         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
34127         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
34128         (PATH_MAX): Remove code that is done by pathmax.h.
34129         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
34130         * lib/tmpfile.c: Add a comment.
34131         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
34132         * modules/chdir-long (Depends-on): Add pathmax.
34133         * modules/getcwd (Depends-on): Add pathmax.
34134         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
34135         is not defined.
34136         * doc/posix-headers/limits.texi: Mention the pathmax module.
34137         * NEWS: Mention the change.
34139 2011-08-02  Bruno Haible  <bruno@clisp.org>
34141         pthread_sigmask: Actually use results of gl_THREADLIB.
34142         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
34143         gl_THREADLIB, not gl_[]THREADLIB.
34144         Reported by Eric Blake.
34146 2011-08-02  Jim Meyering  <meyering@redhat.com>
34148         maint.mk: relax the default _gl_TS_function_match regexp
34149         * top/maint.mk (_gl_TS_function_match): Don't require at least one
34150         space between function name and "(" in an "extern" declaration.
34151         That would fail to match a decl with no space there: extern void foo();
34153 2011-07-31  Iain Nicol  <iain@thenicols.net>
34155         git-version-gen: document that EXTRA_DIST must include .version
34156         * build-aux/git-version-gen: In the how-to-use comment, document
34157         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
34158         will fail when run from an unpacked distribution tarball.
34160 2011-08-01  Bruno Haible  <bruno@clisp.org>
34162         wctype-h: Fix last change.
34163         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
34164         REPLACE_TOWLOWER to 0.
34165         Reported by Sam Steingold <sds@gnu.org>.
34167 2011-07-31  Bruno Haible  <bruno@clisp.org>
34169         frexpl: Update autoconf test.
34170         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
34171         according to changes of 2011-06-20.
34173 2011-07-31  Bruno Haible  <bruno@clisp.org>
34175         sys_utsname: Add support for Minix.
34176         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
34177         <sys/utsname.h>.
34178         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34179         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
34181 2011-07-31  Bruno Haible  <bruno@clisp.org>
34183         strings: Add support for Minix.
34184         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
34185         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34186         * doc/posix-headers/strings.texi: Document the Minix problem.
34188 2011-07-31  Bruno Haible  <bruno@clisp.org>
34190         wctype-h: Add support for Minix.
34191         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
34192         REPLACE_TOWLOWER.
34193         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
34194         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
34195         REPLACE_ISWCNTRL.
34197 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
34199         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
34200         This is a performance improvement for 64-bit hosts: it causes the
34201         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
34203 2011-07-31  Bruno Haible  <bruno@clisp.org>
34205         stdioext: Add support for Minix.
34206         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
34207         * lib/fpurge.c (fpurge): Likewise.
34208         * lib/freadahead.c (freadahead): Likewise.
34209         * lib/freadable.c (freadable): Likewise.
34210         * lib/freading.c (freading): Likewise.
34211         * lib/freadptr.c (freadptr): Likewise.
34212         * lib/freadseek.c (freadptrinc): Likewise.
34213         * lib/fseeko.c (rpl_fseeko): Likewise.
34214         * lib/fseterr.c (fseterr): Likewise.
34215         * lib/fwritable.c (fwritable): Likewise.
34216         * lib/fwriting.c (fwriting): Likewise.
34217         * lib/fflush.c (clear_ungetc_buffer): Update comment.
34218         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
34220 2011-07-31  Bruno Haible  <bruno@clisp.org>
34222         errno: Port to Minix.
34223         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
34224         ECONNABORTED are defined.
34225         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
34226         GNULIB_defined_ECONNABORTED): New macros.
34227         * lib/strerror-override.h (strerror_override): Test also
34228         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
34229         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
34230         ECONNABORTED.
34231         * doc/posix-headers/errno.texi: Mention the Minix problem.
34233 2011-07-31  Bruno Haible  <bruno@clisp.org>
34235         Work around declaration collisions on Minix.
34236         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
34237         defined, set REPLACE_MBSINIT.
34238         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
34239         defined, set REPLACE_MBRTOWC.
34240         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
34241         set REPLACE_MBRLEN.
34242         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
34243         defined, set REPLACE_MBSRTOWCS.
34244         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
34245         defined, set REPLACE_WCRTOMB.
34246         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
34247         defined, set REPLACE_WCSRTOMBS.
34249 2011-07-31  Bruno Haible  <bruno@clisp.org>
34251         Add support for Minix with ACK compiler.
34252         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34253         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
34254         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
34256 2011-07-31  Bruno Haible  <bruno@clisp.org>
34258         Documentation about Minix.
34259         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
34260         * doc/glibc-headers/*.texi: Likewise.
34261         * doc/posix-functions/*.texi: Likewise.
34262         * doc/glibc-functions/*.texi: Likewise.
34264 2011-07-31  Bruno Haible  <bruno@clisp.org>
34266         snippet/warn-on-use: Fix indentation.
34267         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
34269 2011-07-25  Jim Meyering  <meyering@redhat.com>
34271         tests: test-update-copyright.sh: remove unnecessary "rm" commands
34272         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
34273         commands.
34275 2011-07-27  Jim Meyering  <meyering@redhat.com>
34277         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
34278         * top/maint.mk (gl_extract_significant_defines_): Now that
34279         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
34280         gnulib/lib/signal.in.h, and now that we recommend to
34281         define-if-undefined those two symbols in application code,
34282         we must filter them out of the "significant" list.
34283         This avoids a "make syntax-check" failure in coreutils.
34285 2011-07-26  Eric Blake  <eblake@redhat.com>
34287         warnings: add comments about previous patch
34288         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
34289         * m4/include_next.m4: Likewise.
34290         * m4/warn-on-use.m4: Likewise.
34291         * m4/warnings.m4: Likewise, and simplify use.
34292         Suggested by Stefano Lattarini.
34294         include-next, warnings: support older autoconf
34295         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
34296         AS_VAR_PUSHDEF in a way that works with older autoconf.
34297         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
34298         Reported by Daniel P. Berrange.
34300 2011-07-25  Bruno Haible  <bruno@clisp.org>
34302         fseek, ftell: Fix doc.
34303         * doc/posix-functions/fseek.texi: Reword statement about
34304         AC_SYS_LARGEFILE.
34305         * doc/posix-functions/ftell.texi: Likewise.
34307 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34308             Bruno Haible  <bruno@clisp.org>
34310         Add dependencies to the 'largefile' module.
34311         * modules/fopen (Depends-on): Add 'largefile'.
34312         * modules/freopen (Depends-on): Likewise.
34313         * modules/fseeko (Depends-on): Likewise.
34314         * modules/ftello (Depends-on): Likewise.
34315         * modules/glob (Depends-on): Likewise.
34316         * modules/lseek (Depends-on): Likewise.
34317         * modules/lstat (Depends-on): Likewise.
34318         * modules/mkostemp (Depends-on): Likewise.
34319         * modules/mkostemps (Depends-on): Likewise.
34320         * modules/mkstemp (Depends-on): Likewise.
34321         * modules/mkstemps (Depends-on): Likewise.
34322         * modules/open (Depends-on): Likewise.
34323         * modules/openat (Depends-on): Likewise.
34324         * modules/pread (Depends-on): Likewise.
34325         * modules/pwrite (Depends-on): Likewise.
34326         * modules/scandir (Depends-on): Likewise.
34327         * modules/stat (Depends-on): Likewise.
34328         * modules/tmpfile (Depends-on): Likewise.
34329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34330         since the containing module now depends on the largefile module.
34331         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34332         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34333         off_t is fixed by gnulib.
34334         * doc/posix-functions/freopen.texi: Likewise.
34335         * doc/posix-functions/fseeko.texi: Likewise.
34336         * doc/posix-functions/fstatat.texi: Likewise.
34337         * doc/posix-functions/ftello.texi: Likewise.
34338         * doc/posix-functions/glob.texi: Likewise.
34339         * doc/posix-functions/lseek.texi: Likewise.
34340         * doc/posix-functions/lstat.texi: Likewise.
34341         * doc/posix-functions/mkstemp.texi: Likewise.
34342         * doc/posix-functions/open.texi: Likewise.
34343         * doc/posix-functions/openat.texi: Likewise.
34344         * doc/posix-functions/pread.texi: Likewise.
34345         * doc/posix-functions/pwrite.texi: Likewise.
34346         * doc/posix-functions/scandir.texi: Likewise.
34347         * doc/posix-functions/stat.texi: Likewise.
34348         * doc/posix-functions/tmpfile.texi: Likewise.
34349         * doc/glibc-functions/mkostemp.texi: Likewise.
34350         * doc/glibc-functions/mkostemps.texi: Likewise.
34351         * doc/glibc-functions/mkstemps.texi: Likewise.
34353 2011-07-25  Bruno Haible  <bruno@clisp.org>
34355         fcntl: Move AC_LIBOBJ invocation to module description.
34356         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34357         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34359         fcntl: Remove call-in from fchdir.m4.
34360         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34363         dup3: Remove potential call-in from fchdir.m4.
34364         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34367         dup2: Move AC_LIBOBJ invocation to module description.
34368         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34369         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34370         Don't invoke AC_LIBOBJ.
34371         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34373         dup2: Remove call-in from fchdir.m4.
34374         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34377         fclose: Move AC_LIBOBJ invocation to module description.
34378         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34379         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34380         to 1.
34381         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34383         fclose: Remove call-in from close.m4.
34384         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34385         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34387         close: Move AC_LIBOBJ invocation to module description.
34388         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34389         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34390         1.
34391         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34393         close: Remove call-in from fchdir.m4.
34394         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34397         open: Move AC_LIBOBJ invocation to module description.
34398         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34399         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34400         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34402         open: Remove call-in from fchdir.m4.
34403         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34406         fchdir: Start to remove gl_REPLACE_* idiom.
34407         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34408         (gl_FUNC_FCHDIR): Invoke it.
34410 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34412         * lib/ftell.c (ftell): Comment out cast.
34414         close: use gl_REPLACE_FCLOSE only if defined
34415         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34416         is defined.  The close module doesn't depend on the fclose module
34417         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34418         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34419         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34421 2011-07-24  Jim Meyering  <meyering@redhat.com>
34423         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34424         * tests/test-select.h (test_function): Declare as "static".
34426 2011-07-24  Bruno Haible  <bruno@clisp.org>
34428         doc: Mention the effects of AC_SYS_LARGEFILE.
34429         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34430         on this function.
34431         * doc/posix-functions/aio_error.texi: Likewise.
34432         * doc/posix-functions/aio_fsync.texi: Likewise.
34433         * doc/posix-functions/aio_read.texi: Likewise.
34434         * doc/posix-functions/aio_return.texi: Likewise.
34435         * doc/posix-functions/aio_suspend.texi: Likewise.
34436         * doc/posix-functions/aio_write.texi: Likewise.
34437         * doc/posix-functions/fgetpos.texi: Likewise.
34438         * doc/posix-functions/fopen.texi: Likewise.
34439         * doc/posix-functions/freopen.texi: Likewise.
34440         * doc/posix-functions/fsetpos.texi: Likewise.
34441         * doc/posix-functions/fstatvfs.texi: Likewise.
34442         * doc/posix-functions/ftruncate.texi: Likewise.
34443         * doc/posix-functions/ftw.texi: Likewise.
34444         * doc/posix-functions/getrlimit.texi: Likewise.
34445         * doc/posix-functions/glob.texi: Likewise.
34446         * doc/posix-functions/lio_listio.texi: Likewise.
34447         * doc/posix-functions/lockf.texi: Likewise.
34448         * doc/posix-functions/mkstemp.texi: Likewise.
34449         * doc/posix-functions/mmap.texi: Likewise.
34450         * doc/posix-functions/nftw.texi: Likewise.
34451         * doc/posix-functions/openat.texi: Likewise.
34452         * doc/posix-functions/opendir.texi: Likewise.
34453         * doc/posix-functions/posix_fadvise.texi: Likewise.
34454         * doc/posix-functions/posix_fallocate.texi: Likewise.
34455         * doc/posix-functions/pread.texi: Likewise.
34456         * doc/posix-functions/pwrite.texi: Likewise.
34457         * doc/posix-functions/readdir.texi: Likewise.
34458         * doc/posix-functions/readdir_r.texi: Likewise.
34459         * doc/posix-functions/rewinddir.texi: Likewise.
34460         * doc/posix-functions/scandir.texi: Likewise.
34461         * doc/posix-functions/seekdir.texi: Likewise.
34462         * doc/posix-functions/setrlimit.texi: Likewise.
34463         * doc/posix-functions/statvfs.texi: Likewise.
34464         * doc/posix-functions/telldir.texi: Likewise.
34465         * doc/posix-functions/tmpfile.texi: Likewise.
34466         * doc/posix-functions/truncate.texi: Likewise.
34467         * doc/glibc-functions/fallocate.texi: Likewise.
34468         * doc/glibc-functions/fstatfs.texi: Likewise.
34469         * doc/glibc-functions/fts_children.texi: Likewise.
34470         * doc/glibc-functions/fts_read.texi: Likewise.
34471         * doc/glibc-functions/getdirentries.texi: Likewise.
34472         * doc/glibc-functions/mkostemp.texi: Likewise.
34473         * doc/glibc-functions/mkostemps.texi: Likewise.
34474         * doc/glibc-functions/mkstemps.texi: Likewise.
34475         * doc/glibc-functions/preadv.texi: Likewise.
34476         * doc/glibc-functions/pwritev.texi: Likewise.
34477         * doc/glibc-functions/sendfile.texi: Likewise.
34478         * doc/glibc-functions/statfs.texi: Likewise.
34480 2011-07-24  Bruno Haible  <bruno@clisp.org>
34482         doc: Fix typo.
34483         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34485 2011-07-24  Bruno Haible  <bruno@clisp.org>
34487         doc: Mention fsusage.
34488         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34490 2011-07-24  Bruno Haible  <bruno@clisp.org>
34492         doc: Mention new glibc headers and functions.
34493         * doc/glibc-headers/gshadow.texi: New file.
34494         * doc/glibc-functions/endsgent.texi: New file.
34495         * doc/glibc-functions/fgetsgent.texi: New file.
34496         * doc/glibc-functions/fgetsgent_r.texi: New file.
34497         * doc/glibc-functions/getsgent.texi: New file.
34498         * doc/glibc-functions/getsgent_r.texi: New file.
34499         * doc/glibc-functions/getsgnam.texi: New file.
34500         * doc/glibc-functions/getsgnam_r.texi: New file.
34501         * doc/glibc-functions/putsgent.texi: New file.
34502         * doc/glibc-functions/setsgent.texi: New file.
34503         * doc/glibc-functions/sgetsgent.texi: New file.
34504         * doc/glibc-functions/sgetsgent_r.texi: New file.
34505         * doc/glibc-functions/malloc_info.texi: New file.
34506         * doc/glibc-functions/preadv.texi: New file.
34507         * doc/glibc-functions/pwritev.texi: New file.
34508         * doc/glibc-functions/register_printf_modifier.texi: New file.
34509         * doc/glibc-functions/register_printf_specifier.texi: New file.
34510         * doc/glibc-functions/register_printf_type.texi: New file.
34511         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34512         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34513         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34514         * doc/glibc-functions/pthread_getname_np.texi: New file.
34515         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34516         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34517         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34518         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34519         * doc/glibc-functions/pthread_setname_np.texi: New file.
34520         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34521         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34522         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34523         * doc/glibc-functions/qsort_r.texi: New file.
34524         * doc/glibc-functions/quick_exit.texi: New file.
34525         * doc/glibc-functions/syncfs.texi: New file.
34526         * doc/gnulib.texi: Include them.
34527         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34528         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34529         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34530         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34531         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34532         * doc/glibc-functions/execvpe.texi: Likewise.
34534 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34536         ftell: don't include <unistd.h>
34537         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34538         guaranteed to define off_t, and the ftell module depends on the
34539         stdio module.
34541         ftell: do not assume wraparound signed arithmetic
34542         * lib/ftell.c: Include <limits.h>.
34543         (ftell): Don't assume wraparound signed arithmetic.
34545 2011-07-24  Bruno Haible  <bruno@clisp.org>
34547         close: No longer depend on module 'fclose'.
34548         * modules/close (Depends-on): Remove fclose.
34549         * NEWS: Mention the change.
34550         Suggested by Sam Steingold <sds@gnu.org>.
34552 2011-07-24  Bruno Haible  <bruno@clisp.org>
34554         fsusage: Enable large volume support on AIX >= 5.2.
34555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34556         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34557         instead of STAT_STATVFS.
34558         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34560         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34561         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34562         f_blocks field only on MacOS X.
34564         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34565         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34566         * modules/fsusage (Depends-on): Add largefile.
34568 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34570         * README: Modernize discussion of signed integers.
34571         Assuming overflow wraparound is no longer safe.
34572         Mention ones' complement and signed magnitude.
34574 2011-07-22  Bruno Haible  <bruno@clisp.org>
34576         select tests, pselect tests: Refactor.
34577         * tests/test-select.h: New file, extracted from tests/test-select.c.
34578         (select_fn): New type.
34579         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34580         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34581         test_pipe): Add my_select argument.
34582         (test_function): Renamed from main. Add my_select argument.
34583         * tests/test-select.c: Move most code to tests/test-select.h. Include
34584         test-select.h.
34585         * modules/select-tests (Files): Add tests/test-select.h.
34586         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34587         (my_select, main): New functions.
34588         * modules/pselect-tests (Files): Add tests/test-select.h,
34589         tests/macros.h, tests/signature.h.
34590         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34591         (configure.ac): Check for <sys/wait.h>.
34593 2011-07-22  Bruno Haible  <bruno@clisp.org>
34595         sys_select tests: Check the signature of FD_*.
34596         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34597         signature tests from here...
34598         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34599         here.
34600         * modules/sys_select-tests (Files): Add tests/signature.h.
34602 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34604         largefile: new module, replacing large-inode
34605         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34606         * MODULES.html.sh: Add largefile, remove large-inode.
34607         * modules/largefile, m4/largefile.m4: New files.
34608         * modules/large-inode, m4/large-inode.m4: Remove.
34610         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34611         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34612         implementations that use only 32 bits to count blocks.
34613         On typical hosts with 1024-byte blocks, this fails with file
34614         systems as small as 4 TiB.  Problem reported by Herb Wartens
34615         <http://debbugs.gnu.org/9140> and this should also fix a similar
34616         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34618         large-inode: New module
34619         * MODULES.html.sh: Add it.
34620         * modules/large-inode, m4/large-inode.m4: New files.
34622         extensions: Enable extensions on MacOS X 10.5 and later.
34623         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34625 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34627         file-has-acl: use acl_extended_file_nofollow if available
34628         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34629         (acl_extended_file): New macro.
34630         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34631         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34633 2011-07-21  Bruno Haible  <bruno@clisp.org>
34635         Declare system functions in a way that works with C++.
34636         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34637         declare fdopendir as extern "C".
34638         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34639         declare frexpl as extern "C".
34640         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34641         declare gai_strerror as extern "C".
34642         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34643         programs, declare gai_strerror as extern "C".
34644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34645         declare getlogin_r as extern "C".
34646         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34647         as extern "C".
34648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34649         declare ldexpl as extern "C".
34650         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34651         as extern "C".
34652         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34653         program, declare getmntinfo as extern "C".
34654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34655         stpncpy as extern "C".
34656         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34657         program, declare __xpg_strerror_r as extern "C".
34658         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34659         strndup as extern "C".
34660         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34661         declare memset and bzero as extern "C".
34662         Reported by Sam Steingold <sds@gnu.org>.
34664 2011-07-12  Jim Meyering  <meyering@redhat.com>
34666         maint.mk: prohibit inclusion of "verify.h" without use
34667         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34669 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34671         timer-time: A new module to check for timer_settime()
34672         * m4/timer_time.m4: Check for the posix function.
34673         * modules/timer-time: Add the new module.
34674         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34675         Mention it.
34677 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34678             Bruno Haible  <bruno@clisp.org>
34680         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34681         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34682         not defined, assume POSIX threads and look for pthread_sigmask in
34683         $LIBS, without changing $CPPFLAGS.
34685 2011-07-19  Bruno Haible  <bruno@clisp.org>
34687         strstr: Update cross-compilation guess.
34688         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34689         CPUs, guess no, in view of glibc
34690         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34691         Suggested by Eric Blake. Reported by Reuben Thomas.
34693 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34695         getopt-gnu: suppress core dumps from detection code
34696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34697         to suppress core dumps that may well occur on glibc systems.
34698         * modules/getopt-gnu: Depend on nocrash.
34700 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34702         pthread_sigmask: ensure usleep is declared
34703         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34704         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34706 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34708         doc: Document NonStop portability issues.
34709         * doc/posix-functions/sigaction.texi (sigaction):
34710         * doc/posix-headers/signal.texi (signal.h):
34711         Document NonStop.  See Joachim Schmitz in
34712         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34714 2011-07-15  Bruno Haible  <bruno@clisp.org>
34716         ffsl, ffsll: Avoid unportable behaviour.
34717         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34719 2011-07-15  Bruno Haible  <bruno@clisp.org>
34721         ffs: More tests.
34722         * tests/test-ffs.c (NBITS): New macro.
34723         (main): Add more tests.
34724         * tests/test-ffsl.c (NBITS): New macro.
34725         (main): Add more tests.
34726         * tests/test-ffsll.c (NBITS): New macro.
34727         (main): Add more tests.
34729 2011-07-15  Eric Blake  <eblake@redhat.com>
34731         ffsl, ffsll: new modules
34732         * modules/ffsl: New file.
34733         * modules/ffsll: Likewise.
34734         * m4/ffsl.m4: Likewise.
34735         * m4/ffsll.m4: Likewise.
34736         * lib/ffsl.c: Likewise.
34737         * lib/ffsl.h: Likewise.
34738         * lib/ffsll.c: Likewise.
34739         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34740         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34741         * modules/string (Makefile.am): Substitute witnesses.
34742         * lib/strings.in.h (ffsl, ffsll): Declare.
34743         * modules/ffsl-tests: New test file.
34744         * modules/ffsll-tests: Likewise.
34745         * tests/test-ffsl.c: Likewise.
34746         * tests/test-ffsll.c: Likewise.
34747         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34748         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34749         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34751         ffs: fix m4 prerequisite
34752         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34754         ffs: avoid undefined behavior
34755         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34756         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34757         Reported by Bruno Haible.
34759 2011-07-12  Bruno Haible  <bruno@clisp.org>
34761         pthread_sigmask: Rely on module 'threadlib'.
34762         * modules/pthread_sigmask (Depends-on): Add threadlib.
34763         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34764         is defined.
34766 2011-07-12  Bruno Haible  <bruno@clisp.org>
34768         regex: Depend on module 'strcase'.
34769         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34771 2011-07-12  Jim Meyering  <meyering@redhat.com>
34773         warn-on-use: fix typo in file name
34774         * modules/snippet/warn-on-use (Files): Correct file name:
34775         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34777 2011-07-12  Bruno Haible  <bruno@clisp.org>
34779         strings: Document module.
34780         * doc/posix-headers/strings.texi: Mention module 'strings'.
34782 2011-07-12  Bruno Haible  <bruno@clisp.org>
34784         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34785         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34786         (Files, Makefile.am): Update.
34787         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34788         * modules/stdlib (Depends-on): Update.
34790 2011-07-12  Bruno Haible  <bruno@clisp.org>
34792         * NEWS: Mention the changes.
34794         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34795         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34796         (Files, Makefile.am): Update.
34797         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34798         * modules/arpa_inet (Depends-on): Update.
34799         * modules/ctype (Depends-on): Update.
34800         * modules/dirent (Depends-on): Update.
34801         * modules/fcntl-h (Depends-on): Update.
34802         * modules/glob (Depends-on): Update.
34803         * modules/iconv-h (Depends-on): Update.
34804         * modules/inttypes-incomplete (Depends-on): Update.
34805         * modules/langinfo (Depends-on): Update.
34806         * modules/locale (Depends-on): Update.
34807         * modules/math (Depends-on): Update.
34808         * modules/netdb (Depends-on): Update.
34809         * modules/poll-h (Depends-on): Update.
34810         * modules/pty (Depends-on): Update.
34811         * modules/search (Depends-on): Update.
34812         * modules/signal (Depends-on): Update.
34813         * modules/spawn (Depends-on): Update.
34814         * modules/stdio (Depends-on): Update.
34815         * modules/stdlib (Depends-on): Update.
34816         * modules/string (Depends-on): Update.
34817         * modules/strings (Depends-on): Update.
34818         * modules/sys_file (Depends-on): Update.
34819         * modules/sys_ioctl (Depends-on): Update.
34820         * modules/sys_select (Depends-on): Update.
34821         * modules/sys_socket (Depends-on): Update.
34822         * modules/sys_stat (Depends-on): Update.
34823         * modules/sys_time (Depends-on): Update.
34824         * modules/sys_times (Depends-on): Update.
34825         * modules/sys_utsname (Depends-on): Update.
34826         * modules/sys_wait (Depends-on): Update.
34827         * modules/termios (Depends-on): Update.
34828         * modules/time (Depends-on): Update.
34829         * modules/unistd (Depends-on): Update.
34830         * modules/wchar (Depends-on): Update.
34831         * modules/wctype-h (Depends-on): Update.
34832         * MODULES.html.sh (Support for building libraries and executables):
34833         Update.
34835         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34836         * modules/snippet/unused-parameter: Renamed from
34837         modules/unused-parameter.
34838         (Files, Makefile.am): Update.
34839         * build-aux/snippet/unused-parameter.h: Renamed from
34840         build-aux/unused-parameter.h.
34841         * modules/selinux-h (Depends-on): Update.
34842         * modules/unistr/base (Depends-on): Update.
34843         * MODULES.html.sh (Core language properties): Update.
34845         Rename module 'link-warning' to 'snippet/link-warning'.
34846         * modules/snippet/link-warning: Renamed from modules/link-warning.
34847         (Files, Makefile.am): Update.
34848         * build-aux/snippet/link-warning.h: Renamed from
34849         build-aux/link-warning.h.
34850         * MODULES.html.sh (Support for building libraries and executables):
34851         Update.
34853         Rename module 'c++defs' to 'snippet/c++defs'.
34854         * modules/snippet/c++defs: Renamed from modules/c++defs.
34855         (Files, Makefile.am): Update.
34856         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34857         * modules/arpa_inet (Depends-on): Update.
34858         * modules/ctype (Depends-on): Update.
34859         * modules/dirent (Depends-on): Update.
34860         * modules/fcntl-h (Depends-on): Update.
34861         * modules/glob (Depends-on): Update.
34862         * modules/iconv-h (Depends-on): Update.
34863         * modules/langinfo (Depends-on): Update.
34864         * modules/locale (Depends-on): Update.
34865         * modules/math (Depends-on): Update.
34866         * modules/netdb (Depends-on): Update.
34867         * modules/poll-h (Depends-on): Update.
34868         * modules/pty (Depends-on): Update.
34869         * modules/search (Depends-on): Update.
34870         * modules/signal (Depends-on): Update.
34871         * modules/spawn (Depends-on): Update.
34872         * modules/stdio (Depends-on): Update.
34873         * modules/stdlib (Depends-on): Update.
34874         * modules/string (Depends-on): Update.
34875         * modules/strings (Depends-on): Update.
34876         * modules/sys_ioctl (Depends-on): Update.
34877         * modules/sys_select (Depends-on): Update.
34878         * modules/sys_socket (Depends-on): Update.
34879         * modules/sys_stat (Depends-on): Update.
34880         * modules/sys_time (Depends-on): Update.
34881         * modules/sys_wait (Depends-on): Update.
34882         * modules/termios (Depends-on): Update.
34883         * modules/time (Depends-on): Update.
34884         * modules/unistd (Depends-on): Update.
34885         * modules/wchar (Depends-on): Update.
34886         * modules/wctype-h (Depends-on): Update.
34888         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34889         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34890         (Files, Makefile.am): Update.
34891         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34892         * modules/argv-iter (Depends-on): Update.
34893         * modules/arpa_inet (Depends-on): Update.
34894         * modules/dirent (Depends-on): Update.
34895         * modules/fcntl-h (Depends-on): Update.
34896         * modules/fnmatch (Depends-on): Update.
34897         * modules/getopt-posix (Depends-on): Update.
34898         * modules/glob (Depends-on): Update.
34899         * modules/iconv-h (Depends-on): Update.
34900         * modules/inttypes-incomplete (Depends-on): Update.
34901         * modules/locale (Depends-on): Update.
34902         * modules/math (Depends-on): Update.
34903         * modules/netdb (Depends-on): Update.
34904         * modules/search (Depends-on): Update.
34905         * modules/signal (Depends-on): Update.
34906         * modules/spawn (Depends-on): Update.
34907         * modules/stdio (Depends-on): Update.
34908         * modules/stdlib (Depends-on): Update.
34909         * modules/string (Depends-on): Update.
34910         * modules/strings (Depends-on): Update.
34911         * modules/sys_socket (Depends-on): Update.
34912         * modules/sys_stat (Depends-on): Update.
34913         * modules/sys_time (Depends-on): Update.
34914         * modules/sys_times (Depends-on): Update.
34915         * modules/sys_utsname (Depends-on): Update.
34916         * modules/time (Depends-on): Update.
34917         * modules/unistd (Depends-on): Update.
34918         * modules/wchar (Depends-on): Update.
34919         * MODULES.html.sh (Support for building libraries and executables):
34920         Update.
34922 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34924         Improvements on _Noreturn and related modules.
34926         modules/_Exit-tests: test _Noreturn too
34927         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34928         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34929         (main): Use them.
34931         stdnoreturn, stdnoreturn-tests: remove modules
34932         They're not needed here and a bit premature for use elsewhere.  See
34933         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34934         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34935         * tests/test-stdnoreturn.c: Remove files.
34936         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34937         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34938         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34939         and using noreturn.
34940         * modules/openat, modules/sigpipe-die, modules/xalloc:
34941         * modules/xmemdup0, modules/xstrtol:
34942         Remove dependency on stdnoreturn.
34944         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34945         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34946         Reparenthesize to avoid GCC warning.
34947         Support Microsoft's syntax.
34948         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34950         _Noreturn-tests: remove module
34951         * modules/_Noreturn-tests: Remove.
34952         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34953         * tests/test-_Noreturn.c: Remove.
34954         * tests/test-stdnoreturn.c: Merge from the old
34955         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34957 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34959         _Noreturn, stdnoreturn, and related modules.
34961         * top/maint.mk: Adjust to new noreturn support.
34962         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34963         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34965         xalloc: use stdnoreturn.h
34966         * lib/xalloc.h: Include <stdnoreturn.h>.
34967         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34968         * modules/xalloc (Depends-on): Add stdnoreturn.
34970         xstrtol: use stdnoreturn.h
34971         * lib/xstrtol.h: Include <stdnoreturn.h>.
34972         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34973         * modules/xstrtol (Depends-on): Add stdnoreturn.
34975         xmemdup0: use stdnoreturn.h
34976         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34977         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34978         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34980         sigpipe-die: use stdnoreturn.h
34981         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34982         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34983         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34985         openat: use stdnoreturn.h
34986         * lib/openat.h: Include <stdnoreturn.h>.
34987         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34988         * modules/openat (Depends-on): Add stdnoreturn.
34990         * lib/openat-die.c (openat_save_fail): Modernize comment.
34992         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34994         * lib/glthread/thread.h: Modernize comment.
34996         obstack: use _Noreturn
34997         * lib/obstack.c (__attribute__): Remove macro.
34998         (print_and_abort): Use _Noreturn.
35000         c-stack: use _Noreturn
35001         * lib/c-stack.c (die, overflow_handler, segv_handler):
35002         Use _Noreturn rather than __attribute__((noreturn)).
35004         argmatch-tests, exclude_tests: use _Noreturn
35005         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
35006         Remove.
35007         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
35009         stdlib: use _Noreturn
35010         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
35011         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
35012         * modules/stdlib (Depends-on): Add _Noreturn.
35013         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
35015         stdnoreturn-tests: new module
35016         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
35018         stdnoreturn: new module
35019         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
35020         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
35022         _Noreturn-tests: new module
35023         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
35025         _Noreturn: new module
35026         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
35027         New section, mentioning it.
35028         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
35030         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
35032 2011-07-11  Eric Blake  <eblake@redhat.com>
35034         ffs: new module
35035         * modules/ffs: New file.
35036         * m4/ffs.m4: Likewise.
35037         * lib/ffs.c: Likewise.
35038         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
35039         * modules/strings (Makefile.am): Substitute witness.
35040         (Depends-on): Add c++defs.
35041         * lib/strings.in.h (ffs): Declare.
35042         * modules/ffs-tests: New test file.
35043         * tests/test-ffs.c: Test new module.
35044         * MODULES.html.sh (Integer arithmetic functions): Mention it.
35045         * doc/posix-functions/ffs.texi (ffs): Likewise.
35047         regex: avoid compiler warning
35048         * lib/regex.c (includes): Include <strings.h>, for use of
35049         strcasecmp in regcomp.c.
35050         Reported by Joachim Schmitz.
35052 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35054         stdint: respect system's intmax_t if INTMAX_MAX
35055         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
35056         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
35057         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
35058         long but int64_t is long long, and where we will clash with the
35059         system intmax_t if we override it.  See
35060         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
35061         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
35062         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
35063         similarly for UINTMAX_C.
35065 2011-07-08  Bruno Haible  <bruno@clisp.org>
35067         pthread_sigmask tests: Avoid a compiler warning.
35068         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
35069         non-zero.
35071         sigprocmask tests: A better way to avoid a compiler warning.
35072         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
35073         (main): Complain if system() returns non-zero.
35074         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
35076 2011-07-08  Bruno Haible  <bruno@clisp.org>
35078         pthread_sigmask: Work around IRIX bug.
35079         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
35080         bug.
35081         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
35082         there may be unblocked pending signals.
35083         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
35085 2011-07-08  Bruno Haible  <bruno@clisp.org>
35087         pthread_sigmask: Work around Cygwin bug.
35088         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
35089         bug.
35090         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
35091         the system's pthread_sigmask function.
35092         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
35094 2011-07-08  Bruno Haible  <bruno@clisp.org>
35096         pthread_sigmask: Work around bug in single-threaded implementation.
35097         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
35098         FreeBSD, HP-UX, Solaris bug.
35099         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
35100         * lib/pthread_sigmask.c: Include <stddef.h>.
35101         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
35102         the system's pthread_sigmask function.
35103         * modules/pthread_sigmask (configure.ac): Invoke
35104         gl_PREREQ_PTHREAD_SIGMASK.
35105         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
35106         HP-UX, Solaris.
35108 2011-07-08  Eric Blake  <eblake@redhat.com>
35110         test-sigprocmask: avoid compiler warning
35111         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
35112         * tests/test-sigprocmask.c (main): Use it to silence warning.
35113         Reported by Jim Meyering.
35115         test-snprintf: avoid compiler warning
35116         * tests/test-snprintf.c (main): Avoid shadowed declaration.
35117         * tests/test-vsnprintf.c (main): Likewise.
35118         Reported by Jim Meyering.
35120 2011-07-08  Bruno Haible  <bruno@clisp.org>
35122         Tests for module 'pthread_sigmask'.
35123         * modules/pthread_sigmask-tests: New file.
35124         * tests/test-pthread_sigmask1.c: New file, based on
35125         tests/test-sigprocmask.c.
35126         * tests/test-pthread_sigmask2.c: New file.
35128 2011-07-08  Jim Meyering  <meyering@redhat.com>
35130         test-getopt.h: avoid warning about an unused variable
35131         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
35133 2011-07-07  Jim Meyering  <meyering@redhat.com>
35135         maint: reduce list of files exempt from sc_prohibit_leading_TABs
35136         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
35137         now that it no longer contains leading TABs.
35138         Remove unused "url=FIXME" statement.
35140 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35142         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
35143         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35144         When gl_THREADLIB is not in use, assume that the POSIX sematics
35145         are desired.  This is better for Emacs, which uses POSIX semantics
35146         on GNUish and/or POSIXish platforms, and does not use threads at
35147         all otherwise.
35149         pthread_sigmask: fix typo when testing for libraries
35150         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35151         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
35153 2011-07-08  Eric Blake  <eblake@redhat.com>
35155         fts: introduce FTS_NOATIME
35156         * lib/fts_.h (FTS_NOATIME): New bit flag.
35157         (FTS_OPTIONMASK): Adjust.
35158         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
35159         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
35161 2011-07-08  Bruno Haible  <bruno@clisp.org>
35163         Tests for module 'thread'.
35164         * modules/thread-tests: New file.
35165         * tests/test-thread_self.c: New file.
35166         * tests/test-thread_create.cc: New file.
35168 2011-07-08  Bruno Haible  <bruno@clisp.org>
35170         thread: Avoid gcc warnings when using gl_thread_self().
35171         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
35172         'void *'.
35173         (gl_thread_self_pointer): Update.
35175 2011-07-07  Bruno Haible  <bruno@clisp.org>
35177         signal-c++-tests: Check declaration of pthread_sigmask.
35178         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
35179         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
35180         $(LIB_PTHREAD_SIGMASK).
35182 2011-07-07  Bruno Haible  <bruno@clisp.org>
35184         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
35185         * lib/signal.in.h (pthread_sigmask): Override if
35186         REPLACE_PTHREAD_SIGMASK is 1.
35187         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35188         REPLACE_PTHREAD_SIGMASK.
35189         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
35190         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
35191         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
35192         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35193         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
35195 2011-07-07  Bruno Haible  <bruno@clisp.org>
35197         pthread_sigmask: Ensure declaration in <signal.h>.
35198         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
35199         include <pthread.h>.
35200         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
35201         problem.
35203 2011-07-07  Bruno Haible  <bruno@clisp.org>
35205         pthread_sigmask: Document the module.
35206         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
35208 2011-07-07  Bruno Haible  <bruno@clisp.org>
35210         pthread_sigmask: Follow gnulib conventions.
35211         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
35212         gl_PTHREAD_SIGMASK.
35213         * modules/pthread_sigmask (configure.ac): Update.
35215 2011-07-07  Bruno Haible  <bruno@clisp.org>
35217         pthread_sigmask: Make declaration C++ safe.
35218         * lib/signal.in.h: In two special conditions, just do an #include_next.
35219         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35220         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
35221         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35222         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35223         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
35224         not REPLACE_PTHREAD_MASK.
35225         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
35226         not REPLACE_PTHREAD_MASK.
35227         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35229 2011-07-07  Bruno Haible  <bruno@clisp.org>
35231         pthread_sigmask: Fix return value.
35232         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
35233         * lib/pthread_sigmask.c: New file.
35234         * modules/pthread_sigmask (Files): Add it.
35235         (configure.ac): Invoke AC_LIBOBJ.
35237 2011-07-07  Eric Blake  <eblake@redhat.com>
35239         getopt: more portable argv creation
35240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
35241         const, use char arrays rather than strings.
35242         Suggested by Paul Eggert.
35244 2011-07-07  Bruno Haible  <bruno@clisp.org>
35246         Tests for module 'sigprocmask'.
35247         * modules/sigprocmask-tests: New file.
35248         * tests/test-sigprocmask.c: New file.
35250 2011-07-07  Bruno Haible  <bruno@clisp.org>
35252         float tests: Tweak.
35253         * tests/test-float.c (main): Tweak skip message.
35255 2011-07-07  Eric Blake  <eblake@redhat.com>
35257         getopt: avoid compiler warning during configure
35258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
35259         assigning string literals to non-const pointer.
35261         getopt-gnu: avoid crash in glibc getopt
35262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
35263         * tests/test-getopt.h (test_getopt): Enhance test.
35264         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35265         * doc/posix-functions/getopt.texi (getopt): Document it.
35266         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35267         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35268         Likewise.
35270 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35272         getopt: handle W; without long options in getopt [BZ #12922]
35273         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
35274         but no long options are defined, just return 'W'.
35276 2011-07-07  Bruno Haible  <bruno@clisp.org>
35278         Avoid literal tabs.
35279         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
35280         variable containing a tab instead of a literal tab.
35281         Reported by Jim Meyering.
35283 2011-07-07  Bruno Haible  <bruno@clisp.org>
35285         Comments.
35286         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
35288 2011-07-06  Bruno Haible  <bruno@clisp.org>
35290         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
35291         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
35292         <winsock2.h>.
35293         (rpl_fd_isset, FD_ISSET): New definitions, copied from
35294         lib/sys_socket.in.h.
35295         (close, gethostname): Hide declarations from <winsock2.h>.
35296         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35297         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
35298         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
35299         (select): Don't override if gnulib's <sys/select.h> was already
35300         included.
35301         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35302         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35303         setsockopt, shutdown, select): Tweak indentation.
35305 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35307         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
35308         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
35309         in an application that does not use the sys_select module.
35311 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
35313         poll: do not return 0 on timeout=-1
35314         * lib/poll.c: Loop with yield if no events occurred.
35316 2011-07-06  Eric Blake  <eblake@redhat.com>
35318         pthread_sigmask: always replace when not using pthread
35319         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
35320         replacement when using some threading other than pthread.  Fix
35321         logic bug.
35323 2011-07-06  Bruno Haible  <bruno@clisp.org>
35325         Comments.
35326         * m4/printf.m4: Update comments about mingw.
35328 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35330         sys_select: define sigset_t more portably
35331         * lib/sys_select.in.h: Always include <sys/types.h>, since
35332         we now need sigset_t and mingw defines it there.
35333         Include <signal.h> before split inclusion guard, to avoid
35334         mishaps on Solaris, whose <signal.h> eventually includes us.
35335         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35336         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35337         which come from ...
35338         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35339         gl_CHECK_TYPE_SIGSET_T.
35340         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35341         does the real work.
35342         * modules/sys_select (Depends-on): Add 'signal'.
35344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35345         Suggested by Bruno Haible.
35347         pselect: Use pthread_sigmask, not sigprocmask.
35348         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35349         multithreaded apps better than sigprocmask does.
35350         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35351         sigprocmask directly.
35353 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35355         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35356         Don't #undef,  since we don't need any underlying pselect.
35357         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35358         (Depends-on): Add select.
35359         (Link): Add $(LIBSOCKET).
35360         These changes suggested by Bruno Haible.
35362         pselect: document better
35363         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35364         * doc/posix-functions/pselect.texi (pselect): Document new module.
35366         pthread_sigmask: new module
35367         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35368         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35369         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35370         This is done only as a macro; I don't know how well that'll
35371         work for C++.  Move <sys/types.h> include before the include_next,
35372         to avoid mishap on Solaris.
35373         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35374         * modules/signal (Makefile.am): Substitute the check's results.
35375         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35377         test-pselect: new module
35378         * modules/pselect-tests, tests/test-pselect.c: New files.
35379         * tests/test-select.c, tests/test-sys_select-c++.cc:
35380         If TEST_PSELECT is defined, test pselect instead of testing select.
35382         * tests/test-sys_select.c (sigset_t): Test for it, too.
35383         Suggested by Bruno Haible.
35385 2011-07-05  Eric Blake  <eblake@redhat.com>
35387         snprintf: guarantee %1$d, for libintl
35388         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35389         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35390         * doc/posix-functions/snprintf.texi (snprintf): Update.
35391         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35392         * tests/test-snprintf.c (main): Enhance test.
35393         * tests/test-vsnprintf.c (main): Likewise.
35395 2011-07-05  Jim Meyering  <meyering@redhat.com>
35397         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35398         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35399         per Bruno's request, to accommodate this idiom (no space after "#")
35400         even when the function is inside an #if block:
35401         char *
35402         gets (char *s)
35403         #undef gets
35404         {
35405           ...
35406         }
35408 2011-07-04  Jim Meyering  <meyering@redhat.com>
35410         maint: indent with spaces, not TABs, and add a rule to check this
35411         * tests/test-userspec.c: Indent with spaces, not TABs.
35412         * tests/test-argp.c: Likewise.
35413         * tests/test-c-stack2.sh: Likewise.
35414         * tests/test-parse-duration.sh: Likewise
35415         * m4/strtod.m4: Likewise.
35416         * m4/alloca.m4: Likewise.
35417         * m4/pselect.m4: Likewise.
35418         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35420 2011-07-03  Jim Meyering  <meyering@redhat.com>
35422         maint.mk: correct omissions in prohibit_argmatch_without_use check
35423         This rule would mistakenly report that argmatch.h is included without
35424         use even when both the argmatch and invalid_arg macro were used.
35425         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35426         of argmatch and invalid_arg.
35428 2011-07-03  Bruno Haible  <bruno@clisp.org>
35430         Comments about EINTR.
35431         * lib/safe-read.h: Explain the purpose of this module.
35432         * lib/safe-write.h: Likewise.
35433         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35434         module.
35435         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35436         module.
35437         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35439 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35441         xnanosleep: Rewrite to use new dtotimespec module.
35442         It has the conversion code that used to be in xnanosleep.
35443         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35444         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35445         (TIME_T_MAX): Remove.
35446         (xnanosleep): Rewrite in terms of dtotimespec.
35447         * modules/xnanosleep (Depends-on): Add dtotimespec.
35448         Remove intprops, stdbool.
35450         timespec-add, timespec-sub: new modules
35451         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35452         * lib/timespec-add.c, lib/timespec-sub.c:
35453         * modules/timespec-add, modules/timespec-sub: New files.
35455         dtotimespec: new module
35456         * lib/timespec.h (dtotimespec): New decl.
35457         * lib/dtotimespec.c, modules/dtotimespec: New files.
35459         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35461         pselect: new module
35462         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35463         (pselect): New decls.
35464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35465         since the standard pselect decl uses 'restrict'.
35466         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35467         HAVE_PSELECT, REPLACE_PSELECT.
35468         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35469         HAVE_PSELECT, REPLACE_PSELECT.
35470         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35472         sys_select: don't depend on sys_socket
35473         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35474         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35475         This fix works on GNU and GNU-like platforms, but has not been tested
35476         on native Windows.
35477         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35479         gl_HEADER_SYS_SOCKET.
35480         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35481         gl_PREREQ_SYS_H_WINSOCK2.
35483 2011-06-29  Eric Blake  <eblake@redhat.com>
35485         pipe2: fix C89 compile problem
35486         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35487         Reported by Bruno Haible.
35489         pipe, pipe2: don't corrupt fd on error
35490         * lib/pipe.c (pipe): Leave fd unchanged on error.
35491         * lib/pipe2.c (pipe2): Likewise.
35492         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35493         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35495 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35497         mmap-anon: do not use regular expressions inadvertently
35498         * m4/mmap-anon.m4: Remove trailing period from strings sought
35499         in the output.
35501 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35503         nanosleep: fix integer overflow problem
35504         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35505         arithmetic wraps around on overflow.
35507         nanosleep: simplify carrying
35508         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35509         first call to the underyling nanosleep, not for the last one.
35510         This doesn't fix any bugs, but it simplifies the computation of
35511         the remaining delay.  Found while auditing integer overflow issues.
35513         dup2: remove test for existence of fcntl
35514         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35515         "#if HAVE_FCNTL", in the configure-time test program.
35516         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35517         and therefore speeds up "configure" a bit.  Found while
35518         adding the dup2 module to Emacs.
35520 2011-06-24  Eric Blake  <eblake@redhat.com>
35522         maint.mk: enhance useless header checks
35523         * top/maint.mk (_sc_header_without_use): Check both include
35524         styles.
35525         (sc_prohibit_assert_without_use)
35526         (sc_prohibit_close_stream_without_use)
35527         (sc_prohibit_getopt_without_use)
35528         (sc_prohibit_quotearg_without_use)
35529         (sc_prohibit_quote_without_use)
35530         (sc_prohibit_long_options_without_use)
35531         (sc_prohibit_inttostr_without_use)
35532         (sc_prohibit_ignore_value_without_use)
35533         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35534         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35535         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35536         (sc_prohibit_hash_pjw_without_use)
35537         (sc_prohibit_safe_read_without_use)
35538         (sc_prohibit_argmatch_without_use)
35539         (sc_prohibit_canonicalize_without_use)
35540         (sc_prohibit_root_dev_ino_without_use)
35541         (sc_prohibit_openat_without_use)
35542         (sc_prohibit_c_ctype_without_use)
35543         (sc_prohibit_signal_without_use)
35544         (sc_prohibit_stdio--_without_use)
35545         (sc_prohibit_stdio-safer_without_use)
35546         (sc_prohibit_strings_without_use)
35547         (sc_prohibit_intprops_without_use)
35548         (sc_prohibit_stddef_without_use)
35549         (sc_prohibit_xfreopen_without_use): Update clients.
35551 2011-06-24  Jim Meyering  <meyering@redhat.com>
35553         syntax-check: keep one maint.mk rule in sync with its header
35554         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35555         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35556         I prefer to avoid temporary files here, so use <(...), but that
35557         is not supported by /bin/sh, so...
35558         (SHELL): Define to /bin/bash.
35560 2011-06-24  Eric Blake  <eblake@redhat.com>
35562         maint.mk: update sc_prohibit_intprops_without_use
35563         * top/maint.mk (_intprops_names): Match recent changes.
35565 2011-06-24  Bruno Haible  <bruno@clisp.org>
35567         strerror-override: No-op tweak.
35568         * lib/strerror-override.h (strerror_override): Reorder conditions,
35569         for consistency with lib/strerror-override.c.
35571 2011-06-23  Eric Blake  <eblake@redhat.com>
35573         maint.mk: test further PATH_MAX issues
35574         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35575         (sc_prohibit_path_max_allocation): ...and also test alloca.
35576         Suggested by Jim Meyering.
35578 2011-06-22  Eric Blake  <eblake@redhat.com>
35580         maint.mk: add syntax-check to avoid char[PATH_MAX]
35581         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35583         stat: be robust to PATH_MAX definition
35584         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35585         * modules/stat (Depends-on): Add verify.
35587         link: work around IRIX bug
35588         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35589         * lib/link.c (rpl_link): Work around it.
35590         * tests/test-link.h (test_link): Enhance test.
35591         * doc/posix-functions/link.texi (link): Document the bug.
35593         getopt: silence clang warning
35594         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35595         dereference.
35596         Reported by Gustavo Martin Domato.
35598 2011-06-22  Jim Meyering  <meyering@redhat.com>
35600         bootstrap: do not insert a blank line into each .gitignore file
35601         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35603 2011-06-21  Eric Blake  <eblake@redhat.com>
35605         perror: test for output mismatch
35606         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35607         perror on IRIX.
35609         strerror_r: fix OpenBSD behavior on out-of-range
35610         * lib/strerror_r.c (strerror_r): Always use maximal string.
35611         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35613         strerror_r: fix OpenBSD behavior on 0
35614         * lib/strerror-override.c (strerror_override): Also override 0
35615         when needed.
35616         * lib/strerror-override.h (strerror_override): Likewise.
35617         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35618         earlier.
35619         * lib/strerror_r.c (strerror_r): Likewise.
35620         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35621         behavior...
35622         (gl_FUNC_STRERROR_0): ...into new macro.
35623         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35624         is overridden.
35625         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35626         * modules/strerror-override (Files): Add strerror.m4.
35627         (configure.ac): Also provide override for 0 when needed.
35628         * doc/posix-functions/strerror.texi (strerror): Document this.
35629         * doc/posix-functions/perror.texi (perror): Likewise.
35631         perror: adjust array size
35632         * modules/perror (Depends-on): Add strerror-override.
35633         * lib/perror.c (perror): Use it to avoid magic number.
35635         strerror-override: reduce size
35636         * lib/strerror-override.c (strerror_override): Use fewer lines.
35638 2011-06-20  Bruno Haible  <bruno@clisp.org>
35640         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35641         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35643 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35645         alloca: port to compilers that can optimize like GCC 4.6.0
35646         * lib/alloca.c (find_stack_direction): New signature, taken from
35647         Autoconf git.  This works with GCC 4.6.0.  This code should never
35648         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35649         be used with other compilers that optimize as well as GCC 4.6.0 does.
35650         (alloca): Adjust to new signature.
35651         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35652         New macro, which patches Autoconf in a similar way.
35654         c-stack: stop worrying about stack direction
35655         * lib/c-stack.c (find_stack_direction): Remove.
35656         (segv_handler): Don't worry about stack direction growth, as it's
35657         too much of a pain to configure this correctly, given how compilers
35658         are optimizing-away our stack-growth detection code.  Instead, assume
35659         that any access to just before or just after the stack is OK.
35660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35661         Don't require AC_FUNC_ALLOCA; no longer needed.
35663 2011-06-20  Eric Blake  <eblake@redhat.com>
35665         test-stat: don't allocate PATH_MAX bytes
35666         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35667         PATH_MAX-sized buffer.
35668         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35669         * modules/stat-tests (Depends-on): Likewise.
35670         * tests/test-fstatat.c (includes): Drop pathmax.h.
35671         * tests/test-stat.c (includes): Likewise.
35672         Reported by Bruno Haible.
35674 2011-06-20  Bruno Haible  <bruno@clisp.org>
35676         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35677         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35678         * lib/float.c: New file.
35679         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35680         REPLACE_FLOAT_LDBL.
35681         * modules/float (Files): Add lib/float.c.
35682         (configure.ac): Invoke AC_LIBOBJ.
35683         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35685 2011-06-20  Bruno Haible  <bruno@clisp.org>
35687         Tests for module 'float'.
35688         * modules/float-tests: New file.
35689         * tests/test-float.c: New file.
35691 2011-06-19  Bruno Haible  <bruno@clisp.org>
35693         isinf: Coding style.
35694         * lib/isinf.c: Use GNU coding style.
35696 2011-06-19  Bruno Haible  <bruno@clisp.org>
35698         linkat test: Avoid test failure on AIX 7.1.
35699         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35700         * tests/test-link.h (test_link): Likewise.
35702 2011-06-19  Bruno Haible  <bruno@clisp.org>
35704         pread test: Avoid test failure on OpenBSD 4.9.
35705         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35707 2011-06-19  Bruno Haible  <bruno@clisp.org>
35709         sprintf-posix: Fix test failure on AIX 7.1.
35710         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35711         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35712         on AIX.
35713         * doc/posix-functions/fprintf.texi: Likewise.
35714         * doc/posix-functions/printf.texi: Likewise.
35715         * doc/posix-functions/snprintf.texi: Likewise.
35716         * doc/posix-functions/sprintf.texi: Likewise.
35717         * doc/posix-functions/vdprintf.texi: Likewise.
35718         * doc/posix-functions/vfprintf.texi: Likewise.
35719         * doc/posix-functions/vprintf.texi: Likewise.
35720         * doc/posix-functions/vsnprintf.texi: Likewise.
35721         * doc/posix-functions/vsprintf.texi: Likewise.
35723 2011-06-19  Bruno Haible  <bruno@clisp.org>
35725         roundl-ieee: Fix test failure on AIX 7.1.
35726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35727         * doc/posix-functions/roundl.texi: Mention problem with negative
35728         arguments.
35730 2011-06-19  Bruno Haible  <bruno@clisp.org>
35732         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35733         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35734         * doc/posix-functions/round.texi: Mention problem with negative
35735         arguments.
35736         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35738 2011-06-19  Bruno Haible  <bruno@clisp.org>
35740         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35741         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35742         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35743         * doc/posix-functions/roundf.texi: Mention problem with negative
35744         arguments.
35745         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35747 2011-06-19  Bruno Haible  <bruno@clisp.org>
35749         ceilf-ieee: Work around bug on MacOS X 10.5.
35750         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35752         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35753         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35754         IEEE compliant, avoid compiler optimizations.
35755         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35756         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35757         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35758         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35759         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35760         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35761         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35762         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35763         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35764         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35766 2011-06-19  Bruno Haible  <bruno@clisp.org>
35768         ceilf-ieee: Work around bug on AIX 7.1.
35769         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35770         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35772 2011-06-19  Bruno Haible  <bruno@clisp.org>
35774         ceil-ieee: Work around bug on AIX 7.1.
35775         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35776         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35778 2011-06-18  Bruno Haible  <bruno@clisp.org>
35780         fsync test: Avoid test failure on MacOS X and AIX.
35781         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35782         EINVAL.
35784 2011-06-18  Bruno Haible  <bruno@clisp.org>
35786         openat, fdopendir tests: Fix link errors.
35787         * modules/openat-tests (Depends-on): Add progname.
35788         * modules/fdopendir-tests (Depends-on): Likewise.
35789         * tests/test-fchownat.c: Include progname.h.
35790         (main): Call set_program_name.
35791         * tests/test-fstatat.c: Include progname.h.
35792         (main): Call set_program_name.
35793         * tests/test-mkdirat.c: Include progname.h.
35794         (main): Call set_program_name.
35795         * tests/test-openat.c: Include progname.h.
35796         (main): Call set_program_name.
35797         * tests/test-unlinkat.c: Include progname.h.
35798         (main): Call set_program_name.
35799         * tests/test-fdopendir.c: Include progname.h.
35800         (main): Call set_program_name.
35802 2011-06-18  Bruno Haible  <bruno@clisp.org>
35804         Doc update.
35805         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35806         HP-UX.
35807         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35809 2011-06-18  Bruno Haible  <bruno@clisp.org>
35811         getcwd tests: Avoid compilation error on HP-UX 11.31.
35812         * modules/getcwd-tests (Depends-on): Add pathmax.
35813         * tests/test-getcwd.c: Include pathmax.h.
35815 2011-06-18  Bruno Haible  <bruno@clisp.org>
35817         isfinite, isinf: Fix link error on AIX 6 and 7.
35818         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35819         needed, also test the macro with a 'float' argument.
35820         * m4/isinf.m4 (gl_ISINF): Likewise.
35822 2011-06-18  Bruno Haible  <bruno@clisp.org>
35824         getloadavg: Don't clobber LIBS. Regression from previous commit.
35825         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35826         AC_CHECK_LIB from here...
35827         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35828         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35829         gl_func_getloadavg_done.
35830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35832 2011-06-18  Bruno Haible  <bruno@clisp.org>
35834         clean-temp: Improve documentation.
35835         * lib/clean-temp.h: Explain better how to use this module.
35836         Reported by John Darrington <john@darrington.wattle.id.au>.
35838 2011-06-17  Bruno Haible  <bruno@clisp.org>
35840         pread, pwrite: Avoid cc warning on AIX.
35841         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35842         (pwrite): Likewise.
35844 2011-06-17  Bruno Haible  <bruno@clisp.org>
35846         spawn-pipe tests: Fix link error.
35847         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35850 2011-06-17  Bruno Haible  <bruno@clisp.org>
35852         Tests: Remove unnecessary dependency.
35853         * modules/canonicalize-tests (Depends-on): Remove progname.
35854         * modules/chown-tests (Depends-on): Likewise.
35855         * modules/dirname-tests (Depends-on): Likewise.
35856         * modules/fdopendir-tests (Depends-on): Likewise.
35857         * modules/fdutimensat-tests (Depends-on): Likewise.
35858         * modules/hash-tests (Depends-on): Likewise.
35859         * modules/lchown-tests (Depends-on): Likewise.
35860         * modules/linkat-tests (Depends-on): Likewise.
35861         * modules/renameat-tests (Depends-on): Likewise.
35862         * modules/spawn-pipe-tests (Depends-on): Likewise.
35863         * modules/utimensat-tests (Depends-on): Likewise.
35865 2011-06-17  Bruno Haible  <bruno@clisp.org>
35867         spawn-pipe tests: Fix link error.
35868         * tests/test-spawn-pipe-child.c: Undefine fflush.
35870 2011-06-17  Bruno Haible  <bruno@clisp.org>
35872         Fix tests link errors.
35873         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35874         * modules/chown-tests (Makefile.am): Don't link test-chown with
35875         LIBINTL.
35876         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35877         LIBINTL.
35878         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35879         LIBINTL.
35880         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35881         LIBINTL.
35883 2011-06-16  Bruno Haible  <bruno@clisp.org>
35885         crypto/gc-sha1: Fix recent regression.
35886         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35887         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35889         crypto/gc-md5: Fix recent regression.
35890         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35892         crypto/gc-md4: Fix recent regression.
35893         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35894         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35896         crypto/gc-arctwo: Fix recent regression.
35897         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35898         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35900         crypto/gc-rijndael: Fix recent regression.
35901         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35902         (configure.ac): Invoke AC_LIBOBJ here.
35903         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35906         crypto/gc-hmac-sha1: Fix recent regression.
35907         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35908         (configure.ac): Invoke AC_LIBOBJ here.
35909         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35912         crypto/gc-hmac-md5: Fix recent regression.
35913         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35914         (configure.ac): Invoke AC_LIBOBJ here.
35915         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35918         crypto/gc-des: Fix recent regression.
35919         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35920         (configure.ac): Invoke AC_LIBOBJ here.
35921         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35924         crypto/gc-arcfour: Fix recent regression.
35925         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35926         (configure.ac): Invoke AC_LIBOBJ here.
35927         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35930 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35932         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35933         After the 2011-05-21 change, this macro requires
35934         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35935         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35937 2011-06-16  Bruno Haible  <bruno@clisp.org>
35939         fprintftime: Move AC_LIBOBJ invocations to module description.
35940         * m4/fprintftime.m4: Remove file.
35941         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35942         (configure.ac): Remove gl_FPRINTFTIME call.
35943         (Makefile.am): Augment lib_SOURCES.
35944         Reported by Jim Meyering.
35946 2011-06-16  Bruno Haible  <bruno@clisp.org>
35948         tmpfile-safer: Finish 2011-05-23 commit.
35949         * m4/stdio-safer.m4: Really remove file.
35950         Reported by Jim Meyering.
35952 2011-06-16  Bruno Haible  <bruno@clisp.org>
35954         syntax-check: Fix typo.
35955         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35956         printf-posix.m4.
35957         Reported by Jim Meyering.
35959 2011-06-13  Jim Meyering  <meyering@redhat.com>
35961         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35962         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35964 2011-05-23  Bruno Haible  <bruno@clisp.org>
35966         yesno: Move AC_LIBOBJ invocations to module description.
35967         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35968         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35970 2011-05-23  Bruno Haible  <bruno@clisp.org>
35972         xstrtol: Move AC_LIBOBJ invocations to module description.
35973         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35974         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35976 2011-05-23  Bruno Haible  <bruno@clisp.org>
35978         xstrtold: Move AC_LIBOBJ invocations to module description.
35979         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35980         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35982 2011-05-23  Bruno Haible  <bruno@clisp.org>
35984         xstrtod: Move AC_LIBOBJ invocations to module description.
35985         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35986         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35988 2011-05-23  Bruno Haible  <bruno@clisp.org>
35990         xnanosleep: Move AC_LIBOBJ invocations to module description.
35991         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35992         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35994 2011-05-23  Bruno Haible  <bruno@clisp.org>
35996         xgetcwd: Move AC_LIBOBJ invocations to module description.
35997         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35998         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
36000 2011-05-23  Bruno Haible  <bruno@clisp.org>
36002         xalloc: Move AC_LIBOBJ invocations to module description.
36003         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
36004         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
36006 2011-05-23  Bruno Haible  <bruno@clisp.org>
36008         write-any-file: Move AC_LIBOBJ invocations to module description.
36009         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
36010         invocation.
36011         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
36013 2011-05-23  Bruno Haible  <bruno@clisp.org>
36015         utimens: Move AC_LIBOBJ invocations to module description.
36016         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
36017         * modules/utimens (Makefile.am): Augment lib_SOURCES.
36019 2011-05-23  Bruno Haible  <bruno@clisp.org>
36021         utimecmp: Move AC_LIBOBJ invocations to module description.
36022         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
36023         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
36025 2011-05-23  Bruno Haible  <bruno@clisp.org>
36027         userspec: Move AC_LIBOBJ invocations to module description.
36028         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
36029         * modules/userspec (Makefile.am): Augment lib_SOURCES.
36031 2011-05-23  Bruno Haible  <bruno@clisp.org>
36033         unlinkdir: Move AC_LIBOBJ invocations to module description.
36034         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
36035         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
36037 2011-05-23  Bruno Haible  <bruno@clisp.org>
36039         unistd-safer: Move AC_LIBOBJ invocations to module description.
36040         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
36041         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
36043 2011-05-23  Bruno Haible  <bruno@clisp.org>
36045         tempname: Move AC_LIBOBJ invocations to module description.
36046         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
36047         * modules/tempname (Makefile.am): Augment lib_SOURCES.
36049 2011-05-23  Bruno Haible  <bruno@clisp.org>
36051         strftime: Move AC_LIBOBJ invocations to module description.
36052         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
36053         * modules/strftime (Makefile.am): Augment lib_SOURCES.
36055 2011-05-23  Bruno Haible  <bruno@clisp.org>
36057         stdlib-safer: Move AC_LIBOBJ invocations to module description.
36058         * m4/stdlib-safer.m4: Remove file.
36059         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
36060         (configure.ac): Remove gl_STDLIB_SAFER call.
36061         (Makefile.am): Augment lib_SOURCES.
36063 2011-05-23  Bruno Haible  <bruno@clisp.org>
36065         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
36066         * m4/stdio-safer.m4: Remove file.
36067         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
36068         (configure.ac): Remove gl_TMPFILE_SAFER call.
36069         (Makefile.am): Augment lib_SOURCES.
36071 2011-05-23  Bruno Haible  <bruno@clisp.org>
36073         popen-safer: Move AC_LIBOBJ invocations to module description.
36074         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
36075         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
36076         (configure.ac): Remove gl_POPEN_SAFER call.
36077         (Makefile.am): Augment lib_SOURCES.
36079 2011-05-23  Bruno Haible  <bruno@clisp.org>
36081         freopen-safer: Move AC_LIBOBJ invocations to module description.
36082         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
36083         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
36084         (configure.ac): Remove gl_FREOPEN_SAFER call.
36085         (Makefile.am): Augment lib_SOURCES.
36087 2011-05-23  Bruno Haible  <bruno@clisp.org>
36089         fopen-safer: Move AC_LIBOBJ invocations to module description.
36090         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
36091         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
36092         (configure.ac): Remove gl_FOPEN_SAFER call.
36093         (Makefile.am): Augment lib_SOURCES.
36095 2011-05-23  Bruno Haible  <bruno@clisp.org>
36097         crypto/sha512: Move AC_LIBOBJ invocations to module description.
36098         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
36099         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
36101 2011-05-23  Bruno Haible  <bruno@clisp.org>
36103         crypto/sha256: Move AC_LIBOBJ invocations to module description.
36104         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
36105         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
36107 2011-05-23  Bruno Haible  <bruno@clisp.org>
36109         crypto/sha1: Move AC_LIBOBJ invocations to module description.
36110         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
36111         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
36113 2011-05-23  Bruno Haible  <bruno@clisp.org>
36115         settime: Move AC_LIBOBJ invocations to module description.
36116         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
36117         * modules/settime (Makefile.am): Augment lib_SOURCES.
36119 2011-05-23  Bruno Haible  <bruno@clisp.org>
36121         savedir: Move AC_LIBOBJ invocations to module description.
36122         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
36123         * modules/savedir (Makefile.am): Augment lib_SOURCES.
36125 2011-05-23  Bruno Haible  <bruno@clisp.org>
36127         save-cwd: Move AC_LIBOBJ invocations to module description.
36128         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
36129         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
36131 2011-05-23  Bruno Haible  <bruno@clisp.org>
36133         same: Move AC_LIBOBJ invocations to module description.
36134         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
36135         * modules/same (Makefile.am): Augment lib_SOURCES.
36137 2011-05-23  Bruno Haible  <bruno@clisp.org>
36139         safe-write: Move AC_LIBOBJ invocations to module description.
36140         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
36141         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
36142         instead of gl_SAFE_WRITE.
36143         (Makefile.am): Augment lib_SOURCES.
36145 2011-05-23  Bruno Haible  <bruno@clisp.org>
36147         safe-read: Move AC_LIBOBJ invocations to module description.
36148         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
36149         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
36150         of gl_SAFE_READ.
36151         (Makefile.am): Augment lib_SOURCES.
36153 2011-05-23  Bruno Haible  <bruno@clisp.org>
36155         safe-alloc: Move AC_LIBOBJ invocations to module description.
36156         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
36157         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
36159 2011-05-23  Bruno Haible  <bruno@clisp.org>
36161         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
36162         * m4/rijndael.m4: Remove file.
36163         * modules/crypto/rijndael (Files): Remove it.
36164         (configure.ac): Remove gl_RIJNDAEL call.
36165         (Makefile.am): Augment lib_SOURCES.
36167 2011-05-23  Bruno Haible  <bruno@clisp.org>
36169         readtokens: Move AC_LIBOBJ invocations to module description.
36170         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
36171         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
36173 2011-05-23  Bruno Haible  <bruno@clisp.org>
36175         read-file: Move AC_LIBOBJ invocations to module description.
36176         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
36177         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
36178         of gl_FUNC_READ_FILE.
36179         (Makefile.am): Augment lib_SOURCES.
36181 2011-05-23  Bruno Haible  <bruno@clisp.org>
36183         quotearg: Move AC_LIBOBJ invocations to module description.
36184         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
36185         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
36187 2011-05-23  Bruno Haible  <bruno@clisp.org>
36189         quote: Move AC_LIBOBJ invocations to module description.
36190         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
36191         * modules/quote (Makefile.am): Augment lib_SOURCES.
36193 2011-05-23  Bruno Haible  <bruno@clisp.org>
36195         posixver: Move AC_LIBOBJ invocations to module description.
36196         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
36197         * modules/posixver (Makefile.am): Augment lib_SOURCES.
36199 2011-05-23  Bruno Haible  <bruno@clisp.org>
36201         posixtm: Move AC_LIBOBJ invocations to module description.
36202         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
36203         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
36205 2011-05-23  Bruno Haible  <bruno@clisp.org>
36207         physmem: Move AC_LIBOBJ invocations to module description.
36208         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
36209         * modules/physmem (Makefile.am): Augment lib_SOURCES.
36211 2011-05-23  Bruno Haible  <bruno@clisp.org>
36213         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
36214         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
36215         invocation.
36216         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
36218 2011-05-23  Bruno Haible  <bruno@clisp.org>
36220         mpsort: Move AC_LIBOBJ invocations to module description.
36221         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
36222         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
36224 2011-05-23  Bruno Haible  <bruno@clisp.org>
36226         modechange: Move AC_LIBOBJ invocations to module description.
36227         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
36228         * modules/modechange (Makefile.am): Augment lib_SOURCES.
36230 2011-05-23  Bruno Haible  <bruno@clisp.org>
36232         mkdir-p: Move AC_LIBOBJ invocations to module description.
36233         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
36234         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
36236 2011-05-23  Bruno Haible  <bruno@clisp.org>
36238         mkancesdirs: Move AC_LIBOBJ invocations to module description.
36239         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
36240         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
36242 2011-05-23  Bruno Haible  <bruno@clisp.org>
36244         mgetgroups: Move AC_LIBOBJ invocations to module description.
36245         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
36246         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
36248 2011-05-23  Bruno Haible  <bruno@clisp.org>
36250         memxor: Move AC_LIBOBJ invocations to module description.
36251         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
36252         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36254 2011-05-23  Bruno Haible  <bruno@clisp.org>
36256         memcoll: Move AC_LIBOBJ invocations to module description.
36257         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
36258         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
36260 2011-05-23  Bruno Haible  <bruno@clisp.org>
36262         memcasecmp: Move AC_LIBOBJ invocations to module description.
36263         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
36264         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
36266 2011-05-23  Bruno Haible  <bruno@clisp.org>
36268         crypto/md5: Move AC_LIBOBJ invocations to module description.
36269         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
36270         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36272 2011-05-23  Bruno Haible  <bruno@clisp.org>
36274         crypto/md4: Move AC_LIBOBJ invocations to module description.
36275         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
36276         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
36278 2011-05-23  Bruno Haible  <bruno@clisp.org>
36280         crypto/md2: Move AC_LIBOBJ invocations to module description.
36281         * m4/md2.m4: Remove file.
36282         * modules/crypto/md2 (Files): Remove it.
36283         (configure.ac): Remove gl_MD2 call.
36284         (Makefile.am): Augment lib_SOURCES.
36286 2011-05-23  Bruno Haible  <bruno@clisp.org>
36288         long-options: Move AC_LIBOBJ invocations to module description.
36289         * m4/long-options.m4: Remove file.
36290         * modules/long-options (Files): Remove it.
36291         (configure.ac): Remove gl_LONG_OPTIONS call.
36292         (Makefile.am): Augment lib_SOURCES.
36294 2011-05-23  Bruno Haible  <bruno@clisp.org>
36296         i-ring: Move AC_LIBOBJ invocations to module description.
36297         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
36298         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
36300 2011-05-23  Bruno Haible  <bruno@clisp.org>
36302         idcache: Move AC_LIBOBJ invocations to module description.
36303         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
36304         * modules/idcache (Makefile.am): Augment lib_SOURCES.
36306 2011-05-23  Bruno Haible  <bruno@clisp.org>
36308         human: Move AC_LIBOBJ invocations to module description.
36309         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
36310         * modules/human (Makefile.am): Augment lib_SOURCES.
36312 2011-05-23  Bruno Haible  <bruno@clisp.org>
36314         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
36315         * m4/hmac-sha1.m4: Remove file.
36316         * modules/crypto/hmac-sha1 (Files): Remove it.
36317         (configure.ac): Remove gl_HMAC_SHA1 call.
36318         (Makefile.am): Augment lib_SOURCES.
36320 2011-05-23  Bruno Haible  <bruno@clisp.org>
36322         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
36323         * m4/hmac-md5.m4: Remove file.
36324         * modules/crypto/hmac-md5 (Files): Remove it.
36325         (configure.ac): Remove gl_HMAC_MD5 call.
36326         (Makefile.am): Augment lib_SOURCES.
36328 2011-05-23  Bruno Haible  <bruno@clisp.org>
36330         hash: Move AC_LIBOBJ invocations to module description.
36331         * m4/hash.m4: Remove file.
36332         * modules/hash (Files): Remove it.
36333         (configure.ac): Remove gl_HASH call.
36334         (Makefile.am): Augment lib_SOURCES.
36336 2011-05-23  Bruno Haible  <bruno@clisp.org>
36338         hard-locale: Move AC_LIBOBJ invocations to module description.
36339         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36340         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36342 2011-05-23  Bruno Haible  <bruno@clisp.org>
36344         getugroups: Move AC_LIBOBJ invocations to module description.
36345         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36346         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36348 2011-05-23  Bruno Haible  <bruno@clisp.org>
36350         gettime: Move AC_LIBOBJ invocations to module description.
36351         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36352         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36354 2011-05-23  Bruno Haible  <bruno@clisp.org>
36356         getndelim2: Move AC_LIBOBJ invocations to module description.
36357         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36358         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36360 2011-05-23  Bruno Haible  <bruno@clisp.org>
36362         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36363         * m4/gc-pbkdf2-sha1.m4: Remove file.
36364         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36365         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36366         (Makefile.am): Augment lib_SOURCES.
36368 2011-05-23  Bruno Haible  <bruno@clisp.org>
36370         fts: Move AC_LIBOBJ invocations to module description.
36371         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36372         * modules/fts (configure.ac): ... to here.
36374 2011-05-23  Bruno Haible  <bruno@clisp.org>
36376         file-type: Move AC_LIBOBJ invocations to module description.
36377         * m4/file-type.m4: Remove file.
36378         * modules/file-type (Files): Remove it.
36379         (configure.ac): Remove gl_FILE_TYPE call.
36380         (Makefile.am): Augment lib_SOURCES.
36382 2011-05-23  Bruno Haible  <bruno@clisp.org>
36384         filenamecat*: Respect rules for use of AC_LIBOBJ.
36385         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36386         Remove AC_LIBOBJ invocation.
36387         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36388         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36390 2011-05-23  Bruno Haible  <bruno@clisp.org>
36392         filemode: Move AC_LIBOBJ invocations to module description.
36393         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36394         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36396 2011-05-23  Bruno Haible  <bruno@clisp.org>
36398         openat-safer: Move AC_LIBOBJ invocations to module description.
36399         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36400         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36402 2011-05-23  Bruno Haible  <bruno@clisp.org>
36404         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36405         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36406         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36408 2011-05-23  Bruno Haible  <bruno@clisp.org>
36410         exclude: Move AC_LIBOBJ invocations to module description.
36411         * m4/exclude.m4: Remove file.
36412         * modules/exclude (Files): Remove it.
36413         (configure.ac): Remove gl_EXCLUDE call.
36414         (Makefile.am): Augment lib_SOURCES.
36416 2011-05-23  Bruno Haible  <bruno@clisp.org>
36418         dirname*: Respect rules for use of AC_LIBOBJ.
36419         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36420         invocations.
36421         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36422         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36424 2011-05-23  Bruno Haible  <bruno@clisp.org>
36426         dirent-safer: Move AC_LIBOBJ invocations to module description.
36427         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36428         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36430 2011-05-23  Bruno Haible  <bruno@clisp.org>
36432         crypto/des: Move AC_LIBOBJ invocations to module description.
36433         * m4/des.m4: Remove file.
36434         * modules/crypto/des (Files): Remove it.
36435         (configure.ac): Remove gl_DES call.
36436         (Makefile.am): Augment lib_SOURCES.
36438 2011-05-23  Bruno Haible  <bruno@clisp.org>
36440         cycle-check: Move AC_LIBOBJ invocations to module description.
36441         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36442         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36444 2011-05-23  Bruno Haible  <bruno@clisp.org>
36446         c-strtold: Move AC_LIBOBJ invocations to module description.
36447         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36448         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36450 2011-05-23  Bruno Haible  <bruno@clisp.org>
36452         c-strtod: Move AC_LIBOBJ invocations to module description.
36453         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36454         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36456 2011-05-23  Bruno Haible  <bruno@clisp.org>
36458         crc: Move AC_LIBOBJ invocations to module description.
36459         * m4/crc.m4: Remove file.
36460         * modules/crc (Files): Remove it.
36461         (configure.ac): Remove gl_CRC call.
36462         (Makefile.am): Augment lib_SOURCES.
36464 2011-05-23  Bruno Haible  <bruno@clisp.org>
36466         close-stream: Move AC_LIBOBJ invocations to module description.
36467         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36468         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36470 2011-05-23  Bruno Haible  <bruno@clisp.org>
36472         closeout: Move AC_LIBOBJ invocations to module description.
36473         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36474         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36476 2011-05-23  Bruno Haible  <bruno@clisp.org>
36478         closein: Move AC_LIBOBJ invocations to module description.
36479         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36480         * modules/closein (Makefile.am): Augment lib_SOURCES.
36482 2011-05-23  Bruno Haible  <bruno@clisp.org>
36484         cloexec: Move AC_LIBOBJ invocations to module description.
36485         * m4/cloexec.m4: Remove file.
36486         * modules/cloexec (Files): Remove it.
36487         (configure.ac): Remove gl_CLOEXEC call.
36488         (Makefile.am): Augment lib_SOURCES.
36490 2011-05-23  Bruno Haible  <bruno@clisp.org>
36492         check-version: Move AC_LIBOBJ invocations to module description.
36493         * m4/check-version.m4: Remove file.
36494         * modules/check-version (Files): Remove it.
36495         (configure.ac): Remove gl_CHECK_VERSION call.
36496         (Makefile.am): Augment lib_SOURCES.
36498 2011-05-23  Bruno Haible  <bruno@clisp.org>
36500         chdir-safer: Move AC_LIBOBJ invocations to module description.
36501         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36502         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36504 2011-05-23  Bruno Haible  <bruno@clisp.org>
36506         canonicalize: Move AC_LIBOBJ invocations to module description.
36507         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36508         AC_LIBOBJ invocation.
36509         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36511 2011-05-23  Bruno Haible  <bruno@clisp.org>
36513         canon-host: Move AC_LIBOBJ invocations to module description.
36514         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36515         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36516         instead of gl_CANON_HOST.
36517         (Makefile.am): Augment lib_SOURCES.
36519 2011-05-23  Bruno Haible  <bruno@clisp.org>
36521         backupfile: Move AC_LIBOBJ invocations to module description.
36522         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36523         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36525 2011-05-23  Bruno Haible  <bruno@clisp.org>
36527         argmatch: Move AC_LIBOBJ invocations to module description.
36528         * m4/argmatch.m4: Remove file.
36529         * modules/argmatch (Files): Remove it.
36530         (configure.ac): Remove gl_ARGMATCH call.
36531         (Makefile.am): Augment lib_SOURCES.
36533 2011-05-23  Bruno Haible  <bruno@clisp.org>
36535         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36536         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36537         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36539 2011-05-23  Bruno Haible  <bruno@clisp.org>
36541         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36542         * m4/arcfour.m4: Remove file.
36543         * modules/crypto/arcfour (Files): Remove it.
36544         (configure.ac): Remove gl_ARCFOUR call.
36545         (Makefile.am): Augment lib_SOURCES.
36547 2011-05-22  Bruno Haible  <bruno@clisp.org>
36549         write: Move AC_LIBOBJ invocations to module description.
36550         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36551         * modules/write (configure.ac): ... to here.
36553 2011-05-22  Bruno Haible  <bruno@clisp.org>
36555         wmemset: Move AC_LIBOBJ invocations to module description.
36556         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36557         here...
36558         * modules/wmemset (configure.ac): ... to here.
36560 2011-05-22  Bruno Haible  <bruno@clisp.org>
36562         wmemmove: Move AC_LIBOBJ invocations to module description.
36563         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36564         here...
36565         * modules/wmemmove (configure.ac): ... to here.
36567 2011-05-22  Bruno Haible  <bruno@clisp.org>
36569         wmemcpy: Move AC_LIBOBJ invocations to module description.
36570         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36571         here...
36572         * modules/wmemcpy (configure.ac): ... to here.
36574 2011-05-22  Bruno Haible  <bruno@clisp.org>
36576         wmemcmp: Move AC_LIBOBJ invocations to module description.
36577         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36578         here...
36579         * modules/wmemcmp (configure.ac): ... to here.
36581 2011-05-22  Bruno Haible  <bruno@clisp.org>
36583         wmemchr: Move AC_LIBOBJ invocations to module description.
36584         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36585         here...
36586         * modules/wmemchr (configure.ac): ... to here.
36588 2011-05-22  Bruno Haible  <bruno@clisp.org>
36590         wcswidth: Move AC_LIBOBJ invocations to module description.
36591         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36592         here...
36593         * modules/wcswidth (configure.ac): ... to here.
36595 2011-05-22  Bruno Haible  <bruno@clisp.org>
36597         wcwidth: Respect rules for use of AC_LIBOBJ.
36598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36599         invocation from here...
36600         * modules/wcwidth (configure.ac): ... to here.
36601         (Depends-on): Update conditions.
36603 2011-05-22  Bruno Haible  <bruno@clisp.org>
36605         wctype: Move AC_LIBOBJ invocations to module description.
36606         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36607         invocation from here...
36608         * modules/wctype (configure.ac): ... to here.
36609         (Depends-on): Update conditions.
36611 2011-05-22  Bruno Haible  <bruno@clisp.org>
36613         wctrans: Move AC_LIBOBJ invocations to module description.
36614         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36615         invocation from here...
36616         * modules/wctrans (configure.ac): ... to here.
36618 2011-05-22  Bruno Haible  <bruno@clisp.org>
36620         wctomb: Move AC_LIBOBJ invocations to module description.
36621         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36622         invocations from here...
36623         * modules/wctomb (configure.ac): ... to here.
36625 2011-05-22  Bruno Haible  <bruno@clisp.org>
36627         wctob: Move AC_LIBOBJ invocations to module description.
36628         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36629         gl_PREREQ_WCTOB invocations from here...
36630         * modules/wctob (configure.ac): ... to here.
36631         (Depends-on): Update conditions.
36633 2011-05-22  Bruno Haible  <bruno@clisp.org>
36635         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36636         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36637         here...
36638         * modules/wcsxfrm (configure.ac): ... to here.
36640 2011-05-22  Bruno Haible  <bruno@clisp.org>
36642         wcstok: Move AC_LIBOBJ invocations to module description.
36643         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36644         * modules/wcstok (configure.ac): ... to here.
36646 2011-05-22  Bruno Haible  <bruno@clisp.org>
36648         wcsstr: Move AC_LIBOBJ invocations to module description.
36649         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36650         * modules/wcsstr (configure.ac): ... to here.
36652 2011-05-22  Bruno Haible  <bruno@clisp.org>
36654         wcsspn: Move AC_LIBOBJ invocations to module description.
36655         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36656         * modules/wcsspn (configure.ac): ... to here.
36658 2011-05-22  Bruno Haible  <bruno@clisp.org>
36660         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36661         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36662         gl_PREREQ_WCSRTOMBS invocations from here...
36663         * modules/wcsrtombs (configure.ac): ... to here.
36665 2011-05-22  Bruno Haible  <bruno@clisp.org>
36667         wcsrchr: Move AC_LIBOBJ invocations to module description.
36668         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36669         here...
36670         * modules/wcsrchr (configure.ac): ... to here.
36672 2011-05-22  Bruno Haible  <bruno@clisp.org>
36674         wcspbrk: Move AC_LIBOBJ invocations to module description.
36675         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36676         here...
36677         * modules/wcspbrk (configure.ac): ... to here.
36679 2011-05-22  Bruno Haible  <bruno@clisp.org>
36681         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36682         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36683         gl_PREREQ_WCSNRTOMBS invocations from here...
36684         * modules/wcsnrtombs (configure.ac): ... to here.
36686 2011-05-22  Bruno Haible  <bruno@clisp.org>
36688         wcsnlen: Move AC_LIBOBJ invocations to module description.
36689         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36690         here...
36691         * modules/wcsnlen (configure.ac): ... to here.
36693 2011-05-22  Bruno Haible  <bruno@clisp.org>
36695         wcsncpy: Move AC_LIBOBJ invocations to module description.
36696         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36697         here...
36698         * modules/wcsncpy (configure.ac): ... to here.
36700 2011-05-22  Bruno Haible  <bruno@clisp.org>
36702         wcsncmp: Move AC_LIBOBJ invocations to module description.
36703         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36704         here...
36705         * modules/wcsncmp (configure.ac): ... to here.
36707 2011-05-22  Bruno Haible  <bruno@clisp.org>
36709         wcsncat: Move AC_LIBOBJ invocations to module description.
36710         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36711         here...
36712         * modules/wcsncat (configure.ac): ... to here.
36714 2011-05-22  Bruno Haible  <bruno@clisp.org>
36716         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36717         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36718         from here...
36719         * modules/wcsncasecmp (configure.ac): ... to here.
36721 2011-05-22  Bruno Haible  <bruno@clisp.org>
36723         wcslen: Move AC_LIBOBJ invocations to module description.
36724         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36725         * modules/wcslen (configure.ac): ... to here.
36727 2011-05-22  Bruno Haible  <bruno@clisp.org>
36729         wcsdup: Move AC_LIBOBJ invocations to module description.
36730         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36731         * modules/wcsdup (configure.ac): ... to here.
36733 2011-05-22  Bruno Haible  <bruno@clisp.org>
36735         wcscspn: Move AC_LIBOBJ invocations to module description.
36736         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36737         here...
36738         * modules/wcscspn (configure.ac): ... to here.
36740 2011-05-22  Bruno Haible  <bruno@clisp.org>
36742         wcscpy: Move AC_LIBOBJ invocations to module description.
36743         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36744         * modules/wcscpy (configure.ac): ... to here.
36746 2011-05-22  Bruno Haible  <bruno@clisp.org>
36748         wcscoll: Move AC_LIBOBJ invocations to module description.
36749         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36750         here...
36751         * modules/wcscoll (configure.ac): ... to here.
36753 2011-05-22  Bruno Haible  <bruno@clisp.org>
36755         wcscmp: Move AC_LIBOBJ invocations to module description.
36756         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36757         * modules/wcscmp (configure.ac): ... to here.
36759 2011-05-22  Bruno Haible  <bruno@clisp.org>
36761         wcschr: Move AC_LIBOBJ invocations to module description.
36762         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36763         * modules/wcschr (configure.ac): ... to here.
36765 2011-05-22  Bruno Haible  <bruno@clisp.org>
36767         wcscat: Move AC_LIBOBJ invocations to module description.
36768         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36769         * modules/wcscat (configure.ac): ... to here.
36771 2011-05-22  Bruno Haible  <bruno@clisp.org>
36773         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36774         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36775         here...
36776         * modules/wcscasecmp (configure.ac): ... to here.
36778 2011-05-22  Bruno Haible  <bruno@clisp.org>
36780         wcrtomb: Move AC_LIBOBJ invocations to module description.
36781         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36782         invocations from here...
36783         * modules/wcrtomb (configure.ac): ... to here.
36785 2011-05-22  Bruno Haible  <bruno@clisp.org>
36787         wcpncpy: Move AC_LIBOBJ invocations to module description.
36788         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36789         here...
36790         * modules/wcpncpy (configure.ac): ... to here.
36792 2011-05-22  Bruno Haible  <bruno@clisp.org>
36794         wcpcpy: Move AC_LIBOBJ invocations to module description.
36795         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36796         * modules/wcpcpy (configure.ac): ... to here.
36798 2011-05-22  Bruno Haible  <bruno@clisp.org>
36800         waitpid: Move AC_LIBOBJ invocations to module description.
36801         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36802         invocation from here...
36803         * modules/waitpid (configure.ac): ... to here.
36805 2011-05-22  Bruno Haible  <bruno@clisp.org>
36807         utimensat: Move AC_LIBOBJ invocations to module description.
36808         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36809         here...
36810         * modules/utimensat (configure.ac): ... to here.
36812 2011-05-22  Bruno Haible  <bruno@clisp.org>
36814         usleep: Move AC_LIBOBJ invocations to module description.
36815         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36816         here...
36817         * modules/usleep (configure.ac): ... to here.
36819 2011-05-22  Bruno Haible  <bruno@clisp.org>
36821         unlockpt: Move AC_LIBOBJ invocations to module description.
36822         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36823         gl_PREREQ_UNLOCKPT invocations from here...
36824         * modules/unlockpt (configure.ac): ... to here.
36826 2011-05-22  Bruno Haible  <bruno@clisp.org>
36828         unlink: Respect rules for use of AC_LIBOBJ.
36829         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36830         * modules/unlink (configure.ac): ... to here.
36832 2011-05-22  Bruno Haible  <bruno@clisp.org>
36834         uname: Move AC_LIBOBJ invocations to module description.
36835         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36836         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36837         here...
36838         * modules/uname (configure.ac): ... to here.
36840 2011-05-22  Bruno Haible  <bruno@clisp.org>
36842         ttyname_r: Move AC_LIBOBJ invocations to module description.
36843         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36844         gl_PREREQ_TTYNAME_R invocations from here...
36845         * modules/ttyname_r (configure.ac): ... to here.
36847 2011-05-22  Bruno Haible  <bruno@clisp.org>
36849         tsearch: Move AC_LIBOBJ invocations to module description.
36850         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36851         invocations from here...
36852         * modules/tsearch (configure.ac): ... to here.
36854 2011-05-22  Bruno Haible  <bruno@clisp.org>
36856         towctrans: Move AC_LIBOBJ invocations to module description.
36857         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36858         AC_LIBOBJ invocation from here...
36859         * modules/towctrans (configure.ac): ... to here.
36861 2011-05-22  Bruno Haible  <bruno@clisp.org>
36863         tmpfile: Move AC_LIBOBJ invocations to module description.
36864         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36865         invocations from here...
36866         * modules/tmpfile (configure.ac): ... to here.
36868 2011-05-22  Bruno Haible  <bruno@clisp.org>
36870         times: Move AC_LIBOBJ invocations to module description.
36871         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36872         * modules/times (configure.ac): ... to here.
36874 2011-05-22  Bruno Haible  <bruno@clisp.org>
36876         time_r: Move AC_LIBOBJ invocations to module description.
36877         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36878         invocations from here...
36879         * modules/time_r (configure.ac): ... to here.
36881 2011-05-22  Bruno Haible  <bruno@clisp.org>
36883         timegm: Move AC_LIBOBJ invocations to module description.
36884         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36885         invocations from here...
36886         * modules/timegm (configure.ac): ... to here.
36888 2011-05-22  Bruno Haible  <bruno@clisp.org>
36890         tcgetsid: Move AC_LIBOBJ invocations to module description.
36891         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36892         and gl_PREREQ_TCGETSID invocations from here...
36893         * modules/tcgetsid (configure.ac): ... to here.
36894         (Depends-on): Update conditions.
36896 2011-05-22  Bruno Haible  <bruno@clisp.org>
36898         symlinkat: Move AC_LIBOBJ invocations to module description.
36899         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36900         here...
36901         * modules/symlinkat (configure.ac): ... to here.
36903 2011-05-22  Bruno Haible  <bruno@clisp.org>
36905         symlink: Move AC_LIBOBJ invocations to module description.
36906         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36907         here...
36908         * modules/symlink (configure.ac): ... to here.
36910 2011-05-22  Bruno Haible  <bruno@clisp.org>
36912         strverscmp: Move AC_LIBOBJ invocations to module description.
36913         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36915         from here...
36916         * modules/strverscmp (configure.ac): ... to here.
36918 2011-05-22  Bruno Haible  <bruno@clisp.org>
36920         strtok_r: Move AC_LIBOBJ invocations to module description.
36921         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36922         and gl_PREREQ_STRTOK_R invocations from here...
36923         * modules/strtok_r (configure.ac): ... to here.
36924         (Depends-on): Update conditions.
36926 2011-05-22  Bruno Haible  <bruno@clisp.org>
36928         strtoumax: Move AC_LIBOBJ invocations to module description.
36929         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36931         from here...
36932         * modules/strtoumax (configure.ac): ... to here.
36934 2011-05-22  Bruno Haible  <bruno@clisp.org>
36936         strtoimax: Move AC_LIBOBJ invocations to module description.
36937         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36938         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36939         from here...
36940         * modules/strtoimax (configure.ac): ... to here.
36942 2011-05-22  Bruno Haible  <bruno@clisp.org>
36944         strtoull: Move AC_LIBOBJ invocations to module description.
36945         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36946         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36947         from here...
36948         * modules/strtoull (configure.ac): ... to here.
36950 2011-05-22  Bruno Haible  <bruno@clisp.org>
36952         strtoll: Move AC_LIBOBJ invocations to module description.
36953         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36954         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36955         here...
36956         * modules/strtoll (configure.ac): ... to here.
36958 2011-05-22  Bruno Haible  <bruno@clisp.org>
36960         strtoul: Move AC_LIBOBJ invocations to module description.
36961         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36962         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36963         * modules/strtoul (configure.ac): ... to here.
36965 2011-05-22  Bruno Haible  <bruno@clisp.org>
36967         strtol: Move AC_LIBOBJ invocations to module description.
36968         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36969         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36970         * modules/strtol (configure.ac): ... to here.
36972 2011-05-22  Bruno Haible  <bruno@clisp.org>
36974         strtod: Move AC_LIBOBJ invocations to module description.
36975         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36976         invocations from here...
36977         * modules/strtod (configure.ac): ... to here.
36979 2011-05-22  Bruno Haible  <bruno@clisp.org>
36981         strstr*: Move AC_LIBOBJ invocations to module description.
36982         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36983         invocations from here...
36984         * modules/strstr-simple (configure.ac): ... to here.
36985         * modules/strstr (configure.ac): ... and here.
36987 2011-05-22  Bruno Haible  <bruno@clisp.org>
36989         strsignal: Move AC_LIBOBJ invocations to module description.
36990         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36991         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36992         * modules/strsignal (configure.ac): ... to here.
36993         (Depends-on): Update conditions.
36995 2011-05-22  Bruno Haible  <bruno@clisp.org>
36997         strsep: Move AC_LIBOBJ invocations to module description.
36998         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36999         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
37000         here...
37001         * modules/strsep (configure.ac): ... to here.
37003 2011-05-22  Bruno Haible  <bruno@clisp.org>
37005         strptime: Move AC_LIBOBJ invocations to module description.
37006         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
37007         gl_PREREQ_STRPTIME invocations from here...
37008         * modules/strptime (configure.ac): ... to here.
37010 2011-05-22  Bruno Haible  <bruno@clisp.org>
37012         strpbrk: Move AC_LIBOBJ invocations to module description.
37013         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
37014         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
37015         here...
37016         * modules/strpbrk (configure.ac): ... to here.
37018 2011-05-22  Bruno Haible  <bruno@clisp.org>
37020         strnlen: Move AC_LIBOBJ invocations to module description.
37021         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
37022         invocations from here...
37023         * modules/strnlen (configure.ac): ... to here.
37025 2011-05-22  Bruno Haible  <bruno@clisp.org>
37027         strndup: Move AC_LIBOBJ invocations to module description.
37028         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
37029         invocations from here...
37030         * modules/strndup (configure.ac): ... to here.
37031         (Depends-on): Update conditions.
37033 2011-05-22  Bruno Haible  <bruno@clisp.org>
37035         strncat: Move AC_LIBOBJ invocations to module description.
37036         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
37037         invocations from here...
37038         * modules/strncat (configure.ac): ... to here.
37040 2011-05-22  Bruno Haible  <bruno@clisp.org>
37042         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
37043         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
37044         invocations from here...
37045         * modules/strdup (configure.ac): ... to here.
37046         * modules/strdup-posix (configure.ac): ... and here.
37048 2011-05-22  Bruno Haible  <bruno@clisp.org>
37050         strcspn: Move AC_LIBOBJ invocations to module description.
37051         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
37052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
37053         here...
37054         * modules/strcspn (configure.ac): ... to here.
37056 2011-05-22  Bruno Haible  <bruno@clisp.org>
37058         strchrnul: Move AC_LIBOBJ invocations to module description.
37059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
37060         gl_PREREQ_STRCHRNUL invocations from here...
37061         * modules/strchrnul (configure.ac): ... to here.
37063 2011-05-22  Bruno Haible  <bruno@clisp.org>
37065         strcasestr*: Move AC_LIBOBJ invocations to module description.
37066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
37067         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
37068         * modules/strcasestr-simple (configure.ac): ... to here.
37069         * modules/strcasestr (configure.ac): ... and here.
37071 2011-05-22  Bruno Haible  <bruno@clisp.org>
37073         strcase: Move AC_LIBOBJ invocations to module description.
37074         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
37075         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
37076         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
37077         gl_PREREQ_STRNCASECMP invocations from here...
37078         * modules/strcase (configure.ac): ... to here.
37080 2011-05-22  Bruno Haible  <bruno@clisp.org>
37082         stpncpy: Move AC_LIBOBJ invocations to module description.
37083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
37084         here...
37085         * modules/stpncpy (configure.ac): ... to here.
37087 2011-05-22  Bruno Haible  <bruno@clisp.org>
37089         stpcpy: Move AC_LIBOBJ invocations to module description.
37090         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
37091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
37092         here...
37093         * modules/stpcpy (configure.ac): ... to here.
37095 2011-05-21  Bruno Haible  <bruno@clisp.org>
37097         stat: Move AC_LIBOBJ invocations to module description.
37098         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
37099         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
37100         here...
37101         * modules/stat (configure.ac): ... to here.
37103 2011-05-21  Bruno Haible  <bruno@clisp.org>
37105         sleep: Move AC_LIBOBJ invocations to module description.
37106         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
37107         * modules/sleep (configure.ac): ... to here.
37109 2011-05-21  Bruno Haible  <bruno@clisp.org>
37111         signbit: Move AC_LIBOBJ invocations to module description.
37112         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
37113         * modules/signbit (configure.ac): ... to here.
37115 2011-05-21  Bruno Haible  <bruno@clisp.org>
37117         sigprocmask: Move AC_LIBOBJ invocations to module description.
37118         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
37119         gl_PREREQ_SIGPROMASK invocations from here...
37120         * modules/sigprocmask (configure.ac): ... to here.
37122 2011-05-21  Bruno Haible  <bruno@clisp.org>
37124         sigaction: Move AC_LIBOBJ invocations to module description.
37125         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
37126         gl_PREREQ_SIGACTION invocations from here...
37127         * modules/sigaction (configure.ac): ... to here.
37129 2011-05-21  Bruno Haible  <bruno@clisp.org>
37131         sig2str: Move AC_LIBOBJ invocations to module description.
37132         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
37133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
37134         here...
37135         * modules/sig2str (configure.ac): ... to here.
37137 2011-05-21  Bruno Haible  <bruno@clisp.org>
37139         setlocale: Move AC_LIBOBJ invocations to module description.
37140         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
37141         gl_PREREQ_SETLOCALE invocations from here...
37142         * modules/setlocale (configure.ac): ... to here.
37144 2011-05-21  Bruno Haible  <bruno@clisp.org>
37146         unsetenv: Move AC_LIBOBJ invocations to module description.
37147         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
37148         and gl_PREREQ_UNSETENV invocations from here...
37149         * modules/unsetenv (configure.ac): ... to here.
37150         (Depends-on): Update.
37152 2011-05-21  Bruno Haible  <bruno@clisp.org>
37154         setenv: Move AC_LIBOBJ invocations to module description.
37155         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
37156         here...
37157         * modules/setenv (configure.ac): ... to here.
37159 2011-05-21  Bruno Haible  <bruno@clisp.org>
37161         selinux-h: Move AC_LIBOBJ invocations to module description.
37162         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
37163         AC_LIBOBJ invocation from here...
37164         * modules/selinux-h (configure.ac): ... to here.
37166 2011-05-21  Bruno Haible  <bruno@clisp.org>
37168         select: Respect rules for use of AC_LIBOBJ.
37169         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
37170         here...
37171         * modules/select (configure.ac): ... to here.
37173 2011-05-21  Bruno Haible  <bruno@clisp.org>
37175         scandir: Move AC_LIBOBJ invocations to module description.
37176         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
37177         invocations from here...
37178         * modules/scandir (configure.ac): ... to here.
37180 2011-05-21  Bruno Haible  <bruno@clisp.org>
37182         rpmatch: Move AC_LIBOBJ invocations to module description.
37183         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
37184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
37185         here...
37186         * modules/rpmatch (configure.ac): ... to here.
37188 2011-05-21  Bruno Haible  <bruno@clisp.org>
37190         rmdir: Respect rules for use of AC_LIBOBJ.
37191         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
37192         * modules/rmdir (configure.ac): ... to here.
37194 2011-05-21  Bruno Haible  <bruno@clisp.org>
37196         renameat: Move AC_LIBOBJ invocations to module description.
37197         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
37198         here...
37199         * modules/renameat (configure.ac): ... to here.
37201 2011-05-21  Bruno Haible  <bruno@clisp.org>
37203         rename: Respect rules for use of AC_LIBOBJ.
37204         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
37205         here...
37206         * modules/rename (configure.ac): ... to here.
37208 2011-05-21  Bruno Haible  <bruno@clisp.org>
37210         remove: Move AC_LIBOBJ invocations to module description.
37211         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
37212         here...
37213         * modules/remove (configure.ac): ... to here.
37215 2011-05-21  Bruno Haible  <bruno@clisp.org>
37217         relocatable-lib: Move AC_LIBOBJ invocations to module description.
37218         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
37219         macro.
37220         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
37221         * modules/relocatable-lib (configure.ac): ... to here.
37222         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37223         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
37225 2011-05-21  Bruno Haible  <bruno@clisp.org>
37227         relocatable-prog: Move AC_LIBOBJ invocations to module description.
37228         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
37229         here...
37230         * modules/relocatable-prog (configure.ac): ... to here.
37232 2011-05-21  Bruno Haible  <bruno@clisp.org>
37234         regex: Move AC_LIBOBJ invocations to module description.
37235         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
37236         invocations from here...
37237         * modules/regex (configure.ac): ... to here.
37239 2011-05-21  Bruno Haible  <bruno@clisp.org>
37241         realloc-*: Move AC_LIBOBJ invocations to module description.
37242         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
37243         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
37244         AC_LIBOBJ invocations from here...
37245         * modules/realloc-gnu (configure.ac): ... to here.
37246         * modules/realloc-posix (configure.ac): ... and here.
37248 2011-05-21  Bruno Haible  <bruno@clisp.org>
37250         readutmp: Move AC_LIBOBJ invocations to module description.
37251         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
37252         * modules/readutmp (configure.ac): ... to here.
37254 2011-05-21  Bruno Haible  <bruno@clisp.org>
37256         readlinkat: Move AC_LIBOBJ invocations to module description.
37257         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
37258         here...
37259         * modules/readlinkat (configure.ac): ... to here.
37261 2011-05-21  Bruno Haible  <bruno@clisp.org>
37263         readlink: Move AC_LIBOBJ invocations to module description.
37264         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
37265         gl_PREREQ_READLINK invocations from here...
37266         * modules/readlink (configure.ac): ... to here.
37268 2011-05-21  Bruno Haible  <bruno@clisp.org>
37270         readline: Move AC_LIBOBJ invocations to module description.
37271         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
37272         gl_PREREQ_READLINE invocations from here...
37273         * modules/readline (configure.ac): ... to here.
37275 2011-05-21  Bruno Haible  <bruno@clisp.org>
37277         read: Move AC_LIBOBJ invocations to module description.
37278         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
37279         * modules/read (configure.ac): ... to here.
37281 2011-05-21  Bruno Haible  <bruno@clisp.org>
37283         rawmemchr: Move AC_LIBOBJ invocations to module description.
37284         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
37285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
37286         from here...
37287         * modules/rawmemchr (configure.ac): ... to here.
37289 2011-05-21  Bruno Haible  <bruno@clisp.org>
37291         random_r: Move AC_LIBOBJ invocations to module description.
37292         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
37293         gl_PREREQ_RANDOM_R invocations from here...
37294         * modules/random_r (configure.ac): ... to here.
37296 2011-05-21  Bruno Haible  <bruno@clisp.org>
37298         pwrite: Move AC_LIBOBJ invocations to module description.
37299         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
37300         * modules/pwrite (configure.ac): ... to here.
37302 2011-05-21  Bruno Haible  <bruno@clisp.org>
37304         putenv: Move AC_LIBOBJ invocations to module description.
37305         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
37306         * modules/putenv (configure.ac): ... to here.
37308 2011-05-21  Bruno Haible  <bruno@clisp.org>
37310         login_tty: Move AC_LIBOBJ invocations to module description.
37311         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
37312         * modules/login_tty (configure.ac): ... to here.
37314 2011-05-21  Bruno Haible  <bruno@clisp.org>
37316         openpty: Move AC_LIBOBJ invocations to module description.
37317         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
37318         * modules/openpty (configure.ac): ... to here.
37320 2011-05-21  Bruno Haible  <bruno@clisp.org>
37322         forkpty: Move AC_LIBOBJ invocations to module description.
37323         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
37324         * modules/forkpty (configure.ac): ... to here.
37326 2011-05-21  Bruno Haible  <bruno@clisp.org>
37328         ptsname: Move AC_LIBOBJ invocations to module description.
37329         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37330         invocations from here...
37331         * modules/ptsname (configure.ac): ... to here.
37333 2011-05-21  Bruno Haible  <bruno@clisp.org>
37335         pread: Move AC_LIBOBJ invocations to module description.
37336         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37337         * modules/pread (configure.ac): ... to here.
37339 2011-05-21  Bruno Haible  <bruno@clisp.org>
37341         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37342         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37343         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37344         * modules/posix_spawn (configure.ac): ... to here.
37345         * modules/posix_spawnp (configure.ac): ... and here.
37347 2011-05-21  Bruno Haible  <bruno@clisp.org>
37349         popen: Move AC_LIBOBJ invocations to module description.
37350         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37351         invocations from here...
37352         * modules/popen (configure.ac): ... to here.
37354 2011-05-21  Bruno Haible  <bruno@clisp.org>
37356         poll: Move AC_LIBOBJ invocations to module description.
37357         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37358         invocations from here...
37359         * modules/poll (configure.ac): ... to here.
37361 2011-05-21  Bruno Haible  <bruno@clisp.org>
37363         pipe-posix: Move AC_LIBOBJ invocations to module description.
37364         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37365         * modules/pipe-posix (configure.ac): ... to here.
37367 2011-05-21  Bruno Haible  <bruno@clisp.org>
37369         openat: Respect rules for use of AC_LIBOBJ.
37370         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37371         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37372         * modules/openat (configure.ac): ... to here.
37374 2011-05-21  Bruno Haible  <bruno@clisp.org>
37376         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37377         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37378         invocation from here...
37379         * modules/obstack-printf (configure.ac): ... to here.
37380         * modules/obstack-printf-posix (configure.ac): ... and here.
37382 2011-05-21  Bruno Haible  <bruno@clisp.org>
37384         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37385         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37386         from here...
37387         * modules/nl_langinfo (configure.ac): ... to here.
37389 2011-05-21  Bruno Haible  <bruno@clisp.org>
37391         nanosleep: Move AC_LIBOBJ invocations to module description.
37392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37393         gl_PREREQ_NANOSLEEP invocations from here...
37394         * modules/nanosleep (configure.ac): ... to here.
37396 2011-05-21  Bruno Haible  <bruno@clisp.org>
37398         mountlist: Move AC_LIBOBJ invocations to module description.
37399         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37400         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37401         * modules/mountlist (configure.ac): ... to here.
37403 2011-05-21  Bruno Haible  <bruno@clisp.org>
37405         mktime: Respect rules for use of AC_LIBOBJ.
37406         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37407         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37408         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37409         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37410         * modules/mktime (configure.ac): ... to here.
37411         * modules/mktime-internal (configure.ac): ... and here.
37412         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37414 2011-05-21  Bruno Haible  <bruno@clisp.org>
37416         mkstemps: Move AC_LIBOBJ invocations to module description.
37417         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37418         here...
37419         * modules/mkstemps (configure.ac): ... to here.
37421 2011-05-21  Bruno Haible  <bruno@clisp.org>
37423         mkstemp: Move AC_LIBOBJ invocations to module description.
37424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37425         gl_PREREQ_MKSTEMP invocations from here...
37426         * modules/mkstemp (configure.ac): ... to here.
37428 2011-05-21  Bruno Haible  <bruno@clisp.org>
37430         mkostemps: Move AC_LIBOBJ invocations to module description.
37431         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37432         here...
37433         * modules/mkostemps (configure.ac): ... to here.
37435 2011-05-21  Bruno Haible  <bruno@clisp.org>
37437         mkostemp: Move AC_LIBOBJ invocations to module description.
37438         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37439         gl_PREREQ_MKOSTEMP invocations from here...
37440         * modules/mkostemp (configure.ac): ... to here.
37442 2011-05-21  Bruno Haible  <bruno@clisp.org>
37444         mknod: Move AC_LIBOBJ invocations to module description.
37445         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37446         * modules/mknod (configure.ac): ... to here.
37448 2011-05-21  Bruno Haible  <bruno@clisp.org>
37450         mkfifoat: Move AC_LIBOBJ invocations to module description.
37451         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37452         here...
37453         * modules/mkfifoat (configure.ac): ... to here.
37455 2011-05-21  Bruno Haible  <bruno@clisp.org>
37457         mkfifo: Respect rules for use of AC_LIBOBJ.
37458         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37459         here...
37460         * modules/mkfifo (configure.ac): ... to here.
37462 2011-05-21  Bruno Haible  <bruno@clisp.org>
37464         mkdtemp: Move AC_LIBOBJ invocations to module description.
37465         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37466         invocations from here...
37467         * modules/mkdtemp (configure.ac): ... to here.
37469 2011-05-21  Bruno Haible  <bruno@clisp.org>
37471         mkdir: Move AC_LIBOBJ invocations to module description.
37472         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37473         * modules/mkdir (configure.ac): ... to here.
37475 2011-05-21  Bruno Haible  <bruno@clisp.org>
37477         memset: Move AC_LIBOBJ invocations to module description.
37478         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37480         here...
37481         * modules/memset (configure.ac): ... to here.
37483 2011-05-21  Bruno Haible  <bruno@clisp.org>
37485         memrchr: Move AC_LIBOBJ invocations to module description.
37486         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37487         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37488         here...
37489         * modules/memrchr (configure.ac): ... to here.
37491 2011-05-21  Bruno Haible  <bruno@clisp.org>
37493         mempcpy: Move AC_LIBOBJ invocations to module description.
37494         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37495         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37496         here...
37497         * modules/mempcpy (configure.ac): ... to here.
37499 2011-05-21  Bruno Haible  <bruno@clisp.org>
37501         memmove: Move AC_LIBOBJ invocations to module description.
37502         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37503         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37504         here...
37505         * modules/memmove (configure.ac): ... to here.
37507 2011-05-21  Bruno Haible  <bruno@clisp.org>
37509         memmem*: Move AC_LIBOBJ invocations to module description.
37510         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37511         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37512         here...
37513         (gl_FUNC_MEMMEM): ... and here...
37514         * modules/memmem-simple (configure.ac): ... to here.
37515         * modules/memmem (configure.ac): ... and here.
37517 2011-05-21  Bruno Haible  <bruno@clisp.org>
37519         memcpy: Move AC_LIBOBJ invocations to module description.
37520         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37522         here...
37523         * modules/memcpy (configure.ac): ... to here.
37525 2011-05-21  Bruno Haible  <bruno@clisp.org>
37527         memcmp: Simplify autoconf macro.
37528         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37529         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37530         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37532 2011-05-21  Bruno Haible  <bruno@clisp.org>
37534         memcmp: Move AC_LIBOBJ invocations to module description.
37535         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37536         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37537         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37538         * modules/memcmp (configure.ac): ... to here.
37539         (Depends-on): Update conditions.
37541 2011-05-21  Bruno Haible  <bruno@clisp.org>
37543         memchr: Respect rules for use of AC_LIBOBJ.
37544         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37545         invocations from here...
37546         * modules/memchr (configure.ac): ... to here.
37548 2011-05-21  Bruno Haible  <bruno@clisp.org>
37550         mbtowc: Move AC_LIBOBJ invocations to module description.
37551         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37552         invocations from here...
37553         * modules/mbtowc (configure.ac): ... to here.
37555 2011-05-21  Bruno Haible  <bruno@clisp.org>
37557         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37558         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37559         gl_PREREQ_MBSRTOWCS invocations from here...
37560         * modules/mbsrtowcs (configure.ac): ... to here.
37562 2011-05-21  Bruno Haible  <bruno@clisp.org>
37564         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37565         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37566         gl_PREREQ_MBSNRTOWCS invocations from here...
37567         * modules/mbsnrtowcs (configure.ac): ... to here.
37569 2011-05-21  Bruno Haible  <bruno@clisp.org>
37571         mbsinit: Move AC_LIBOBJ invocations to module description.
37572         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37573         invocations from here...
37574         * modules/mbsinit (configure.ac): ... to here.
37576 2011-05-21  Bruno Haible  <bruno@clisp.org>
37578         mbrlen: Move AC_LIBOBJ invocations to module description.
37579         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37580         invocations from here...
37581         * modules/mbrlen (configure.ac): ... to here.
37583 2011-05-21  Bruno Haible  <bruno@clisp.org>
37585         mbrtowc: Respect rules for use of AC_LIBOBJ.
37586         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37587         invocations from here...
37588         * modules/mbrtowc (configure.ac): ... to here.
37590 2011-05-21  Bruno Haible  <bruno@clisp.org>
37592         malloc-*: Move AC_LIBOBJ invocations to module description.
37593         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37594         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37595         AC_LIBOBJ invocations from here...
37596         * modules/malloc-gnu (configure.ac): ... to here.
37597         * modules/malloc-posix (configure.ac): ... and here.
37599 2011-05-21  Bruno Haible  <bruno@clisp.org>
37601         lstat, openat: Respect rules for use of AC_LIBOBJ.
37602         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37603         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37604         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37605         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37606         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37607         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37608         here.
37609         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37611 2011-05-21  Bruno Haible  <bruno@clisp.org>
37613         lseek: Move AC_LIBOBJ invocations to module description.
37614         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37615         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37616         * modules/lseek (configure.ac): ... to here.
37618 2011-05-21  Bruno Haible  <bruno@clisp.org>
37620         linkat: Move AC_LIBOBJ invocations to module description.
37621         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37622         here...
37623         * modules/linkat (configure.ac): ... to here.
37625 2011-05-21  Bruno Haible  <bruno@clisp.org>
37627         link: Respect rules for use of AC_LIBOBJ.
37628         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37629         * modules/link (configure.ac): ... to here.
37631 2011-05-21  Bruno Haible  <bruno@clisp.org>
37633         lchown: Move AC_LIBOBJ invocations to module description.
37634         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37635         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37636         * modules/lchown (configure.ac): ... to here.
37638 2011-05-21  Bruno Haible  <bruno@clisp.org>
37640         iswctype: Move AC_LIBOBJ invocations to module description.
37641         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37642         here...
37643         * modules/iswctype (configure.ac): ... to here.
37645 2011-05-21  Bruno Haible  <bruno@clisp.org>
37647         iswblank: Move AC_LIBOBJ invocations to module description.
37648         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37649         here...
37650         * modules/iswblank (configure.ac): ... to here.
37652 2011-05-21  Bruno Haible  <bruno@clisp.org>
37654         atanl: Move AC_LIBOBJ invocations to module description.
37655         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37656         * modules/atanl (configure.ac): ... to here.
37658 2011-05-21  Bruno Haible  <bruno@clisp.org>
37660         acosl: Move AC_LIBOBJ invocations to module description.
37661         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37662         * modules/acosl (configure.ac): ... to here.
37664 2011-05-21  Bruno Haible  <bruno@clisp.org>
37666         asinl: Respect rules for use of AC_LIBOBJ.
37667         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37668         * modules/asinl (configure.ac): ... to here.
37670 2011-05-21  Bruno Haible  <bruno@clisp.org>
37672         tanl: Move AC_LIBOBJ invocations to module description.
37673         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37674         * modules/tanl (configure.ac): ... to here.
37676 2011-05-21  Bruno Haible  <bruno@clisp.org>
37678         cosl: Move AC_LIBOBJ invocations to module description.
37679         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37680         * modules/cosl (configure.ac): ... to here.
37682 2011-05-21  Bruno Haible  <bruno@clisp.org>
37684         sinl: Move AC_LIBOBJ invocations to module description.
37685         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37686         * modules/sinl (configure.ac): ... to here.
37688 2011-05-21  Bruno Haible  <bruno@clisp.org>
37690         logl: Move AC_LIBOBJ invocations to module description.
37691         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37692         * modules/logl (configure.ac): ... to here.
37694 2011-05-21  Bruno Haible  <bruno@clisp.org>
37696         expl: Move AC_LIBOBJ invocations to module description.
37697         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37698         * modules/expl (configure.ac): ... to here.
37700 2011-05-21  Bruno Haible  <bruno@clisp.org>
37702         roundl: Move AC_LIBOBJ invocations to module description.
37703         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37704         * modules/roundl (configure.ac): ... to here.
37706 2011-05-21  Bruno Haible  <bruno@clisp.org>
37708         round: Move AC_LIBOBJ invocations to module description.
37709         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37710         * modules/round (configure.ac): ... to here.
37712 2011-05-21  Bruno Haible  <bruno@clisp.org>
37714         roundf: Move AC_LIBOBJ invocations to module description.
37715         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37716         * modules/roundf (configure.ac): ... to here.
37718 2011-05-21  Bruno Haible  <bruno@clisp.org>
37720         truncl: Move AC_LIBOBJ invocations to module description.
37721         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37722         * modules/truncl (configure.ac): ... to here.
37724 2011-05-21  Bruno Haible  <bruno@clisp.org>
37726         trunc: Move AC_LIBOBJ invocations to module description.
37727         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37728         * modules/trunc (configure.ac): ... to here.
37730 2011-05-21  Bruno Haible  <bruno@clisp.org>
37732         truncf: Move AC_LIBOBJ invocations to module description.
37733         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37734         * modules/truncf (configure.ac): ... to here.
37736 2011-05-21  Bruno Haible  <bruno@clisp.org>
37738         ceill: Move AC_LIBOBJ invocations to module description.
37739         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37740         * modules/ceill (configure.ac): ... to here.
37742 2011-05-21  Bruno Haible  <bruno@clisp.org>
37744         ceil: Move AC_LIBOBJ invocations to module description.
37745         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37746         * modules/ceil (configure.ac): ... to here.
37748 2011-05-21  Bruno Haible  <bruno@clisp.org>
37750         ceilf: Move AC_LIBOBJ invocations to module description.
37751         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37752         * modules/ceilf (configure.ac): ... to here.
37754 2011-05-21  Bruno Haible  <bruno@clisp.org>
37756         floorl: Respect rules for use of AC_LIBOBJ.
37757         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37758         * modules/floorl (configure.ac): ... to here.
37760 2011-05-21  Bruno Haible  <bruno@clisp.org>
37762         floor: Respect rules for use of AC_LIBOBJ.
37763         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37764         * modules/floor (configure.ac): ... to here.
37766 2011-05-21  Bruno Haible  <bruno@clisp.org>
37768         floorf: Move AC_LIBOBJ invocations to module description.
37769         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37770         * modules/floorf (configure.ac): ... to here.
37772 2011-05-20  Bruno Haible  <bruno@clisp.org>
37774         sqrtl: Respect rules for use of AC_LIBOBJ.
37775         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37776         * modules/sqrtl (configure.ac): ... to here.
37778 2011-05-20  Bruno Haible  <bruno@clisp.org>
37780         ldexpl: Respect rules for use of AC_LIBOBJ.
37781         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37782         * modules/ldexpl (configure.ac): ... to here.
37784 2011-05-20  Bruno Haible  <bruno@clisp.org>
37786         frexpl*: Respect rules for use of AC_LIBOBJ.
37787         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37788         invocation from here...
37789         * modules/frexpl (configure.ac): ... to here.
37790         * modules/frexpl-nolibm (configure.ac): ... and here.
37792 2011-05-20  Bruno Haible  <bruno@clisp.org>
37794         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37795         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37796         invocation from here...
37797         * modules/frexp (configure.ac): ... to here.
37798         * modules/frexp-nolibm (configure.ac): ... and here.
37800 2011-05-20  Bruno Haible  <bruno@clisp.org>
37802         isnan: Respect rules for use of AC_LIBOBJ.
37803         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37804         invocations here.
37805         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37806         REPLACE_ISNAN.
37807         * modules/isnand (configure.ac): Likewise.
37808         * modules/isnanl (configure.ac): Likewise.
37810 2011-05-20  Bruno Haible  <bruno@clisp.org>
37812         isnanl*: Respect rules for use of AC_LIBOBJ.
37813         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37814         invocation from here...
37815         * modules/isnanl (configure.ac): ... to here.
37816         * modules/isnanl-nolibm (configure.ac): ... and here.
37818 2011-05-20  Bruno Haible  <bruno@clisp.org>
37820         isnand*: Move AC_LIBOBJ invocations to module description.
37821         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37822         invocation from here...
37823         * modules/isnand (configure.ac): ... to here.
37824         * modules/isnand-nolibm (configure.ac): ... and here.
37826 2011-05-20  Bruno Haible  <bruno@clisp.org>
37828         isnanf*: Move AC_LIBOBJ invocations to module description.
37829         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37830         invocation from here...
37831         * modules/isnanf (configure.ac): ... to here.
37832         * modules/isnanf-nolibm (configure.ac): ... and here.
37834 2011-05-20  Bruno Haible  <bruno@clisp.org>
37836         isnan*: Separate the AC_LIBOBJ invocations.
37837         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37838         AC_LIBOBJ invocation.
37839         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37840         here.
37841         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37842         AC_LIBOBJ invocation.
37843         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37844         here.
37845         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37846         AC_LIBOBJ invocation.
37847         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37848         here.
37849         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37851 2011-05-08  Bruno Haible  <bruno@clisp.org>
37853         isinf: Move AC_LIBOBJ invocations to module description.
37854         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37855         * modules/isinf (configure.ac): ... to here.
37857 2011-05-08  Bruno Haible  <bruno@clisp.org>
37859         isfinite: Move AC_LIBOBJ invocations to module description.
37860         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37861         * modules/isfinite (configure.ac): ... to here.
37863 2011-05-08  Bruno Haible  <bruno@clisp.org>
37865         isblank: Move AC_LIBOBJ invocations to module description.
37866         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37867         here...
37868         * modules/isblank (configure.ac): ... to here.
37870 2011-05-08  Bruno Haible  <bruno@clisp.org>
37872         isapipe: Move AC_LIBOBJ invocations to module description.
37873         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37874         gl_PREREQ_ISAPIPE invocations from here...
37875         * modules/isapipe (configure.ac): ... to here.
37876         (Depends-on): Update condition.
37878 2011-05-08  Bruno Haible  <bruno@clisp.org>
37880         ioctl: Move AC_LIBOBJ invocations to module description.
37881         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37882         invocations from here...
37883         * modules/ioctl (configure.ac): ... to here.
37884         (Depends-on): Update condition.
37886 2011-05-08  Bruno Haible  <bruno@clisp.org>
37888         imaxdiv: Move AC_LIBOBJ invocations to module description.
37889         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37890         invocations from here...
37891         * modules/imaxdiv (configure.ac): ... to here.
37893 2011-05-08  Bruno Haible  <bruno@clisp.org>
37895         imaxabs: Move AC_LIBOBJ invocations to module description.
37896         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37897         invocations from here...
37898         * modules/imaxabs (configure.ac): ... to here.
37900 2011-05-08  Bruno Haible  <bruno@clisp.org>
37902         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37904         AC_LIBOBJ invocations from here...
37905         * modules/getaddrinfo (configure.ac): ... to here.
37906         (Depends-on): Add conditions.
37908 2011-05-08  Bruno Haible  <bruno@clisp.org>
37910         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37911         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37912         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37913         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37914         (gl_PREREQ_INET_PTON): ... from here.
37915         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37916         gl_PREREQ_INET_PTON here.
37917         (Depends-on): Update condition.
37919 2011-05-08  Bruno Haible  <bruno@clisp.org>
37921         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37922         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37923         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37924         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37925         (gl_PREREQ_INET_NTOP): ... from here.
37926         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37927         gl_PREREQ_INET_NTOP here.
37928         (Depends-on): Update condition.
37930 2011-05-08  Bruno Haible  <bruno@clisp.org>
37932         iconv_open: Move AC_LIBOBJ invocations to module description.
37933         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37934         AC_LIBOBJ invocations from here...
37935         * modules/iconv_open (configure.ac): ... to here.
37937 2011-05-08  Bruno Haible  <bruno@clisp.org>
37939         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37940         If module 'iconv_open' is among the main modules and module
37941         'iconv_open-utf' is among the tests dependencies, then
37942         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37943         return the special iconv_t values. Therefore iconv() and iconv_close()
37944         must support these special iconv_t values, already in lib, not only in
37945         tests.
37946         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37947         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37948         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37949         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37950         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37951         (Depends-on): Add the dependencies of iconv_open-utf.
37952         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37953         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37954         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37956 2011-05-08  Bruno Haible  <bruno@clisp.org>
37958         group-member: Move AC_LIBOBJ invocations to module description.
37959         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37960         gl_PREREQ_GROUP_MEMBER invocations from here...
37961         * modules/group-member (configure.ac): ... to here.
37963 2011-05-08  Bruno Haible  <bruno@clisp.org>
37965         grantpt: Move AC_LIBOBJ invocations to module description.
37966         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37967         invocations from here...
37968         * modules/grantpt (configure.ac): ... to here.
37970 2011-05-08  Bruno Haible  <bruno@clisp.org>
37972         glob: Move AC_LIBOBJ invocations to module description.
37973         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37974         from here...
37975         * modules/glob (configure.ac): ... to here.
37977 2011-05-08  Bruno Haible  <bruno@clisp.org>
37979         getusershell: Move AC_LIBOBJ invocations to module description.
37980         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37981         Move AC_LIBOBJ invocation from here...
37982         * modules/getusershell (configure.ac): ... to here.
37983         (Depends-on): Update condition.
37985 2011-05-08  Bruno Haible  <bruno@clisp.org>
37987         gettimeofday: Move AC_LIBOBJ invocations to module description.
37988         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37989         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37990         gl_PREREQ_GETTIMEOFDAY invocations from here...
37991         * modules/gettimeofday (configure.ac): ... to here.
37993 2011-05-08  Bruno Haible  <bruno@clisp.org>
37995         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37996         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37997         just gl_FUNC_TZSET.
37998         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37999         (gl_FUNC_TZSET_CLOBBER): Remove actions.
38000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
38001         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
38003 2011-05-08  Bruno Haible  <bruno@clisp.org>
38005         getsubopt: Move AC_LIBOBJ invocations to module description.
38006         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
38007         gl_PREREQ_GETSUBOPT invocations from here...
38008         * modules/getsubopt (configure.ac): ... to here.
38010 2011-05-08  Bruno Haible  <bruno@clisp.org>
38012         getpass-gnu: Move AC_LIBOBJ invocations to module description.
38013         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
38014         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
38015         * modules/getpass-gnu (configure.ac): ... to here.
38017 2011-05-08  Bruno Haible  <bruno@clisp.org>
38019         getpass: Move AC_LIBOBJ invocations to module description.
38020         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
38021         gl_PREREQ_GETPASS invocations from here...
38022         * modules/getpass (configure.ac): ... to here.
38024 2011-05-08  Bruno Haible  <bruno@clisp.org>
38026         getpagesize: Move AC_LIBOBJ invocations to module description.
38027         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
38028         from here...
38029         * modules/getpagesize (configure.ac): ... to here.
38031 2011-05-08  Bruno Haible  <bruno@clisp.org>
38033         getopt: Move AC_LIBOBJ invocations to module description.
38034         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
38035         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
38036         invocations from here...
38037         * modules/getopt-gnu (configure.ac): ... to here.
38038         * modules/getopt-posix (configure.ac): ... and here.
38039         (Depends-on): Update condition.
38041 2011-05-08  Bruno Haible  <bruno@clisp.org>
38043         getopt, argp: Respect rules for use of AC_LIBOBJ.
38044         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
38045         (gl_REPLACE_GETOPT_ALWAYS): New macro.
38046         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
38047         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
38049 2011-05-08  Bruno Haible  <bruno@clisp.org>
38051         getlogin_r: Move AC_LIBOBJ invocations to module description.
38052         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
38053         gl_PREREQ_GETLOGIN_R invocations from here...
38054         * modules/getlogin_r (configure.ac): ... to here.
38056 2011-05-08  Bruno Haible  <bruno@clisp.org>
38058         getlogin: Move AC_LIBOBJ invocations to module description.
38059         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
38060         here...
38061         * modules/getlogin (configure.ac): ... to here.
38063 2011-05-08  Bruno Haible  <bruno@clisp.org>
38065         getloadavg: Move AC_LIBOBJ invocations to module description.
38066         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
38067         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
38068         * modules/getloadavg (configure.ac): ... to here.
38070 2011-05-08  Bruno Haible  <bruno@clisp.org>
38072         gethrxtime: Move AC_LIBOBJ invocations to module description.
38073         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
38074         LIB_GETHRXTIME from here...
38075         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
38076         invocations from here...
38077         * modules/gethrxtime (configure.ac): ... to here.
38079 2011-05-08  Bruno Haible  <bruno@clisp.org>
38081         gethostname: Move AC_LIBOBJ invocations to module description.
38082         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
38083         gl_PREREQ_GETHOSTNAME invocations from here...
38084         * modules/gethostname (configure.ac): ... to here.
38086 2011-05-08  Bruno Haible  <bruno@clisp.org>
38088         getgroups: Move AC_LIBOBJ invocations to module description.
38089         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
38090         here...
38091         * modules/getgroups (configure.ac): ... to here.
38093 2011-05-08  Bruno Haible  <bruno@clisp.org>
38095         getdtablesize: Move AC_LIBOBJ invocations to module description.
38096         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
38097         invocation from here...
38098         * modules/getdtablesize (configure.ac): ... to here.
38100 2011-05-08  Bruno Haible  <bruno@clisp.org>
38102         getdomainname: Move AC_LIBOBJ invocations to module description.
38103         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
38104         gl_PREREQ_GETDOMAINNAME invocations from here...
38105         * modules/getdomainname (configure.ac): ... to here.
38107 2011-05-08  Bruno Haible  <bruno@clisp.org>
38109         getline: Move AC_LIBOBJ invocations to module description.
38110         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
38111         invocations from here...
38112         * modules/getline (configure.ac): ... to here.
38114 2011-05-08  Bruno Haible  <bruno@clisp.org>
38116         getline: Simplify.
38117         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
38118         It's already handled through the module dependency.
38120 2011-05-08  Bruno Haible  <bruno@clisp.org>
38122         getdelim: Move AC_LIBOBJ invocations to module description.
38123         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
38124         and gl_PREREQ_GETDELIM invocations from here...
38125         * modules/getdelim (configure.ac): ... to here.
38126         (Depends-on): Fix condition.
38128 2011-05-08  Bruno Haible  <bruno@clisp.org>
38130         getcwd: Move AC_LIBOBJ invocations to module description.
38131         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
38132         invocations from here...
38133         * modules/getcwd (configure.ac): ... to here.
38135 2011-05-08  Bruno Haible  <bruno@clisp.org>
38137         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
38138         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
38139         here...
38140         * modules/getcwd-lgpl (configure.ac): ... to here.
38142 2011-05-07  Bruno Haible  <bruno@clisp.org>
38144         crypto/gc: Move AC_LIBOBJ invocations to module description.
38145         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
38146         * modules/crypto/gc (configure.ac): ... to here.
38148 2011-05-07  Bruno Haible  <bruno@clisp.org>
38150         fwriting: Move AC_LIBOBJ invocations to module description.
38151         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
38152         here...
38153         * modules/fwriting (configure.ac): ... to here.
38155 2011-05-07  Bruno Haible  <bruno@clisp.org>
38157         fwritable: Move AC_LIBOBJ invocations to module description.
38158         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
38159         here...
38160         * modules/fwritable (configure.ac): ... to here.
38162 2011-05-07  Bruno Haible  <bruno@clisp.org>
38164         futimens: Move AC_LIBOBJ invocations to module description.
38165         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
38166         here...
38167         * modules/futimens (configure.ac): ... to here.
38169 2011-05-07  Bruno Haible  <bruno@clisp.org>
38171         ftruncate: Move AC_LIBOBJ invocations to module description.
38172         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
38173         gl_PREREQ_FTRUNCATE invocations from here...
38174         * modules/ftruncate (configure.ac): ... to here.
38176 2011-05-07  Bruno Haible  <bruno@clisp.org>
38178         fsync: Move AC_LIBOBJ invocations to module description.
38179         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
38180         invocations from here...
38181         * modules/fsync (configure.ac): ... to here.
38183 2011-05-07  Bruno Haible  <bruno@clisp.org>
38185         fsusage: Move AC_LIBOBJ invocations to module description.
38186         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
38187         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
38188         * modules/fsusage (configure.ac): ... to here.
38190 2011-05-07  Bruno Haible  <bruno@clisp.org>
38192         freopen: Move AC_LIBOBJ invocations to module description.
38193         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
38194         invocations from here...
38195         * modules/freopen (configure.ac): ... to here.
38197 2011-05-07  Bruno Haible  <bruno@clisp.org>
38199         free: Move AC_LIBOBJ invocations to module description.
38200         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
38201         invocations from here...
38202         * modules/free (configure.ac): ... to here.
38204 2011-05-07  Bruno Haible  <bruno@clisp.org>
38206         freadable: Move AC_LIBOBJ invocations to module description.
38207         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
38208         here...
38209         * modules/freadable (configure.ac): ... to here.
38211 2011-05-07  Bruno Haible  <bruno@clisp.org>
38213         fpurge: Move AC_LIBOBJ invocations to module description.
38214         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
38215         invocations from here...
38216         * modules/fpurge (configure.ac): ... to here.
38218 2011-05-07  Bruno Haible  <bruno@clisp.org>
38220         fpending: Move AC_LIBOBJ invocations to module description.
38221         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
38222         gl_FUNC_FPENDING.
38223         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
38224         invocations from here...
38225         * modules/fpending (configure.ac): ... to here.
38227 2011-05-07  Bruno Haible  <bruno@clisp.org>
38229         fopen: Move AC_LIBOBJ invocations to module description.
38230         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
38231         invocations from here...
38232         * modules/fopen (configure.ac): ... to here.
38234 2011-05-07  Bruno Haible  <bruno@clisp.org>
38236         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
38237         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
38238         gl_FUNC_FNMATCH_POSIX.
38239         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
38240         invocations from here...
38241         * modules/fnmatch (configure.ac): ... to here.
38242         * modules/fnmatch-gnu (configure.ac): ... and here.
38244 2011-05-07  Bruno Haible  <bruno@clisp.org>
38246         flock: Move AC_LIBOBJ invocations to module description.
38247         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38248         invocations from here...
38249         * modules/flock (configure.ac): ... to here.
38251 2011-05-07  Bruno Haible  <bruno@clisp.org>
38253         fileblocks: Move AC_LIBOBJ invocations to module description.
38254         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
38255         gl_PREREQ_FILEBLOCKS invocations from here...
38256         * modules/fileblocks (configure.ac): ... to here.
38258 2011-05-06  Bruno Haible  <bruno@clisp.org>
38260         fflush: Move AC_LIBOBJ invocations to module description.
38261         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
38262         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
38263         invocations from here...
38264         * modules/fflush (configure.ac): ... to here.
38266 2011-05-06  Bruno Haible  <bruno@clisp.org>
38268         fdopendir: Move AC_LIBOBJ invocations to module description.
38269         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
38270         here...
38271         * modules/fdopendir (configure.ac): ... to here.
38272         (Depends-on): Improve conditions.
38274 2011-05-06  Bruno Haible  <bruno@clisp.org>
38276         _Exit: Move AC_LIBOBJ invocations to module description.
38277         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
38278         invocations from here...
38279         * modules/_Exit (configure.ac): ... to here.
38281 2011-05-21  Bruno Haible  <bruno@clisp.org>
38283         euidaccess: Respect rules for use of AC_LIBOBJ.
38284         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
38285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
38286         from here...
38287         * modules/euidaccess (configure.ac): ... to here.
38289 2011-05-06  Bruno Haible  <bruno@clisp.org>
38291         error: Move AC_LIBOBJ invocations to module description.
38292         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
38293         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
38294         invocations from here...
38295         * modules/error (configure.ac): ... to here.
38297 2011-05-06  Bruno Haible  <bruno@clisp.org>
38299         duplocale: Move AC_LIBOBJ invocations to module description.
38300         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
38301         gl_PREREQ_DUPLOCALE invocations from here...
38302         * modules/duplocale (configure.ac): ... to here.
38304 2011-05-05  Bruno Haible  <bruno@clisp.org>
38306         dirfd: Move AC_LIBOBJ invocations to module description.
38307         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
38308         gl_FUNC_DIRFD.
38309         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
38310         here...
38311         * modules/dirfd (configure.ac): ... to here.
38312         (Depends-on): Fix condition.
38314 2011-05-05  Bruno Haible  <bruno@clisp.org>
38316         chown: Respect rules for use of AC_LIBOBJ.
38317         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
38318         * modules/chown (configure.ac): ... to here.
38320 2011-05-05  Bruno Haible  <bruno@clisp.org>
38322         chdir-long: Move AC_LIBOBJ invocations to module description.
38323         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
38324         gl_PREREQ_CHDIR_LONG invocations from here...
38325         * modules/chdir-long (configure.ac): ... to here.
38327 2011-05-05  Bruno Haible  <bruno@clisp.org>
38329         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38330         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38331         from here...
38332         * modules/canonicalize-lgpl (configure.ac): ... to here.
38334 2011-05-05  Bruno Haible  <bruno@clisp.org>
38336         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38337         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38338         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38339         REPLACE_CALLOC.
38340         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38341         * modules/calloc-gnu (configure.ac): Likewise.
38343 2011-05-05  Bruno Haible  <bruno@clisp.org>
38345         btowc: Move AC_LIBOBJ invocations to module description.
38346         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38347         invocations from here...
38348         * modules/btowc (configure.ac): ... to here.
38350 2011-05-21  Bruno Haible  <bruno@clisp.org>
38352         atexit: Move AC_LIBOBJ invocations to module description.
38353         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38355         here...
38356         * modules/atexit (configure.ac): ... to here.
38358 2011-05-05  Bruno Haible  <bruno@clisp.org>
38360         atoll: Move AC_LIBOBJ invocations to module description.
38361         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38362         invocations from here...
38363         * modules/atoll (configure.ac): ... to here.
38365 2011-05-05  Bruno Haible  <bruno@clisp.org>
38367         argz: Move AC_LIBOBJ invocations to module description.
38368         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38369         * modules/argz (configure.ac): ... to here.
38371 2011-05-05  Bruno Haible  <bruno@clisp.org>
38373         alphasort: Move AC_LIBOBJ invocations to module description.
38374         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38375         gl_PREREQ_ALPHASORT invocations from here...
38376         * modules/alphasort (configure.ac): ... to here.
38378 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38380         verify: new macro verify_expr; verify_true deprecated
38381         * NEWS: Mention this.
38382         * doc/verify.texi (Compile-time Assertions): Document this.
38383         * lib/verify.h (verify_true): Deprecate.
38384         (verify_expr): New macro.
38385         * tests/test-verify.c (function): Test verify_expr.
38387 2011-06-14  Jim Meyering  <meyering@redhat.com>
38389         init.sh: give more portable redirection-related advice in a comment
38390         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38391         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38392         for lots of discussion.  Stefano Lattarini suggested the solution
38393         of putting "9>&2" after the command.  Reported by Bruno Haible.
38395 2011-06-13  Bruno Haible  <bruno@clisp.org>
38397         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38399         'none'.
38401 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38403         ftoastr: use strtof only if HAVE_STRTOF
38404         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38405         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38406         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38407         * modules/ftoastr (configure.ac): Check for strtof.
38409 2011-06-13  Bruno Haible  <bruno@clisp.org>
38411         gnulib-tool: Addendum to 2011-06-08 commit.
38412         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38413         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38415 2011-06-13  Bruno Haible  <bruno@clisp.org>
38417         fseeko: Provide a non-inline replacement of fseek().
38418         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38419         * modules/fseeko (Depends-on): Add fseek.
38420         * modules/fseek (License): Change to LGPLv2+.
38422 2011-06-13  Bruno Haible  <bruno@clisp.org>
38424         ftello: Provide a non-inline replacement of ftell().
38425         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38426         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38427         not have ftello() (such as on mingw).
38428         * modules/ftello (Depends-on): Add ftell.
38429         * modules/ftell (License): Change to LGPLv2+.
38431 2011-05-07  Bruno Haible  <bruno@clisp.org>
38433         ftell: Move AC_LIBOBJ invocations to module description.
38434         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38435         * modules/ftell (configure.ac): ... to here.
38437 2011-05-07  Bruno Haible  <bruno@clisp.org>
38439         ftello: Respect rules for use of AC_LIBOBJ.
38440         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38441         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38442         here...
38443         * modules/ftello (configure.ac): ... to here.
38445 2011-05-07  Bruno Haible  <bruno@clisp.org>
38447         fseeko: Simplify.
38448         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38449         (gl_FUNC_FSEEKO): Inline it here.
38451 2011-05-07  Bruno Haible  <bruno@clisp.org>
38453         fseek: Move AC_LIBOBJ invocations to module description.
38454         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38455         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38456         * modules/fseek (configure.ac): ... to here.
38458 2011-05-07  Bruno Haible  <bruno@clisp.org>
38460         fseek: Respect rules for use of AC_LIBOBJ.
38461         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38462         here...
38463         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38465 2011-05-07  Bruno Haible  <bruno@clisp.org>
38467         fseeko: Respect rules for use of AC_LIBOBJ.
38468         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38469         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38470         here...
38471         * modules/fseeko (configure.ac): ... to here.
38473 2011-06-13  Bruno Haible  <bruno@clisp.org>
38475         gnulib-tool: Allow comments in the 'Depends-on' section.
38476         * doc/gnulib.texi (Module description): Mention comment syntax in the
38477         Depends-on section.
38478         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38480 2011-06-13  Bruno Haible  <bruno@clisp.org>
38482         file-set.h: guard __attibute__ use, now that it's not always defined
38483         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38484         versions that support it.  This fixes a coreutils build failure with
38485         the vendor cc on HP-UX 11.31.
38487 2011-06-12  Bruno Haible  <bruno@clisp.org>
38489         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38490         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38491         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38492         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38493         (acl, aclsort): New declarations.
38494         (aclv_nontrivial): New declaration.
38495         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38496         (file_has_acl): Read also the second kind of HP-UX ACLs.
38497         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38498         kind of HP-UX ACLs if the first kind fails.
38499         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38500         second kind of HP-UX ACLs.
38501         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38502         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38503         agree.
38504         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38505         hpuxjfs.
38506         Handle hpuxjfs.
38507         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38508         hpuxjfs.
38509         Handle hpuxjfs.
38510         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38511         (func_test_same_acls): Use both lsacl and getacl.
38512         Handle hpuxjfs.
38513         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38514         (func_test_same_acls): Use both lsacl and getacl.
38515         Handle hpuxjfs.
38517 2011-06-12  Bruno Haible  <bruno@clisp.org>
38519         acl: Complete the 2010-08-10 fix.
38520         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38521         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38522         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38523         explicitly.
38524         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38525         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38527 2011-06-12  Bruno Haible  <bruno@clisp.org>
38529         spawn-pipe tests: Comments.
38530         * tests/test-spawn-pipe-child.c (main): Update comment.
38531         Reported by James Youngman <jay@gnu.org>.
38533 2011-06-11  James Youngman  <jay@gnu.org>
38535         New module 'stat-size'.
38536         * modules/stat-size: New module.  Provides macros for accessing
38537         file size information in instances of struct stat.  Depends on the
38538         fileblocks module because it calls st_blocks.
38539         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38540         * doc/gnulib.texi: Include stat-size.texi.
38541         * doc/stat-size.texi: Documentation for this module.
38542         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38543         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38544         AC_STRUCT_ST_BLOCKS.
38546 2011-06-09  Bruno Haible  <bruno@clisp.org>
38548         thread: Support pthreads-win32.
38549         * lib/glthread/thread.h (gl_thread_self): Define differently on
38550         pthreads-win32.
38551         (gl_null_thread): New declaration.
38552         (gl_thread_self_pointer): New macro.
38553         * lib/glthread/thread.c (gl_null_thread): New constant.
38554         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38555         gl_thread_self.
38556         * tests/test-tls.c: Likewise.
38557         Suggested by Paul Eggert. Reported by Eric Blake.
38559 2011-06-09  Bruno Haible  <bruno@clisp.org>
38561         thread: Fix confusion between NULL and 0.
38562         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38563         Reported by Paul Eggert.
38565 2011-06-09  Bruno Haible  <bruno@clisp.org>
38567         spawn-pipe tests: Avoid test failure on HP-UX 11.
38568         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38569         is closed.
38571 2011-06-09  Bruno Haible  <bruno@clisp.org>
38573         acl tests: Fix compilation error on HP-UX 11.
38574         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38576 2011-06-09  Bruno Haible  <bruno@clisp.org>
38578         rmdir: Avoid test failure on HP-UX 10.20.
38579         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38580         EEXIST.
38582 2011-06-08  Eric Blake  <eblake@redhat.com>
38584         perror: fix test on mingw
38585         * modules/perror-tests (Depends-on): Add dup2.
38587         strerror_r-posix: fix on MacOS
38588         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38589         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38590         logic bug.
38591         * lib/strerror_r.c (strerror_r): Fix the bug.
38592         * lib/strerror.c (strerror): Likewise.
38593         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38594         problem.
38595         * doc/posix-functions/strerror.texi (strerror): Likewise.
38596         * doc/posix-functions/perror.texi (perror): Likewise.
38597         * tests/test-strerror.c (main): Enhance test.
38598         * tests/test-strerror_r.c (main): Likewise.
38600 2011-06-08  Bruno Haible  <bruno@clisp.org>
38602         gnulib-tool: Better isolation between different gnulib-tool invocations.
38603         * gnulib-tool: New option --witness-c-macro.
38604         (witness_c_macro): New variable.
38605         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38606         AM_CPPFLAGS define it as a C macro.
38607         (func_emit_tests_Makefile_am): Likewise.
38608         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38609         read it from there.
38610         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38611         m4_define, not AC_DEFUN.
38612         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38613         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38614         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38615         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38616         s|...|...|, to substitute the values of the GNULIB_* module indicator
38617         variables.
38618         * modules/dirent (Makefile.am): Likewise.
38619         * modules/fcntl-h (Makefile.am): Likewise.
38620         * modules/iconv-h (Makefile.am): Likewise.
38621         * modules/langinfo (Makefile.am): Likewise.
38622         * modules/locale (Makefile.am): Likewise.
38623         * modules/math (Makefile.am): Likewise.
38624         * modules/netdb (Makefile.am): Likewise.
38625         * modules/poll-h (Makefile.am): Likewise.
38626         * modules/pty (Makefile.am): Likewise.
38627         * modules/search (Makefile.am): Likewise.
38628         * modules/signal (Makefile.am): Likewise.
38629         * modules/spawn (Makefile.am): Likewise.
38630         * modules/stdio (Makefile.am): Likewise.
38631         * modules/stdlib (Makefile.am): Likewise.
38632         * modules/string (Makefile.am): Likewise.
38633         * modules/sys_ioctl (Makefile.am): Likewise.
38634         * modules/sys_select (Makefile.am): Likewise.
38635         * modules/sys_socket (Makefile.am): Likewise.
38636         * modules/sys_stat (Makefile.am): Likewise.
38637         * modules/sys_times (Makefile.am): Likewise.
38638         * modules/sys_utsname (Makefile.am): Likewise.
38639         * modules/sys_wait (Makefile.am): Likewise.
38640         * modules/termios (Makefile.am): Likewise.
38641         * modules/time (Makefile.am): Likewise.
38642         * modules/unistd (Makefile.am): Likewise.
38643         * modules/wchar (Makefile.am): Likewise.
38645 2011-06-08  Eric Blake  <eblake@redhat.com>
38647         strerror: simplify replacement
38648         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38649         * modules/strerror (configure.ac): No prereqs needed here...
38650         * modules/strerror-override (configure.ac): ...but this needs it.
38651         (Files): Add file for needed prereq macro.
38653 2011-06-08  Bruno Haible  <bruno@clisp.org>
38655         strerror_r-posix: Tweaks.
38656         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38657         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38658         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38659         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38660         (gl_FUNC_STRERROR_R): ... to here.
38661         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38663 2011-06-07  Eric Blake  <eblake@redhat.com>
38665         perror: document fixed bugs
38666         * doc/posix-functions/perror.texi (perror): Document recent
38667         patches.
38669 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38671         stat-time: get_stat_birthtime failure is better-defined
38672         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38673         return a timestamp whose tv_sec and tv_nsec values are both -1.
38674         Previously, the spec said only that the tv_nsec value was negative.
38675         This upward-compatible change simplifies GNU tar a bit.
38677 2011-06-07  Eric Blake  <eblake@redhat.com>
38679         strerror_r-posix: work around cygwin 1.7.9
38680         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38681         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38682         bug without replacing strerror_r.
38683         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38684         strerror_r is buggy, but without requiring strerror_r compilation.
38685         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38687         test-perror: relax test to ignore cygwin bug
38688         * tests/test-perror2.c (main): Relax test on requiring detection
38689         of stream errors, and use unbuffered stream.
38690         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38691         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38692         * doc/posix-functions/fputc.texi (fputc): Likewise.
38693         * doc/posix-functions/fputs.texi (fputs): Likewise.
38694         * doc/posix-functions/fputws.texi (fputws): Likewise.
38695         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38696         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38697         * doc/posix-functions/getopt.texi (getopt): Likewise.
38698         * doc/posix-functions/perror.texi (perror): Likewise.
38699         * doc/posix-functions/printf.texi (printf): Likewise.
38700         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38701         * doc/posix-functions/psignal.texi (psignal): Likewise.
38702         * doc/posix-functions/putc.texi (putc): Likewise.
38703         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38704         Likewise.
38705         * doc/posix-functions/putchar.texi (putchar): Likewise.
38706         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38707         Likewise.
38708         * doc/posix-functions/puts.texi (puts): Likewise.
38709         * doc/posix-functions/putwc.texi (putwc): Likewise.
38710         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38711         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38712         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38713         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38714         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38715         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38716         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38717         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38719 2011-05-22  Bruno Haible  <bruno@clisp.org>
38721         strerror: Move AC_LIBOBJ invocations to module description.
38722         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38723         gl_PREREQ_STRERROR invocations from here...
38724         * modules/strerror (configure.ac): ... to here.
38726 2011-05-21  Bruno Haible  <bruno@clisp.org>
38728         perror: Use common idiom.
38729         * modules/perror (configure.ac): Reorder statements.
38731 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38733         tests: fix usage message in 'mktempd_'
38734         * tests/init.sh (mktempd_): In the usage message, use literal
38735         'mktempd_', not '$ME' (which is even undefined), as the name of
38736         the subroutine.
38738 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38740         tests init: new function 'fatal_', for hard errors
38741         Before this patch, the only way offered by tests/init.sh to
38742         properly signal a hard error was the `framework_failure_'
38743         function.  But the error message issued by that function,
38744         as its name would suggest, refers to a set-up failure in the
38745         testsuite, while hard errors can obviously also be due to
38746         other reasons.  The best way to fix this inconsistency is to
38747         introduce a new function with a more general error message.
38748         * tests/init.sh (fatal_): New function.
38750 2011-06-06  Eric Blake  <eblake@redhat.com>
38752         canonicalize-lgpl: use common idiom
38753         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38754         over newer POSIX -Rf.
38755         Reported by Bruno Haible.
38757         canonicalize-lgpl: work around AIX realpath bug
38758         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38759         * doc/posix-functions/realpath.texi (realpath): Document it.
38760         Reported by Bruno Haible.
38762         strerror: work around FreeBSD bug
38763         * lib/strerror.c (strerror): Special case 0.
38764         Reported by Bruno Haible.
38766         strerror-override: avoid bloating errno module
38767         * modules/errno (Files, configure.ac): Move replacement strings...
38768         * modules/strerror-override: ...to new module.
38769         * modules/strerror (Depends-on): Add strerror-override.
38770         * modules/strerror_r-posix (Depends-on): Likewise.
38771         * MODULES.html.sh: Document new module.
38772         Reported by Bruno Haible.
38774 2011-06-06  Bruno Haible  <bruno@clisp.org>
38776         spawn-pipe tests: Rename program.
38777         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38778         * tests/test-spawn-pipe-child.c: Update comment.
38779         * tests/test-spawn-pipe.sh: Update.
38780         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38782         spawn-pipe tests: Link the child program only against libc.
38783         * tests/test-spawn-pipe-child.c: New file, extracted from
38784         tests/test-spawn-pipe.c.
38785         (main): Expect only one argument.
38786         (is_open): New function, copied from tests/test-pipe.c.
38787         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38788         (child_main): Remove function.
38789         (test_pipe): Pass only one argument to the child program.
38790         (main): Remove child process code. Expect the child program's name as
38791         first argument.
38792         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38793         argument.
38794         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38795         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38796         test-spawn-pipe-child against no libraries.
38798 2011-06-06  Bruno Haible  <bruno@clisp.org>
38800         careadlinkat: Avoid mismatch between ssize_t and int.
38801         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38802         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38804 2011-06-06  Jim Meyering  <meyering@redhat.com>
38806         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38807         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38808         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38810 2011-06-05  Bruno Haible  <bruno@clisp.org>
38812         ansi-c++-opt: Interoperability with libtool.
38813         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38814         set the variable to "no", not to ":".
38815         * NEWS: Mention the change.
38817 2011-06-05  Bruno Haible  <bruno@clisp.org>
38819         acl: Fix test failure on AIX 7.
38820         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38821         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38823 2011-06-05  Bruno Haible  <bruno@clisp.org>
38825         pipe-filter-ii: Fix test failure on AIX and IRIX.
38826         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38827         with EAGAIN, retry with a smaller buffer size.
38829 2011-06-05  Bruno Haible  <bruno@clisp.org>
38831         localename: Fix link dependencies.
38832         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38833         * modules/localename-tests (Makefile.am): Link test-localename with
38834         $(LIBTHREAD).
38836 2011-06-05  Bruno Haible  <bruno@clisp.org>
38838         error: Avoid gcc warning.
38839         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38841 2011-06-05  Bruno Haible  <bruno@clisp.org>
38843         unsetenv: Avoid gcc warning.
38844         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38846 2011-06-05  Bruno Haible  <bruno@clisp.org>
38848         setenv: Avoid gcc warning.
38849         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38851 2011-06-05  Bruno Haible  <bruno@clisp.org>
38853         sys_select: Ensure memset is declared also on AIX 7.
38854         * lib/sys_select.in.h: Include <string.h> also on AIX.
38855         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38856         self-contained also on AIX 7.1.
38858 2011-06-04  Jim Meyering  <meyering@redhat.com>
38860         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38861         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38862         function name, "error".
38863         (_gl_translatable_diag_func_re): New configurable variable.
38865 2011-06-04  Bruno Haible  <bruno@clisp.org>
38867         getopt: Avoid gcc warning.
38868         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38870 2011-06-04  Bruno Haible  <bruno@clisp.org>
38872         strerror_r: Fix comments.
38873         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38874         commit.
38876 2011-06-04  Bruno Haible  <bruno@clisp.org>
38878         perror: Fix compilation error.
38879         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38880         Undefine fprintf, not sprintf.
38881         * modules/perror (Depends-on): Remove intprops, verify.
38883 2011-06-04  Bruno Haible  <bruno@clisp.org>
38885         setlocale: Enable replacement on Cygwin 1.5.
38886         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38887         Cygwin 1.5.x.
38888         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38889         LC_CTYPE category also exists on Cygwin 1.5.x.
38891 2011-06-04  Bruno Haible  <bruno@clisp.org>
38893         strerror-override: Don't disable symbol renamings.
38894         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38895         * lib/strerror-override.c: Include config.h.
38896         (strerror_override): Don't undefine.
38898 2011-06-03  Bruno Haible  <bruno@clisp.org>
38900         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38901         * lib/localename.h: Update copyright header.
38902         * lib/localename.c: Likewise.
38903         * lib/relocatable.h: Likewise.
38904         * lib/relocatable.c: Likewise.
38906 2011-06-02  Bruno Haible  <bruno@clisp.org>
38908         doc: Fix a module name.
38909         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38911 2011-06-02  Bruno Haible  <bruno@clisp.org>
38913         pipe2: Remove dependency on 'nonblocking' module.
38914         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38915         O_NONBLOCK is defined by gnulib.
38916         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38917         is zero.
38918         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38919         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38920         defined by gnulib.
38921         (get_nonblocking_flag): New function.
38922         (main): Test O_NONBLOCK flag only if it is nonzero.
38923         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38925 2011-06-03  Jim Meyering  <meyering@redhat.com>
38927         maint: three new prohibit-header-without-use rules
38928         Prohibit use of cloexec.h, posixver.h, same.h without use.
38929         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38930         (sc_prohibit_posixver_without_use): Likewise.
38931         (sc_prohibit_same_without_use): Likewise.
38933 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38935         allocator: 'die' routine is now given requested size
38936         * lib/allocator.h (struct allocator.die): New size arg.
38937         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38938         If the actual problem is an ssize_t limitation, not a size_t or
38939         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38941 2011-06-01  Eric Blake  <eblake@redhat.com>
38943         strerror: drop strerror_r dependency
38944         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38945         * lib/strerror-override.c (strerror_override): ...to new file.
38946         * lib/strerror-override.h: Add prototype.
38947         * lib/strerror-impl.h: Delete.
38948         * lib/strerror.c (strerror): New implementation.
38949         * modules/errno (Files): Add new files.
38950         (configure.ac): Compile new file as appropriate.
38951         * modules/strerror (Files): Drop unused file.
38952         (Depends-on): Drop strerror_r-posix.
38953         * MODULES.html.sh: Document strerror_r-posix.
38954         Requested by Sam Steingold.
38956         perror: call strerror_r directly
38957         * modules/perror (Files): Drop strerror-impl.h.
38958         * lib/perror.c (perror): Use our own stack buffer, rather than
38959         calling a wrapper that uses static storage.
38960         * doc/posix-functions/perror.texi (perror): Document a limitation
38961         of our replacement.
38963         strerror_r: fix includes for FreeBSD
38964         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38965         since we use abort on some platforms.
38966         Reported by Matthias Bolte.
38968 2011-05-31  Bruno Haible  <bruno@clisp.org>
38970         Fix link errors in tests: openat-die uses gettext-h.
38971         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38972         against $(LIBINTL).
38973         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38974         against $(LIBINTL).
38975         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38976         $(LIBINTL).
38977         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38978         against $(LIBINTL).
38979         * modules/linkat-tests (Makefile.am): Link test-linkat against
38980         $(LIBINTL).
38981         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38982         $(LIBINTL).
38983         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38984         against $(LIBINTL).
38985         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38986         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38987         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38988         $(LIBINTL).
38989         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38990         $(LIBINTL).
38991         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38992         $(LIBINTL).
38993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38995 2011-05-31  Bruno Haible  <bruno@clisp.org>
38997         Fix link errors in tests: wait-process uses gettext-h.
38998         * modules/nonblocking-pipe-tests (Makefile.am): Set
38999         test_nonblocking_pipe_main_LDADD.
39000         * modules/nonblocking-socket-tests (Makefile.am): Link
39001         test-nonblocking-socket-main against $(LIBINTL).
39002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39004 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39006         assert-h: work around 'verify' incompatibility
39007         * lib/verify.h: Use @...@ directives, not ifdef.
39008         * modules/assert-h (assert.h): Implement the directives.
39009         (assert.h): Substitute the symbol-prefix more consistently.
39011 2011-05-29  Jim Meyering  <meyering@redhat.com>
39013         trim: remove three superfluous assignments
39014         * lib/trim.c (trim2): Remove three superfluous assignments
39015         and correct brace positioning.
39017 2011-05-29  Bruno Haible  <bruno@clisp.org>
39019         wctype-h: Avoid namespace pollution on Solaris 2.6.
39020         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
39021         identifiers.
39022         * doc/posix-headers/wctype.texi: Mention the problem.
39023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39025 2011-05-28  Jim Meyering  <meyering@redhat.com>
39027         parse-datetime.y: accommodate -Wstrict-overflow
39028         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
39029         placate -Wstrict-overflow.
39031         trim: avoid a warning from -O2 -Wstrict-overflow
39032         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
39034 2011-05-29  Bruno Haible  <bruno@clisp.org>
39036         gnulib-tool: Fix bug in yesterday's commit.
39037         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
39038         twice.
39040 2011-05-29  Bruno Haible  <bruno@clisp.org>
39042         Allow multiple gnulib generated include files to be combined.
39043         * gnulib-tool (func_compute_include_guard_prefix): New function.
39044         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
39045         ${gl_include_guard_prefix} references.
39046         (func_import, func_create_testdir): Invoke
39047         func_compute_include_guard_prefix.
39048         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
39049         * lib/ctype.in.h: Likewise.
39050         * lib/dirent.in.h: Likewise.
39051         * lib/errno.in.h: Likewise.
39052         * lib/fcntl.in.h: Likewise.
39053         * lib/float.in.h: Likewise.
39054         * lib/getopt.in.h: Likewise.
39055         * lib/iconv.in.h: Likewise.
39056         * lib/langinfo.in.h: Likewise.
39057         * lib/locale.in.h: Likewise.
39058         * lib/math.in.h: Likewise.
39059         * lib/netdb.in.h: Likewise.
39060         * lib/netinet_in.in.h: Likewise.
39061         * lib/poll.in.h: Likewise.
39062         * lib/pthread.in.h: Likewise.
39063         * lib/pty.in.h: Likewise.
39064         * lib/sched.in.h: Likewise.
39065         * lib/se-selinux.in.h: Likewise.
39066         * lib/search.in.h: Likewise.
39067         * lib/signal.in.h: Likewise.
39068         * lib/spawn.in.h: Likewise.
39069         * lib/stdarg.in.h: Likewise.
39070         * lib/stddef.in.h: Likewise.
39071         * lib/stdint.in.h: Likewise.
39072         * lib/stdio.in.h: Likewise.
39073         * lib/stdlib.in.h: Likewise.
39074         * lib/string.in.h: Likewise.
39075         * lib/strings.in.h: Likewise.
39076         * lib/sys_file.in.h: Likewise.
39077         * lib/sys_ioctl.in.h: Likewise.
39078         * lib/sys_select.in.h: Likewise.
39079         * lib/sys_socket.in.h: Likewise.
39080         * lib/sys_stat.in.h: Likewise.
39081         * lib/sys_time.in.h: Likewise.
39082         * lib/sys_times.in.h: Likewise.
39083         * lib/sys_uio.in.h: Likewise.
39084         * lib/sys_utsname.in.h: Likewise.
39085         * lib/sys_wait.in.h: Likewise.
39086         * lib/sysexits.in.h: Likewise.
39087         * lib/termios.in.h: Likewise.
39088         * lib/time.in.h: Likewise.
39089         * lib/unistd.in.h: Likewise.
39090         * lib/wchar.in.h: Likewise.
39091         * lib/wctype.in.h: Likewise.
39092         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
39093         * modules/ctype (Makefile.am): Likewise.
39094         * modules/dirent (Makefile.am): Likewise.
39095         * modules/errno (Makefile.am): Likewise.
39096         * modules/fcntl-h (Makefile.am): Likewise.
39097         * modules/float (Makefile.am): Likewise.
39098         * modules/getopt-posix (Makefile.am): Likewise.
39099         * modules/iconv-h (Makefile.am): Likewise.
39100         * modules/langinfo (Makefile.am): Likewise.
39101         * modules/locale (Makefile.am): Likewise.
39102         * modules/math (Makefile.am): Likewise.
39103         * modules/netdb (Makefile.am): Likewise.
39104         * modules/netinet_in (Makefile.am): Likewise.
39105         * modules/poll-h (Makefile.am): Likewise.
39106         * modules/pthread (Makefile.am): Likewise.
39107         * modules/pty (Makefile.am): Likewise.
39108         * modules/sched (Makefile.am): Likewise.
39109         * modules/search (Makefile.am): Likewise.
39110         * modules/selinux-h (Makefile.am): Likewise.
39111         * modules/signal (Makefile.am): Likewise.
39112         * modules/spawn (Makefile.am): Likewise.
39113         * modules/stdarg (Makefile.am): Likewise.
39114         * modules/stddef (Makefile.am): Likewise.
39115         * modules/stdint (Makefile.am): Likewise.
39116         * modules/stdio (Makefile.am): Likewise.
39117         * modules/stdlib (Makefile.am): Likewise.
39118         * modules/string (Makefile.am): Likewise.
39119         * modules/strings (Makefile.am): Likewise.
39120         * modules/sys_file (Makefile.am): Likewise.
39121         * modules/sys_ioctl (Makefile.am): Likewise.
39122         * modules/sys_select (Makefile.am): Likewise.
39123         * modules/sys_socket (Makefile.am): Likewise.
39124         * modules/sys_stat (Makefile.am): Likewise.
39125         * modules/sys_time (Makefile.am): Likewise.
39126         * modules/sys_times (Makefile.am): Likewise.
39127         * modules/sys_uio (Makefile.am): Likewise.
39128         * modules/sys_utsname (Makefile.am): Likewise.
39129         * modules/sys_wait (Makefile.am): Likewise.
39130         * modules/sysexits (Makefile.am): Likewise.
39131         * modules/termios (Makefile.am): Likewise.
39132         * modules/time (Makefile.am): Likewise.
39133         * modules/unistd (Makefile.am): Likewise.
39134         * modules/wchar (Makefile.am): Likewise.
39135         * modules/wctype-h (Makefile.am): Likewise.
39136         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
39138 2011-05-29  Bruno Haible  <bruno@clisp.org>
39140         assert-h: Allow multiple gnulib generated replacements to coexist.
39141         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
39143 2011-05-29  Bruno Haible  <bruno@clisp.org>
39145         argp: Allow coexistence with strerror_r-posix module.
39146         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
39147         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
39148         by gnulib's <string.h> replacement), assume it has the POSIX signature,
39149         not the glibc signature.
39151 2011-05-28  Bruno Haible  <bruno@clisp.org>
39153         gnulib-tool: Alternative structure of testdirs, similar to --import.
39154         * gnulib-tool: New option --single-configure.
39155         (func_usage): Document it.
39156         (single_configure): New variable.
39157         (func_modules_transitive_closure_separately,
39158         func_modules_transitive_closure_separately,
39159         func_determine_use_libtests, func_modules_add_dummy_separately,
39160         func_modules_to_filelist_separately): New functions, extracted from
39161         func_import.
39162         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
39163         (func_import): Use the new functions.
39164         (func_create_testdir): Set final_modules. Handle $single_configure =
39165         true case.
39167 2011-05-28  Bruno Haible  <bruno@clisp.org>
39169         getloadavg: Remove an unreliable safety check.
39170         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
39171         getloadavg.c is in place.
39172         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
39173         Reported by Sam Steingold <sds@gnu.org>.
39175 2011-05-28  Bruno Haible  <bruno@clisp.org>
39177         doc: Cleanup yet another file produced by texinfo.tex.
39178         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
39180 2011-05-28  Bruno Haible  <bruno@clisp.org>
39182         Finish the conditional dependencies mechanism.
39183         * gnulib-tool: New option --no-conditional-dependencies.
39184         (func_usage): Document it. Don't mark --conditional-dependencies as
39185         experimental.
39186         (cond_dependencies): The possible values can now be true, false, empty.
39187         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
39188         (func_import): Store setting in gnulib-cache.m4 and read it from there.
39189         * doc/gnulib-tool.texi (Conditional dependencies): New section.
39191 2011-05-28  Bruno Haible  <bruno@clisp.org>
39193         doc: Use a recent texinfo.tex.
39194         * doc/Makefile (tex_opts): New variable.
39195         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
39197 2011-05-28  Jim Meyering  <meyering@redhat.com>
39199         intprops.h: adjust comment to match code change
39200         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
39201         only once, it *may* have side effects.  Also fix an unrelated typo.
39202         (_GL_INT_SIGNED): Likewise.
39204 2011-05-26  Simon Josefsson  <simon@josefsson.org>
39206         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
39208 2011-05-26  Bruno Haible  <bruno@clisp.org>
39210         mbsrchr: Avoid collision with system function on Interix.
39211         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
39212         Reported by Markus Duft <mduft@gentoo.org>.
39214 2011-05-15  James Youngman  <jay@gnu.org>
39216         getopt: for ambiguous options, enumerate the possibilities.
39217         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
39218         the ambiguous options when an ambiguous prefix is given. This was
39219         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
39220         glibc change was
39221         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
39223 2011-05-25  Eric Blake  <eblake@redhat.com>
39225         getcwd: work around mingw bug
39226         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
39227         * doc/posix-functions/getcwd.texi (getcwd): Document it.
39228         Reported by Matthias Bolte.
39230 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
39232         test-intprops: disable -Wtype-limits diagnostics
39233         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
39234         diagnostics.  Otherwise, the integer overflow macros generate many
39235         diagnostics.  Reported by Jim Meyering in
39236         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39238         intprops: shorten, to pacify gcc -Woverlength-strings
39239         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
39240         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
39241         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
39242         likely to run afoul of C compiler limits for string constant lengths.
39243         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39245 2011-05-24  Eric Blake  <eblake@redhat.com>
39247         docs: document recently fixed glibc printf bug
39248         * doc/posix-functions/fprintf.texi (fprintf): Document it.
39249         * doc/posix-functions/printf.texi (printf): Likewise.
39250         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39251         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39253         closein-tests: convert to init.sh
39254         * modules/closein-tests (Files): Add init.sh
39255         * tests/test-closein.sh Use it.
39257         yesno-tests: convert to init.sh
39258         * modules/yesno-tests (Files): Add init.sh.
39259         * tests/test-yesno.sh: Use it.
39261         atexit-tests: ensure reliable exit status
39262         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
39263         Reported by Bruno Haible.
39265 2011-05-24  Bruno Haible  <bruno@clisp.org>
39267         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39268         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
39269         gl_PREREQ_STRERROR_R invocations from here...
39270         * modules/strerror_r-posix (configure.ac): ... to here.
39272 2011-05-24  Eric Blake  <eblake@redhat.com>
39274         strerror_r: fix missing header
39275         * lib/strerror_r.c: Avoid compiler warning about snprintf.
39277         strerror_r: fix AIX test failures
39278         * lib/strerror_r.c (strerror_r): Convert silent truncation to
39279         ERANGE failure.
39281         strerror_r: fix Solaris test failures
39282         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
39283         failures.
39284         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39286         strerror_r: enforce POSIX recommendations
39287         * lib/strerror_r.c (safe_copy): New helper method.
39288         (strerror_r): Guarantee a non-empty string.
39289         * tests/test-strerror_r.c (main): Enhance tests to incorporate
39290         recent POSIX rulings and to match our strerror guarantees.
39291         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39293 2011-05-24  Jim Meyering  <meyering@redhat.com>
39295         test-perror2.c: avoid warning about unused variable
39296         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39298 2011-05-24  Eric Blake  <eblake@redhat.com>
39300         perror: avoid spurious test failure on HP-UX
39301         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
39303         tests: fix logic bug in init.sh
39304         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
39305         shell.
39307 2011-05-24  Jim Meyering  <meyering@redhat.com>
39309         utimensat: do not reference an out-of-scope buffer
39310         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
39311         declared in an inner scope, yet "times" would be dereferenced outside
39312         the scope in which "ts" was valid.
39313         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
39314         of ts[2] "out/up", so that the use of aliased "times" (via
39315         "times = ts;") does not end up referencing an out-of-scope "ts"
39317         opendir-safer.c: don't clobber errno; don't close negative FD
39318         * lib/opendir-safer.c (opendir_safer):
39319         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
39320         file descriptor, and more importantly, don't clobber the
39321         offending errno value with EINVAL.  Before, upon failure
39322         of dup_safer, we would pass the negative file descriptor to
39323         fdopendir, which would clobber errno.
39325 2011-05-23  Bruno Haible  <bruno@clisp.org>
39327         idcache: Fix module description.
39328         * modules/idcache (Include): Set to "idcache.h".
39330 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39332         gnulib-tool: fix portability problem with MacOS sed
39333         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39334         before the "}".  Problem reported by Leo in
39335         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39336         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39337         sed_extract_condition1, sed_extract_condition2.
39339 2011-05-23  Bruno Haible  <bruno@clisp.org>
39341         hash: Simplify autoconf macro.
39342         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39344 2011-05-23  Bruno Haible  <bruno@clisp.org>
39346         getugroups: Fix module description.
39347         * modules/getugroups (Include): Set to "getugroups.h".
39349 2011-05-23  Bruno Haible  <bruno@clisp.org>
39351         linkat: Simplify autoconf macro.
39352         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39354 2011-05-23  Bruno Haible  <bruno@clisp.org>
39355             Eric Blake  <eblake@redhat.com>
39357         linkat, renameat: Update dependencies.
39358         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39359         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39360         symlinkat.
39362 2011-05-23  Jim Meyering  <meyering@redhat.com>
39364         maint.mk: more tight_scope improvements
39365         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39366         (_gl_TS_headers): Define only in if-0'd block.
39367         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39368         sometimes we must *not* use it.  Adjust uses accordingly.
39369         (sc_tight_scope): Use much simpler grep-based test to determine
39370         whether we skip this rule.
39372         maint.mk: generalize/improve the tight-scope rule
39373         * top/maint.mk: Emit a warning when the test is skipped.
39374         (_gl_TS_dir): Add $(srcdir)/ prefix.
39375         (_gl_TS_function_match): Simplify, rather than trying
39376         to enumerate common types.  Otherwise, it would fail to match an
39377         "extern unsigned char const *" declaration in idutils.
39378         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39379         a way to support use of that type of macro.
39380         (_gl_TS_var_match): Simplify regexp.
39381         (_gl_TS_obj_files): New configurable variable.
39382         (_gl_TS_headers): Likewise.
39384 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39386         verify: fix bug when gnulib <assert.h> is also included
39387         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39388         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39389         Perhaps there's a better way, but this fixes the immediate problem.
39390         Problem reported by Bruno Haible in
39391         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39393 2011-05-22  Bruno Haible  <bruno@clisp.org>
39395         xgetcwd: Simplify autoconf macro.
39396         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39398 2011-05-22  Bruno Haible  <bruno@clisp.org>
39400         New module 'mktime-internal'.
39401         * modules/mktime-internal: New file.
39402         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39403         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39404         mktime_internal as a C macro if libc has __mktime_internal.
39405         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39406         conditions.
39407         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39409 2011-05-22  Bruno Haible  <bruno@clisp.org>
39411         timegm: Correct mktime replacement statements.
39412         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39413         defining mktime as a C macro. This completes a 2009-07-28 commit.
39415 2011-05-22  Bruno Haible  <bruno@clisp.org>
39417         timegm: Simplify autoconf macro.
39418         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39420 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39422         clock-time: change to LGPLv2+.
39423         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39424         BSD-like but we have no mark for that; this is good enough for now.
39426 2011-05-21  Bruno Haible  <bruno@clisp.org>
39428         strerror_r: Fix comments.
39429         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39431 2011-05-21  Bruno Haible  <bruno@clisp.org>
39433         relocatable-prog-wrapper: Fix possible link error.
39434         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39435         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39436         (gl_FUNC_SETENV): ... to here.
39437         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39438         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39440 2011-05-21  Bruno Haible  <bruno@clisp.org>
39442         relocatable-prog-wrapper: Assume strerror() exists.
39443         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39444         m4/strerror.m4.
39445         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39446         * lib/relocwrapper.c: Remove mention of strerror module.
39447         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39448         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39449         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39450         C macro.
39452 2011-05-21  Bruno Haible  <bruno@clisp.org>
39454         select: Simplify replacement idiom.
39455         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39456         Win32 platforms.
39457         * lib/sys_select.in.h (select): Simplify accordingly.
39458         * modules/select (Depends-on): Likewise.
39460 2011-05-21  Bruno Haible  <bruno@clisp.org>
39462         mkdir-p: Simplify autoconf macro.
39463         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39464         gl_FUNC_LCHOWN.
39466 2011-05-21  Eric Blake  <eblake@redhat.com>
39468         strerror_r: avoid clobbering strerror on cygwin
39469         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39470         fall back instead to sys_errlist.
39471         * modules/strerror (configure.ac): Add witness.
39472         * tests/test-strerror_r.c (main): Enhance test.
39473         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39474         * tests/test-perror2.c (main): Free memory before exit.
39476 2011-05-21  Bruno Haible  <bruno@clisp.org>
39478         mkdtemp: Use gnulib naming conventions.
39479         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39480         * modules/mkdtemp (configure.ac): Update.
39482 2011-05-20  Eric Blake  <eblake@redhat.com>
39484         strerror_r: avoid corrupting errno on Solaris
39485         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39486         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39488         strerror_r: avoid compiler warning
39489         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39491         strerror_r: simplify AIX code
39492         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39494         test-perror: avoid spurious failure on FreeBSD
39495         * modules/perror-tests (Depends-on): Add strerror, now that
39496         strerror_r no longer pulls it in.
39498 2011-05-20  Bruno Haible  <bruno@clisp.org>
39500         strerror_r-posix: Remove unused dependencies.
39501         * modules/strerror_r-posix (Depends-on): Remove strerror.
39502         Reported by Eric Blake.
39504 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39506         intprops: remove assumption about A|B representation
39507         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39508         is a valid integer if both A and B are.  Although this is true for
39509         all known practical hosts, the C standard doesn't guarantee it,
39510         and the code need not assume it.  Also, this change may work around
39511         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39512         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39514 2011-05-20  Eric Blake  <eblake@redhat.com>
39516         perror: work around FreeBSD bug
39517         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39518         is broken.  Move AC_LIBOBJ...
39519         * modules/perror (configure.ac): Here.
39520         * doc/posix-functions/perror.texi (perror): Document this.
39521         * tests/test-perror2.c (main): Enhance test.
39523         test-perror: check for strerror interactions
39524         * tests/macros.h (STREQ): Add macro.
39525         * modules/perror-tests (Files): Add second test.
39526         * tests/test-perror2.c (main): New file.
39527         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39529         test-perror: rewrite to use init script
39530         * modules/perror-tests (Files): Add init.sh.
39531         * tests/test-perror.sh: Use temporary directory.
39533 2011-05-20  Jim Meyering  <meyering@redhat.com>
39535         maint: replace misused "a" with "an"
39536         * doc/intprops.texi: "a integer"
39537         * doc/regex.texi: "a explanation"
39538         * lib/alignof.h: "a object"
39539         * lib/argmatch.h: "a explanation"
39540         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39541         * lib/stdint.in.h: "a integer"
39542         * lib/userspec.c: "a owner"
39543         * doc/gnulib.texi: Fix "a idea", and reword.
39545 2011-05-19  Jim Meyering  <meyering@redhat.com>
39547         maint: correct misuse of "a" and "an"
39548         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39549         * lib/argp-help.c: "an docum...": s/an/a/
39550         * lib/argp-parse.c: "An vector": s/An/A/
39551         * lib/execute.c: "an native": s/an/a/
39552         * lib/spawn-pipe.c: Likewise.
39553         * lib/gc.h: "an Gc_rc": s/an/a/
39554         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39555         * lib/fts.c: "an stat.st_dev": s/an/a/
39557 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39559         intprops-tests: work around HP-UX 11.23 cc bug with constants
39560         * tests/test-intprops.c (VERIFY): New macro.
39561         (main): Use it, instead of verify, to work around the compiler bug; see
39562         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39564         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39565         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39566         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39567         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39568         (_GL_REMAINDER_OVERFLOW): Use it.
39570         intprops-tests: revert unsigned part of previous change
39571         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39572         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39573         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39574         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39576 2011-05-19  Bruno Haible  <bruno@clisp.org>
39578         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39579         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39580         strerror_r() returned without filling the buffer.
39581         Reported by Eric Blake.
39583 2011-05-19  Eric Blake  <eblake@redhat.com>
39585         strerror_r: guarantee unchanged errno
39586         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39587         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39588         failure.
39589         * tests/test-strerror_r.c (main): Enhance test.
39591 2011-05-19  Bruno Haible  <bruno@clisp.org>
39593         strerror_r: Reorder #if blocks.
39594         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39595         for consistency with the previous commit.
39597 2011-05-19  Bruno Haible  <bruno@clisp.org>
39599         perror: Avoid clobbering the strerror buffer when possible.
39600         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39601         * lib/strerror.c: Include it.
39602         * modules/strerror (Files): Add lib/strerror-impl.h.
39603         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39604         (my_strerror): New function, defined through lib/strerror-impl.h.
39605         (perror): Use it instead of strerror.
39606         * modules/perror (Files): Add lib/strerror-impl.h.
39607         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39609 2011-05-19  Eric Blake  <eblake@redhat.com>
39611         strerror_r: fix on newer cygwin
39612         * lib/strerror_r.c (strerror_r): Cygwin now has
39613         __xpg_strerror_r, use it.
39615 2011-05-19  Bruno Haible  <bruno@clisp.org>
39617         strerror_r: Avoid clobbering the strerror buffer when possible.
39618         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39619         (sys_nerr, sys_errlist): New declarations.
39620         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39621         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39622         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39624 2011-05-19  Bruno Haible  <bruno@clisp.org>
39626         strerror_r: Fix test failure on mingw.
39627         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39628         EXTEND_STRERROR_R.
39629         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39630         macros from errno.in.h instead.
39632 2011-05-19  Eric Blake  <eblake@redhat.com>
39634         strerror: relax test for Solaris
39635         * tests/test-strerror.c (main): Permit Solaris behavior.
39636         * tests/test-strerror_r.c (main): Likewise.
39638         strerror: enforce POSIX ruling on strerror(0)
39639         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39640         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39641         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39642         * doc/posix-functions/strerror.texi (strerror): Document it.
39643         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39644         * tests/test-strerror.c (main): Strengthen test.
39645         * tests/test-strerror_r.c (main): Likewise.
39647 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39649         intprop-tests: port to older and more-pedantic compilers
39650         * modules/intprops-tests (Files): Add tests/macros.h.
39651         * tests/test-intprops.c: Include macros.h.
39652         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39653         it's no longer documented to expand to an integer constant expression.
39654         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39655         argument is floating point, as it's no longer documented to expand
39656         to an integer constant expression in that case.
39657         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39658         compiler bugs reported by Bruno Haible.  See
39659         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39660         (U0, U1): New constants, to work around the same bugs.  Also,
39661         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39663         intprops: work around C compiler bugs
39664         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39665         bug in Sun C 5.11 2010/08/13 and other compilers; see
39666         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39668         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39669         * doc/intprops.texi (Integer Type Determination): Fix
39670         documentation for TYPE_IS_INTEGER: it returns an constant
39671         expression, not an integer constant expression.  Fix doc for
39672         TYPE_SIGNED: it returns an integer constant expression only if its
39673         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39674         hardly worth documented that way....)
39676 2011-05-18  Bruno Haible  <bruno@clisp.org>
39678         strerror_r: Avoid clobbering the strerror buffer when possible.
39679         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39680         Handle gnulib defined errno values here. When strerror() returns NULL
39681         or an empty string, return EINVAL.
39682         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39683         gnulib defined errno values here.
39684         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39686 2011-05-18  Eric Blake  <eblake@redhat.com>
39688         fnmatch: avoid compiler warning
39689         * lib/fnmatch_loop.c (FCT): Use correct type.
39690         Reported by Matthias Bolte.
39692 2011-05-13  Jim Meyering  <meyering@redhat.com>
39694         maint.mk: three new prohibit_<HDR>_without_use rules
39695         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39696         (sc_prohibit_stdio-safer_without_use): Likewise.
39697         (sc_prohibit_xfreopen_without_use): Likewise.
39699 2011-05-17  Jim Meyering  <meyering@redhat.com>
39701         announce-gen: fail if the NEWS delta is empty
39702         If there's nothing noteworthy in NEWS, then either you forgot
39703         or you shouldn't be releasing.
39704         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39706 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39708         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39709         reserved symbols starting with double underscore from the check.
39711 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39713         intprops: add doc
39714         * doc/intprops.texi: New file, documenting intprops.
39715         * doc/gnulib.texi (Particular Modules): Include it.
39717         verify: add doc to gnulib manual and fix example
39718         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39719         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39720         (Compile-time Assertions): Fix example so it can't overflow.
39722 2011-05-17  Jim Meyering  <meyering@redhat.com>
39724         warnings.m4: don't usurp save_CPPFLAGS variable name
39725         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39727         doc: fix typo
39728         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39730 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39731             Bruno Haible  <bruno@clisp.org>
39733         doc: Tweak recent change.
39734         * README (Portability guidelines): Tweak new text.
39735         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39736         Interix 6.1.
39738 2011-05-16  Eric Blake  <eblake@redhat.com>
39740         inttypes: avoid autoconf warning
39741         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39742         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39744 2011-05-16  Sam Steingold  <sds@gnu.org>
39745         and Eric Blake  <eblake@redhat.com>
39747         vc-list-files: accept multiple directory operands
39748         * build-aux/vc-list-files: Iterate over all remaining operands.
39750 2011-05-16  Bruno Haible  <bruno@clisp.org>
39752         Fix confusion regarding deprecated modules.
39753         * modules/calloc (Status, Notice): Mark module as deprecated, not
39754         obsolete.
39755         * modules/fnmatch-posix (Status, Notice): Likewise.
39756         * modules/getdate (Status, Notice): Likewise.
39757         * modules/getopt (Status, Notice): Likewise.
39758         * modules/malloc (Status, Notice): Likewise.
39759         * modules/pipe (Status, Notice): Likewise.
39760         * modules/realloc (Status, Notice): Likewise.
39761         * modules/rename-dest-slash (Status, Notice): Likewise.
39762         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39763         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39764         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39765         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39766         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39768 2011-05-16  Bruno Haible  <bruno@clisp.org>
39770         doc: List the target platforms.
39771         * doc/gnulib-intro.texi (Target Platforms): New section.
39772         * doc/gnulib.texi (Introduction): Update menu.
39773         * README (Portability guidelines): Refer to the new section. Update
39774         statement about oldest supported environment. Remove rationale why
39775         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39776         unportable C89 function.
39777         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39778         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39780 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39782         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39784 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39786         intprops-tests: new module
39787         * modules/intprops-tests, tests/test-intprops.c: New files.
39789         intprops: add safe, portable integer overflow checking
39790         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39791         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39792         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39793         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39794         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39795         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39796         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39797         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39798         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39799         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39800         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39802 2011-05-12  James Youngman  <jay@gnu.org>
39804         Add a test for glibc's Bugzilla bug #12378.
39805         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39806         doesn't allow the literal matching of a lone "[" (which is
39807         required by POSIX).
39808         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39810 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39812         Sync glibc change fixing Bugzilla bug #12378.
39813         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39814         beginning and fall back to matching as normal character if the
39815         string ends before the matching ']' is found.  This is what POSIX
39816         requires.
39818 2011-05-13  Eric Blake  <eblake@redhat.com>
39820         getcwd-lgpl: relax test for FreeBSD
39821         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39822         issue.
39823         * tests/test-getcwd-lgpl.c (main): Relax test.
39824         Reported by Matthias Bolte.
39826 2011-05-11  Eric Blake  <eblake@redhat.com>
39828         test-fflush: silence compiler warning
39829         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39831 2011-05-11  Bruno Haible  <bruno@clisp.org>
39833         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39834         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39835         * modules/canonicalize (Depends-on): Add 'nocrash'.
39836         * modules/canonicalize-lgpl (Depends-on): Likewise.
39837         * doc/posix-functions/realpath.texi: Update platforms list.
39838         Reported by Ryan Schmidt <ryandesign@macports.org>.
39840 2011-05-11  Bruno Haible  <bruno@clisp.org>
39842         group-member: Declare function in <unistd.h>.
39843         * lib/unistd.in.h (group_member): New declaration.
39844         * lib/group-member.h: Remove file.
39845         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39846         * tests/test-unistd-c++.cc: Check signature of group_member.
39847         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39848         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39849         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39850         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39851         HAVE_GROUP_MEMBER.
39852         * modules/group-member (Files): Remove lib/group-member.h.
39853         (Depends-on): Add unistd. Specify conditions.
39854         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39855         (Include): Change to <unistd.h>.
39856         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39857         HAVE_GROUP_MEMBER.
39858         * NEWS: Mention the change.
39859         * lib/euidaccess.c: Don't include group-member.h.
39861 2011-05-11  Bruno Haible  <bruno@clisp.org>
39863         group-member: Document module.
39864         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39865         module.
39867 2011-05-11  Bruno Haible  <bruno@clisp.org>
39869         fclose: Fix mistake earlier today.
39870         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39872 2011-05-11  Eric Blake  <eblake@redhat.com>
39874         fclose: preserve fflush errors
39875         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39876         Reported by Jim Meyering.
39878         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39879         * build-aux/bootstrap (check_versions): When no specific version
39880         is required, merely check that the app produces an exit status
39881         that indicates its existence.
39883         maint.mk: drop redundant check
39884         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39885         the same but better.
39887 2011-05-11  Bruno Haible  <bruno@clisp.org>
39889         fclose: Fix possible link error.
39890         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39891         unregister_shadow_fd. Improve comments.
39892         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39893         Eric Blake.
39895 2011-05-11  Jim Meyering  <meyering@redhat.com>
39897         maint.mk: improve "can not" detection and generalize rule name
39898         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39899         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39900         Use the same technique as in sc_prohibit_doubled_word, so that
39901         we recognize "can not" also when the words are separated by a newline.
39902         Suggested by Eric Blake.
39903         (perl_filename_lineno_text_): Define.  Factored out of...
39904         (prohibit_doubled_word_): ...here.  Use the new definition.
39905         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39906         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39907         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39909 2011-05-10  Eric Blake  <eblake@redhat.com>
39911         fclose: avoid double close race when possible
39912         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39913         all but WINDOWS_SOCKETS.
39915 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39917         openat: correct new comment
39918         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39920 2011-05-10  Jim Meyering  <meyering@redhat.com>
39922         openat: add comments
39923         * lib/openat-proc.c (openat_proc_name): Add comments,
39924         mostly from Eric Blake.
39926 2011-05-09  Eric Blake  <eblake@redhat.com>
39928         openat: reduce syscalls in first probe of /proc
39929         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39930         be a directory.  Simplify the probe for .. bugs.
39931         * modules/openat (Depends-on): Drop same-inode.
39932         Reported by Bastien ROUCARIES.
39934 2011-05-09  Jim Meyering  <meyering@redhat.com>
39936         maint.mk: change semantics/name of tight_scope variables
39937         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39938         Rename variables to align with semantics that make them more useful.
39940         maint.mk: tweak new rule's name not to impinge
39941         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39942         (sc_tight_scope): Use new rule name rather than $@-0.
39944         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39945         * top/maint.mk (sc_tight_scope): New rule.
39946         (sc_tight_scope-0): New rule, ifdef'd out.
39947         (_gl_TS_dir): Default.
39948         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39949         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39951 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39953         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39954         Haible <bruno@clisp.org>.
39956 2011-05-08  Bruno Haible  <bruno@clisp.org>
39958         Comments.
39959         * m4/isnanf.m4: Add comment.
39960         * m4/isnanl.m4: Likewise.
39962 2011-05-08  Bruno Haible  <bruno@clisp.org>
39964         glob: Remove obsolete macro.
39965         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39967 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39969         intprops: Sun C 5.11 supports __typeof__
39970         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39971         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39972         which is new.
39973         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39975         intprops: switch to usual gnulib indenting and naming
39976         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39977         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39979         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39981 2011-05-08  Jim Meyering  <meyering@redhat.com>
39983         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39984         * top/maint.mk (release-prep): Use make's --no-print-directory
39985         option when generating the announcement.  This eliminates the
39986         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39987         generated announcement template.
39989 2011-05-08  Bruno Haible  <bruno@clisp.org>
39991         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39992         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39993         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39995 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39997         ignore-value, verify: Omit include files from lib_SOURCES.
39998         * modules/ignore-value, modules/verify (Makefile.am):
39999         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
40000         that leads Automake to duplicate use of am__objects_... variables
40001         in Makefile.in.  See
40002         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
40004 2011-05-07  Bruno Haible  <bruno@clisp.org>
40006         fclose: Simplify autoconf macro.
40007         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
40008         defined.
40010 2011-05-07  Bruno Haible  <bruno@clisp.org>
40012         canonicalize-lgpl: Fix autoconf macro ordering bug.
40013         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
40014         gl_STDLIB_H_DEFAULTS.
40016 2011-05-06  Eric Blake  <eblake@redhat.com>
40018         maintainer-makefile: make sc_po_check easier to tune
40019         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
40020         to probe for strings, such as an alternate location for gnulib.
40022         fclose: guarantee behavior on seekable stdin
40023         * modules/fclose (Depends-on): Add fflush.
40024         * doc/posix-functions/fclose.texi (fclose): Document this.
40025         * tests/test-fclose.c (main): Make test for this unconditional.
40027 2011-05-06  Bruno Haible  <bruno@clisp.org>
40029         fflush, fpurge: Relicense under LGPLv2+.
40030         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
40031         * modules/fpurge (License): Likewise.
40032         With permission from Eric Blake and Jim Meyering.
40033         Suggested by Eric Blake.
40035 2011-05-06  Karl Berry  <karl@gnu.org>
40037         * MODULES.html.sh (func_all_modules): remove exit.
40039 2011-05-06  Jim Meyering  <meyering@redhat.com>
40041         maint.mk: use info-gnu@ as the default only for a stable release
40042         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
40043         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
40044         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
40045         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
40047 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40049         assert-h: new module, which supports C1X-style static_assert
40050         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
40051         * lib/verify.h: Revamp so that this can be copied into assert.h,
40052         while retaining the ability to use it standalone as before.
40053         Rename private identifiers so as not to encroach on the
40054         standard C namespace, since this is now used by assert.h.
40055         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
40056         the old verify_true.
40057         (_GL_VERIFY_TRUE): New macro, with much of the contents of
40058         the old verify_true.  Use _GL_VERIFY_TYPE.
40059         (_GL_VERIFY): New macro, with much of the contents of the old verify.
40060         (static_assert): New macro, if _GL_STATIC_ASSERT_H
40061         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
40062         defined when this file is copied into the replacement assert.h.
40063         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
40064         and _Static_assert is not built in.
40065         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
40066         defined, and use the new macros mentioned above.
40067         * doc/posix-headers/assert.texi: Document this.
40069 2011-05-05  Bruno Haible  <bruno@clisp.org>
40071         fclose, fflush: Respect rules for use of AC_LIBOBJ.
40072         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
40073         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
40074         gl_REPLACE_FCLOSE here.
40075         * modules/fflush (Depends-on): Remove fclose.
40076         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
40077         combination with module 'fclose'.
40079 2011-05-05  Bruno Haible  <bruno@clisp.org>
40081         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
40082         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
40083         gl_FUNC_FFLUSH.
40084         (gl_FUNC_FFLUSH): Use it.
40085         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
40086         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
40087         gl_REPLACE_FSEEKO here.
40089 2011-05-05  Bruno Haible  <bruno@clisp.org>
40091         tzset: Relicense under LGPL.
40092         * modules/tzset (License): Change to LGPL.
40093         No agreement needed; it's a no-op.
40095         strtoimax, strtoumax: Relicense under LGPL.
40096         * modules/strtoimax (License): Change to LGPL.
40097         * modules/strtoumax (License): Likewise.
40098         With permission from Jim Meyering, Paul Eggert:
40099         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
40100         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
40102         getgroups: Relicense under LGPL.
40103         * modules/getgroups (License): Change to LGPL.
40104         With permission from Jim Meyering, Paul Eggert, Eric Blake:
40105         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
40106         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
40107         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40109         nanosleep: Relicense under LGPL.
40110         * modules/nanosleep (License): Change to LGPL.
40111         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
40112         Haible:
40113         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
40114         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
40115         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40116         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40118         futimens: Relicense under LGPL.
40119         * modules/futimens (License): Change to LGPL.
40120         With permission from Eric Blake:
40121         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40123         fflush: Relicense under LGPL.
40124         * modules/fflush (License): Change to LGPL.
40125         With permission from Eric Blake, Bruno Haible, Jim Meyering:
40126         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40127         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40128         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
40130         tmpfile: Relicense under LGPL.
40131         * modules/tmpfile (License): Change to LGPL.
40132         With permission from Ben Pfaff:
40133         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40135         isfinite: Relicense under LGPL.
40136         * modules/isfinite (License): Change to LGPL.
40137         With permission from Ben Pfaff, Bruno Haible:
40138         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40139         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
40141         acosl..tanl: Relicense under LGPL.
40142         * modules/acosl (License): Change to LGPL.
40143         * modules/asinl (License): Likewise.
40144         * modules/atanl (License): Likewise.
40145         * modules/cosl (License): Likewise.
40146         * modules/expl (License): Likewise.
40147         * modules/logl (License): Likewise.
40148         * modules/sinl (License): Likewise.
40149         * modules/sqrtl (License): Likewise.
40150         * modules/tanl (License): Likewise.
40151         Source code originally from glibc and Paolo Bonzini. Agreements:
40152         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
40153         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
40155 2011-05-05  Bruno Haible  <bruno@clisp.org>
40157         signal: Define sighandler_t.
40158         * lib/signal.in.h (sighandler_t): New type.
40159         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
40160         whether sighandler_t is defined.
40161         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
40162         * modules/signal (Depends-on): Add extensions.
40163         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
40164         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
40165         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
40167 2011-05-05  Eric Blake  <eblake@redhat.com>
40169         maint: remove useless REPLACE_*_H macros
40170         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
40171         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40172         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40173         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
40174         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40175         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40176         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
40177         * m4/btowc.m4: Update callers.
40178         * m4/dirfd.m4: Likewise.
40179         * m4/duplocale.m4: Likewise.
40180         * m4/fchdir.m4: Likewise.
40181         * m4/fdopendir.m4: Likewise.
40182         * m4/inet_ntop.m4: Likewise.
40183         * m4/inet_pton.m4: Likewise.
40184         * m4/ioctl.m4: Likewise.
40185         * m4/mbrlen.m4: Likewise.
40186         * m4/mbrtowc.m4: Likewise.
40187         * m4/mbsinit.m4: Likewise.
40188         * m4/mbsnrtowcs.m4: Likewise.
40189         * m4/mbsrtowcs.m4: Likewise.
40190         * m4/poll.m4: Likewise.
40191         * m4/setlocale.m4: Likewise.
40192         * m4/wcrtomb.m4: Likewise.
40193         * m4/wcsnrtombs.m4: Likewise.
40194         * m4/wcsrtombs.m4: Likewise.
40195         * m4/wctob.m4: Likewise.
40196         * m4/wcwidth.m4: Likewise.
40197         * modules/posix_spawn: Likewise.
40198         * modules/posix_spawn_file_actions_addclose: Likewise.
40199         * modules/posix_spawn_file_actions_adddup2: Likewise.
40200         * modules/posix_spawn_file_actions_addopen: Likewise.
40201         * modules/posix_spawn_file_actions_destroy: Likewise.
40202         * modules/posix_spawn_file_actions_init: Likewise.
40203         * modules/posix_spawnattr_destroy: Likewise.
40204         * modules/posix_spawnattr_getflags: Likewise.
40205         * modules/posix_spawnattr_getpgroup: Likewise.
40206         * modules/posix_spawnattr_getschedparam: Likewise.
40207         * modules/posix_spawnattr_getschedpolicy: Likewise.
40208         * modules/posix_spawnattr_getsigdefault: Likewise.
40209         * modules/posix_spawnattr_getsigmask: Likewise.
40210         * modules/posix_spawnattr_init: Likewise.
40211         * modules/posix_spawnattr_setflags: Likewise.
40212         * modules/posix_spawnattr_setpgroup: Likewise.
40213         * modules/posix_spawnattr_setschedparam: Likewise.
40214         * modules/posix_spawnattr_setschedpolicy: Likewise.
40215         * modules/posix_spawnattr_setsigdefault: Likewise.
40216         * modules/posix_spawnattr_setsigmask: Likewise.
40217         * modules/posix_spawnp: Likewise.
40219 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
40221         Add option to do-release-commit-and-tag to specify branch.
40222         * build-aux/do-release-commit-and-tag: Add --branch.
40224 2011-05-03  Bruno Haible  <bruno@clisp.org>
40226         Avoid unnecessary compilation units, through conditional dependencies.
40227         * modules/accept (Depends-on): Add conditions to the dependencies.
40228         * modules/acosl (Depends-on): Likewise.
40229         * modules/argz (Depends-on): Likewise.
40230         * modules/asinl (Depends-on): Likewise.
40231         * modules/atanl (Depends-on): Likewise.
40232         * modules/atoll (Depends-on): Likewise.
40233         * modules/bind (Depends-on): Likewise.
40234         * modules/btowc (Depends-on): Likewise.
40235         * modules/canonicalize-lgpl (Depends-on): Likewise.
40236         * modules/ceil (Depends-on): Likewise.
40237         * modules/ceilf (Depends-on): Likewise.
40238         * modules/ceill (Depends-on): Likewise.
40239         * modules/chdir-long (Depends-on): Likewise.
40240         * modules/chown (Depends-on): Likewise.
40241         * modules/close (Depends-on): Likewise.
40242         * modules/connect (Depends-on): Likewise.
40243         * modules/cosl (Depends-on): Likewise.
40244         * modules/dirfd (Depends-on): Likewise.
40245         * modules/dprintf (Depends-on): Likewise.
40246         * modules/dprintf-posix (Depends-on): Likewise.
40247         * modules/error (Depends-on): Likewise.
40248         * modules/euidaccess (Depends-on): Likewise.
40249         * modules/expl (Depends-on): Likewise.
40250         * modules/faccessat (Depends-on): Likewise.
40251         * modules/fchdir (Depends-on): Likewise.
40252         * modules/fclose (Depends-on): Likewise.
40253         * modules/fcntl (Depends-on): Likewise.
40254         * modules/fdopendir (Depends-on): Likewise.
40255         * modules/fflush (Depends-on): Likewise.
40256         * modules/floor (Depends-on): Likewise.
40257         * modules/floorf (Depends-on): Likewise.
40258         * modules/floorl (Depends-on): Likewise.
40259         * modules/fnmatch (Depends-on): Likewise.
40260         * modules/fopen (Depends-on): Likewise.
40261         * modules/fprintf-posix (Depends-on): Likewise.
40262         * modules/frexp (Depends-on): Likewise.
40263         * modules/frexp-nolibm (Depends-on): Likewise.
40264         * modules/frexpl (Depends-on): Likewise.
40265         * modules/frexpl-nolibm (Depends-on): Likewise.
40266         * modules/fseek (Depends-on): Likewise.
40267         * modules/fsusage (Depends-on): Likewise.
40268         * modules/ftell (Depends-on): Likewise.
40269         * modules/ftello (Depends-on): Likewise.
40270         * modules/futimens (Depends-on): Likewise.
40271         * modules/getcwd (Depends-on): Likewise.
40272         * modules/getcwd-lgpl (Depends-on): Likewise.
40273         * modules/getdelim (Depends-on): Likewise.
40274         * modules/getdomainname (Depends-on): Likewise.
40275         * modules/getgroups (Depends-on): Likewise.
40276         * modules/gethostname (Depends-on): Likewise.
40277         * modules/getline (Depends-on): Likewise.
40278         * modules/getlogin_r (Depends-on): Likewise.
40279         * modules/getopt-posix (Depends-on): Likewise.
40280         * modules/getpeername (Depends-on): Likewise.
40281         * modules/getsockname (Depends-on): Likewise.
40282         * modules/getsockopt (Depends-on): Likewise.
40283         * modules/getsubopt (Depends-on): Likewise.
40284         * modules/getusershell (Depends-on): Likewise.
40285         * modules/glob (Depends-on): Likewise.
40286         * modules/grantpt (Depends-on): Likewise.
40287         * modules/iconv_open (Depends-on): Likewise.
40288         * modules/iconv_open-utf (Depends-on): Likewise.
40289         * modules/inet_ntop (Depends-on): Likewise.
40290         * modules/inet_pton (Depends-on): Likewise.
40291         * modules/ioctl (Depends-on): Likewise.
40292         * modules/isapipe (Depends-on): Likewise.
40293         * modules/isfinite (Depends-on): Likewise.
40294         * modules/isinf (Depends-on): Likewise.
40295         * modules/lchown (Depends-on): Likewise.
40296         * modules/ldexpl (Depends-on): Likewise.
40297         * modules/link (Depends-on): Likewise.
40298         * modules/linkat (Depends-on): Likewise.
40299         * modules/listen (Depends-on): Likewise.
40300         * modules/logl (Depends-on): Likewise.
40301         * modules/lstat (Depends-on): Likewise.
40302         * modules/mbrlen (Depends-on): Likewise.
40303         * modules/mbrtowc (Depends-on): Likewise.
40304         * modules/mbsinit (Depends-on): Likewise.
40305         * modules/mbsnrtowcs (Depends-on): Likewise.
40306         * modules/mbsrtowcs (Depends-on): Likewise.
40307         * modules/mbtowc (Depends-on): Likewise.
40308         * modules/memcmp (Depends-on): Likewise.
40309         * modules/mkdir (Depends-on): Likewise.
40310         * modules/mkdtemp (Depends-on): Likewise.
40311         * modules/mkfifo (Depends-on): Likewise.
40312         * modules/mkfifoat (Depends-on): Likewise.
40313         * modules/mknod (Depends-on): Likewise.
40314         * modules/mkostemp (Depends-on): Likewise.
40315         * modules/mkostemps (Depends-on): Likewise.
40316         * modules/mkstemp (Depends-on): Likewise.
40317         * modules/mkstemps (Depends-on): Likewise.
40318         * modules/mktime (Depends-on): Likewise.
40319         * modules/nanosleep (Depends-on): Likewise.
40320         * modules/open (Depends-on): Likewise.
40321         * modules/openat (Depends-on): Likewise.
40322         * modules/perror (Depends-on): Likewise.
40323         * modules/poll (Depends-on): Likewise.
40324         * modules/popen (Depends-on): Likewise.
40325         * modules/posix_spawn (Depends-on): Likewise.
40326         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
40327         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40328         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40329         * modules/posix_spawnp (Depends-on): Likewise.
40330         * modules/pread (Depends-on): Likewise.
40331         * modules/printf-posix (Depends-on): Likewise.
40332         * modules/ptsname (Depends-on): Likewise.
40333         * modules/putenv (Depends-on): Likewise.
40334         * modules/pwrite (Depends-on): Likewise.
40335         * modules/readline (Depends-on): Likewise.
40336         * modules/readlink (Depends-on): Likewise.
40337         * modules/readlinkat (Depends-on): Likewise.
40338         * modules/recv (Depends-on): Likewise.
40339         * modules/recvfrom (Depends-on): Likewise.
40340         * modules/regex (Depends-on): Likewise.
40341         * modules/remove (Depends-on): Likewise.
40342         * modules/rename (Depends-on): Likewise.
40343         * modules/renameat (Depends-on): Likewise.
40344         * modules/rmdir (Depends-on): Likewise.
40345         * modules/round (Depends-on): Likewise.
40346         * modules/roundf (Depends-on): Likewise.
40347         * modules/roundl (Depends-on): Likewise.
40348         * modules/rpmatch (Depends-on): Likewise.
40349         * modules/select (Depends-on): Likewise.
40350         * modules/send (Depends-on): Likewise.
40351         * modules/sendto (Depends-on): Likewise.
40352         * modules/setenv (Depends-on): Likewise.
40353         * modules/setlocale (Depends-on): Likewise.
40354         * modules/setsockopt (Depends-on): Likewise.
40355         * modules/shutdown (Depends-on): Likewise.
40356         * modules/sigaction (Depends-on): Likewise.
40357         * modules/signbit (Depends-on): Likewise.
40358         * modules/sigprocmask (Depends-on): Likewise.
40359         * modules/sinl (Depends-on): Likewise.
40360         * modules/sleep (Depends-on): Likewise.
40361         * modules/snprintf (Depends-on): Likewise.
40362         * modules/snprintf-posix (Depends-on): Likewise.
40363         * modules/socket (Depends-on): Likewise.
40364         * modules/sprintf-posix (Depends-on): Likewise.
40365         * modules/sqrtl (Depends-on): Likewise.
40366         * modules/stat (Depends-on): Likewise.
40367         * modules/strchrnul (Depends-on): Likewise.
40368         * modules/strdup-posix (Depends-on): Likewise.
40369         * modules/strerror (Depends-on): Likewise.
40370         * modules/strerror_r-posix (Depends-on): Likewise.
40371         * modules/strndup (Depends-on): Likewise.
40372         * modules/strnlen (Depends-on): Likewise.
40373         * modules/strptime (Depends-on): Likewise.
40374         * modules/strsep (Depends-on): Likewise.
40375         * modules/strsignal (Depends-on): Likewise.
40376         * modules/strstr-simple (Depends-on): Likewise.
40377         * modules/strtod (Depends-on): Likewise.
40378         * modules/strtoimax (Depends-on): Likewise.
40379         * modules/strtok_r (Depends-on): Likewise.
40380         * modules/strtoumax (Depends-on): Likewise.
40381         * modules/symlink (Depends-on): Likewise.
40382         * modules/symlinkat (Depends-on): Likewise.
40383         * modules/tanl (Depends-on): Likewise.
40384         * modules/tcgetsid (Depends-on): Likewise.
40385         * modules/tmpfile (Depends-on): Likewise.
40386         * modules/trunc (Depends-on): Likewise.
40387         * modules/truncf (Depends-on): Likewise.
40388         * modules/truncl (Depends-on): Likewise.
40389         * modules/uname (Depends-on): Likewise.
40390         * modules/unlink (Depends-on): Likewise.
40391         * modules/unlockpt (Depends-on): Likewise.
40392         * modules/unsetenv (Depends-on): Likewise.
40393         * modules/usleep (Depends-on): Likewise.
40394         * modules/utimensat (Depends-on): Likewise.
40395         * modules/vasprintf (Depends-on): Likewise.
40396         * modules/vdprintf (Depends-on): Likewise.
40397         * modules/vdprintf-posix (Depends-on): Likewise.
40398         * modules/vfprintf-posix (Depends-on): Likewise.
40399         * modules/vprintf-posix (Depends-on): Likewise.
40400         * modules/vsnprintf (Depends-on): Likewise.
40401         * modules/vsnprintf-posix (Depends-on): Likewise.
40402         * modules/vsprintf-posix (Depends-on): Likewise.
40403         * modules/wcrtomb (Depends-on): Likewise.
40404         * modules/wcscasecmp (Depends-on): Likewise.
40405         * modules/wcscspn (Depends-on): Likewise.
40406         * modules/wcsdup (Depends-on): Likewise.
40407         * modules/wcsncasecmp (Depends-on): Likewise.
40408         * modules/wcsnrtombs (Depends-on): Likewise.
40409         * modules/wcspbrk (Depends-on): Likewise.
40410         * modules/wcsrtombs (Depends-on): Likewise.
40411         * modules/wcsspn (Depends-on): Likewise.
40412         * modules/wcsstr (Depends-on): Likewise.
40413         * modules/wcstok (Depends-on): Likewise.
40414         * modules/wcswidth (Depends-on): Likewise.
40415         * modules/wctob (Depends-on): Likewise.
40416         * modules/wctomb (Depends-on): Likewise.
40417         * modules/wctype (Depends-on): Likewise.
40418         * modules/wcwidth (Depends-on): Likewise.
40419         * modules/write (Depends-on): Likewise.
40421 2011-05-03  Bruno Haible  <bruno@clisp.org>
40423         Support for conditional dependencies.
40424         * doc/gnulib.texi (Module description): Document the syntax of
40425         conditional dependencies.
40426         * gnulib-tool: New option --conditional-dependencies.
40427         (func_usage): Document it.
40428         (cond_dependencies): New variable.
40429         (func_get_automake_snippet_conditional,
40430         func_get_automake_snippet_unconditional): New functions, extracted from
40431         func_get_automake_snippet.
40432         (func_get_automake_snippet): Use them.
40433         (sed_first_32_chars): New variable.
40434         (func_module_shellfunc_name): New function.
40435         (func_module_shellvar_name): New function.
40436         (func_module_conditional_name): New function.
40437         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40438         func_cond_module_condition): New functions.
40439         (func_modules_transitive_closure): Add support for conditional
40440         dependencies.
40441         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40442         conditional automake snippet in an automake conditional.
40443         (func_emit_autoconf_snippets): Emit shell functions that contain the
40444         code for conditional modules.
40445         (func_import, func_create_testdir): Update specification.
40447 2011-05-03  Eric Blake  <eblake@redhat.com>
40449         test-getaddrinfo: report error information
40450         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40452 2011-05-03  Jim Meyering  <meyering@redhat.com>
40454         bootstrap: avoid build failure when $GZIP is set
40455         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40456         program name.  If defined at all, it is supposed to list gzip options.
40457         Reported by Alan Curry in http://debbugs.gnu.org/8609
40459 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40461         readme-release: new module with release instructions
40462         * modules/readme-release: New module.
40463         * top/README-release: New file, from coreutils, grep, diffutils.
40464         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40466 2011-05-02  Eric Blake  <eblake@redhat.com>
40468         fflush: also replace fclose when fixing fflush
40469         * modules/fflush (Depends-on): Add fclose.
40470         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40471         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40472         memstreams with no backing fd.
40473         * doc/posix-functions/fclose.texi (fclose): Document the use of
40474         fflush module to fix the bug.
40475         * tests/test-fclose.c (main): Relax test when fclose is used in
40476         isolation.
40478         fclose: add some tests
40479         * modules/fclose-tests: New test module.
40480         * tests/test-fclose.c: New file.
40481         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40483         fclose: reduced dependencies
40484         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40485         simpler lseek.
40486         * lib/fclose.c (rpl_fclose): Likewise.
40487         Reported by Simon Josefsson.
40489         exit: drop remaining clients
40490         * modules/argmatch (Depends-on): Replace exit with stdlib.
40491         * modules/copy-file (Depends-on): Likewise.
40492         * modules/execute (Depends-on): Likewise.
40493         * modules/exitfail (Depends-on): Likewise.
40494         * modules/obstack (Depends-on): Likewise.
40495         * modules/pagealign_alloc (Depends-on): Likewise.
40496         * modules/pipe-filter-gi (Depends-on): Likewise.
40497         * modules/pipe-filter-ii (Depends-on): Likewise.
40498         * modules/savewd (Depends-on): Likewise.
40499         * modules/spawn-pipe (Depends-on): Likewise.
40500         * modules/wait-process (Depends-on): Likewise.
40501         * modules/xsetenv (Depends-on): Likewise.
40502         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40503         * modules/git-merge-changelog (Depends-on): Likewise.
40504         * modules/long-options (Depends-on): Likewise.
40505         * modules/pt_chown (Depends-on): Likewise.
40506         * modules/sysexits (Depends-on): Likewise.
40508         freading: relax license from LGPLv3+ to LGPLv2+
40509         * modules/freading (License): Relax LGPL version.
40511 2011-05-02  Bruno Haible  <bruno@clisp.org>
40513         fchdir: Remove unused dependencies.
40514         * modules/fchdir (Depends-on): Remove include_next.
40516 2011-05-02  Bruno Haible  <bruno@clisp.org>
40518         gnulib-tool: Refactor.
40519         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40520         from func_emit_autoconf_snippets.
40521         (func_emit_autoconf_snippets): Use it.
40523 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40525         * NEWS: Document removal of 'exit'.
40526         * modules/exit: Remove file.
40528 2011-05-01  Bruno Haible  <bruno@clisp.org>
40530         Update DEPENDENCIES.
40531         * DEPENDENCIES (gettext): Recommend the newest release.
40532         Reported by Simon Josefsson.
40534 2011-05-01  Bruno Haible  <bruno@clisp.org>
40536         gnulib-tool: Reduce code duplication.
40537         * gnulib-tool (func_emit_autoconf_snippets): New function.
40538         (func_import, func_create_testdir): Use it.
40540 2011-04-30  Eric Blake  <eblake@redhat.com>
40542         fclose: don't fail on non-seekable input stream
40543         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40544         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40545         since fflush is allowed to fail in that case.
40547 2011-04-30  Bruno Haible  <bruno@clisp.org>
40549         dup3: cleanup
40550         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40552 2011-04-30  Bruno Haible  <bruno@clisp.org>
40554         netdb: Make it work in C++ mode.
40555         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40556         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40557         module.
40558         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40559         gl_MODULE_INDICATOR_FOR_TESTS.
40560         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40561         * modules/netdb-c++-tests: New file.
40562         * tests/test-netdb-c++.cc: New file.
40564 2011-04-30  Bruno Haible  <bruno@clisp.org>
40566         New modules 'vfscanf', 'vscanf'.
40567         * modules/vfscanf: New file.
40568         * modules/vscanf: New file.
40569         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40570         here.
40571         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40572         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40574 2011-04-30  Bruno Haible  <bruno@clisp.org>
40576         passfd: Add comments.
40577         * lib/passfd.c: Add comments about platforms.
40579 2011-04-30  Bruno Haible  <bruno@clisp.org>
40581         sys_uio: Make <sys/uio.h> self-contained.
40582         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40583         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40585 2011-04-30  Bruno Haible  <bruno@clisp.org>
40587         sys_socket: Ensure 'struct iovec' definition.
40588         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40589         <sys/socket.h>.
40590         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40592 2011-04-30  Bruno Haible  <bruno@clisp.org>
40594         sys_uio: Protect definition of 'struct iovec'.
40595         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40596         it as a C struct.
40598 2011-04-30  Bruno Haible  <bruno@clisp.org>
40600         manywarnings: fix indentation
40601         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40603 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40605         manywarnings: add -Wno-missing-field-initializers if needed.
40606         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40607         option if it's needed to allow initialization with { 0, }
40609 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40611         announce-gen: cosmetic improvement
40612         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40614 2011-04-29  Jim Meyering  <meyering@redhat.com>
40616         vc-list-files: indent with spaces, not TABs
40617         * build-aux/vc-list-files: Convert leading TABs to spaces,
40618         to match the style of most other files in gnulib.
40620         announce-gen: indent with spaces, not TABs
40621         * build-aux/announce-gen: Convert all TABs to spaces, to match
40622         the style of most other files in gnulib.
40624 2011-04-29  Eric Blake  <eblake@redhat.com>
40626         quotearg: avoid uninitialized variable use
40627         * lib/quotearg.c (quoting_options_from_style): Initialize
40628         remaining fields, and ensure that custom styles are only used via
40629         quoting_options rather than quoting_style.
40631 2011-04-29  Jim Meyering  <meyering@redhat.com>
40633         maint.mk: remove unused VC-tag variable
40634         * top/maint.mk (VC-tag): Remove unused variable.
40636 2011-04-29  Bruno Haible  <bruno@clisp.org>
40638         netdb: fix gai_strerror replacements
40639         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40640         * modules/netdb: Substitute it.
40642 2011-04-29  Jim Meyering  <meyering@redhat.com>
40644         test-getcwd.c: avoid new set-but-not-used warning
40645         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40646         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40647         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40648         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40650         test-hash.c: avoid a new shadowing warning
40651         * tests/test-hash.c (main): Don't shadow "dup".
40653 2011-04-28  Eric Blake  <eblake@redhat.com>
40655         getaddrinfo: fix gai_strerror signature
40656         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40657         and work around mingw with UNICODE defined.
40658         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40659         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40660         * modules/netdb (Makefile.am): Substitute it.
40661         * lib/netdb.in.h (gai_strerror): Declare replacement.
40662         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40663         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40664         the fix.
40666         getsockopt: avoid compiler warning
40667         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40668         Reported by Matthias Bolte.
40670         tests: drop unused link dependency
40671         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40672         * modules/dirent-safer-tests (Makefile.am): Likewise.
40673         * modules/fdopendir-tests (Makefile.am): Likewise.
40674         * modules/mkfifoat-tests (Makefile.am): Likewise.
40675         * modules/openat-safer-tests (Makefile.am): Likewise.
40676         * modules/openat-tests (Makefile.am): Likewise.
40677         * modules/readlinkat-tests (Makefile.am): Likewise.
40678         * modules/symlinkat-tests (Makefile.am): Likewise.
40679         * modules/linkat-tests (Makefile.am): Likewise.
40680         (Depends-on): Switch to filenamecat-lgpl.
40681         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40682         LIBINTL.
40683         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40684         * tests/test-linkat.c (main): Don't require xalloc.
40686         hash, mgetgroups: drop xalloc dependency
40687         * lib/hash.c (includes): Adjust includes.
40688         * lib/mgetgroups.c (includes): Likewise.
40689         (xgetgroups): Move...
40690         * lib/xgetgroups.c: ...to new file.
40691         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40692         * modules/xgetgroups: New file, split from...
40693         * modules/mgetgroups: ...here.
40694         (Depends-on): Add xalloc-oversized.
40695         * modules/hash (Depends-on): Likewise.
40696         * modules/hash-tests (Depends-on): Drop xalloc.
40697         (test_hash_LDADD): Drop unused library.
40698         * tests/test-hash.c (main): Break xalloc dependency.
40699         (includes): Drop unused include.
40701         xalloc-oversized: new module
40702         * modules/xalloc-oversized: New module.
40703         * modules/xalloc (Depends-on): Add it.
40704         * lib/xalloc.h (xalloc_oversized): Move...
40705         * lib/xalloc-oversized.h: ...into new file.
40707         utimecmp: drop dependency on xmalloc
40708         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40709         due to memory pressure.
40710         * modules/utimecmp (Depends-on): Drop xalloc.
40712 2011-04-27  Eric Blake  <eblake@redhat.com>
40714         getcwd: fix mingw bugs
40715         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40716         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40717         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40719 2011-04-27  Bruno Haible  <bruno@clisp.org>
40721         mkstemps: Ensure declaration on MacOS X 10.5.
40722         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40723         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40724         MacOS X.
40726 2011-04-27  Bruno Haible  <bruno@clisp.org>
40728         mkstemp: More documentation.
40729         * doc/posix-functions/mkstemp.texi: Document header file problem on
40730         MacOS X.
40732 2011-04-27  Bruno Haible  <bruno@clisp.org>
40734         mkstemp: Tweak configure message when cross-compiling.
40735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40736         result as a guess.
40738 2011-04-27  Bruno Haible  <bruno@clisp.org>
40740         clean-temp: Clarify what it does.
40741         * lib/clean-temp.h: Add more comments.
40742         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40743         module.
40744         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40745         * doc/glibc-functions/mkstemps.texi: Likewise.
40746         * doc/glibc-functions/mkostemps.texi: Likewise.
40748 2011-04-27  Eric Blake  <eblake@redhat.com>
40750         fchdir: avoid extra chdir and fix test
40751         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40752         getcwd-lgpl.
40753         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40754         have to be canonical.
40755         (canonicalize_file_name): Drop unused macro.
40756         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40758         filenamecat-lgpl: fix licence
40759         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40760         when it was first created.
40762         linkat, renameat: add missing dependency
40763         * modules/linkat (Depends-on): Require getcwd-lgpl.
40764         * modules/renameat (Depends-on): Likewise.
40766         tests: reduce dependencies
40767         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40768         * tests/test-renameat.c (main): Likewise.
40769         * modules/linkat-tests (Depends-on): Relax dependency.
40770         * modules/renameat-tests (Depends-on): Likewise.
40771         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40772         dependency explicit.
40774         save-cwd: reduce default dependency
40775         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40776         * lib/save-cwd.c: Update comments.
40777         * NEWS: Document the semantic change.
40779         getcwd: enhance tests
40780         * tests/test-getcwd-lgpl.c: New file, taken from...
40781         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40782         repeat long path stress tests from m4 probe.
40783         * modules/getcwd-lgpl-tests: New module.
40784         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40785         * m4/getcwd-abort-bug.m4: Update comment.
40786         * m4/getcwd-path-max.m4: Likewise.
40788         getcwd-lgpl: new module
40789         * modules/getcwd-lgpl: New module.
40790         * lib/getcwd-lgpl.c: New file.
40791         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40792         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40793         * modules/getcwd (configure.ac): Set C witness.
40794         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40796         getcwd: tweak comments
40797         * m4/getcwd-abort-bug.m4: Fix comments.
40798         * m4/getcwd-path-max.m4: Likewise.
40799         * m4/getcwd.m4: Likewise.
40801 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40802         and Eric Blake  <eblake@redhat.com>
40804         mkstemp: replace if system version uses wrong permissions
40805         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40806         read/write mode bits set in file created by mkstemp.
40807         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40809 2011-04-27  Eric Blake  <eblake@redhat.com>
40811         passfd: avoid compiler warning
40812         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40813         Reported by Laine Stump.
40815 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40817         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40818         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40820 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40821         and Eric Blake  <eblake@redhat.com>
40823         mkstemp: mention clean-temp module
40824         * lib/mkstemp.c: Add comment.
40825         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40827 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40829         inttypes: also provide default values for 32-bit tests
40830         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40831         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40833 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40835         strtoumax: remove dependency on strtoimax
40836         This is like the strtoull change of yesterday.
40837         * modules/strtoumax (Files): Add lib/strtoimax.c.
40838         (Depends-on): Remove strtoimax and add verify.
40840         inttypes-incomplete: new module
40841         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40842         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40843         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40844         of gl_INTTYPES_H.
40845         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40846         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40847         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40848         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40849         * modules/strtoumax, modules/xstrtol (Depends-on):
40850         Depend on inttypes-incomplete, not inttypes.
40851         * modules/inttypes-incomplete: New module, containing the contents
40852         of the old modules/inttypes module, except that the Files: section
40853         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40854         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40855         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40856         (Depends-on): Depend only on inttypes-incomplete.
40857         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40859         inttypes: omit now-redundant strtoimax and strtoumax work
40860         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40861         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40863         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40864         This supports apps that need pointers to strtoimax and strtoumax,
40865         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40866         nonexistent functions.  See
40867         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40868         et seq.
40869         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40870         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40871         a macro.
40872         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40874 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40876         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40878 2011-04-25  Bruno Haible  <bruno@clisp.org>
40880         strtol, strtoul: Mark modules as obsolete.
40881         * modules/strtol (Status, Notice): New sections.
40882         * modules/strtoul (Status, Notice): New sections.
40884 2011-04-25  Bruno Haible  <bruno@clisp.org>
40886         strtod: Remove check for strtod, unless supporting old platforms.
40887         * modules/strtod-obsolete: New file.
40888         * m4/strtod-obsolete.m4: New file.
40889         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40890         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40891         * modules/strtod (Depends-on): Add strtod-obsolete.
40892         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40894 2011-04-25  Bruno Haible  <bruno@clisp.org>
40896         strcase: Make module obsolete.
40897         * modules/strcase (Status, Notice): New sections.
40899 2011-04-25  Bruno Haible  <bruno@clisp.org>
40901         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40902         * modules/dup2-obsolete: New file.
40903         * m4/dup2-obsolete.m4: New file.
40904         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40905         gl_FUNC_DUP2_OBSOLETE is not also defined.
40906         * modules/dup2 (Depends-on): Add dup2-obsolete.
40907         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40909 2011-04-25  Bruno Haible  <bruno@clisp.org>
40911         strnlen: Avoid memchr related link error on old obsolete platforms.
40912         * modules/memchr-obsolete: New file.
40913         * m4/memchr-obsolete.m4: New file.
40914         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40915         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40916         * modules/memchr (Depends-on): Add memchr-obsolete.
40917         * modules/strnlen (Depends-on): Likewise.
40918         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40920 2011-04-25  Jim Meyering  <meyering@redhat.com>
40922         maint.mk: makefile_at_at_check extend and clean up
40923         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40924         in addition to */Makefile.am.
40925         Exempt legitimate uses of @VAR@ notation, e.g.,
40926         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40927         Remove obsolete coreutils-specific comment.
40928         Prompted by discussion here:
40929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40931 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40933         strtoul: remove dependency on strtol
40934         This is so that 'configure' need not check for strtol merely because
40935         the application needs strtoul.
40936         * modules/strtoul (Files): Add lib/strtol.c.
40937         (Depends-on): Remove strtol.
40939         strtoull: remove dependency on strtoul
40940         This is like the strtoll change.
40941         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40942         (Depends-on): Remove strtoul.
40944         strtoll: remove dependency on strtol
40945         This is so that 'configure' need not check for strtol merely because
40946         the application needs strtoll.
40947         * modules/strtoll (Files): Add lib/strtol.c.
40948         (Depends-on): Remove strtol.
40950 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40952         inttypes: Move some configure check to module 'imaxdiv'.
40953         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40954         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40955         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40957 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40959         inttypes: Move some configure check to module 'imaxabs'.
40960         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40961         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40962         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40964 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40966         inttypes: Remove configure tests that are not needed since 2009-12-31.
40967         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40968         gl_cv_header_working_inttypes_h.
40970 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40972         * modules/strnlen (Depends-on): Remove memchr.
40973         The strnlen implementation doesn't need the memchr module's fixes; see
40974         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40976         strtol: remove dependency on wchar
40977         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40978         * modules/strtol (Depends-on): Remove wchar.
40980 2011-04-21  Eric Blake  <eblake@redhat.com>
40982         passfd: fix test regression on Linux
40983         * modules/passfd-tests (configure.ac): Correct socketpair check.
40985         passfd: speed up configure and drop unused code
40986         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40987         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40988         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40989         Instead of probing at configure for unix_scm_rights_bsd44_way,
40990         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40991         check to a struct member probe.
40992         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40993         (sendfd, recvfd): Update preprocessor checks.
40994         * modules/passfd (Files): Reflect rename, and drop unused file.
40995         (Depends-on): Drop unused dependency.
40997         passfd: allow compilation on mingw
40998         * modules/sys_socket (Depends-on): Add sys_uio.
40999         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
41000         iovec and a minimal struct msghdr.
41001         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
41002         * tests/test-sys_socket.c (main): Enhance test.
41003         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
41004         guaranteed to provide what we need.
41005         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
41006         * modules/passfd-tests (Depends-on): Add sys_wait.
41007         * tests/test-passfd.c (main): Skip test on mingw, for now.
41008         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
41009         partial 'struct msghdr' implementation.
41011         sys_uio: new module
41012         * modules/sys_uio: New module.
41013         * modules/sys_uio-tests: Likewise.
41014         * lib/sys_uio.in.h: New file.
41015         * m4/sys_uio_h.m4: Likewise.
41016         * tests/test-sys_uio.c: Likewise.
41017         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
41018         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
41020 2011-04-20  Jim Meyering  <meyering@redhat.com>
41022         useless-if-before-free: avoid false-positive
41023         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
41024         disjunct so that it too requires a terminating ";".  Without that,
41025         this script would identify as useless one statement from gcc that
41026         was not:
41027           if (aligned_ptr)
41028             free (((void **) aligned_ptr) [-1]);
41030 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
41032         doc: update users.txt.
41033         * users.txt: Add barcode.
41035 2011-04-19  Bruno Haible  <bruno@clisp.org>
41037         ioctl: Remove link dependency on native Windows.
41038         * lib/fd-hook.h: Renamed from lib/close-hook.h.
41039         (gl_close_fn, gl_ioctl_fn): New types.
41040         (struct fd_hook): Renamed from struct close_hook. Change type of
41041         private_close_fn field. Add private_ioctl_fn field.
41042         (close_hook_fn): Add parameter for primary close method.
41043         (execute_close_hooks, execute_all_close_hooks): Likewise.
41044         (ioctl_hook_fn): New type.
41045         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
41046         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
41047         argument.
41048         (unregister_fd_hook): Renamed from unregister_close_hook.
41049         * lib/fd-hook.c: Renamed from lib/close-hook.c.
41050         Don't include <unistd.h>.
41051         (close): Remove undef.
41052         (anchor): Update.
41053         (execute_close_hooks): Add argument for primary close method.
41054         (execute_all_close_hooks): Likewise.
41055         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
41056         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
41057         argument. Allow each argument to be NULL.
41058         (unregister_fd_hook): Renamed from unregister_close_hook.
41059         * lib/close.c (rpl_close): Pass 'close' function pointer to
41060         execute_all_close_hooks.
41061         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
41062         (primary_ioctl): New function.
41063         (ioctl): Don't call ioctlsocket here. Instead, call
41064         execute_all_ioctl_hooks.
41065         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
41066         close method.
41067         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
41068         (fd_sockets_hook): Renamed from close_sockets_hook.
41069         (gl_sockets_startup, gl_sockets_cleanup): Update.
41070         * modules/fd-hook: Renamed from modules/close-hook. Update.
41071         * modules/close (Depends-on): Add fd-hook, remove close-hook.
41072         * modules/sockets (Depends-on): Likewise.
41073         * modules/ioctl (Depends-on): Add fd-hook.
41074         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
41075         GNULIB_SOCKET.
41077 2011-04-19  Bruno Haible  <bruno@clisp.org>
41079         Move the support of O_NONBLOCK in open() to the 'open' module.
41080         * modules/nonblocking (Depends-on): Remove 'open'.
41081         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
41082         gl_cv_have_open_O_NONBLOCK.
41083         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
41084         O_NONBLOCK support.
41085         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
41087 2011-04-17  Bruno Haible  <bruno@clisp.org>
41089         pipe2: Simplify code.
41090         * lib/pipe2.c (pipe2): Reduce code duplication.
41092 2011-04-17  Bruno Haible  <bruno@clisp.org>
41094         nonblocking: Add comment.
41095         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
41097 2011-04-17  Bruno Haible  <bruno@clisp.org>
41099         nonblocking: Add tests for sockets.
41100         * tests/test-nonblocking-socket.sh: New file.
41101         * tests/test-nonblocking-socket-main.c: New file.
41102         * tests/test-nonblocking-socket-child.c: New file.
41103         * tests/test-nonblocking-socket.h: New file.
41104         * tests/socket-server.h: New file.
41105         * tests/socket-client.h: New file.
41106         * modules/nonblocking-socket-tests: New file.
41107         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
41109 2011-04-17  Bruno Haible  <bruno@clisp.org>
41111         nonblocking: Add tests for pipes.
41112         * tests/test-nonblocking-pipe.sh: New file.
41113         * tests/test-nonblocking-pipe-main.c: New file.
41114         * tests/test-nonblocking-pipe-child.c: New file.
41115         * tests/test-nonblocking-pipe.h: New file.
41116         * tests/test-nonblocking-writer.h: New file.
41117         * tests/test-nonblocking-reader.h: New file.
41118         * tests/test-nonblocking-misc.h: New file.
41119         * modules/nonblocking-pipe-tests: New file.
41120         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
41122 2011-04-16  Bruno Haible  <bruno@clisp.org>
41124         gettext: Clarify the needed programmer actions.
41125         * modules/gettext (Notice): New field.
41126         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41128 2011-04-16  Bruno Haible  <bruno@clisp.org>
41130         strchrnul: Tweak last commit.
41131         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
41132         bug.
41133         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
41134         as in _GL_FUNCDECL_SYS.
41135         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
41136         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
41138 2011-04-15  Eric Blake  <eblake@redhat.com>
41140         strchrnul: work around cygwin bug
41141         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
41142         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
41143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
41144         * modules/string (Makefile.am): Substitute it.
41145         * lib/string.in.h (strchrnul): Use it.
41147 2011-04-15  Bruno Haible  <bruno@clisp.org>
41149         Don't require lib/stdio-write.c when only module 'stdio' is used.
41150         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
41151         invocation.
41152         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
41154 2011-04-14  Bruno Haible  <bruno@clisp.org>
41156         Support non-blocking pipe I/O in read() on native Windows.
41157         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
41158         (read): New declaration.
41159         * lib/read.c: New file.
41160         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
41161         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
41162         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
41163         vscanf): New declarations.
41164         * lib/stdio-read.c: New file.
41165         * m4/read.m4: New file.
41166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
41167         REPLACE_READ.
41168         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
41169         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41170         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
41171         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
41172         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
41173         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41174         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41175         * modules/read: New file.
41176         * modules/nonblocking (Files): Add lib/stdio-read.c.
41177         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
41178         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
41179         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41180         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41181         * modules/pread (Depends-on): Add read.
41182         * modules/safe-read (Depends-on): Likewise.
41183         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
41184         gets, scanf, vfscanf, vscanf): Verify signatures.
41185         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
41186         problem with non-blocking pipes.
41187         * doc/posix-functions/fgetc.texi: Likewise.
41188         * doc/posix-functions/fgets.texi: Likewise.
41189         * doc/posix-functions/fread.texi: Likewise.
41190         * doc/posix-functions/fscanf.texi: Likewise.
41191         * doc/posix-functions/getc.texi: Likewise.
41192         * doc/posix-functions/getchar.texi: Likewise.
41193         * doc/posix-functions/gets.texi: Likewise.
41194         * doc/posix-functions/scanf.texi: Likewise.
41195         * doc/posix-functions/vfscanf.texi: Likewise.
41196         * doc/posix-functions/vscanf.texi: Likewise.
41198 2011-04-14  Bruno Haible  <bruno@clisp.org>
41200         Support non-blocking pipe I/O in write() on native Windows.
41201         * lib/write.c (rpl_write): Split a write request that failed merely
41202         because the byte count was larger than the pipe buffer's size.
41203         * doc/posix-functions/write.texi: Mention the problem with large byte
41204         counts.
41206 2011-04-14  Bruno Haible  <bruno@clisp.org>
41208         wchar: Ensure that wchar_t gets defined on uClibc.
41209         * lib/wchar.in.h: On uClibc, include <stddef.h>.
41210         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
41212 2011-04-13  Bruno Haible  <bruno@clisp.org>
41214         safe-write, full-read: Avoid unnecessary compilation units.
41215         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
41216         (Depends-on): Remove safe-read. Add ssize_t.
41217         * modules/full-read (Files): Add lib/full-write.c.
41218         (Depends-on): Add full-write.
41220 2011-04-13  Bruno Haible  <bruno@clisp.org>
41222         Support non-blocking pipe I/O and SIGPIPE in pwrite().
41223         * modules/pwrite (Depends-on): Add 'write'.
41225 2011-04-13  Bruno Haible  <bruno@clisp.org>
41227         Support non-blocking pipe I/O in write() on native Windows.
41228         * lib/unistd.in.h (write): Enable replacement also if
41229         GNULIB_UNISTD_H_NONBLOCKING is 1.
41230         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
41231         (rpl_write): When failing to write on a non-blocking pipe, change
41232         errno from ENOSPC to EAGAIN.
41233         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
41234         putchar, puts, vfprintf, vprintf): Enable replacement also if
41235         GNULIB_STDIO_H_NONBLOCKING is 1.
41236         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
41237         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
41238         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
41239         CALL_WITH_SIGPIPE_EMULATION.
41240         (CALL_WITH_SIGPIPE_EMULATION): Use them.
41241         * m4/nonblocking.m4: New file.
41242         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
41243         for non-blocking I/O support.
41244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41245         GNULIB_UNISTD_H_NONBLOCKING.
41246         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
41247         required for non-blocking I/O support.
41248         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
41249         * modules/nonblocking (Files): Add m4/nonblocking.m4,
41250         lib/stdio-write.c, m4/asm-underscore.m4.
41251         (Depends-on): Add stdio, unistd.
41252         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
41253         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
41254         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
41255         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
41256         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
41257         problem with non-blocking pipes.
41258         * doc/posix-functions/fputc.texi: Likewise.
41259         * doc/posix-functions/fputs.texi: Likewise.
41260         * doc/posix-functions/fwrite.texi: Likewise.
41261         * doc/posix-functions/printf.texi: Likewise.
41262         * doc/posix-functions/putc.texi: Likewise.
41263         * doc/posix-functions/putchar.texi: Likewise.
41264         * doc/posix-functions/puts.texi: Likewise.
41265         * doc/posix-functions/vfprintf.texi: Likewise.
41266         * doc/posix-functions/vprintf.texi: Likewise.
41267         * doc/posix-functions/write.texi: Likewise.
41269 2011-04-10  Jim Meyering  <meyering@redhat.com>
41271         maint.mk: prohibit doubled words
41272         Detect them also when they're separated by a newline.
41273         There are 3 ways to customize it:
41274           - disable the test on a per file basis, as usual with rules using
41275             $(VC_LIST_EXCEPT)
41276           - replace the default doubled-word-selecting regexp (affects all files)
41277           - ignore a particular file-vs-doubled-word match
41278         I nearly used that last one to ignore the "is is" match in
41279         coreutils' NEWS file, since the text was "ls -is is ..."
41280         To do that, I would have added this line to cfg.mk:
41281           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
41282         but it would have ignored any "is is" match in NEWS.
41283         Low probability, but still...
41284         Instead, I changed the text, slightly:
41285           -  ls -is is now consistent with ls -lis in ignoring values returned
41286           +  "ls -is" is now consistent with ls -lis in ignoring values returned
41287         * top/maint.mk (prohibit_double_word_RE_): Provide default.
41288         (prohibit_doubled_word_): Define.
41289         (sc_prohibit_doubled_word): New rule.
41290         (sc_prohibit_the_the): Remove.  Subsumed by the above.
41292 2011-04-10  Jim Meyering  <meyering@redhat.com>
41294         maint: fix doubled-word typo in comment
41295         * m4/gethostname.m4: s/is is/it is/
41296         * m4/getdomainname.m4: Likewise.
41298 2011-04-10  Jim Meyering  <meyering@redhat.com>
41300         maint: remove doubled word: s/it it/it/
41301         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
41303 2011-04-10  Jim Meyering  <meyering@redhat.com>
41305         maint.mk: remove useless semicolon and backslash
41306         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
41307         semicolon and backslash.
41309 2011-04-10  Bruno Haible  <bruno@clisp.org>
41311         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
41312         * modules/stdint-tests (Depends-on): Add wchar.
41314 2011-04-10  Jim Meyering  <meyering@redhat.com>
41316         maint: remove doubled words in comments, e.g., s/a a/a/
41317         * lib/strptime.c (day_of_the_week): s/the the/the/
41318         * tests/test-chown.h (test_chown): s/a a/a/
41320         test-chown.h: correct a cast
41321         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
41322         when the destination is a stat.st_gid.
41324 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
41326         getaddrinfo: Fix test for sa_len member.
41327         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
41328         include <sys/types.h> before <sys/socket.h>.
41330 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41332         maint: change "can not" to "cannot"
41333         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41334         boundaries.
41336 2011-04-09  Jim Meyering  <meyering@redhat.com>
41338         maint: change "a a" to "a"
41339         * tests/test-lchown.h (test_lchown): s/a a/a/
41341         maint.mk: prohibit \<the the\>
41342         * top/maint.mk (sc_prohibit_the_the): New rule.
41344         maint: fix "the the" in comment
41345         * lib/count-one-bits.h: s/the the/the/
41347         maint: change "can not" to "cannot"
41348         But do not change the occurrences in maintain.texi or in
41349         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41350         * doc/gnulib-tool.texi: s/can not/cannot/
41351         * doc/posix-functions/accept.texi (accept): Likewise.
41352         * doc/posix-functions/socket.texi (socket): Likewise.
41353         * lib/mbrtowc.c: Likewise.
41355         maint.mk: prohibit use of "can not"
41356         * top/maint.mk (sc_prohibit_can_not): New rule.
41357         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41359 2011-04-09  Bruno Haible  <bruno@clisp.org>
41361         careadlinkat: Guard against misuse of careadlinkatcwd.
41362         * lib/careadlinkat.c: Include <stdlib.h>.
41363         (careadlinkatcwd): Check that the fd argument is as expected.
41365 2011-04-09  Bruno Haible  <bruno@clisp.org>
41367         careadlinkat: Use common coding style.
41368         * lib/careadlinkat.c: Move gnulib includes after system includes.
41370 2011-04-09  Bruno Haible  <bruno@clisp.org>
41372         careadlinkat: Clarify specification.
41373         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41374         (careadlinkatcwd): Add comment.
41375         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41377 2011-04-09  Bruno Haible  <bruno@clisp.org>
41379         areadlinkat: Avoid link error on many platforms.
41380         * modules/areadlinkat (Depends-on): Add areadlink.
41382 2011-04-09  Bruno Haible  <bruno@clisp.org>
41384         allocator, careadlinkat: Fix double-inclusion guard.
41385         * lib/allocator.h: Fix double-inclusion guard.
41386         * lib/careadlinkat.h: Likewise.
41388 2011-04-09  Bruno Haible  <bruno@clisp.org>
41390         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41391         * lib/relocwrapper.c: Update dependencies hierarchy.
41392         * build-aux/install-reloc: Update list of files to be compiled.
41393         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41394         lib/allocator.[hc].
41396 2011-04-08  Eric Blake  <eblake@redhat.com>
41398         strftime: silence gnulib-tool warning
41399         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41401 2011-04-08  Bruno Haible  <bruno@clisp.org>
41403         verify: Fix syntax error with GCC 4.6 in C++ mode.
41404         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41405         (HAVE_STATIC_ASSERT): New macro.
41406         (verify_true, verify): Use 'static_assert' if it is supported and
41407         '_Static_assert' is not supported.
41409 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41411         allocator: New module.
41412         * modules/allocator, lib/allocator.c: New files.
41413         * lib/allocator.h (stdlib_allocator): New decl.
41414         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41415         Remove.  Do not include <stdlib.h>.
41416         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41417         * modules/careadlinkat (Files): Remove lib/allocator.h.
41418         (Depends-on): Add allocator.
41420         stdlib: let modules use system malloc, realloc
41421         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41422         if !_GL_USE_STDLIB_ALLOC.
41423         (malloc, realloc): Limit this change to a smaller scope.
41425         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41426         (malloc, realloc): Don't #undef; no longer needed.
41427         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41428         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41429         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41430         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41431         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41432         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41433         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41434         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41436         careadlinkat: rename members to avoid problem
41437         * lib/allocator.h (struct allocator): Rename members from
41438         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41439         and realloc are #define'd.  Reported by Eric Blake in
41440         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41441         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41443 2011-04-08  Eric Blake  <eblake@redhat.com>
41445         nonblocking: reduce dependency
41446         * tests/test-nonblocking.c: Only test sockets when in use.
41447         * modules/nonblocking-tests (Depends-on): Drop socket.
41448         (Makefile.am): Link even if sockets are not present.
41449         * modules/pipe2-tests (Makefile.am): Likewise.
41450         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41452         pipe2: fix O_NONBLOCK support on mingw
41453         * modules/pipe2 (Depends-on): Add nonblocking.
41454         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41455         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41456         * tests/test-nonblocking.c (main): Likewise.
41457         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41459         fcntl-h: fix O_ACCMODE on cygwin
41460         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41461         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41463         pipe-filter: drop O_NONBLOCK workarounds
41464         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41465         * modules/pipe-filter-ii (Depends-on): Likewise.
41466         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41468         nonblocking: provide O_NONBLOCK for mingw
41469         * modules/nonblocking (Depends-on): Add open.
41470         (configure.ac): Set new witness macro.
41471         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41472         * modules/fcntl-h (Makefile.am): Substitute it.
41473         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41474         nonblocking module is in use.
41475         * lib/nonblocking.c: Adjust portability test.
41476         * lib/open.c (open): Don't let native open see gnulib flag.
41477         * tests/test-fcntl-h.c (main): Enhance test.
41478         * tests/test-open.h (test_open): Likewise.
41479         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41481         careadlinkat: fix compilation error on mingw
41482         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41483         within struct allocator.
41485 2011-04-06  Eric Blake  <eblake@redhat.com>
41487         binary-io: relicense under LGPLv2+
41488         * modules/binary-io (License): Relax to LGPLv2+.
41489         Requested for libvirt, and required by pipe2.
41491 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41493         verify: use _Static_assert if available
41494         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41495         (verify_true, verify): Use it if available.  This generates better
41496         diagnostics with GCC 4.6.0 and later.
41498 2011-04-05  Bruno Haible  <bruno@clisp.org>
41500         Remove leftover generated .h files after config.status changed.
41502         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41503         GL_GENERATE_ALLOCA_H.
41504         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41505         GL_GENERATE_ALLOCA_H evaluates to false.
41507         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41508         GL_GENERATE_ARGZ_H.
41509         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41510         evaluates to false.
41512         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41513         GL_GENERATE_BYTESWAP_H.
41514         * modules/byteswap (Makefile.am): Remove byteswap.h if
41515         GL_GENERATE_BYTESWAP_H evaluates to false.
41517         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41518         GL_GENERATE_ERRNO_H.
41519         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41520         evaluates to false.
41522         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41523         GL_GENERATE_FLOAT_H.
41524         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41525         evaluates to false.
41527         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41528         GL_GENERATE_FNMATCH_H.
41529         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41530         GL_GENERATE_FNMATCH_H evaluates to false.
41532         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41533         GL_GENERATE_GLOB_H.
41534         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41535         evaluates to false.
41537         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41538         automake conditional GL_GENERATE_ICONV_H.
41539         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41540         evaluates to false.
41542         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41543         GL_GENERATE_NETINET_IN_H.
41544         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41545         GL_GENERATE_NETINET_IN_H evaluates to false.
41547         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41548         conditional GL_GENERATE_PTHREAD_H.
41549         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41550         * modules/pthread (Makefile.am): Remove pthread.h if
41551         GL_GENERATE_PTHREAD_H evaluates to false.
41553         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41554         GL_GENERATE_SCHED_H.
41555         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41556         evaluates to false.
41558         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41559         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41560         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41561         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41563         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41564         GL_GENERATE_STDARG_H.
41565         * modules/stdarg (Makefile.am): Remove stdarg.h if
41566         GL_GENERATE_STDARG_H evaluates to false.
41568         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41569         GL_GENERATE_STDBOOL_H.
41570         * modules/stdbool (Makefile.am): Remove stdbool.h if
41571         GL_GENERATE_STDBOOL_H evaluates to false.
41573         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41574         conditional GL_GENERATE_STDDEF_H.
41575         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41576         * modules/stddef (Makefile.am): Remove stddef.h if
41577         GL_GENERATE_STDDEF_H evaluates to false.
41579         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41580         GL_GENERATE_STDINT_H.
41581         * modules/stdint (Makefile.am): Remove stdint.h if
41582         GL_GENERATE_STDINT_H evaluates to false.
41584         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41585         GL_GENERATE_SYSEXITS_H.
41586         * modules/sysexits (Makefile.am): Remove sysexits.h if
41587         GL_GENERATE_SYSEXITS_H evaluates to false.
41589         Reported by Karl Berry and Ralf Wildenhues.
41591 2011-04-05  Bruno Haible  <bruno@clisp.org>
41593         Ensure to rebuild generated .h files when config.status has changed.
41594         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41595         config.status.
41596         * modules/ctype (Makefile.am): Likewise.
41597         * modules/dirent (Makefile.am): Likewise.
41598         * modules/errno (Makefile.am): Likewise.
41599         * modules/fcntl-h (Makefile.am): Likewise.
41600         * modules/float (Makefile.am): Likewise.
41601         * modules/getopt-posix (Makefile.am): Likewise.
41602         * modules/glob (Makefile.am): Likewise.
41603         * modules/iconv-h (Makefile.am): Likewise.
41604         * modules/inttypes (Makefile.am): Likewise.
41605         * modules/langinfo (Makefile.am): Likewise.
41606         * modules/locale (Makefile.am): Likewise.
41607         * modules/math (Makefile.am): Likewise.
41608         * modules/netdb (Makefile.am): Likewise.
41609         * modules/netinet_in (Makefile.am): Likewise.
41610         * modules/poll-h (Makefile.am): Likewise.
41611         * modules/pthread (Makefile.am): Likewise.
41612         * modules/pty (Makefile.am): Likewise.
41613         * modules/sched (Makefile.am): Likewise.
41614         * modules/search (Makefile.am): Likewise.
41615         * modules/selinux-h (Makefile.am): Likewise.
41616         * modules/signal (Makefile.am): Likewise.
41617         * modules/spawn (Makefile.am): Likewise.
41618         * modules/stdarg (Makefile.am): Likewise.
41619         * modules/stdbool (Makefile.am): Likewise.
41620         * modules/stddef (Makefile.am): Likewise.
41621         * modules/stdint (Makefile.am): Likewise.
41622         * modules/stdio (Makefile.am): Likewise.
41623         * modules/stdlib (Makefile.am): Likewise.
41624         * modules/string (Makefile.am): Likewise.
41625         * modules/strings (Makefile.am): Likewise.
41626         * modules/sys_file (Makefile.am): Likewise.
41627         * modules/sys_ioctl (Makefile.am): Likewise.
41628         * modules/sys_select (Makefile.am): Likewise.
41629         * modules/sys_socket (Makefile.am): Likewise.
41630         * modules/sys_stat (Makefile.am): Likewise.
41631         * modules/sys_time (Makefile.am): Likewise.
41632         * modules/sys_times (Makefile.am): Likewise.
41633         * modules/sys_utsname (Makefile.am): Likewise.
41634         * modules/sys_wait (Makefile.am): Likewise.
41635         * modules/sysexits (Makefile.am): Likewise.
41636         * modules/termios (Makefile.am): Likewise.
41637         * modules/time (Makefile.am): Likewise.
41638         * modules/unistd (Makefile.am): Likewise.
41639         * modules/wchar (Makefile.am): Likewise.
41640         * modules/wctype-h (Makefile.am): Likewise.
41641         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41643 2011-04-05  Bruno Haible  <bruno@clisp.org>
41645         pipe2: Relicense under LGPLv2+.
41646         * modules/pipe2 (License): Change to LGPLv2+.
41647         Requested by Eric Blake, for libvirt.
41649 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41651         bootstrap: compute gnulib_extra_files after updating build_aux
41652         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41653         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41655 2011-04-05  Eric Blake  <eblake@redhat.com>
41657         bootstrap: preserve git whitelist item sorting
41658         * build-aux/bootstrap (sort_patterns): New function.
41659         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41661 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41663         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41664         sc_space_tab check.
41666 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41668         areadlink, areadlinkat: rewrite in terms of careadlinkat
41669         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41670         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41671         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41672         (malloc, realloc): Remove #undefs.
41673         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41674         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41675         readlink, ssize_t, stdint, unistd.
41676         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41677         areadlink, stdint.
41679         careadlinkat: new module
41680         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41681         * modules/careadlinkat: New files, written by me with
41682         a review and feedback from Ben Pfaff in
41683         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41685 2011-04-01  Bruno Haible  <bruno@clisp.org>
41687         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41688         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41689         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41690         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41691         Reported by Bruce Korb <bruce.korb@gmail.com>.
41693 2011-04-01  Bruno Haible  <bruno@clisp.org>
41695         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41696         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41697         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41698         * modules/wcpcpy (Depends-on): Add extensions.
41699         * modules/wcpncpy (Depends-on): Likewise.
41700         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41701         systems.
41702         * doc/posix-functions/wcpncpy.texi: Likewise.
41703         * doc/posix-functions/wcwidth.texi: Likewise.
41705 2011-03-31  Eric Blake  <eblake@redhat.com>
41707         nonblocking: fix mingw test failures
41708         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41709         non-blocking flag on regular file.
41710         (get_nonblocking_flag): Set errno on invalid fd.
41711         * tests/test-nonblocking.c (main): Avoid test failure on
41712         directories if fchdir is not active.
41713         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41715 2011-03-31  Bruno Haible  <bruno@clisp.org>
41717         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41718         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41719         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41720         Reported by Simon Josefsson <simon@josefsson.org>.
41722 2011-03-31  Bruno Haible  <bruno@clisp.org>
41723         and Eric Blake  <eblake@redhat.com>
41725         nonblocking: new module
41726         * modules/nonblocking: New module.
41727         * modules/nonblocking-tests: Likewise.
41728         * lib/nonblocking.h: New file.
41729         * lib/nonblocking.c: Likewise.
41730         * tests/test-nonblocking.c: New test.
41731         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41733 2011-03-30  Bruno Haible  <bruno@clisp.org>
41735         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41736         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41737         instead of 'printf' format for GCC >= 4.4.
41738         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41739         (fprintf, printf, vfprintf, vprintf): Declare with
41740         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41741         the system's vfprintf() function.
41742         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41744 2011-03-30  Eric Blake  <eblake@redhat.com>
41746         passfd: fix scoping bug
41747         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41748         before sendmsg/recvmsg.
41750         passfd: standardize coding conventions
41751         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41752         can be learned at compile time.
41753         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41754         ifdefs.
41755         (sendfd, recvfd): Follow gnulib code conventions.
41757         passfd: fix incorrect sendmsg arguments
41758         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41759         incorrect msg_controllen value.
41760         * modules/passfd-tests (Depends-on): Check for alarm.
41761         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41762         Reported by Bastien ROUCARIES.
41764 2011-03-30  Bruno Haible  <bruno@clisp.org>
41766         c-strcasestr: Relicense under LGPLv2+.
41767         * modules/c-strcasestr (License): Change to LGPLv2+.
41768         Requested by Eric Blake, for libvirt.
41770 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41772         * users.txt: Add libidn2.  Fix libtasn1 link.
41774 2011-03-30  Jim Meyering  <meyering@redhat.com>
41776         tests: readlink* ("",... fails with EINVAL on newer kernels
41777         readlink and readlinkat have typically failed with ENOENT for
41778         the invalid, empty file name,  "".  However, with the advent
41779         of linux-2.6.39, they fail with EINVAL.
41780         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41781         when operating on the empty file name.
41782         * tests/test-readlink.h (test_readlink): Likewise.
41784 2011-03-29  Bruno Haible  <bruno@clisp.org>
41786         Relicense some modules under LGPLv2+, for libidn2.
41787         * modules/array-mergesort (License): Change to LGPLv2+.
41788         * modules/c-strcaseeq (License): Likewise.
41789         * modules/striconveh (License): Likewise.
41790         * modules/striconveha (License): Likewise.
41791         * modules/uniconv/base (License): Likewise.
41792         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41793         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41794         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41795         * modules/unictype/base (License): Likewise.
41796         * modules/unictype/bidiclass-of (License): Likewise.
41797         * modules/unictype/category-M (License): Likewise.
41798         * modules/unictype/category-none (License): Likewise.
41799         * modules/unictype/category-of (License): Likewise.
41800         * modules/unictype/category-test (License): Likewise.
41801         * modules/unictype/category-test-withtable (License): Likewise.
41802         * modules/unictype/combining-class (License): Likewise.
41803         * modules/unictype/joiningtype-of (License): Likewise.
41804         * modules/unictype/scripts (License): Likewise.
41805         * modules/uninorm/base (License): Likewise.
41806         * modules/uninorm/canonical-decomposition (License): Likewise.
41807         * modules/uninorm/composition (License): Likewise.
41808         * modules/uninorm/decompose-internal (License): Likewise.
41809         * modules/uninorm/decomposition-table (License): Likewise.
41810         * modules/uninorm/nfc (License): Likewise.
41811         * modules/uninorm/nfd (License): Likewise.
41812         * modules/uninorm/u32-normalize (License): Likewise.
41813         * modules/unistr/base (License): Likewise.
41814         * modules/unistr/u32-cpy (License): Likewise.
41815         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41816         * modules/unistr/u32-to-u8 (License): Likewise.
41817         * modules/unistr/u32-uctomb (License): Likewise.
41818         * modules/unistr/u8-check (License): Likewise.
41819         * modules/unistr/u8-mblen (License): Likewise.
41820         * modules/unistr/u8-mbtouc (License): Likewise.
41821         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41822         * modules/unistr/u8-mbtoucr (License): Likewise.
41823         * modules/unistr/u8-prev (License): Likewise.
41824         * modules/unistr/u8-strlen (License): Likewise.
41825         * modules/unistr/u8-to-u32 (License): Likewise.
41826         * modules/unistr/u8-uctomb (License): Likewise.
41827         * modules/unitypes (License): Likewise.
41828         Requested by Simon Josefsson.
41830 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41832         lib-symbol-visibility: Add a notice.
41833         * modules/lib-symbol-visibility (Notice): New field.
41835 2011-03-29  Bruno Haible  <bruno@clisp.org>
41837         getaddrinfo: Doc fix.
41838         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41839         section "fixed in Gnulib".
41841 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41843         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41844         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41846 2011-03-26  Bruno Haible  <bruno@clisp.org>
41848         unictype/property-byname: Reduce the number of load-time relocations.
41849         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41850         (UC_PROPERTY_INDEX_*): New enumeration values.
41851         (uc_property_byname): Convert an index from the lookup table to an
41852         uc_property_t.
41853         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41854         values.
41856 2011-03-26  Bruno Haible  <bruno@clisp.org>
41858         unictype/property-byname: Allow omitted word separators and aliases.
41859         * lib/unictype/pr_byname.gperf: Add property names without word
41860         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41861         for 'space'.
41863 2011-03-26  Bruno Haible  <bruno@clisp.org>
41865         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41866         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41867         also hyphens to space.
41868         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41869         without spaces.
41870         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41872 2011-03-26  Bruno Haible  <bruno@clisp.org>
41874         unictype/joiningtype-byname: Recognize long names as well.
41875         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41876         a long name.
41877         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41878         unictype/joiningtype_byname.h.
41879         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41880         * lib/unictype/joiningtype_byname.gperf: New file.
41881         * modules/unictype/joiningtype-byname (Files): Add
41882         lib/unictype/joiningtype_byname.gperf.
41883         (Depends-on): Add gperf.
41884         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41885         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41886         long names.
41888         Tests for module 'unictype/joiningtype-longname'.
41889         * modules/unictype/joiningtype-longname-tests: New file.
41890         * tests/unictype/test-joiningtype_longname.c: New file.
41892         New module 'unictype/joiningtype-longname'.
41893         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41894         * lib/unictype/joiningtype_longname.c: New file.
41895         * modules/unictype/joiningtype-longname: New file.
41896         * modules/unictype/joiningtype-all (Depends-on): Add
41897         unictype/joiningtype-longname.
41899 2011-03-26  Bruno Haible  <bruno@clisp.org>
41901         unictype/bidiclass-byname: Recognize long names as well.
41902         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41903         name.
41904         * lib/unictype/bidi_byname.c: Include <string.h>,
41905         unictype/bidi_byname.h.
41906         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41907         * lib/unictype/bidi_byname.gperf: New file.
41908         * modules/unictype/bidiclass-byname (Files): Add
41909         lib/unictype/bidi_byname.gperf.
41910         (Depends-on): Add gperf.
41911         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41912         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41913         long names.
41915         Tests for module 'unictype/bidiclass-longname'.
41916         * modules/unictype/bidiclass-longname-tests: New file.
41917         * tests/unictype/test-bidi_longname.c: New file.
41919         New module 'unictype/bidiclass-longname'.
41920         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41921         * lib/unictype/bidi_longname.c: New file.
41922         * modules/unictype/bidiclass-longname: New file.
41923         * modules/unictype/bidiclass-all (Depends-on): Add
41924         unictype/bidiclass-longname.
41926 2011-03-26  Bruno Haible  <bruno@clisp.org>
41928         unictype/bidi*: Rename modules.
41929         * modules/unictype/bidiclass-all: Renamed from
41930         modules/unictype/bidicategory-all.
41931         * modules/unictype/bidiclass-name: Renamed from
41932         modules/unictype/bidiclass-name.
41933         (Description): Update.
41934         * modules/unictype/bidiclass-name-tests: Renamed from
41935         modules/unictype/bidicategory-name-tests.
41936         * modules/unictype/bidiclass-byname: Renamed from
41937         modules/unictype/bidicategory-byname.
41938         (Description): Update.
41939         * modules/unictype/bidiclass-byname-tests: Renamed from
41940         modules/unictype/bidicategory-byname-tests.
41941         * modules/unictype/bidiclass-of: Renamed from
41942         modules/unictype/bidicategory-of.
41943         (Description): Update.
41944         * modules/unictype/bidiclass-of-tests: Renamed from
41945         modules/unictype/bidicategory-of-tests.
41946         * modules/unictype/bidiclass-test: Renamed from
41947         modules/unictype/bidicategory-test.
41948         (Description): Update.
41949         * modules/unictype/bidiclass-test-tests: Renamed from
41950         modules/unictype/bidicategory-test-tests.
41951         * modules/unictype/bidicategory-all: New file, a simple redirection.
41952         * modules/unictype/bidicategory-name: Likewise.
41953         * modules/unictype/bidicategory-byname: Likewise.
41954         * modules/unictype/bidicategory-of: Likewise.
41955         * modules/unictype/bidicategory-test: Likewise.
41956         * modules/unictype/property-bidi-* (Dependencies): Update.
41957         * lib/unictype/bidi_*.c: Update comment.
41959 2011-03-26  Bruno Haible  <bruno@clisp.org>
41961         unictype/bidi*: Rename functions, part 2.
41962         * modules/unictype/bidicategory-name (configure.ac): Update required
41963         libunistring version.
41964         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41966 2011-03-25  Bruno Haible  <bruno@clisp.org>
41968         New module 'unictype/combining-class-all'.
41969         * modules/unictype/combining-class-all: New file.
41971         Tests for module 'unictype/combining-class-byname'.
41972         * modules/unictype/combining-class-byname-tests: New file.
41973         * tests/unictype/test-combiningclass_byname.c: New file.
41975         New module 'unictype/combining-class-byname'.
41976         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41977         * lib/unictype/combiningclass_byname.c: New file.
41978         * lib/unictype/combiningclass_byname.gperf: New file.
41979         * modules/unictype/combining-class-byname: New file.
41981         Tests for module 'unictype/combining-class-longname'.
41982         * modules/unictype/combining-class-longname-tests: New file.
41983         * tests/unictype/test-combiningclass_longname.c: New file.
41985         New module 'unictype/combining-class-longname'.
41986         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41987         * lib/unictype/combiningclass_longname.c: New file.
41988         * modules/unictype/combining-class-longname: New file.
41990         Tests for module 'unictype/combining-class-name'.
41991         * modules/unictype/combining-class-name-tests: New file.
41992         * tests/unictype/test-combiningclass_name.c: New file.
41994         New module 'unictype/combining-class-name'.
41995         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41996         * lib/unictype/combiningclass_name.c: New file.
41997         * modules/unictype/combining-class-name: New file.
41999 2011-03-25  Bruno Haible  <bruno@clisp.org>
42001         unictype/combining-class: Rename source files.
42002         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
42003         of unictype/combining.h.
42004         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
42005         Update.
42006         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
42007         * modules/unictype/combining-class (Description): Fix.
42008         (Files, Makefile.am): Update.
42009         * tests/unictype/test-combiningclass.c: Renamed from
42010         tests/unictype/test-combining.c.
42011         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
42013 2011-03-25  Bruno Haible  <bruno@clisp.org>
42015         unictype: Update list of canonical combining classes.
42016         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
42018 2011-03-25  Bruno Haible  <bruno@clisp.org>
42020         unictype/category-byname: Recognize long names as well.
42021         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
42022         a long name.
42023         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
42024         unictype/categ_byname.h.
42025         (UC_CATEGORY_INDEX_*): New enumeration values.
42026         (uc_general_category_byname): Use uc_general_category_lookup and
42027         convert from index to value.
42028         * lib/unictype/categ_byname.gperf: New file.
42029         * modules/unictype/category-byname (Files): Add
42030         lib/unictype/categ_byname.gperf.
42031         (Depends-on): Add gperf.
42032         (Makefile.am): Add rule for generating unictype/categ_byname.h.
42033         * tests/unictype/test-categ_byname.c (main): Test the recognition of
42034         long names.
42036         Tests for module 'unictype/category-longname'.
42037         * modules/unictype/category-longname-tests: New file.
42038         * tests/unictype/test-categ_longname.c: New file.
42040         New module 'unictype/category-longname'.
42041         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
42042         * lib/unictype/categ_longname.c: New file.
42043         * modules/unictype/category-longname: New file.
42044         * modules/unictype/category-all (Depends-on): Add it.
42046 2011-03-25  Bruno Haible  <bruno@clisp.org>
42048         Tests for module 'unictype/category-LC'.
42049         * modules/unictype/category-LC-tests: New file.
42050         * tests/unictype/test-categ_LC.c: New file, automatically generated.
42052         New module 'unictype/category-LC'.
42053         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
42054         (UC_CATEGORY_LC): New declaration.
42055         (UC_CASED_LETTER): New macro.
42056         * lib/gen-uni-tables.c (is_category_LC): New function.
42057         (output_categories): Also handle category LC.
42058         (UC_CATEGORY_MASK_LC): New enumeration value.
42059         (general_category_byname): Also handle category LC.
42060         * lib/unictype/categ_LC.c: New file.
42061         * lib/unictype/categ_LC.h: New file, automatically generated.
42062         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
42063         category LC.
42064         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
42065         * modules/unictype/category-LC: New file.
42066         * modules/unictype/category-byname (Depends-on): Add
42067         unictype/category-LC.
42068         * modules/unictype/category-all (Depends-on): Likewise.
42070 2011-03-25  Eric Blake  <eblake@redhat.com>
42072         xmalloc: revert yesterday's regression
42073         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
42074         realloc's underlying behavior (allowing allocation of zero-size
42075         objects, especially if malloc-gnu is also in use).
42077 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
42079         maint.mk: add missing version to VC-tag
42080         * top/maint.mk: git tag was missing actual tag name; add it.
42082         valgrind: do leak checking, and exit with code 1 on error (not 0)
42083         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
42084         to VALGRIND.
42086 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
42088         posix-modules: say what it does.
42089         * posix-modules: Add a line to the --help output saying what it does.
42091 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
42093         xmalloc: Do not leak if underlying realloc is C99 compatible.
42094         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
42095         This avoids a leak on C99-based systems.  See
42096         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
42098 2011-03-24  Eric Blake  <eblake@redhat.com>
42100         realloc: document portability problem
42101         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
42102         passing 0 size to realloc.
42104 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
42106         doc: update users.txt
42107         * users.txt: Add cvsps, tmpwatch
42109 2011-03-23  Matt Rice  <ratmice@gmail.com>
42111         doc: update users.txt
42112         * users.txt: Add gdb.
42114 2011-03-23  Jim Meyering  <meyering@redhat.com>
42116         doc: update users.txt
42117         Looking through matches up to the following URL (there are still
42118         several more pages), I found several projects that use gnulib:
42119         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
42120         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
42121         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
42123 2011-03-22  Bruno Haible  <bruno@clisp.org>
42125         unictype/bidi*: Rename functions.
42126         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
42127         uc_bidi_class, uc_is_bidi_class): New declarations.
42128         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
42129         uc_bidi_category_byname.
42130         (uc_bidi_category_byname): New function.
42131         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
42132         u_bidi_category_name.
42133         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
42134         (uc_bidi_category_name): New function.
42135         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
42136         uc_bidi_category.
42137         (uc_bidi_category): New function.
42138         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
42139         uc_is_bidi_category. Invoke uc_bidi_class.
42140         (uc_is_bidi_category): New function.
42141         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
42142         instead of uc_bidi_category_byname.
42143         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
42144         instead of uc_bidi_category_name.
42145         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
42146         uc_bidi_category.
42147         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
42148         instead of uc_is_bidi_category.
42150 2011-03-21  Bruno Haible  <bruno@clisp.org>
42152         New module 'unictype/joininggroup-all'.
42153         * modules/unictype/joininggroup-all: New file.
42155         Tests for module 'unictype/joininggroup-of'.
42156         * modules/unictype/joininggroup-of-tests: New file.
42157         * tests/unictype/test-joininggroup_of.c: New file.
42158         * tests/unictype/test-joininggroup_of.h: New file, automatically
42159         generated by gen-uni-tables.
42161         New module 'unictype/joininggroup-of'.
42162         * modules/unictype/joininggroup-of: New file.
42163         * lib/unictype/joininggroup_of.c: New file.
42164         * lib/unictype/joininggroup_of.h: New file, automatically generated by
42165         gen-uni-tables.
42167         Tests for module 'unictype/joininggroup-byname'.
42168         * modules/unictype/joininggroup-byname-tests: New file.
42169         * tests/unictype/test-joininggroup_byname.c: New file.
42171         New module 'unictype/joininggroup-byname'.
42172         * modules/unictype/joininggroup-byname: New file.
42173         * lib/unictype/joininggroup_byname.c: New file.
42174         * lib/unictype/joininggroup_byname.gperf: New file.
42176         Tests for module 'unictype/joininggroup-name'.
42177         * modules/unictype/joininggroup-name-tests: New file.
42178         * tests/unictype/test-joininggroup_name.c: New file.
42180         New module 'unictype/joininggroup-name'.
42181         * modules/unictype/joininggroup-name: New file.
42182         * lib/unictype/joininggroup_name.c: New file.
42183         * lib/unictype/joininggroup_name.h: New file.
42185         New module 'unictype/joiningtype-all'.
42186         * modules/unictype/joiningtype-all: New file.
42188         Tests for module 'unictype/joiningtype-of'.
42189         * modules/unictype/joiningtype-of-tests: New file.
42190         * tests/unictype/test-joiningtype_of.c: New file.
42191         * tests/unictype/test-joiningtype_of.h: New file, automatically
42192         generated by gen-uni-tables.
42194         New module 'unictype/joiningtype-of'.
42195         * modules/unictype/joiningtype-of: New file.
42196         * lib/unictype/joiningtype_of.c: New file.
42197         * lib/unictype/joiningtype_of.h: New file, automatically generated by
42198         gen-uni-tables.
42200         Tests for module 'unictype/joiningtype-byname'.
42201         * modules/unictype/joiningtype-byname-tests: New file.
42202         * tests/unictype/test-joiningtype_byname.c: New file.
42204         New module 'unictype/joiningtype-byname'.
42205         * modules/unictype/joiningtype-byname: New file.
42206         * lib/unictype/joiningtype_byname.c: New file.
42208         Tests for module 'unictype/joiningtype-name'.
42209         * modules/unictype/joiningtype-name-tests: New file.
42210         * tests/unictype/test-joiningtype_name.c: New file.
42212         New module 'unictype/joiningtype-name'.
42213         * modules/unictype/joiningtype-name: New file.
42214         * lib/unictype/joiningtype_name.c: New file.
42216         unictype: Add support for Arabic shaping properties.
42217         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
42218         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
42219         declarations.
42220         (UC_JOINING_GROUP_*): New enumeration values.
42221         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
42222         declarations.
42223         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
42224         (unicode_joining_type): New variable.
42225         (UC_JOINING_GROUP_*): New enumeration values.
42226         (unicode_joining_group): New variable.
42227         (fill_arabicshaping, joining_type_as_c_identifier,
42228         output_joining_type_test, output_joining_type,
42229         joining_group_as_c_identifier, output_joining_group_test,
42230         output_joining_group): New functions.
42231         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
42232         fill_arabicshaping and output_joining_type_test, output_joining_type,
42233         output_joining_group_test, output_joining_group.
42234         Reported by Simon Josefsson.
42236 2011-03-21  Jim Meyering  <meyering@redhat.com>
42238         strftime: fix a bug in yesterday's change
42239         * lib/strftime.c (add): Accommodate width's initial value of -1.
42240         Otherwise, nstrftime would copy uninitialized data into
42241         the result buffer.
42243 2011-03-21  Jim Meyering  <meyering@redhat.com>
42245         tests: add strftime-tests module
42246         * tests/test-strftime.c: New file.
42247         * modules/strftime-tests: New module.
42249 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42251         strftime: don't assume a byte count fits in 'int'
42252         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
42253         found this problem by static analysis, using gcc -Wstrict-overflow
42254         (GCC 4.5.2, x86-64).  This reported an optimization that depended
42255         on an integer overflow having undefined behavior, but it turns out
42256         that the argument is a size, which might not fit in 'int' anyway,
42258 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42260         stdio: don't require ignore_value around fwrite
42262         This patch works around libc bug 11959
42263         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
42264         Without this patch, applications must often write
42265         ignore_value (fwrite (...)) even though the ignore_value is
42266         not helpful here.  It's common to write many objects, using
42267         fwrite/printf/etc., and then use ferror to detect output error.
42269         I considered making this patch optional, but decided against it,
42270         because libc is obviously being inconsistent here: there is no
42271         reason libc should insist that user code must inspect fwrite
42272         return's value without also insisting that it inspect printf's,
42273         putchar's, etc.  If user code wants to have a strict style where
42274         all these functions' values are checked (so that ferror need not
42275         be checked), we could add support for that style in a new gnulib
42276         module, but in the meantime it's better to be consistent and to
42277         support common usage.
42279         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
42280         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
42281         that we are compiling in checking mode, and if not C++, and
42282         if not already wrapping fwrite for some other reason.
42283         (fwrite): #define to rpl_fwrite if the latter is defined.
42285 2011-03-20  Bruno Haible  <bruno@clisp.org>
42287         verror: Fix compilation error introduced on 2011-02-13.
42288         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
42289         instead of __attribute__.
42290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42292 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42293             Bruno Haible  <bruno@clisp.org>
42295         socklen: do not depend on sys_socket
42296         While trying to modify Emacs to use gnulib's socklen module,
42297         I discovered a circular dependency: socklen depends on sys_socket
42298         and vice versa.  Emacs can use socklen, but it does not need
42299         sys_socket because it has its own substitute for sys/socket.h.
42300         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
42301         gl_TYPE_SOCKLEN_T.
42302         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
42303         gl_PREREQ_SYS_H_SOCKET.
42304         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
42305         gl_PREREQ_SYS_H_SOCKET.
42306         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
42307         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
42308         * modules/socklen (Depends-on): Do not depend on sys_socket.
42309         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
42311 2011-03-20  Jim Meyering  <meyering@redhat.com>
42313         maint.mk: sort file names *after* new transformation
42314         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
42315         prefix would have led to an unwarranted failure in GNU parted.
42316         Sort after that transformation.
42318 2011-03-19  Jim Meyering  <meyering@redhat.com>
42320         maint.mk: fix po-file syntax-check rule
42321         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
42322         Patch by Bruno Haible.
42324 2011-03-19  Bruno Haible  <bruno@clisp.org>
42326         socklen: Update comment.
42327         * m4/socklen.m4: Update comment about platforms.
42329 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42330             Bruno Haible  <bruno@clisp.org>
42332         inet_ntop, inet_pton: Simplify.
42333         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42334         documented to provide socklen_t and we already depend on sys_socket.
42335         * modules/inet_pton (Depends-on): Likewise.
42336         * lib/arpa_inet.in.h: Adjust comment.
42338 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42339             Bruno Haible  <bruno@clisp.org>
42341         netdb: Simplify.
42342         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42343         documented to provide socklen_t and we already depend on sys_socket.
42344         * lib/netdb.in.h: Adjust comment.
42346 2011-03-19  Bruno Haible  <bruno@clisp.org>
42348         sys_socket, netdb: Document problem with socklen_t.
42349         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42350         platforms.
42351         * doc/posix-headers/netdb.texi: Likewise.
42353 2011-03-18  Eric Blake  <eblake@redhat.com>
42355         maint.mk: let po check work in VPATH build
42356         * top/maint.mk (po_file): Allow cfg.mk override.
42357         (sc_po_check): Allow VPATH use.
42358         Reported by Jiri Denemark.
42360 2011-03-16  Jim Meyering  <meyering@redhat.com>
42362         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42363         Before, you would have had to create one .x-sc_ file per rule in order
42364         to exempt offending files.  Now, you may instead use a Make variable --
42365         usually defined in cfg.mk -- whose name identifies the affected rule.
42366         * top/maint.mk (_sc_excl): Define.
42367         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42368         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42370 2011-03-13  Bruno Haible  <bruno@clisp.org>
42372         ignore-value tests: Avoid warnings.
42373         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42374         empty for gcc < 3.4.
42376 2011-03-13  Bruno Haible  <bruno@clisp.org>
42378         passfd: Fix link error on Solaris.
42379         * modules/passfd (Description): Correct.
42380         (Depends-on): Add socketlib.
42381         (Link): New section.
42382         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42384 2011-03-13  Bruno Haible  <bruno@clisp.org>
42386         passfd: Fix link error on AIX 5.2.
42387         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42389 2011-03-13  Bruno Haible  <bruno@clisp.org>
42391         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42392         * lib/sys_socket.in.h: Include <stddef.h>.
42393         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42394         CMSG_FIRSTHDR. Remove unused variable.
42396 2011-03-13  Bruno Haible  <bruno@clisp.org>
42398         passfd: Fix compilation error on OpenBSD.
42399         * lib/passfd.c: Include <sys/uio.h>.
42401 2011-03-13  Bruno Haible  <bruno@clisp.org>
42403         passfd test: Fix warnings.
42404         * tests/test-passfd.c: Include <sys/wait.h>.
42405         (main): Fix typo.
42407 2011-03-13  Bruno Haible  <bruno@clisp.org>
42409         passfd module, part 4, tweaks.
42410         * tests/test-passfd.c: Reorder includes.
42411         (main): Fix perror and printf calls.
42413 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42415         passfd module, part 4.
42416         * modules/passfd-tests: New file.
42417         * tests/test-passfd.c: New file.
42419 2011-03-13  Jim Meyering  <meyering@redhat.com>
42421         Makefile: rely on GNU make; derive syntax-check rule names
42422         Rather than requiring that each sc_ rule be listed as a dependent
42423         of "check", use features of GNU make to derive the list.
42424         * Makefile (syntax-check-rules): Define.
42425         (check): Depend on the new variable, not the hard-coded list.
42427 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42428             Bruno Haible  <bruno@clisp.org>
42430         passfd module, part 3.
42431         * lib/passfd.h (recvfd): Add a flags argument.
42432         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42433         (recvfd): Add a flags argument.
42434         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42435         exists.
42436         * modules/passfd (Depends-on): Add cloexec.
42437         Suggested by Eric Blake.
42439 2011-03-13  Bruno Haible  <bruno@clisp.org>
42441         passfd module, part 2, tweaks.
42442         * modules/passfd (Files): Reorder.
42443         (Depends-on): Remove errno.
42444         (Include): Remove <sys/socket.h>, <sys/un.h>.
42445         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42446         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42447         specification header. Include <sys/socket.h> always. Don't include
42448         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42449         (sendfd): Clarify that it sets errno when it fails.
42450         (recvfd): Fix specification.
42452 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42454         passfd module, part 2.
42455         * modules/passfd: New file.
42456         * lib/passfd.h: New file.
42457         * lib/passfd.c: New file.
42459 2011-03-12  Bruno Haible  <bruno@clisp.org>
42461         wcswidth, mbswidth: Avoid integer overflow.
42462         * lib/wcswidth.c: Include <limits.h>.
42463         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42464         * lib/mbswidth.c: Include <limits.h>.
42465         (mbsnwidth): Avoid 'int' overflow.
42466         Reported by Jim Meyering.
42468 2011-03-12  Bruno Haible  <bruno@clisp.org>
42470         futimens, utimensat: Avoid endless recursion on Solaris 10.
42471         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42472         Solaris.
42473         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42474         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42476 2011-03-11  Jim Meyering  <meyering@redhat.com>
42478         maint.mk: relax a regexp to accommodate other formatting styles
42479         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42480         between "ngettext" and the following "(".
42482 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42484         maint.mk: suppress a false positive warning
42485         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42486         diagnostics are marked with ngettext.
42488 2011-03-10  Eric Blake  <eblake@redhat.com>
42490         wchar: add explicit dependencies, for Tru64
42491         * modules/mbmemcasecoll (Depends-on): Add wchar.
42492         * modules/mbtowc (Depends-on): Likewise.
42493         * modules/vasnprintf (Depends-on): Likewise.
42494         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42495         * modules/wctomb (Depends-on): Likewise.
42496         Reported by Peter O'Gorman.
42498 2011-03-08  Bruno Haible  <bruno@clisp.org>
42500         passfd module, part 1, tweaks.
42501         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42502         Improve indentation. Improve AC_MSG_CHECKING messages.
42503         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42504         gl_SOCKET_FAMILIES.
42506 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42508         passfd module, part 1.
42509         * m4/afunix.m4: New file.
42510         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42511         sockets.
42513 2011-03-08  Bruno Haible  <bruno@clisp.org>
42515         regex-quote: New API.
42516         * lib/regex-quote.h: Include <stdbool.h>.
42517         (struct regex_quote_spec): New type.
42518         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42519         New declarations.
42520         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42521         'const struct regex_quote_spec *' argument.
42522         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42523         (pcre_special): New constant.
42524         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42525         New functions.
42526         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42527         'const struct regex_quote_spec *' argument.
42528         * modules/regex-quote (Depends-on): Add stdbool.
42529         * tests/test-regex-quote.c (check): Update for new API. Add test for
42530         anchored results.
42531         * NEWS: Mention the API change.
42532         Reported by Reuben Thomas and Eric Blake.
42534 2011-03-06  Bruno Haible  <bruno@clisp.org>
42536         regex-quote: Fix creation of POSIX extended regular expressions.
42537         * lib/regex-quote.c (ere_special): Add grouping and alternation
42538         operators.
42540 2011-03-05  Bruno Haible  <bruno@clisp.org>
42542         doc: Improve doc regarding autopoint vs. gnulib.
42543         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42544         disable autopoint while running autoreconf.
42545         Suggested by Ralf Wildenhues.
42547 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42549         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42550         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42552 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42554         parse-duration: remove xalloc.h dependency
42555         * lib/parse-duration.c (parse_period): handle NULL return from
42556         strdup instead of calling xstrdup().
42557         * modules/parse-duration: remove "xalloc" dependency
42559 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42561         bootstrap: honor m4_base when running aclocal
42562         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42564 2011-03-02  Jim Meyering  <meyering@redhat.com>
42566         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42567         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42568         on request from Matt Booth.
42570 2011-03-01  Eric Blake  <eblake@redhat.com>
42572         test-link: work on Hurd
42573         * tests/test-link.h (test_link): Hurd rejects linking directories
42574         with EISDIR instead of the POSIX-mandated EPERM.
42576 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42578         stdio: simplify by moving files to printf-posix, sigpipe
42579         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42580         since this symbol is needed only if printf is replaced.
42581         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42582         Require gl_ASM_SYMBOL_PREFIX.
42583         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42584         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42585         (Depends-on): Add 'raise'.
42586         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42587         * modules/stdio (Files): Remove lib/stdio-write.c,
42588         m4/asm-underscore.m4.
42589         (Depends-on): Remove 'raise'.
42591         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42592         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42593         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42594         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42596 2011-02-28  Bruno Haible  <bruno@clisp.org>
42598         localcharset: Assume ANSI C behaviour of free().
42599         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42600         calling free().
42601         Suggested by Simon Josefsson <simon@josefsson.org>.
42603 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42604             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42605             Bruno Haible  <bruno@clisp.org>  (tiny change)
42607         On Cygwin, use /proc file system instead of win32 API.
42608         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42609         Win32 file names.
42610         (DllMain): Simplify by removing Cygwin specific code.
42611         (find_shared_library_fullname): Use Linux specific implementation also
42612         for Cygwin.
42613         (get_shared_library_fullname): Update accordingly.
42614         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42615         Win32 file names.
42616         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42617         Cygwin specific code.
42619 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42620             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42622         Fix OpenMP flag detection for various Fortran compilers.
42623         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42624         OpenMP-conditional compilation construct, to force compile
42625         failure with missing OpenMP flag.
42626         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42628 2011-02-25  Eric Blake  <eblake@redhat.com>
42630         strstr: expand test coverage
42631         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42632         compilation.
42633         * tests/test-memmem.c (main): Duplicate tests.
42634         * tests/test-strcasestr.c (main): Likewise.
42635         * tests/test-c-strcasestr.c (main): Likewise.
42637 2011-02-25  Jim Meyering  <meyering@redhat.com>
42639         maint.mk: detect missing-NL-at-EOF, too
42640         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42641         it also detects when a file lacks a newline at EOF.
42642         (require_exactly_one_NL_at_EOF_): Renamed from
42643         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42644         since people may well have .x-sc_... file names tied to the
42645         existing name.  Suggested by Eric Blake.
42647 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42649         dirname: move m4/dos.m4 functionality into lib/dosname.h
42651         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42652         extracts symbols from it, puts them into config.h; but it's much
42653         easier to use the symbols directly.  filename.h already does this,
42654         but it disagrees with dos.m4 in some respects.  This patch
42655         introduces a different include file dosname.h that packages up
42656         dos.m4, and then later we can work on merging filename.h and
42657         dosname.h.  Applications that need only the easy-to-configure
42658         symbols should consider including dosname.h rather than dirname.h.
42659         * NEWS: Mention incompatible changes.
42660         * m4/dos.m4: Remove.
42661         * lib/dosname.h, modules/dosname: New files.
42662         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42663         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42664         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42665         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42666         Include dosname.h, not dirname.h.
42667         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42668         Include dosname.h, for definitions of symbols like ISSLASH
42669         that used to be in config.h.
42670         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42671         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42672         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42673         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42674         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42675         * modules/rmdir (Files): Likewise.
42676         * modules/stat (Files): Likewise.
42677         * modules/unlink (Files): Likewise.
42678         * modules/dirname-lgpl (Depends-on): Add dosname.
42679         * modules/lstat (Depends-on): Likewise.
42680         * modules/openat (Depends-on): Likewise.
42681         * modules/rmdir (Depends-on): Likewise.
42682         * modules/savewd (Depends-on): Likewise.
42683         * modules/stat (Depends-on): Likewise.
42684         * modules/unlink (Depends-on): Likewise.
42685         * modules/openat (Depends-on): Remove dirname-lgpl.
42686         * modules/savewd (Depends-on): Likewise.
42687         * tests/test-dirname.c: Do not use removed symbols like
42688         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42689         the remaining symbols, e.g., ISSLASH ('\\').
42691 2011-02-25  Eric Blake  <eblake@redhat.com>
42693         strstr: revert patches that introduced bug and pessimization
42694         * lib/str-two-way.h: Add another reference.
42695         (two_way_short_needle, two_way_long_needle): Revert changes from
42696         2011-02-24; they pessimize search speed.
42697         (critical_factorization): Partially revert changes from
42698         2010-06-22; they violate the requirement that the left half of the
42699         needle be smaller than the period of the needle.
42701 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42703         filenamecat: remove unnecessary dependency on dirname-lgpl
42704         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42705         is no direct dependency, just an indirect one via filenamecat-lgpl.
42707         remove: remove unnecessary use of m4/dos.m4
42708         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42709         * modules/remove (FILES): Remove m4/dos.m4.
42711         * lib/openat-proc.c: Don't include dirname.h; not needed.
42713         backupfile: remove unnecessary use of m4/dos.m4
42714         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42715         of its symbols are used by the backupfile code.  backupfile.c does
42716         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42717         for the rare case of programs that want all their backup file
42718         names to live within 8+3 limits, and dos.m4 doesn't address that.
42719         * modules/backupfile (Files): Remove m4/dos.m4.
42721 2011-02-24  Jim Meyering  <meyering@redhat.com>
42723         strstr: fix a bug whereby strstr would mistakenly return NULL
42724         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42725         in period calculation.
42726         (two_way_long_needle): Likewise.
42727         The original problem was reported by Mike Stump in
42728         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42729         Ralf Wildenhues provided the short needle and haystack.
42730         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42731         Add a more involved test to trigger the bug in two_way_long_needle.
42733 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42735         gnulib-tool: remove use of bold display in help screen
42736         * gnulib-tool (func_usage): Do not use bold display anymore in the
42737         help screen.  That was just meant to be a temporary emphasis for a
42738         backward-incompatible change.
42740 2011-02-23  Bruno Haible  <bruno@clisp.org>
42742         Fix misindentation of preprocessor directives.
42743         * lib/argp-namefrob.h: Reindent preprocessor directives.
42744         * lib/getopt_int.h (struct _getopt_data): Likewise.
42745         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42746         * lib/vasnprintf.c (decode_long_double): Likewise.
42747         * tests/test-argmatch.c: Insert blank lines, for clarity.
42748         * tests/test-exclude.c: Likewise.
42750 2011-02-22  Bruno Haible  <bruno@clisp.org>
42752         ioctl: Fix for MacOS X in 64-bit mode.
42753         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42754         value.
42755         Suggested by Eric Blake.
42756         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42758 2011-02-22  Jim Meyering  <meyering@redhat.com>
42760         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42761         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42762         in lib/.
42764 2011-02-22  Eric Blake  <eblake@redhat.com>
42766         maint: avoid any CDPATH issue
42767         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42769         maint: adjust cpp indentation for my modules, as well
42770         * Makefile (sc_cpp_indent_check): Add my name.
42771         * lib/fbufmode.c: Filter through cppi.
42772         * lib/fpurge.c: Likewise.
42773         * lib/freadable.c: Likewise.
42774         * lib/freading.c: Likewise.
42775         * lib/fwritable.c: Likewise.
42776         * lib/fwriting.c: Likewise.
42777         * lib/sigaction.c: Likewise.
42779 2011-02-22  Jim Meyering  <meyering@redhat.com>
42781         maint: adjust cpp indentation to reflect nesting depth
42782         I.e., in a block of code that begins with an unnested "#if",
42783         put one space between the "#" in column 1 and following token.
42784         For example,
42785         -#include <sys/vfs.h>
42786         +# include <sys/vfs.h>
42787         Do this only in .c files that are part of a module I maintain.
42788         * lib/linkat.c: Filter through cppi.
42789         * lib/nanosleep.c: Likewise.
42790         * lib/openat.c: Likewise.
42791         * lib/openat-die.c: Likewise.
42792         * lib/dup3.c: Likewise.
42793         * lib/fchownat.c: Likewise.
42794         * lib/flock.c: Likewise.
42795         * lib/fsync.c: Likewise.
42796         * lib/fts.c: Likewise.
42797         * lib/getpass.c: Likewise.
42798         * lib/gettimeofday.c: Likewise.
42799         * lib/userspec.c: Likewise.
42800         * Makefile (sc_cpp_indent_check): New rule, to check this.
42802 2011-02-22  Bruno Haible  <bruno@clisp.org>
42804         New module 'wctomb'.
42805         * lib/stdlib.in.h (wctomb): New declaration.
42806         * lib/wctomb.c: New file.
42807         * lib/wctomb-impl.h: New file.
42808         * m4/wctomb.m4: New file.
42809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42810         REPLACE_WCTOMB.
42811         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42812         REPLACE_WCTOMB.
42813         * modules/wctomb: New file.
42814         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42815         * doc/posix-functions/wctomb.texi: Mention the new module.
42816         * modules/wctob (Depends-on): Add wctomb.
42818 2011-02-22  Bruno Haible  <bruno@clisp.org>
42820         New module 'mbtowc'.
42821         * lib/stdlib.in.h (mbtowc): New declaration.
42822         * lib/mbtowc.c: New file.
42823         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42824         * m4/mbtowc.m4: New file.
42825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42826         REPLACE_MBTOWC.
42827         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42828         REPLACE_MBTOWC.
42829         * modules/mbtowc: New file.
42830         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42831         * doc/posix-functions/mbtowc.texi: Mention the new module.
42832         * modules/btowc (Depends-on): Add mbtowc.
42834 2011-02-22  Bruno Haible  <bruno@clisp.org>
42836         wcrtomb: Add more tests for native Windows platforms.
42837         * tests/test-wcrtomb-w32-1.sh: New file.
42838         * tests/test-wcrtomb-w32-2.sh: New file.
42839         * tests/test-wcrtomb-w32-3.sh: New file.
42840         * tests/test-wcrtomb-w32-4.sh: New file.
42841         * tests/test-wcrtomb-w32-5.sh: New file.
42842         * tests/test-wcrtomb-w32.c: New file.
42843         * modules/wcrtomb-tests (Files): Add them.
42844         (Makefile.am): Arrange to run these tests.
42845         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42846         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42848 2011-02-20  Bruno Haible  <bruno@clisp.org>
42850         wcrtomb: Enhance test.
42851         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42853 2011-02-20  Bruno Haible  <bruno@clisp.org>
42855         mbrtowc: Tiny optimization.
42856         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42858 2011-02-20  Jim Meyering  <meyering@redhat.com>
42860         test-exclude.c: remove unmatched #endif
42861         * tests/test-exclude.c: Remove stray #endif, left over from
42862         the change of a week ago.
42864 2011-02-19  Jim Meyering  <meyering@redhat.com>
42866         git-version-gen: skip "-dirty" check when appropriate
42867         * build-aux/git-version-gen: Don't run any git commands when the
42868         version string comes from .tarball-version.  Prior to this, we
42869         would run git update-index --refresh even from a just-unpacked
42870         tarball directory, and that could affect a .git/ directory in a
42871         parent of the build directory.  Reported by Mike Frysinger.
42873 2011-02-19  Bruno Haible  <bruno@clisp.org>
42875         unictype/property-byname: Reduce the size of the 'data' segment.
42876         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42878 2011-02-19  Bruno Haible  <bruno@clisp.org>
42880         unictype/scripts: Reduce the size of the 'data' segment.
42881         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42882         '%pic'.
42883         * lib/unictype/scripts_byname.gperf: Regenerated.
42885 2011-02-19  Bruno Haible  <bruno@clisp.org>
42887         stdint: Update documentation.
42888         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42890 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42892         stdint: omit redundant check for wchar.h
42893         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42894         always tests whether wchar.h exists, so remove the now-redundant test.
42896 2011-02-18  Bruno Haible  <bruno@clisp.org>
42898         stdint: Cut dependency to module 'wchar'.
42899         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42900         include the necessary prerequisites.
42901         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42902         * modules/stdint (Depends-on): Remove wchar.
42903         (Makefile.am): Substitute HAVE_WCHAR_H.
42904         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42906 2011-02-18  Eric Blake  <eblake@redhat.com>
42908         longlong: skip, rather than fail, on cross-compilation
42909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42910         when cross-compiling; regression from 2011-02-16.
42912 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42914         * NEWS: Mention 2011-02-08 change to stdlib.
42916 2011-02-17  Bruno Haible  <bruno@clisp.org>
42918         getloadavg: Add comments about platforms.
42919         * m4/getloadavg.m4: Add comment.
42920         * lib/getloadavg.c: Likewise.
42922 2011-02-17  Bruno Haible  <bruno@clisp.org>
42924         getloadavg: Fix link error on Solaris 2.6.
42925         * modules/getloadavg (Link): New section.
42926         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42927         linking test-getloadavg.
42928         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42929         getloadavg.
42931 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42933         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42934         It was 'int', but this doesn't match the IRIX 6.5 manual.
42935         Suggested by Bruno Haible in
42936         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42938 2011-02-17  Bruno Haible  <bruno@clisp.org>
42940         havelib: Fix comments.
42941         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42942         change.
42944 2011-02-17  Bruno Haible  <bruno@clisp.org>
42946         havelib: Update config.rpath.
42947         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42949 2011-02-17  Bruno Haible  <bruno@clisp.org>
42951         getloadavg test: Add some plausibility checks.
42952         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42953         is improbable.
42955 2011-02-16  Eric Blake  <eblake@redhat.com>
42957         maintainer-makefile: make syntax-check a no-op from tarballs
42958         * top/maint.mk (no-vc-detected): New rule.
42959         (local-checks-available): Use it to avoid hanging if someone tries
42960         'make syntax-check' from a tarball.  Also append to any non-syntax
42961         checks already defined in cfg.mk.
42963 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42965         longlong: tune, particularly for common case of c99
42967         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42968         or running anything if c99, or if unsigned long long int does not
42969         work.  In either case, we know the answer without further tests.
42970         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42971         it at most once, and use its results for both long long int and
42972         unsigned long long int.  This is more likely to be efficient in
42973         the common case where the program wants to check for both long
42974         long int and unsigned long long int.
42975         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42976         since the answer is already known.
42978 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42980         getloadavg: set errno
42981         * lib/getloadavg.c: Set errno when returning -1.  If no other
42982         error number looks appropriate, set it to ENOSYS if the getloadavg
42983         looks like it can't possibly ever work, ENOTSUP otherwise.
42984         Suggested by Bruno Haible in
42985         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42987         getloadavg: trim unused parts and speed up 'configure'
42988         * NEWS: Document this.
42989         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42990         always compiled if getloadavg is absent.
42991         Move test code to ...
42992         * tests/test-getloadavg.c: New file, containing previous
42993         contents of test from lib/getloadavg.c.  It also contains
42994         suggestions by Bruno Haible in
42995         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42996         * modules/getloadavg-tests: New file.
42997         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42998         Do tests in the same order as they're needed for getloadavg.c.
42999         Omit setgid-related tests that generate symbols KMEM_GROUP,
43000         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
43001         Do only the tests that are needed to see whether the system has
43002         getloadavg, moving the other tests into ...
43003         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
43004         NLIST_NAME_UNION; nobody should be using it.  Do not define
43005         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
43006         relevant, as the user of this module shouldn't care how getloadavg
43007         is implemented.
43009         getloadavg: omit unused var
43010         * lib/getloadavg.c (getloadavg): Omit unused local variable.
43012 2011-02-15  Jim Meyering  <meyering@redhat.com>
43014         doc: update users.txt
43015         * users.txt: Update iwhd's URL.
43017 2011-02-13  Bruno Haible  <bruno@clisp.org>
43019         Consistent macro naming for macros that use GCC __attribute__.
43020         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
43021         _ATTRIBUTE_NONNULL_.
43022         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
43023         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
43024         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
43025         ATTRIBUTE_DEPRECATED.
43026         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
43027         ATTRIBUTE_NORETURN.
43028         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43029         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43030         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43031         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43032         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
43033         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
43034         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
43035         ATTRIBUTE_SENTINEL.
43036         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
43037         ATTRIBUTE_RETURN_CHECK.
43038         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
43039         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
43040         ATTRIBUTE_NORETURN.
43041         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
43042         Reported by Paul Eggert.
43044 2011-02-13  Bruno Haible  <bruno@clisp.org>
43046         Don't interfere with a program's definition of __attribute__.
43047         * lib/argp.h (__attribute__): Remove definition.
43048         (_GL_ATTRIBUTE_FORMAT): New macro.
43049         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
43050         * lib/argp-fmtstream.h (__attribute__): Remove definition.
43051         (_GL_ATTRIBUTE_FORMAT): New macro.
43052         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
43053         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
43054         GCC 3 or newer.
43055         * lib/error.h (__attribute__): Remove definition.
43056         (_GL_ATTRIBUTE_FORMAT): New macro.
43057         (error, error_at_line): Use it.
43058         * lib/hash.h (__attribute__): Remove definition.
43059         (ATTRIBUTE_WUR): Update definition. Define always.
43060         * lib/openat.h (__attribute__): Remove definition.
43061         (ATTRIBUTE_NORETURN): Update definition. Define always.
43062         * lib/sigpipe-die.h (__attribute__): Remove definition.
43063         (ATTRIBUTE_NORETURN): Update definition. Define always.
43064         * lib/vasnprintf.h (__attribute__): Remove definition.
43065         (_GL_ATTRIBUTE_FORMAT): New macro.
43066         (asnprintf, vasnprintf): Use it.
43067         * lib/xalloc.h (__attribute__): Remove definition.
43068         (ATTRIBUTE_NORETURN): Update definition. Define always.
43069         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
43070         * lib/xmemdup0.h (__attribute__): Remove definition.
43071         (ATTRIBUTE_NORETURN): Update definition. Define always.
43072         * lib/xprintf.h (__attribute__): Remove definition.
43073         (_GL_ATTRIBUTE_FORMAT): New macro.
43074         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
43075         * lib/xstrtol.h (__attribute__): Remove definition.
43076         (ATTRIBUTE_NORETURN): Update definition. Define always.
43077         * lib/xvasprintf.h (__attribute__): Remove definition.
43078         (_GL_ATTRIBUTE_FORMAT): New macro.
43079         (xasprintf, xvasprintf): Use it.
43080         * tests/test-argmatch.c (__attribute__): Remove definition.
43081         (ATTRIBUTE_NORETURN): Update definition. Define always.
43082         * tests/test-exclude.c (__attribute__): Remove definition.
43083         (ATTRIBUTE_NORETURN): Update definition. Define always.
43084         Reported by Paul Eggert.
43086 2011-02-13  Bruno Haible  <bruno@clisp.org>
43088         mbrtowc: Add more tests for native Windows platforms.
43089         * tests/test-mbrtowc-w32-1.sh: New file.
43090         * tests/test-mbrtowc-w32-2.sh: New file.
43091         * tests/test-mbrtowc-w32-3.sh: New file.
43092         * tests/test-mbrtowc-w32-4.sh: New file.
43093         * tests/test-mbrtowc-w32-5.sh: New file.
43094         * tests/test-mbrtowc-w32.c: New file.
43095         * modules/mbrtowc-tests (Files): Add them.
43096         (Makefile.am): Arrange to run these tests.
43097         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
43098         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
43100 2011-02-13  Bruno Haible  <bruno@clisp.org>
43102         mbrtowc: Work around native Windows bug.
43103         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
43104         guess when no suitable locale for testing was found.
43105         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
43107 2011-02-13  Bruno Haible  <bruno@clisp.org>
43109         mbsinit: Work around mingw bug.
43110         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
43111         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
43112         Windows.
43113         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
43115 2011-02-13  Bruno Haible  <bruno@clisp.org>
43117         mbsinit: Don't crash for a NULL argument.
43118         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
43119         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
43121 2011-02-13  Bruno Haible  <bruno@clisp.org>
43123         Don't interfere with a program's definition of __attribute__.
43124         * lib/stdio.in.h (__attribute__): Remove definition.
43125         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
43126         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
43127         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
43128         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
43129         * lib/string.in.h (__attribute__): Remove definition.
43130         Reported by Paul Eggert.
43132 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43134         stdlib: don't get in the way of non-GCC __attribute__
43135         See thread starting at
43136         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
43137         Revert previous stdlib change, installing the following instead:
43138         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
43139         to get in the way of a non-GCC compiler that supports __attribute__.
43140         (_GL_ATTRIBUTE_RETURN): New macro.
43141         (_Exit): Use it instead of __attribute__.
43143 2011-02-12  Bruno Haible  <bruno@clisp.org>
43145         quotearg test: Avoid test failure on mingw.
43146         * tests/test-quotearg.sh: Convert the locale identifier from native
43147         Windows syntax to Unix syntax.
43149 2011-02-12  Bruno Haible  <bruno@clisp.org>
43151         setlocale: Prefer gnulib's override over libintl's override.
43152         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
43153         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
43154         GNULIB_defined_setlocale is set.
43156 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43158         stdlib: support non-GCC __attribute__
43160         Fix a serious and tricky problem encountered when attempting to
43161         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
43162         5.5, but it crashed due to memory corruption on Solaris 10 with
43163         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
43164         bits that are otherwise zero.  This tagging is optional inside
43165         Emacs but is preferred and is used when __attribute__ ((__aligned
43166         (8))) works, as it does with both recent-enough GCC and with Sun C
43167         5.11.  However, Sun C 5.11 is not GCC and does not #define
43168         __GNUC__ and __GNUC_MINOR__.
43170         When I added the getloadavg module to Emacs, it brought in
43171         stdlib.in.h, which contained this fragment:
43173            #ifndef __attribute__
43174            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
43175            #  define __attribute__(Spec)   /* empty */
43176            # endif
43177            #endif
43179         When files that include <stdlib.h> were compiled with Sun C 5.11,
43180         the above code disabled __attribute__ ((__aligned (8))), which
43181         caused variables to not be properly aligned, which eventually led
43182         to the pointer corruption mentioned above.  (This was a bit hard
43183         to diagnose, unfortunately.)
43185         Several "#define __attribute__(X) /* empty */" code snippets need
43186         to be eradicated from Gnulib to work with non-GCC compilers that
43187         support __attribute__.  The Autoconf way to do this is to test for
43188         each kind of attribute that we want support for, and selectively
43189         enable that in source code.
43191         Fix this problem just for stdlib.h, by adding a test for the
43192         __noreturn__ attribute, and change stdlib.in.h to use that test
43193         when needed.  This technique can be easily generalized to the
43194         other *.in.h files and attributes, and a similar technique can be
43195         used for *.h and *.c files.  This patch is enough to solve the
43196         problem for Emacs + getloadavg, and I thought I'd publish it for
43197         feedback before undertaking further, similar fixes in other
43198         modules.
43200         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
43201         because it's not needed for stdlib.h.  It merely substitutes the
43202         value directly into stdlib.h.  We may well need to #define it, or
43203         similar symbols, for other modules, but it's nice to also have an
43204         option to not #define it for applications like Emacs that do not
43205         need it.
43207         * lib/stdlib.in.h (__attribute__): Do not #define.
43208         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
43209         be defined only if the _Exit module is also used.
43210         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
43211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
43212         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
43213         platforms.
43214         * modules/_Exit (Files): Add m4/attribute.m4.
43215         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
43216         * m4/attribute.m4: New file.
43218 2011-02-12  Bruno Haible  <bruno@clisp.org>
43220         wcsrtombs: Work around bug on native Windows.
43221         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
43222         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
43223         instead of len.
43224         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
43226 2011-02-12  Bruno Haible  <bruno@clisp.org>
43228         mbsrtowcs: Work around bug on native Windows.
43229         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
43230         against mingw bug.
43231         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
43233 2011-02-12  Bruno Haible  <bruno@clisp.org>
43235         Avoid setlocale bugs in tests.
43236         * modules/btowc (Dependencies): Add setlocale.
43237         * modules/c-strcase (Dependencies): Likewise.
43238         * modules/mbmemcasecmp (Dependencies): Likewise.
43239         * modules/mbmemcasecoll (Dependencies): Likewise.
43240         * modules/mbrtowc (Dependencies): Likewise.
43241         * modules/mbscasecmp (Dependencies): Likewise.
43242         * modules/mbscasestr (Dependencies): Likewise.
43243         * modules/mbschr (Dependencies): Likewise.
43244         * modules/mbscspn (Dependencies): Likewise.
43245         * modules/mbsinit (Dependencies): Likewise.
43246         * modules/mbsncasecmp (Dependencies): Likewise.
43247         * modules/mbsnrtowcs (Dependencies): Likewise.
43248         * modules/mbspbrk (Dependencies): Likewise.
43249         * modules/mbspcasecmp (Dependencies): Likewise.
43250         * modules/mbsrchr (Dependencies): Likewise.
43251         * modules/mbsrtowcs (Dependencies): Likewise.
43252         * modules/mbsspn (Dependencies): Likewise.
43253         * modules/mbsstr (Dependencies): Likewise.
43254         * modules/nl_langinfo (Dependencies): Likewise.
43255         * modules/quotearg (Dependencies): Likewise.
43256         * modules/unicase/locale-language (Dependencies): Likewise.
43257         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
43258         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
43259         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43260         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
43261         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
43262         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
43263         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
43264         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
43265         * modules/vasnprintf-posix (Dependencies): Likewise.
43266         * modules/wcrtomb (Dependencies): Likewise.
43267         * modules/wcsnrtombs (Dependencies): Likewise.
43268         * modules/wcsrtombs (Dependencies): Likewise.
43270 2011-02-12  Bruno Haible  <bruno@clisp.org>
43272         setlocale: Workaround native Windows bug.
43273         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
43274         succeeds but sets LC_CTYPE to "C", report a failure.
43275         * tests/test-setlocale2.sh: New file.
43276         * tests/test-setlocale2.c: New file.
43277         * modules/setlocale-tests (Files): Add the new files.
43278         (Makefile.am): Enable test-setlocale2.sh test.
43279         * doc/posix-functions/setlocale.texi: Mention workaround.
43281 2011-02-11  Bruno Haible  <bruno@clisp.org>
43283         Tests for module 'setlocale'.
43284         * modules/setlocale-tests: New file.
43285         * tests/test-setlocale1.sh: New file.
43286         * tests/test-setlocale1.c: New file.
43288         New module 'setlocale'.
43289         * lib/locale.in.h (setlocale): New declaration.
43290         * lib/setlocale.c: New file, based on
43291         gettext/gettext-runtime/intl/setlocale.c.
43292         * m4/setlocale.m4: New file.
43293         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
43294         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
43295         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
43296         REPLACE_SETLOCALE.
43297         * modules/setlocale: New file.
43298         * tests/test-locale-c++.cc: Test the declaration of setlocale.
43299         * doc/posix-functions/setlocale.texi: Mention the new module.
43301 2011-02-11  Bruno Haible  <bruno@clisp.org>
43303         Prepare for locale dependent tests on mingw.
43304         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
43305         because it has the wrong locale encoding.
43306         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
43307         French_France.1252 instead of "fr".
43308         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
43309         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
43310         because it has the wrong locale encoding.
43311         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
43312         native Windows, try Turkish_Turkey.65001.
43313         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
43314         Chinese_China.54936.
43316         Prepare for locale dependent tests on mingw.
43317         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
43318         differently.
43319         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
43320         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
43321         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43322         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43324 2011-02-11  Eric Blake  <eblake@redhat.com>
43326         strptime: avoid compiler warnings
43327         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
43328         compiler warnings about dead code.
43329         Reported by Daniel P. Berrange.
43331 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43333         doc: update users.txt
43334         * users.txt: Add rcs.
43336 2011-02-10  John W. Eaton  <jwe@gnu.org>
43338         doc: update users.txt
43339         * users.txt: Add octave.
43341 2011-02-10  Jim Meyering  <meyering@redhat.com>
43343         doc: update users.txt
43344         * users.txt: Add iwhd.
43346 2011-02-09  Bruno Haible  <bruno@clisp.org>
43348         gnulib-tool: Make copyright notice adjustment more robust.
43349         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43350         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43351         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43352         License".
43353         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43355 2011-02-06  Bruno Haible  <bruno@clisp.org>
43357         New module 'towctrans'.
43358         * modules/towctrans: New file.
43359         * lib/wctype.in.h (towctrans): New declaration.
43360         * lib/towctrans.c: New file.
43361         * lib/towctrans-impl.h: New file.
43362         * m4/towctrans.m4: New file.
43363         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43364         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43365         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43366         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43367         * doc/posix-functions/towctrans.texi: Mention the new module.
43369 2011-02-06  Bruno Haible  <bruno@clisp.org>
43371         New module 'wctrans'.
43372         * modules/wctrans: New file.
43373         * lib/wctype.in.h (wctrans): New declaration.
43374         * lib/wctrans.c: New file.
43375         * lib/wctrans-impl.h: New file.
43376         * m4/wctrans.m4: New file.
43377         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43378         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43379         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43380         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43381         * doc/posix-functions/wctrans.texi: Mention the new module.
43383 2011-02-06  Bruno Haible  <bruno@clisp.org>
43385         New module 'iswctype'.
43386         * modules/iswctype: New file.
43387         * lib/wctype.in.h (iswctype): New declaration.
43388         * lib/iswctype.c: New file.
43389         * lib/iswctype-impl.h: New file.
43390         * m4/iswctype.m4: New file.
43391         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43392         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43393         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43394         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43395         * doc/posix-functions/iswctype.texi: Mention the new module and the
43396         HP-UX 11.00 problem.
43398 2011-02-06  Bruno Haible  <bruno@clisp.org>
43400         New module 'wctype'.
43401         * modules/wctype: Change to represent the wctype() substitute.
43402         * lib/wctype.in.h (wctype): New declaration.
43403         * lib/wctype.c: New file.
43404         * lib/wctype-impl.h: New file.
43405         * m4/wctype.m4: New file.
43406         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43407         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43408         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43409         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43410         * doc/posix-functions/wctype.texi: Mention the new module and the
43411         HP-UX 11.00 problem.
43413 2011-02-06  Bruno Haible  <bruno@clisp.org>
43415         wctype-h: Ensure wctype_t and wctrans_t are defined.
43416         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43417         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43418         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43419         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43420         HAVE_WCTRANS_T.
43421         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43423 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43425         flock: fix license typo
43427         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43428         omitted.
43430 2011-02-08  Bruno Haible  <bruno@clisp.org>
43432         Split large sed scripts, for HP-UX sed.
43433         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43434         to avoid HP-UX limit of 99 commands, in the near future.
43435         * modules/stdlib (Makefile.am): Likewise.
43436         * modules/unistd (Makefile.am): Likewise.
43437         * modules/wchar (Makefile.am): Likewise.
43438         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43439         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43440         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43442 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43443             Bruno Haible  <bruno@clisp.org>
43445         stdlib: improve random_r modularization
43446         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43447         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43448         you also need the random_r module to get this material right.
43449         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43450         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43451         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43453 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43455         stdlib: don't depend on stdint
43456         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43457         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43458         be independent of whether stdint.h is needed.
43459         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43460         here, instead of ...
43461         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43462         struct random_data should be using the random_r module, not just
43463         the stdlib module (which wouldn't make sense: what package needs
43464         just struct random_data without also needing random_r?).
43465         * modules/stdlib (Depends-on): Remove stdint.
43467         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43468         See the thread rooted at
43469         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43470         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43471         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43472         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43473         __VMS)); previously it was always included (via fcntl--.h).
43474         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43475         hand; this is good enough for load averages.  Also, do not use
43476         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43477         flags directly if available and don't bother otherwise.  (Packages
43478         that need the extra reliability should use the modules that define
43479         these flags on older platforms that lack them.)
43480         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43481         fcntl-safer.
43483 2011-02-08  Jim Meyering  <meyering@redhat.com>
43485         di-set.h, ino-map.h: add multiple-inclusion guard
43486         Technically, the guard is required only for ino-map.h, due to its
43487         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43488         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43489         * lib/ino-map.h: Likewise.
43491 2011-02-06  Bruno Haible  <bruno@clisp.org>
43493         iswblank: Ensure declaration on glibc systems.
43494         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43495         * modules/iswblank (Dependencies): Add 'extensions'.
43496         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43498 2011-02-06  Bruno Haible  <bruno@clisp.org>
43500         New module 'iswblank'.
43501         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43502         * modules/iswblank: New file.
43503         * modules/wctype-h (Files): Remove lib/iswblank.c.
43504         (Makefile.am): Substitute GNULIB_ISWBLANK.
43505         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43506         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43507         (gl_WCTYPE_H_DEFAULTS): New macro.
43508         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43509         * modules/iswblank-tests: New file.
43510         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43511         * tests/test-wctype-h.c (main): Remove iswblank tests.
43512         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43513         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43514         of 'wctype-h'.
43515         * NEWS: Mention the change.
43516         * modules/mbchar (Depends-on): Add iswblank.
43518 2011-02-08  Bruno Haible  <bruno@clisp.org>
43520         di-set tests: Refactor.
43521         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43522         unnecessary includes.
43523         (ASSERT): Remove macro.
43524         (main): Make C90 compliant by avoiding variable declaration after
43525         statement.
43526         * modules/di-set-tests (Files): Add tests/macros.h.
43528 2011-02-08  Bruno Haible  <bruno@clisp.org>
43530         ino-map tests: Refactor.
43531         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43532         unnecessary includes.
43533         (ASSERT): Remove macro.
43534         (main): Make C90 compliant by avoiding variable declaration after
43535         statement.
43536         * modules/ino-map-tests (Files): Add tests/macros.h.
43538 2011-02-08  Jim Meyering  <meyering@redhat.com>
43540         di-set: add "const" to a cast
43541         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43542         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43544 2011-02-06  Bruno Haible  <bruno@clisp.org>
43546         Rename module 'wctype' to 'wctype-h'.
43547         * modules/wctype-h: Renamed from modules/wctype.
43548         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43549         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43550         (Files, Depends-on, Makefile.am): Update.
43551         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43552         (Files, Makefile.am): Update.
43553         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43554         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43555         * doc/posix-headers/wctype.texi: Update.
43556         * doc/posix-functions/iswalnum.texi: Update.
43557         * doc/posix-functions/iswalpha.texi: Update.
43558         * doc/posix-functions/iswblank.texi: Update.
43559         * doc/posix-functions/iswcntrl.texi: Update.
43560         * doc/posix-functions/iswdigit.texi: Update.
43561         * doc/posix-functions/iswgraph.texi: Update.
43562         * doc/posix-functions/iswlower.texi: Update.
43563         * doc/posix-functions/iswprint.texi: Update.
43564         * doc/posix-functions/iswpunct.texi: Update.
43565         * doc/posix-functions/iswspace.texi: Update.
43566         * doc/posix-functions/iswupper.texi: Update.
43567         * doc/posix-functions/iswxdigit.texi: Update.
43568         * doc/posix-functions/towlower.texi: Update.
43569         * doc/posix-functions/towupper.texi: Update.
43570         * NEWS: Mention the change.
43571         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43572         * modules/mbchar (Dependencies): Likewise.
43573         * modules/mbswidth (Dependencies): Likewise.
43574         * modules/quotearg (Dependencies): Likewise.
43575         * modules/regex (Dependencies): Likewise.
43576         * modules/wcscasecmp (Dependencies): Likewise.
43577         * modules/wcsncasecmp (Dependencies): Likewise.
43578         * modules/wcwidth (Dependencies): Likewise.
43580 2011-02-06  Bruno Haible  <bruno@clisp.org>
43582         New module 'wcswidth'.
43583         * modules/wcswidth: New file.
43584         * lib/wchar.in.h (wcswidth): New declaration.
43585         * lib/wcswidth.c: New file.
43586         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43587         * m4/wcswidth.m4: New file.
43588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43590         REPLACE_WCSWIDTH.
43591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43592         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43593         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43594         * doc/posix-functions/wcswidth.texi: Mention the new module.
43596 2011-02-06  Bruno Haible  <bruno@clisp.org>
43598         New module 'wcstok'.
43599         * modules/wcstok: New file.
43600         * lib/wchar.in.h (wcstok): New declaration.
43601         * lib/wcstok.c: New file.
43602         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43603         * m4/wcstok.m4: New file.
43604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43607         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43608         * doc/posix-functions/wcstok.texi: Mention the new module.
43610 2011-02-06  Bruno Haible  <bruno@clisp.org>
43612         New module 'wcsstr'.
43613         * modules/wcsstr: New file.
43614         * lib/wchar.in.h (wcsstr): New declaration.
43615         * lib/wcsstr.c: New file.
43616         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43617         * m4/wcsstr.m4: New file.
43618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43621         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43622         * doc/posix-functions/wcsstr.texi: Mention the new module.
43624 2011-02-06  Bruno Haible  <bruno@clisp.org>
43626         New module 'wcspbrk'.
43627         * modules/wcspbrk: New file.
43628         * lib/wchar.in.h (wcspbrk): New declaration.
43629         * lib/wcspbrk.c: New file.
43630         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43631         * m4/wcspbrk.m4: New file.
43632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43635         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43636         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43638 2011-02-06  Bruno Haible  <bruno@clisp.org>
43640         New module 'wcsspn'.
43641         * modules/wcsspn: New file.
43642         * lib/wchar.in.h (wcsspn): New declaration.
43643         * lib/wcsspn.c: New file.
43644         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43645         * m4/wcsspn.m4: New file.
43646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43649         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43650         * doc/posix-functions/wcsspn.texi: Mention the new module.
43652 2011-02-06  Bruno Haible  <bruno@clisp.org>
43654         New module 'wcscspn'.
43655         * modules/wcscspn: New file.
43656         * lib/wchar.in.h (wcscspn): New declaration.
43657         * lib/wcscspn.c: New file.
43658         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43659         * m4/wcscspn.m4: New file.
43660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43663         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43664         * doc/posix-functions/wcscspn.texi: Mention the new module.
43666 2011-02-06  Bruno Haible  <bruno@clisp.org>
43668         New module 'wcsrchr'.
43669         * modules/wcsrchr: New file.
43670         * lib/wchar.in.h (wcsrchr): New declaration.
43671         * lib/wcsrchr.c: New file.
43672         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43673         * m4/wcsrchr.m4: New file.
43674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43677         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43678         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43680 2011-02-06  Bruno Haible  <bruno@clisp.org>
43682         New module 'wcschr'.
43683         * modules/wcschr: New file.
43684         * lib/wchar.in.h (wcschr): New declaration.
43685         * lib/wcschr.c: New file.
43686         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43687         * m4/wcschr.m4: New file.
43688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43691         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43692         * doc/posix-functions/wcschr.texi: Mention the new module.
43694 2011-02-06  Bruno Haible  <bruno@clisp.org>
43696         New module 'wcsdup'.
43697         * modules/wcsdup: New file.
43698         * lib/wchar.in.h (wcsdup): New declaration.
43699         * lib/wcsdup.c: New file.
43700         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43701         * m4/wcsdup.m4: New file.
43702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43705         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43706         * doc/posix-functions/wcsdup.texi: Mention the new module.
43708 2011-02-06  Bruno Haible  <bruno@clisp.org>
43710         New module 'wcsxfrm'.
43711         * modules/wcsxfrm: New file.
43712         * lib/wchar.in.h (wcsxfrm): New declaration.
43713         * lib/wcsxfrm.c: New file.
43714         * lib/wcsxfrm-impl.h: New file.
43715         * m4/wcsxfrm.m4: New file.
43716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43719         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43720         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43722 2011-02-06  Bruno Haible  <bruno@clisp.org>
43724         New module 'wcscoll'.
43725         * modules/wcscoll: New file.
43726         * lib/wchar.in.h (wcscoll): New declaration.
43727         * lib/wcscoll.c: New file.
43728         * lib/wcscoll-impl.h: New file.
43729         * m4/wcscoll.m4: New file.
43730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43733         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43734         * doc/posix-functions/wcscoll.texi: Mention the new module.
43736 2011-02-06  Bruno Haible  <bruno@clisp.org>
43738         New module 'wcsncasecmp'.
43739         * modules/wcsncasecmp: New file.
43740         * lib/wchar.in.h (wcsncasecmp): New declaration.
43741         * lib/wcsncasecmp.c: New file.
43742         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43743         * m4/wcsncasecmp.m4: New file.
43744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43747         HAVE_WCSNCASECMP.
43748         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43749         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43751 2011-02-06  Bruno Haible  <bruno@clisp.org>
43753         New module 'wcscasecmp'.
43754         * modules/wcscasecmp: New file.
43755         * lib/wchar.in.h (wcscasecmp): New declaration.
43756         * lib/wcscasecmp.c: New file.
43757         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43758         * m4/wcscasecmp.m4: New file.
43759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43762         HAVE_WCSCASECMP.
43763         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43764         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43766 2011-02-05  Bruno Haible  <bruno@clisp.org>
43768         New module 'wcsncmp'.
43769         * modules/wcsncmp: New file.
43770         * lib/wchar.in.h (wcsncmp): New declaration.
43771         * lib/wcsncmp.c: New file.
43772         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43773         * m4/wcsncmp.m4: New file.
43774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43777         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43778         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43780 2011-02-05  Bruno Haible  <bruno@clisp.org>
43782         New module 'wcscmp'.
43783         * modules/wcscmp: New file.
43784         * lib/wchar.in.h (wcscmp): New declaration.
43785         * lib/wcscmp.c: New file.
43786         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43787         * m4/wcscmp.m4: New file.
43788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43791         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43792         * doc/posix-functions/wcscmp.texi: Mention the new module.
43794 2011-02-05  Bruno Haible  <bruno@clisp.org>
43796         New module 'wcsncat'.
43797         * modules/wcsncat: New file.
43798         * lib/wchar.in.h (wcsncat): New declaration.
43799         * lib/wcsncat.c: New file.
43800         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43801         * m4/wcsncat.m4: New file.
43802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43805         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43806         * doc/posix-functions/wcsncat.texi: Mention the new module.
43808 2011-02-05  Bruno Haible  <bruno@clisp.org>
43810         New module 'wcscat'.
43811         * modules/wcscat: New file.
43812         * lib/wchar.in.h (wcscat): New declaration.
43813         * lib/wcscat.c: New file.
43814         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43815         * m4/wcscat.m4: New file.
43816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43819         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43820         * doc/posix-functions/wcscat.texi: Mention the new module.
43822 2011-02-05  Bruno Haible  <bruno@clisp.org>
43824         New module 'wcpncpy'.
43825         * modules/wcpncpy: New file.
43826         * lib/wchar.in.h (wcpncpy): New declaration.
43827         * lib/wcpncpy.c: New file.
43828         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43829         * m4/wcpncpy.m4: New file.
43830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43832         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43833         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43834         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43836 2011-02-05  Bruno Haible  <bruno@clisp.org>
43838         New module 'wcsncpy'.
43839         * modules/wcsncpy: New file.
43840         * lib/wchar.in.h (wcsncpy): New declaration.
43841         * lib/wcsncpy.c: New file.
43842         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43843         * m4/wcsncpy.m4: New file.
43844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43847         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43848         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43850 2011-02-05  Bruno Haible  <bruno@clisp.org>
43852         New module 'wcpcpy'.
43853         * modules/wcpcpy: New file.
43854         * lib/wchar.in.h (wcpcpy): New declaration.
43855         * lib/wcpcpy.c: New file.
43856         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43857         * m4/wcpcpy.m4: New file.
43858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43860         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43861         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43862         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43864 2011-02-05  Bruno Haible  <bruno@clisp.org>
43866         New module 'wcscpy'.
43867         * modules/wcscpy: New file.
43868         * lib/wchar.in.h (wcscpy): New declaration.
43869         * lib/wcscpy.c: New file.
43870         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43871         * m4/wcscpy.m4: New file.
43872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43875         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43876         * doc/posix-functions/wcscpy.texi: Mention the new module.
43878 2011-02-05  Bruno Haible  <bruno@clisp.org>
43880         New module 'wcsnlen'.
43881         * modules/wcsnlen: New file.
43882         * lib/wchar.in.h (wcsnlen): New declaration.
43883         * lib/wcsnlen.c: New file.
43884         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43885         * m4/wcsnlen.m4: New file.
43886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43888         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43889         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43890         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43892 2011-02-05  Bruno Haible  <bruno@clisp.org>
43894         New module 'wcslen'.
43895         * modules/wcslen: New file.
43896         * lib/wchar.in.h (wcslen): New declaration.
43897         * lib/wcslen.c: New file.
43898         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43899         * m4/wcslen.m4: New file.
43900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43902         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43903         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43904         * doc/posix-functions/wcslen.texi: Mention the new module.
43906 2011-02-05  Bruno Haible  <bruno@clisp.org>
43908         New module 'wmemset'.
43909         * modules/wmemset: New file.
43910         * lib/wchar.in.h (wmemset): New declaration.
43911         * lib/wmemset.c: New file.
43912         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43913         * m4/wmemset.m4: New file.
43914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43916         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43917         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43918         * doc/posix-functions/wmemset.texi: Mention the new module.
43920 2011-02-05  Bruno Haible  <bruno@clisp.org>
43922         New module 'wmemmove'.
43923         * modules/wmemmove: New file.
43924         * lib/wchar.in.h (wmemmove): New declaration.
43925         * lib/wmemmove.c: New file.
43926         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43927         * m4/wmemmove.m4: New file.
43928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43930         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43931         HAVE_WMEMMOVE.
43932         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43933         * doc/posix-functions/wmemmove.texi: Mention the new module.
43935 2011-02-05  Bruno Haible  <bruno@clisp.org>
43937         New module 'wmemcpy'.
43938         * modules/wmemcpy: New file.
43939         * lib/wchar.in.h (wmemcpy): New declaration.
43940         * lib/wmemcpy.c: New file.
43941         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43942         * m4/wmemcpy.m4: New file.
43943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43945         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43946         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43947         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43949 2011-02-05  Bruno Haible  <bruno@clisp.org>
43951         New module 'wmemcmp'.
43952         * modules/wmemcmp: New file.
43953         * lib/wchar.in.h (wmemcmp): New declaration.
43954         * lib/wmemcmp.c: New file.
43955         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43956         * m4/wmemcmp.m4: New file.
43957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43959         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43960         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43961         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43963 2011-02-07  Jim Meyering  <meyering@redhat.com>
43965         di-set, ino-map: new modules, from coreutils
43966         * lib/di-set.c: New file.
43967         * lib/di-set.h: Likewise.
43968         * lib/ino-map.c: Likewise.
43969         * lib/ino-map.h: Likewise.
43970         * modules/di-set: Likewise.
43971         * modules/di-set-tests: Likewise.
43972         * modules/ino-map: Likewise.
43973         * modules/ino-map-tests: Likewise.
43974         * tests/test-di-set.c: Likewise.
43975         * tests/test-ino-map.c: Likewise.
43977 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43979         getloadavg: merge minor changes from Emacs
43981         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43982         (getloadavg): Use memset, not bzero.
43984         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43985         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43986         clash (bug#86).
43988 2010-11-14  Bruno Haible  <bruno@clisp.org>
43990         Allow multiple gnulib generated replacements to coexist.
43991         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43992         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43993         * lib/langinfo.in.h (nl_item): Likewise.
43994         * lib/math.in.h (_NaN, NAN): Likewise.
43995         * lib/netdb.in.h (struct addrinfo): Likewise.
43996         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43997         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43998         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43999         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
44000         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
44001         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
44002         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
44003         pthread_mutexattr_init, pthread_mutexattr_settype,
44004         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
44005         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
44006         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
44007         pthread_spin_trylock, pthread_spin_unlock): Likewise.
44008         * lib/sched.in.h (struct sched_param): Likewise.
44009         * lib/se-selinux.in.h (security_class_t, security_context_t,
44010         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
44011         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
44012         lsetfilecon, fsetfilecon, security_check_context,
44013         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
44014         Likewise.
44015         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
44016         Likewise.
44017         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
44018         _gl_function_taking_int_returning_void_t, union sigval,
44019         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
44020         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
44021         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
44022         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
44023         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
44024         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
44025         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
44026         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
44027         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
44028         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
44029         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
44030         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
44031         socklen_t, rpl_fd_isset): Likewise.
44032         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
44033         * lib/sys_time.in.h (struct timeval): Likewise.
44034         * lib/sys_times.in.h (struct tms): Likewise.
44035         * lib/sys_utsname.in.h (struct utsname):
44036         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
44037         * lib/unistd.in.h (getpagesize): Likewise.
44038         * lib/wchar.in.h (mbstate_t): Likewise.
44039         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44040         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
44041         towlower, towupper): Likewise.
44042         Reported by Sam Steingold <sds@gnu.org>.
44044 2011-02-05  Eric Blake  <eblake@redhat.com>
44046         unsetenv: work around Haiku issues
44047         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
44048         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
44050 2010-12-30  Bruce Korb  <bkorb@gnu.org>
44052         libposix: avoid calling error() within libposix
44053         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
44054         is defined.
44056 2011-02-05  Eric Blake  <eblake@redhat.com>
44058         strerror_r-posix: port to cygwin
44059         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
44060         implementation.
44061         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
44062         * tests/test-strerror_r.c (main): Fix test.
44063         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
44064         issue.
44066 2011-02-05  Bruno Haible  <bruno@clisp.org>
44068         New module 'wmemchr'.
44069         * modules/wmemchr: New file.
44070         * lib/wchar.in.h (wmemchr): New declaration.
44071         * lib/wmemchr.c: New file.
44072         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
44073         * m4/wmemchr.m4: New file.
44074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
44075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
44076         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
44077         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
44078         * doc/posix-functions/wmemchr.texi: Mention the new module.
44080 2011-02-04  Eric Blake  <eblake@redhat.com>
44082         fdopendir: detect FreeBSD bug
44083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
44084         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
44086 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44088         stdbool: do not define HAVE_STDBOOL_H
44089         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
44090         AC_HEADER_STDBOOL.  All uses changed.  Do not define
44091         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
44092         imported from the latest Autoconf git.  It was motivated by Emacs,
44093         which uses gnulib but does not need HAVE_STDBOOL_H.
44095 2011-02-04  Bruno Haible  <bruno@clisp.org>
44097         wcsnrtombs: Prepare for new module wwcsnrtombs.
44098         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
44099         * lib/wcsnrtombs.c: Include it.
44100         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
44102         wcsrtombs: Prepare for new module wwcsrtombs.
44103         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
44104         * lib/wcsrtombs.c: Include it.
44105         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
44107         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
44108         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
44109         * lib/mbsnrtowcs.c: Include it.
44110         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
44112         mbsrtowcs: Prepare for new module mbsrtowwcs.
44113         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
44114         * lib/mbsrtowcs.c: Include it.
44115         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
44117 2011-02-04  Bruno Haible  <bruno@clisp.org>
44119         vasnprintf: Reduce use of malloc for small format strings.
44120         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
44121         (arguments): Add room for the first 7 arguments.
44122         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
44123         (char_directives, u8_directives, u16_directives, u32_directives): Add
44124         room for the first 7 directives.
44125         * lib/printf-parse.c: Include <string.h>.
44126         (PRINTF_PARSE): Change memory handling code so that it uses the first
44127         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
44128         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
44129         Reported by Pádraig Brady <P@draigbrady.com>.
44131 2011-01-31  Eric Blake  <eblake@redhat.com>
44133         dup2: work around Haiku bug
44134         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
44135         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
44136         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44137         * tests/test-dup2.c (main): Enhance test.
44139 2011-01-31  Simon Josefsson  <simon@josefsson.org>
44141         doc: off_t is not available in eglibc 2.11.2 stdio.h.
44142         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
44143         declared by eglibc 2.11.2.
44144         * lib/stdio.in.h: Likewise.
44146 2011-01-31  Eric Blake  <eblake@redhat.com>
44148         ignore-value: add missing test dependency
44149         * tests/test-ignore-value.c: Revert previous change; stdio.h
44150         provides off_t.
44151         * modules/ignore-value-tests (Depends-on): Add missing dependency.
44153 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
44155         mktime: clarify long_int width checking
44156         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
44157         the top level, to make it clearer that the assumption about
44158         long_int width is being checked.  See
44159         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
44161 2011-01-30  Simon Josefsson  <simon@josefsson.org>
44163         ignore-value: Fix self-test.
44164         * tests/test-ignore-value.c: Include sys/types.h for off_t.
44166 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44168         TYPE_MAXIMUM: avoid theoretically undefined behavior
44169         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
44170         negative number, which the C Standard says has undefined behavior.
44171         In practice this is not a problem, but might as well do it by the book.
44172         Reported by Rich Felker and Eric Blake; see
44173         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
44174         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
44175         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44177         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
44178         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44179         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
44181         mktime: #undef mktime before #defining it
44182         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
44184         mktime: systematically normalize tm_isdst comparisons
44185         * lib/mktime.c (isdst_differ): New function.
44186         (__mktime_internal): Use it systematically for all isdst comparisons.
44187         This completes the fix for libc BZ #6723, and removes the need for
44188         normalizing tm_isdst.  See
44189         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
44190         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
44192         mktime: fix some integer overflow issues and sidestep the rest
44194         This was prompted by a bug report by Benjamin Lindner for MinGW
44195         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
44196         His bug is due to signed integer overflow (0 - INT_MIN), and I
44197         I scanned through mktime.c looking for other integer overflow
44198         problems, fixing all the bugs I found.
44200         Although the C Standard says the resulting code is still not safe
44201         in the presence of integer overflow, in practice it should be good
44202         enough for all real-world two's-complement implementations, except
44203         for debugging environments that deliberately trap on integer
44204         overflow (e.g., gcc -ftrapv).
44206         * lib/mktime.c (WRAPV): New macro.
44207         (SHR): Also check that long_int and time_t shift right in the
44208         usual way, before using the fast-but-unportable method.
44209         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
44210         used.  The code already assumed two's complement, so there's
44211         no need to test for alternatives.  All uses removed.
44212         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
44213         the C standard.  Problem reported by Rich Felker in
44214         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
44215         (twos_complement_arithmetic): Also check long_int and time_t.
44216         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
44217         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
44218         (__mktime_internal): Avoid integer overflow with unary subtraction
44219         in two instances where -1 - X is an adequate replacement for -X,
44220         since the calculations are approximate.
44222 2011-01-29  Eric Blake  <eblake@redhat.com>
44224         mktime: avoid infinite loop
44225         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
44226         type; behavior is still undefined but portable to all known targets.
44227         Reported by Rich Felker.
44229 2011-01-29  Simon Josefsson  <simon@josefsson.org>
44231         rename, unlink, same-inode: Relicense.
44232         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
44233         * modules/unlink (License): Likewise.
44234         * modules/same-inode (License): Likewise.
44236 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44238         mktime: avoid problems on NetBSD 5 / i386
44239         * lib/mktime.c (long_int): New type.  This works around a problem
44240         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
44241         but time_t is 64 bits, and where I expect the existing code is
44242         wrong in some cases.
44243         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
44244         (ydhms_diff): Bring back the compile-time check for wide-enough
44245         year and yday.
44247         mktime: fix misspelling in comment
44248         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
44249         This merges all recent glibc changes of importance.
44251 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44253         move-if-change: cope with concurrent mv of identical file.
44254         * build-aux/move-if-change (CMPPROG): Accept environment
44255         variable as an override for `cmp'.
44256         (usage): Document CMPPROG.
44257         Adjust comparison to drop stdout.  Cope with failure of mv if
44258         the target file exists and is identical to the source, for
44259         parallel builds.
44260         Report from H.J. Lu against binutils in PR binutils/12283.
44262 2011-01-28  Bruce Korb  <bkorb@gnu.org>
44264         * users.txt: Mention sharutils.
44266 2011-01-28  Simon Josefsson  <simon@josefsson.org>
44268         * users.txt: Mention OATH Toolkit.
44270 2011-01-27  Bruno Haible  <bruno@clisp.org>
44272         Prepare for supporting FreeBSD 10.
44273         * build-aux/config.libpath: Remove handling of freebsd1*.
44275 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
44277         Prepare for supporting FreeBSD 10.
44278         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
44279         match FreeBSD 10.0.
44281 2011-01-27  Bruno Haible  <bruno@clisp.org>
44283         vma-iter, get-rusage-as: Add OpenBSD support.
44284         * modules/vma-iter (configure.ac): Test for mquery.
44285         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
44286         * lib/vma-iter.c: Include <sys/mman.h>.
44287         (vma_iterate): Add an implementation based on mquery().
44288         * lib/resource-ext.h (get_rusage_as): Update comments.
44289         * lib/get-rusage-as.c: Likewise.
44290         * lib/get-rusage-data.c: Likewise.
44292 2011-01-26  Karl Berry  <karl@gnu.org>
44294         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
44295         variables to make it easier to override the makeinfo program used.
44297 2011-01-26  Eric Blake  <eblake@redhat.com>
44299         fcntl: work around Haiku F_DUPFD bugs
44300         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
44301         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
44302         cloexec bit on duplication.
44303         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
44305 2011-01-26  Bruno Haible  <bruno@clisp.org>
44307         Enable memory leak tests on AIX.
44308         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
44309         * tests/test-fprintf-posix3.c (main): Likewise.
44311 2011-01-26  Bruno Haible  <bruno@clisp.org>
44313         Tests for module 'get-rusage-data'.
44314         * modules/get-rusage-data-tests: New file.
44315         * tests/test-get-rusage-data.c: New file.
44317         New module 'get-rusage-data'.
44318         * lib/resource-ext.h (get_rusage_data): New declaration.
44319         * lib/get-rusage-data.c: New file.
44320         * modules/get-rusage-data: New file.
44322 2011-01-25  Bruno Haible  <bruno@clisp.org>
44324         get-rusage-as: Allow for easier testing.
44325         * lib/resource-ext.h (get_rusage_as): Add comment.
44326         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
44327         (main): New function for interactive testing.
44329 2011-01-25  Bruno Haible  <bruno@clisp.org>
44331         vma-iter: Treat Haiku like BeOS.
44332         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44333         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44335 2011-01-25  Eric Blake  <eblake@redhat.com>
44337         c-stack: fix regression on cygwin when libsigsegv is present
44338         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44340 2011-01-24  Bruno Haible  <bruno@clisp.org>
44342         vma-iter: Avoid empty intervals.
44343         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44344         on an empty interval.
44346 2011-01-24  Jim Meyering  <meyering@redhat.com>
44348         u64: remove unnecessary #include
44349         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44351 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44353         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44354         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44356 2011-01-23  Bruno Haible  <bruno@clisp.org>
44358         New module 'vma-iter'.
44359         * lib/vma-iter.h: New file.
44360         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44361         * modules/vma-iter: New file.
44362         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44363         for get_rusage_as_via_iterator.
44364         (vma_iterate_callback): New function.
44365         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44366         * modules/get-rusage-as (Depends-on): Add vma-iter.
44368 2011-01-23  Bruno Haible  <bruno@clisp.org>
44370         uninorm: Tweak includes.
44371         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44372         Reported by Jim Meyering.
44374 2011-01-23  Bruno Haible  <bruno@clisp.org>
44376         get-rusage-as: Improve on NetBSD.
44377         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44378         /proc, like on FreeBSD.
44380 2011-01-23  Jim Meyering  <meyering@redhat.com>
44382         xreadlink.h: remove unnecessary #include
44383         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44385         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44386         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44388 2011-01-23  Bruno Haible  <bruno@clisp.org>
44390         get-rusage-as: Fix bug.
44391         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44392         original limit when aborting the first loop.
44394 2011-01-23  Bruno Haible  <bruno@clisp.org>
44396         wctype: Ensure valid C syntax.
44397         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44398         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44400 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44402         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44404         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44405         as they are needed only for configure's test case.
44406         This removes two unnecessary symbols from config.h.
44408         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44409         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44411         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44412         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44413         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44414         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44415         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44416         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44417         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44418         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44419         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44420         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44421         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44422         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44423         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44424         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44425         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44427 2011-01-21  Eric Blake  <eblake@redhat.com>
44429         maintainer-makefile: work with older git for submodule check
44430         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44431         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44432         Reported by Matthias Bolte.
44434         bootstrap: minor portability fixes
44435         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44436         (usage): Omit leading capital and trailing . on help phrases, per
44437         GNU Coding Standards.
44438         (check_versions, top level): Prefix messages with script name.
44440 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44442         bootstrap: support --no-git option
44443         * build-aux/bootstrap: Add --no-git option, to be used when
44444         --gnulib-srcdir points to the exact desired checkout.
44446 2011-01-21  Eric Blake  <eblake@redhat.com>
44448         strerror_r-posix: work with glibc 2.13
44449         * lib/strerror_r.c (strerror_r): Fix return type.
44451 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44452             Bruno Haible  <bruno@clisp.org>
44454         uN_strstr: New unit tests.
44455         * modules/unistr/u8-strstr-tests: New file.
44456         * modules/unistr/u16-strstr-tests: New file.
44457         * modules/unistr/u32-strstr-tests: New file.
44458         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44459         * tests/unistr/test-u8-strstr.c: New file.
44460         * tests/unistr/test-u16-strstr.c: New file.
44461         * tests/unistr/test-u32-strstr.c: New file.
44463 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44464             Bruno Haible  <bruno@clisp.org>
44466         Make uN_strstr functions O(n) worst-case.
44467         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44468         16-bit and 32-bit unit cases, use the unibyte algorithm from
44469         lib/mbsstr.c.
44470         * lib/unistr/u8-strstr.c: Include <string.h>.
44471         (UNIT_IS_UINT8_T): New macro.
44472         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44473         (U_STRLEN, U_STRNLEN): New macros.
44474         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44475         (U_STRLEN, U_STRNLEN): New macros.
44476         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44477         (configure.ac): Update required libunistring version.
44478         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44479         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44480         malloca.
44481         (configure.ac): Update required libunistring version.
44482         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44483         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44484         malloca.
44485         (configure.ac): Update required libunistring version.
44487 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44488             Bruno Haible  <bruno@clisp.org>
44490         Prepare for faster uN_strstr functions.
44491         * lib/str-kmp.h: Support definable UNITs.
44492         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44493         needle_len argument.
44494         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44495         * lib/mbscasestr.c (mbscasestr): Likewise.
44497 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44499         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44500         * tests/test-malloca.c (main): Unset the environment variable
44501         to greatly speed up the test.
44502         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44503         * modules/malloca-tests: Depend on unsetenv.
44505 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44507         ignore-value: remove stdint dependency
44508         * lib/ignore-value.h: Remove <stdint.h>
44509         * modules/ignore-value: Remove stdint dependency.
44511 2011-01-21  Jim Meyering  <meyering@redhat.com>
44513         maint.mk: adjust variable name to be consistent with other gl_ vars
44514         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44515         to be lower case.
44517 2011-01-20  Jim Meyering  <meyering@redhat.com>
44519         maint.mk: make "check" depend on public-submodule-commit by default
44520         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44522 2011-01-20  Bruno Haible  <bruno@clisp.org>
44524         mbfile, mbiter: Complete change from 2008-12-21.
44525         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44526         * m4/mbiter.m4 (gl_MBITER): Likewise.
44528 2011-01-20  Jim Meyering  <meyering@redhat.com>
44530         init.sh: insert space between each function name and "()"
44531         * tests/init.sh: Make it a little easier to see that a function's
44532         name is "warn_", and not "warn" when looking at the first part of
44533         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44535 2011-01-20  Jim Meyering  <meyering@redhat.com>
44537         mountlist: clean up code formatting
44538         * lib/mountlist.c (read_file_system_list): Split a long line,
44539         correct bracing style, use NULL in place of "(struct statfs *)0",
44540         don't parenthesize return value, add spaces around "=" and after
44541         ";-in-for-stmt".
44543 2011-01-14  Markus Duft  <mduft@gentoo.org>
44545         mountlist: add support for Interix
44546         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44547         Apply statvfs to all entries of /dev/fs.
44548         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44549         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44551 2011-01-20  Jim Meyering  <meyering@redhat.com>
44553         maint.mk: improve the public-submodule-commit rule
44554         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44555         to suppress printing of its commands... unless V=1.
44556         Add git submodule's --quiet option to suppress printing of e.g.,
44557         "Entering gnulib" output.
44558         "cd" into $(srcdir) before running git submodule.
44560 2011-01-20  Bruno Haible  <bruno@clisp.org>
44562         include_next: Fix bug introduced on 2011-01-18.
44563         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44564         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44565         ac_cv_header_... variable if the second argument is not 'check'.
44566         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44567         gl_NEXT_HEADERS_INTERNAL.
44569 2011-01-20  Bruno Haible  <bruno@clisp.org>
44571         Allow the user to avoid the GNULIB_TEST_* macros.
44572         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44573         Suggested by Paul Eggert.
44575 2011-01-14  Jim Meyering  <meyering@redhat.com>
44577         bootstrap: avoid failure when there is no .gitmodules file
44578         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44579         has been assigned to, even when its value is the empty string.
44580         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44581         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44582         Reported by John W. Eaton <jwe@gnu.org>.
44584 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44586         assume <ctype.h>, ..., <time.h> exist
44587         For years gnulib has been assuming the existence of the headers
44588         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44589         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44590         them, since they don't appear to be needed.
44591         * README (Portability guidelines): Document this.
44592         * lib/flock.c: Assume <fcntl.h> exists.
44593         * lib/regex_internal.h: Assume <locale.h> exists.
44594         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44595         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44596         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44597         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44598         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44599         * m4/regex.m4 (gl_REGEX): Likewise.
44600         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44601         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44602         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44603         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44604         * tests/test-argp.c: Likewise.
44605         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44607         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44608         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44609         AA_APPLE_UNIVERSAL_BUILD.  See
44610         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44611         * NEWS: Document this.
44613 2011-01-19  Eric Blake  <eblake@redhat.com>
44615         c-stack: assume stack overflow if SA_SIGINFO unsupported
44616         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44617         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44618         sigaction will work.
44619         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44620         behavior match Linux.
44621         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44623         stdbool-tests: accommodate Haiku
44624         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44626         binary-io: fix O_TEXT on Haiku
44627         * modules/binary-io (Depends-on): Add fcntl-h.
44628         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44629         than blindly undefining O_TEXT.
44630         Reported by Scott McCreary.
44632 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44634         include_next: do not check for standard headers like stddef.h
44636         I found this problem when modifying Emacs to use gnulib.
44637         I noticed that it added HAVE_STDDEF_H to config.h, even though
44638         gnulib always assumes <stddef.h> exists as per README and this
44639         symbol is unnecessary.
44640         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44641         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44642         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44643         faster for headers like stddef.h that are known to exist.
44644         (gl_CHECK_NEXT_HEADERS): Use it.
44645         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44646         rather than gl_CHECK_NEXT_HEADERS.
44647         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44648         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44650 2011-01-18  Eric Blake  <eblake@redhat.com>
44652         ansi-c++-opt: skip C++ dependency style if C++ is unused
44653         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44654         tests when we know C++ compilation is not desired.
44655         Reported by Scott McCreary.
44657 2011-01-18  Bruno Haible  <bruno@clisp.org>
44659         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44660         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44661         (main): Perform test also when getrlimit and setrlimit don't exist or
44662         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44663         limiting the address space size using setrlimit, compare the address
44664         space size before and after the test.
44665         * tests/test-dprintf-posix2.c: Likewise.
44666         * tests/test-fprintf-posix3.sh: Update skip messages.
44667         * tests/test-dprintf-posix2.sh: Likewise.
44668         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44669         * modules/dprintf-posix-tests (Depends-on): Likewise.
44670         Reported by Bruce Korb <bkorb@gnu.org> and
44671         Gary V. Vaughan <gary@gnu.org>.
44673 2011-01-18  Bruno Haible  <bruno@clisp.org>
44675         get-rusage-as: Improvement for Cygwin.
44676         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44677         areas that are merely reserved.
44679 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44681         strftime: remove dependencies on multibyte modules
44683         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44684         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44685         only if __osf__ is defined, and I suspect OSF doesn't need these
44686         other modules.  If my guess is wrong, we'll need to come up with a
44687         variant of strftime that doesn't need the multibyte modules.
44689         I discovered this problem when attempting modify Emacs to use the
44690         strftime module.  With the previous gnulib, this caused Emacs to
44691         need 31 new files, ranging from lib/config.charset to
44692         m4/wint_t.m4.  This was overkill and I expect would be offputting
44693         to the Emacs maintainers.  After this change, only 6 new files are
44694         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44695         stdbool.m4, and tm_gmtoff.m4.
44697         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44698         Suggested by Bruno Haible in
44699         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44700         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44701         and do not check for wchar.h.
44702         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44703         (Depends-on): Remove mbrlen, mbsinit, wchar.
44705 2011-01-18  Bruno Haible  <bruno@clisp.org>
44707         Tests for module 'get-rusage-as'.
44708         * modules/get-rusage-as-tests: New file.
44709         * tests/test-get-rusage-as.c: New file.
44711         New module 'get-rusage-as'.
44712         * modules/get-rusage-as: New file.
44713         * lib/resource-ext.h: New file.
44714         * lib/get-rusage-as.c: New file.
44716 2011-01-17  Eric Blake  <eblake@redhat.com>
44718         sigaction: relax license from LGPLv3+ to LGPLv2+
44719         * modules/sigaction (License): Relax to LGPLv2+.
44721 2011-01-14  Bruno Haible  <bruno@clisp.org>
44723         filemode: Make function declarations usable in C++ mode.
44724         * lib/filemode.h: Enclose function declarations in extern "C" block.
44725         Reported by John W. Eaton <jwe@gnu.org>.
44727 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44729         save-cwd: no longer include "xgetcwd.h"
44730         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44731         This avoids a compilation failure in projects that use save-cwd
44732         without also using the xgetcwd module.
44734 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44736         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44737         This is so that a program like Emacs, which needs only dtoastr,
44738         does not have to bother with distributing and compiling ftoastr
44739         and ldtoastr.
44740         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44741         * modules/dtoastr, modules/ldtoastr: New files.
44742         * modules/ftoastr: Now works just for 'float'.
44743         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44744         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44745         dtoastr.c, ldtoastr.c.
44747 2011-01-11  Jim Meyering  <meyering@redhat.com>
44749         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44750         There is no need to work around the lack of the fchdir function,
44751         since gnulib can now provide a replacement when required.
44752         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44753         * modules/save-cwd (Depends-on): Add fchdir.
44755 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44757         openat, save-cwd: avoid xmalloc
44759         This removes a direct (but undocumented) dependency of openat on
44760         xalloc, along with an indirect dependency via save-cwd.  It also
44761         removes a dependency of save-cwd on xgetcwd, and thereby
44762         indirectly on xalloc.  This change causes the openat substitute
44763         to fall back on save_cwd when memory is tight, and for save_cwd to
44764         fail instead of dying when memory is tight, but that's good enough.
44765         Problem and initial idea for fix reported by Bastien Roucaries in
44766         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44768         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44769         xalloc.h (for xmalloc).
44770         (openat_proc_name): Use malloc, not xmalloc.
44771         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44772         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44774         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44775         This avoids heap allocation for file names whose lengths are in
44776         the range 512..1023, with the upper bound increasing to at most
44777         4031 depending on the platform's PATH_MAX.  (We do not want
44778         pathmax.h here as it might supply a non-constant PATH_MAX.)
44779         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44780         Perhaps they should be moved to malloca.h?
44781         (OPENAT_BUFFER_SIZE): Use them.
44783 2011-01-10  Bruno Haible  <bruno@clisp.org>
44785         doc: Update users.txt.
44786         * users.txt: Add recutils.
44788 2011-01-09  Karl Berry  <karl@gnu.org>
44790         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44792         * doc/configmake.texi: New file.
44793         * doc/gnulib.texi: Include it.
44794         * modules/configmake: Move documentation from here.
44796 2011-01-09  Bruno Haible  <bruno@clisp.org>
44798         Update to Unicode 6.0.0.
44799         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44800         (get_lbp): Update for Unicode 6.0.0.
44801         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44802         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44803         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44804         U+11001, U+11038..U+11046. Remove U+06DE.
44805         (uc_width): Fix bounds of planes.
44806         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44807         lib/uniwidth/width.c.
44808         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44809         trailing whitespace removed.
44810         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44811         without comments, but with the original copyright notice.
44812         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44813         * lib/unicase/ignorable.h: Likewise.
44814         * lib/unicase/tocasefold.h: Likewise.
44815         * lib/unicase/tolower.h: Likewise.
44816         * lib/unicase/totitle.h: Likewise.
44817         * lib/unicase/toupper.h: Likewise.
44818         * lib/unictype/bidi_of.h: Likewise.
44819         * lib/unictype/blocks.h: Likewise.
44820         * lib/unictype/categ_C.h: Likewise.
44821         * lib/unictype/categ_Cn.h: Likewise.
44822         * lib/unictype/categ_L.h: Likewise.
44823         * lib/unictype/categ_Ll.h: Likewise.
44824         * lib/unictype/categ_Lm.h: Likewise.
44825         * lib/unictype/categ_Lo.h: Likewise.
44826         * lib/unictype/categ_Lu.h: Likewise.
44827         * lib/unictype/categ_M.h: Likewise.
44828         * lib/unictype/categ_Mc.h: Likewise.
44829         * lib/unictype/categ_Me.h: Likewise.
44830         * lib/unictype/categ_Mn.h: Likewise.
44831         * lib/unictype/categ_N.h: Likewise.
44832         * lib/unictype/categ_Nd.h: Likewise.
44833         * lib/unictype/categ_No.h: Likewise.
44834         * lib/unictype/categ_P.h: Likewise.
44835         * lib/unictype/categ_Po.h: Likewise.
44836         * lib/unictype/categ_S.h: Likewise.
44837         * lib/unictype/categ_Sc.h: Likewise.
44838         * lib/unictype/categ_Sk.h: Likewise.
44839         * lib/unictype/categ_Sm.h: Likewise.
44840         * lib/unictype/categ_So.h: Likewise.
44841         * lib/unictype/categ_of.h: Likewise.
44842         * lib/unictype/combining.h: Likewise.
44843         * lib/unictype/ctype_alnum.h: Likewise.
44844         * lib/unictype/ctype_alpha.h: Likewise.
44845         * lib/unictype/ctype_graph.h: Likewise.
44846         * lib/unictype/ctype_lower.h: Likewise.
44847         * lib/unictype/ctype_print.h: Likewise.
44848         * lib/unictype/ctype_punct.h: Likewise.
44849         * lib/unictype/ctype_upper.h: Likewise.
44850         * lib/unictype/decdigit.h: Likewise.
44851         * lib/unictype/digit.h: Likewise.
44852         * lib/unictype/numeric.h: Likewise.
44853         * lib/unictype/pr_alphabetic.h: Likewise.
44854         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44855         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44856         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44857         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44858         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44859         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44860         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44861         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44862         * lib/unictype/pr_case_ignorable.h: Likewise.
44863         * lib/unictype/pr_cased.h: Likewise.
44864         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44865         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44866         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44867         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44868         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44869         * lib/unictype/pr_combining.h: Likewise.
44870         * lib/unictype/pr_composite.h: Likewise.
44871         * lib/unictype/pr_currency_symbol.h: Likewise.
44872         * lib/unictype/pr_decimal_digit.h: Likewise.
44873         * lib/unictype/pr_deprecated.h: Likewise.
44874         * lib/unictype/pr_format_control.h: Likewise.
44875         * lib/unictype/pr_grapheme_base.h: Likewise.
44876         * lib/unictype/pr_grapheme_extend.h: Likewise.
44877         * lib/unictype/pr_grapheme_link.h: Likewise.
44878         * lib/unictype/pr_id_continue.h: Likewise.
44879         * lib/unictype/pr_id_start.h: Likewise.
44880         * lib/unictype/pr_ideographic.h: Likewise.
44881         * lib/unictype/pr_lowercase.h: Likewise.
44882         * lib/unictype/pr_math.h: Likewise.
44883         * lib/unictype/pr_numeric.h: Likewise.
44884         * lib/unictype/pr_other_alphabetic.h: Likewise.
44885         * lib/unictype/pr_other_id_continue.h: Likewise.
44886         * lib/unictype/pr_other_math.h: Likewise.
44887         * lib/unictype/pr_punctuation.h: Likewise.
44888         * lib/unictype/pr_sentence_terminal.h: Likewise.
44889         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44890         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44891         * lib/unictype/pr_unified_ideograph.h: Likewise.
44892         * lib/unictype/pr_uppercase.h: Likewise.
44893         * lib/unictype/pr_xid_continue.h: Likewise.
44894         * lib/unictype/pr_xid_start.h: Likewise.
44895         * lib/unictype/scripts.h: Likewise.
44896         * lib/unictype/scripts_byname.gperf: Likewise.
44897         * lib/unictype/sy_java_ident.h: Likewise.
44898         * lib/unigbrk/gbrkprop.h: Likewise.
44899         * lib/unilbrk/lbrkprop1.h: Likewise.
44900         * lib/unilbrk/lbrkprop2.h: Likewise.
44901         * lib/uninorm/decomposition-table2.h: Likewise.
44902         * lib/uniwbrk/wbrkprop.h: Likewise.
44903         * tests/unicase/test-cased.c: Likewise.
44904         * tests/unicase/test-ignorable.c: Likewise.
44905         * tests/unicase/test-uc_tolower.c: Likewise.
44906         * tests/unicase/test-uc_totitle.c: Likewise.
44907         * tests/unicase/test-uc_toupper.c: Likewise.
44908         * tests/unictype/test-categ_C.c: Likewise.
44909         * tests/unictype/test-categ_Cn.c: Likewise.
44910         * tests/unictype/test-categ_L.c: Likewise.
44911         * tests/unictype/test-categ_Ll.c: Likewise.
44912         * tests/unictype/test-categ_Lm.c: Likewise.
44913         * tests/unictype/test-categ_Lo.c: Likewise.
44914         * tests/unictype/test-categ_Lu.c: Likewise.
44915         * tests/unictype/test-categ_M.c: Likewise.
44916         * tests/unictype/test-categ_Mc.c: Likewise.
44917         * tests/unictype/test-categ_Me.c: Likewise.
44918         * tests/unictype/test-categ_Mn.c: Likewise.
44919         * tests/unictype/test-categ_N.c: Likewise.
44920         * tests/unictype/test-categ_Nd.c: Likewise.
44921         * tests/unictype/test-categ_No.c: Likewise.
44922         * tests/unictype/test-categ_P.c: Likewise.
44923         * tests/unictype/test-categ_Po.c: Likewise.
44924         * tests/unictype/test-categ_S.c: Likewise.
44925         * tests/unictype/test-categ_Sc.c: Likewise.
44926         * tests/unictype/test-categ_Sk.c: Likewise.
44927         * tests/unictype/test-categ_Sm.c: Likewise.
44928         * tests/unictype/test-categ_So.c: Likewise.
44929         * tests/unictype/test-ctype_alnum.c: Likewise.
44930         * tests/unictype/test-ctype_alpha.c: Likewise.
44931         * tests/unictype/test-ctype_graph.c: Likewise.
44932         * tests/unictype/test-ctype_lower.c: Likewise.
44933         * tests/unictype/test-ctype_print.c: Likewise.
44934         * tests/unictype/test-ctype_punct.c: Likewise.
44935         * tests/unictype/test-ctype_upper.c: Likewise.
44936         * tests/unictype/test-decdigit.h: Likewise.
44937         * tests/unictype/test-digit.h: Likewise.
44938         * tests/unictype/test-numeric.h: Likewise.
44939         * tests/unictype/test-pr_alphabetic.c: Likewise.
44940         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44941         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44942         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44943         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44944         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44945         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44946         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44947         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44948         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44949         * tests/unictype/test-pr_cased.c: Likewise.
44950         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44951         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44952         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44953         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44954         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44955         * tests/unictype/test-pr_combining.c: Likewise.
44956         * tests/unictype/test-pr_composite.c: Likewise.
44957         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44958         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44959         * tests/unictype/test-pr_deprecated.c: Likewise.
44960         * tests/unictype/test-pr_format_control.c: Likewise.
44961         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44962         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44963         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44964         * tests/unictype/test-pr_id_continue.c: Likewise.
44965         * tests/unictype/test-pr_id_start.c: Likewise.
44966         * tests/unictype/test-pr_ideographic.c: Likewise.
44967         * tests/unictype/test-pr_lowercase.c: Likewise.
44968         * tests/unictype/test-pr_math.c: Likewise.
44969         * tests/unictype/test-pr_numeric.c: Likewise.
44970         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44971         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44972         * tests/unictype/test-pr_other_math.c: Likewise.
44973         * tests/unictype/test-pr_punctuation.c: Likewise.
44974         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44975         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44976         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44977         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44978         * tests/unictype/test-pr_uppercase.c: Likewise.
44979         * tests/unictype/test-pr_xid_continue.c: Likewise.
44980         * tests/unictype/test-pr_xid_start.c: Likewise.
44981         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44982         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44983         changes.
44984         * lib/unictype/categ_Cc.h: Likewise.
44985         * lib/unictype/categ_Cf.h: Likewise.
44986         * lib/unictype/categ_Co.h: Likewise.
44987         * lib/unictype/categ_Cs.h: Likewise.
44988         * lib/unictype/categ_Lt.h: Likewise.
44989         * lib/unictype/categ_Nl.h: Likewise.
44990         * lib/unictype/categ_Pc.h: Likewise.
44991         * lib/unictype/categ_Pd.h: Likewise.
44992         * lib/unictype/categ_Pe.h: Likewise.
44993         * lib/unictype/categ_Pf.h: Likewise.
44994         * lib/unictype/categ_Pi.h: Likewise.
44995         * lib/unictype/categ_Ps.h: Likewise.
44996         * lib/unictype/categ_Z.h: Likewise.
44997         * lib/unictype/categ_Zl.h: Likewise.
44998         * lib/unictype/categ_Zp.h: Likewise.
44999         * lib/unictype/categ_Zs.h: Likewise.
45000         * lib/unictype/ctype_blank.h: Likewise.
45001         * lib/unictype/ctype_cntrl.h: Likewise.
45002         * lib/unictype/ctype_digit.h: Likewise.
45003         * lib/unictype/ctype_space.h: Likewise.
45004         * lib/unictype/ctype_xdigit.h: Likewise.
45005         * lib/unictype/mirror.h: Likewise.
45006         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45007         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45008         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45009         * lib/unictype/pr_bidi_control.h: Likewise.
45010         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45011         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45012         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45013         * lib/unictype/pr_bidi_pdf.h: Likewise.
45014         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45015         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45016         * lib/unictype/pr_dash.h: Likewise.
45017         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45018         * lib/unictype/pr_diacritic.h: Likewise.
45019         * lib/unictype/pr_extender.h: Likewise.
45020         * lib/unictype/pr_hex_digit.h: Likewise.
45021         * lib/unictype/pr_hyphen.h: Likewise.
45022         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45023         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45024         * lib/unictype/pr_ignorable_control.h: Likewise.
45025         * lib/unictype/pr_iso_control.h: Likewise.
45026         * lib/unictype/pr_join_control.h: Likewise.
45027         * lib/unictype/pr_left_of_pair.h: Likewise.
45028         * lib/unictype/pr_line_separator.h: Likewise.
45029         * lib/unictype/pr_logical_order_exception.h: Likewise.
45030         * lib/unictype/pr_non_break.h: Likewise.
45031         * lib/unictype/pr_not_a_character.h: Likewise.
45032         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45033         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45034         * lib/unictype/pr_other_id_start.h: Likewise.
45035         * lib/unictype/pr_other_lowercase.h: Likewise.
45036         * lib/unictype/pr_other_uppercase.h: Likewise.
45037         * lib/unictype/pr_paired_punctuation.h: Likewise.
45038         * lib/unictype/pr_paragraph_separator.h: Likewise.
45039         * lib/unictype/pr_pattern_syntax.h: Likewise.
45040         * lib/unictype/pr_pattern_white_space.h: Likewise.
45041         * lib/unictype/pr_private_use.h: Likewise.
45042         * lib/unictype/pr_quotation_mark.h: Likewise.
45043         * lib/unictype/pr_radical.h: Likewise.
45044         * lib/unictype/pr_soft_dotted.h: Likewise.
45045         * lib/unictype/pr_space.h: Likewise.
45046         * lib/unictype/pr_titlecase.h: Likewise.
45047         * lib/unictype/pr_variation_selector.h: Likewise.
45048         * lib/unictype/pr_white_space.h: Likewise.
45049         * lib/unictype/pr_zero_width.h: Likewise.
45050         * lib/unictype/sy_c_ident.h: Likewise.
45051         * lib/unictype/sy_c_whitespace.h: Likewise.
45052         * lib/unictype/sy_java_whitespace.h: Likewise.
45053         * lib/uninorm/composition-table.gperf: Likewise.
45054         * lib/uninorm/decomposition-table1.h: Likewise.
45055         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
45056         LB8.
45057         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45058         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45059         * modules/unictype/*: Bump version number of expected libunistring
45060         version.
45062 2011-01-09  Bruno Haible  <bruno@clisp.org>
45064         Update to Unicode 5.2.0.
45065         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
45066         trailing whitespace removed.
45068 2011-01-09  Bruno Haible  <bruno@clisp.org>
45070         New Unicode character properties, from Unicode 5.2.0.
45071         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
45072         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
45073         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
45074         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
45075         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
45076         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
45077         uc_is_property_cased, uc_is_property_case_ignorable,
45078         uc_is_property_changes_when_lowercased,
45079         uc_is_property_changes_when_uppercased,
45080         uc_is_property_changes_when_titlecased,
45081         uc_is_property_changes_when_casefolded,
45082         uc_is_property_changes_when_casemapped): New declarations.
45083         * lib/unictype/pr_byname.gperf: Add the new properties.
45084         * modules/unictype/property-byname (Depends-on): Depend on the new
45085         properties modules.
45086         * modules/unictype/property-all (Depends-on): Likewise.
45087         * MODULES.html.sh (Unicode string functions): Add
45088         unictype/property-case-ignorable, unictype/property-cased,
45089         unictype/property-changes-when-casefolded,
45090         unictype/property-changes-when-casemapped,
45091         unictype/property-changes-when-lowercased,
45092         unictype/property-changes-when-titlecased,
45093         unictype/property-changes-when-uppercased.
45095         New module 'unictype/property-changes-when-casemapped'.
45096         * modules/unictype/property-changes-when-casemapped: New file.
45097         * lib/unictype/pr_changes_when_casemapped.c: New file.
45098         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
45099         generated by gen-uni-tables.
45100         * modules/unictype/property-changes-when-casemapped-tests: New file.
45101         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
45102         automatically generated by gen-uni-tables.
45104         New module 'unictype/property-changes-when-casefolded'.
45105         * modules/unictype/property-changes-when-casefolded: New file.
45106         * lib/unictype/pr_changes_when_casefolded.c: New file.
45107         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
45108         generated by gen-uni-tables.
45109         * modules/unictype/property-changes-when-casefolded-tests: New file.
45110         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
45111         automatically generated by gen-uni-tables.
45113         New module 'unictype/property-changes-when-titlecased'.
45114         * modules/unictype/property-changes-when-titlecased: New file.
45115         * lib/unictype/pr_changes_when_titlecased.c: New file.
45116         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
45117         generated by gen-uni-tables.
45118         * modules/unictype/property-changes-when-titlecased-tests: New file.
45119         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
45120         automatically generated by gen-uni-tables.
45122         New module 'unictype/property-changes-when-uppercased'.
45123         * modules/unictype/property-changes-when-uppercased: New file.
45124         * lib/unictype/pr_changes_when_uppercased.c: New file.
45125         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
45126         generated by gen-uni-tables.
45127         * modules/unictype/property-changes-when-uppercased-tests: New file.
45128         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
45129         automatically generated by gen-uni-tables.
45131         New module 'unictype/property-changes-when-lowercased'.
45132         * modules/unictype/property-changes-when-lowercased: New file.
45133         * lib/unictype/pr_changes_when_lowercased.c: New file.
45134         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
45135         generated by gen-uni-tables.
45136         * modules/unictype/property-changes-when-lowercased-tests: New file.
45137         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
45138         automatically generated by gen-uni-tables.
45140         New module 'unictype/property-case-ignorable'.
45141         * modules/unictype/property-case-ignorable: New file.
45142         * lib/unictype/pr_case_ignorable.c: New file.
45143         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
45144         by gen-uni-tables.
45145         * modules/unictype/property-case-ignorable-tests: New file.
45146         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
45147         generated by gen-uni-tables.
45149         New module 'unictype/property-cased'.
45150         * modules/unictype/property-cased: New file.
45151         * lib/unictype/pr_cased.c: New file.
45152         * lib/unictype/pr_cased.h: New file, automatically generated by
45153         gen-uni-tables.
45154         * modules/unictype/property-cased-tests: New file.
45155         * tests/unictype/test-pr_cased.c: New file, automatically generated by
45156         gen-uni-tables.
45158 2011-01-09  Bruno Haible  <bruno@clisp.org>
45160         Update to Unicode 5.2.0.
45161         * lib/gen-uni-tables.c (output_predicate, output_category,
45162         output_combclass, output_bidi_category, output_decimal_digit_test,
45163         output_decimal_digit, output_digit_test, output_digit,
45164         output_numeric_test, output_numeric, output_mirror, output_scripts,
45165         output_scripts_byname, output_blocks, output_ident_category): Fix
45166         comment header.
45167         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
45168         get_wbp.
45169         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
45170         items.
45171         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
45172         Changes_When_Lowercased, Changes_When_Uppercased,
45173         Changes_When_Titlecased, Changes_When_Casefolded,
45174         Changes_When_Casemapped.
45175         (is_property_alphabetic, is_property_default_ignorable_code_point):
45176         Update for Unicode 5.2.0.
45177         (is_property_cased, is_property_case_ignorable,
45178         is_property_changes_when_lowercased,
45179         is_property_changes_when_uppercased,
45180         is_property_changes_when_titlecased,
45181         is_property_changes_when_casefolded,
45182         is_property_changes_when_casemapped): New functions.
45183         (output_properties): Output also the properties cased, case_ignorable,
45184         changes_when_lowercased, changes_when_uppercased,
45185         changes_when_titlecased, changes_when_casefolded,
45186         changes_when_casemapped.
45187         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
45188         Unicode TR#11 revision 17 -> 19.
45189         (LBP_CP): New enumeration value.
45190         (LBP_*): Adjust values accordingly.
45191         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45192         TR#14 revision 22 -> 24.
45193         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
45194         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
45195         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45196         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
45197         is_WBP_MIDLETTER.
45198         (output_composition_tables): Allow for 24 bits instead of 16 bits in
45199         the code1 and code2 of each composition rule.
45200         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
45201         * lib/unicase/ignorable.h: Likewise.
45202         * lib/unicase/tocasefold.h: Likewise.
45203         * lib/unicase/tolower.h: Likewise.
45204         * lib/unicase/totitle.h: Likewise.
45205         * lib/unicase/toupper.h: Likewise.
45206         * lib/unictype/bidi_of.h: Likewise.
45207         * lib/unictype/blocks.h: Likewise.
45208         * lib/unictype/categ_C.h: Likewise.
45209         * lib/unictype/categ_Cf.h: Likewise.
45210         * lib/unictype/categ_Cn.h: Likewise.
45211         * lib/unictype/categ_L.h: Likewise.
45212         * lib/unictype/categ_Ll.h: Likewise.
45213         * lib/unictype/categ_Lm.h: Likewise.
45214         * lib/unictype/categ_Lo.h: Likewise.
45215         * lib/unictype/categ_Lu.h: Likewise.
45216         * lib/unictype/categ_M.h: Likewise.
45217         * lib/unictype/categ_Mc.h: Likewise.
45218         * lib/unictype/categ_Mn.h: Likewise.
45219         * lib/unictype/categ_N.h: Likewise.
45220         * lib/unictype/categ_Nd.h: Likewise.
45221         * lib/unictype/categ_Nl.h: Likewise.
45222         * lib/unictype/categ_No.h: Likewise.
45223         * lib/unictype/categ_P.h: Likewise.
45224         * lib/unictype/categ_Pd.h: Likewise.
45225         * lib/unictype/categ_Po.h: Likewise.
45226         * lib/unictype/categ_S.h: Likewise.
45227         * lib/unictype/categ_Sc.h: Likewise.
45228         * lib/unictype/categ_So.h: Likewise.
45229         * lib/unictype/categ_of.h: Likewise.
45230         * lib/unictype/combining.h: Likewise.
45231         * lib/unictype/ctype_alnum.h: Likewise.
45232         * lib/unictype/ctype_alpha.h: Likewise.
45233         * lib/unictype/ctype_graph.h: Likewise.
45234         * lib/unictype/ctype_lower.h: Likewise.
45235         * lib/unictype/ctype_print.h: Likewise.
45236         * lib/unictype/ctype_punct.h: Likewise.
45237         * lib/unictype/ctype_upper.h: Likewise.
45238         * lib/unictype/decdigit.h: Likewise.
45239         * lib/unictype/digit.h: Likewise.
45240         * lib/unictype/numeric.h: Likewise.
45241         * lib/unictype/pr_alphabetic.h: Likewise.
45242         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45243         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45244         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45245         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45246         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45247         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45248         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45249         * lib/unictype/pr_combining.h: Likewise.
45250         * lib/unictype/pr_composite.h: Likewise.
45251         * lib/unictype/pr_currency_symbol.h: Likewise.
45252         * lib/unictype/pr_dash.h: Likewise.
45253         * lib/unictype/pr_decimal_digit.h: Likewise.
45254         * lib/unictype/pr_deprecated.h: Likewise.
45255         * lib/unictype/pr_diacritic.h: Likewise.
45256         * lib/unictype/pr_extender.h: Likewise.
45257         * lib/unictype/pr_grapheme_base.h: Likewise.
45258         * lib/unictype/pr_grapheme_extend.h: Likewise.
45259         * lib/unictype/pr_grapheme_link.h: Likewise.
45260         * lib/unictype/pr_id_continue.h: Likewise.
45261         * lib/unictype/pr_id_start.h: Likewise.
45262         * lib/unictype/pr_ideographic.h: Likewise.
45263         * lib/unictype/pr_ignorable_control.h: Likewise.
45264         * lib/unictype/pr_logical_order_exception.h: Likewise.
45265         * lib/unictype/pr_lowercase.h: Likewise.
45266         * lib/unictype/pr_numeric.h: Likewise.
45267         * lib/unictype/pr_other_alphabetic.h: Likewise.
45268         * lib/unictype/pr_punctuation.h: Likewise.
45269         * lib/unictype/pr_sentence_terminal.h: Likewise.
45270         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45271         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45272         * lib/unictype/pr_unified_ideograph.h: Likewise.
45273         * lib/unictype/pr_uppercase.h: Likewise.
45274         * lib/unictype/pr_xid_continue.h: Likewise.
45275         * lib/unictype/pr_xid_start.h: Likewise.
45276         * lib/unictype/pr_zero_width.h: Likewise.
45277         * lib/unictype/scripts.h: Likewise.
45278         * lib/unictype/scripts_byname.gperf: Likewise.
45279         * lib/unictype/sy_java_ident.h: Likewise.
45280         * lib/unigbrk/gbrkprop.h: Likewise.
45281         * lib/unilbrk/lbrkprop1.h: Likewise.
45282         * lib/unilbrk/lbrkprop2.h: Likewise.
45283         * lib/unilbrk/lbrktables.h: Likewise.
45284         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
45285         LBP_CP. Implement rule LB30.
45286         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
45287         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
45288         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
45289         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
45290         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
45291         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
45292         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
45293         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
45294         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
45295         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
45296         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
45297         bits instead of 16 bits in the code1 and code2 of each composition
45298         rule.
45299         (uc_composition): Update for Unicode 5.2.0.
45300         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
45301         * lib/uninorm/decomposition-table2.h: Likewise.
45302         * lib/uniwbrk/wbrkprop.h: Likewise.
45303         * tests/unicase/test-cased.c: Likewise.
45304         * tests/unicase/test-ignorable.c: Likewise.
45305         * tests/unicase/test-uc_tolower.c: Likewise.
45306         * tests/unicase/test-uc_totitle.c: Likewise.
45307         * tests/unicase/test-uc_toupper.c: Likewise.
45308         * tests/unictype/test-categ_C.c: Likewise.
45309         * tests/unictype/test-categ_Cf.c: Likewise.
45310         * tests/unictype/test-categ_Cn.c: Likewise.
45311         * tests/unictype/test-categ_L.c: Likewise.
45312         * tests/unictype/test-categ_Ll.c: Likewise.
45313         * tests/unictype/test-categ_Lm.c: Likewise.
45314         * tests/unictype/test-categ_Lo.c: Likewise.
45315         * tests/unictype/test-categ_Lu.c: Likewise.
45316         * tests/unictype/test-categ_M.c: Likewise.
45317         * tests/unictype/test-categ_Mc.c: Likewise.
45318         * tests/unictype/test-categ_Mn.c: Likewise.
45319         * tests/unictype/test-categ_N.c: Likewise.
45320         * tests/unictype/test-categ_Nd.c: Likewise.
45321         * tests/unictype/test-categ_Nl.c: Likewise.
45322         * tests/unictype/test-categ_No.c: Likewise.
45323         * tests/unictype/test-categ_P.c: Likewise.
45324         * tests/unictype/test-categ_Pd.c: Likewise.
45325         * tests/unictype/test-categ_Po.c: Likewise.
45326         * tests/unictype/test-categ_S.c: Likewise.
45327         * tests/unictype/test-categ_Sc.c: Likewise.
45328         * tests/unictype/test-categ_So.c: Likewise.
45329         * tests/unictype/test-ctype_alnum.c: Likewise.
45330         * tests/unictype/test-ctype_alpha.c: Likewise.
45331         * tests/unictype/test-ctype_graph.c: Likewise.
45332         * tests/unictype/test-ctype_lower.c: Likewise.
45333         * tests/unictype/test-ctype_print.c: Likewise.
45334         * tests/unictype/test-ctype_punct.c: Likewise.
45335         * tests/unictype/test-ctype_upper.c: Likewise.
45336         * tests/unictype/test-decdigit.h: Likewise.
45337         * tests/unictype/test-digit.h: Likewise.
45338         * tests/unictype/test-numeric.h: Likewise.
45339         * tests/unictype/test-pr_alphabetic.c: Likewise.
45340         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45341         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45342         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45343         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45344         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45345         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45346         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45347         * tests/unictype/test-pr_combining.c: Likewise.
45348         * tests/unictype/test-pr_composite.c: Likewise.
45349         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45350         * tests/unictype/test-pr_dash.c: Likewise.
45351         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45352         * tests/unictype/test-pr_deprecated.c: Likewise.
45353         * tests/unictype/test-pr_diacritic.c: Likewise.
45354         * tests/unictype/test-pr_extender.c: Likewise.
45355         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45356         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45357         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45358         * tests/unictype/test-pr_id_continue.c: Likewise.
45359         * tests/unictype/test-pr_id_start.c: Likewise.
45360         * tests/unictype/test-pr_ideographic.c: Likewise.
45361         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45362         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45363         * tests/unictype/test-pr_lowercase.c: Likewise.
45364         * tests/unictype/test-pr_numeric.c: Likewise.
45365         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45366         * tests/unictype/test-pr_punctuation.c: Likewise.
45367         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45368         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45369         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45370         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45371         * tests/unictype/test-pr_uppercase.c: Likewise.
45372         * tests/unictype/test-pr_xid_continue.c: Likewise.
45373         * tests/unictype/test-pr_xid_start.c: Likewise.
45374         * tests/unictype/test-pr_zero_width.c: Likewise.
45375         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45376         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45377         changed behaviour: line breaking is now disallowed between a letter
45378         or '=' and '('.
45379         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45380         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45381         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45382         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45383         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45384         lib/uniwidth/width.c.
45385         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45386         without comments, but with the original copyright notice.
45387         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45388         changes.
45389         * lib/unictype/categ_Cc.h: Likewise.
45390         * lib/unictype/categ_Co.h: Likewise.
45391         * lib/unictype/categ_Cs.h: Likewise.
45392         * lib/unictype/categ_Lt.h: Likewise.
45393         * lib/unictype/categ_Me.h: Likewise.
45394         * lib/unictype/categ_Pc.h: Likewise.
45395         * lib/unictype/categ_Pe.h: Likewise.
45396         * lib/unictype/categ_Pf.h: Likewise.
45397         * lib/unictype/categ_Pi.h: Likewise.
45398         * lib/unictype/categ_Ps.h: Likewise.
45399         * lib/unictype/categ_Sk.h: Likewise.
45400         * lib/unictype/categ_Sm.h: Likewise.
45401         * lib/unictype/categ_Z.h: Likewise.
45402         * lib/unictype/categ_Zl.h: Likewise.
45403         * lib/unictype/categ_Zp.h: Likewise.
45404         * lib/unictype/categ_Zs.h: Likewise.
45405         * lib/unictype/ctype_blank.h: Likewise.
45406         * lib/unictype/ctype_cntrl.h: Likewise.
45407         * lib/unictype/ctype_digit.h: Likewise.
45408         * lib/unictype/ctype_space.h: Likewise.
45409         * lib/unictype/ctype_xdigit.h: Likewise.
45410         * lib/unictype/mirror.h: Likewise.
45411         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45412         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45413         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45414         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45415         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45416         * lib/unictype/pr_bidi_control.h: Likewise.
45417         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45418         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45419         * lib/unictype/pr_bidi_pdf.h: Likewise.
45420         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45421         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45422         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45423         * lib/unictype/pr_format_control.h: Likewise.
45424         * lib/unictype/pr_hex_digit.h: Likewise.
45425         * lib/unictype/pr_hyphen.h: Likewise.
45426         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45427         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45428         * lib/unictype/pr_iso_control.h: Likewise.
45429         * lib/unictype/pr_join_control.h: Likewise.
45430         * lib/unictype/pr_left_of_pair.h: Likewise.
45431         * lib/unictype/pr_line_separator.h: Likewise.
45432         * lib/unictype/pr_math.h: Likewise.
45433         * lib/unictype/pr_non_break.h: Likewise.
45434         * lib/unictype/pr_not_a_character.h: Likewise.
45435         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45436         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45437         * lib/unictype/pr_other_id_continue.h: Likewise.
45438         * lib/unictype/pr_other_id_start.h: Likewise.
45439         * lib/unictype/pr_other_lowercase.h: Likewise.
45440         * lib/unictype/pr_other_math.h: Likewise.
45441         * lib/unictype/pr_other_uppercase.h: Likewise.
45442         * lib/unictype/pr_paired_punctuation.h: Likewise.
45443         * lib/unictype/pr_paragraph_separator.h: Likewise.
45444         * lib/unictype/pr_pattern_syntax.h: Likewise.
45445         * lib/unictype/pr_pattern_white_space.h: Likewise.
45446         * lib/unictype/pr_private_use.h: Likewise.
45447         * lib/unictype/pr_quotation_mark.h: Likewise.
45448         * lib/unictype/pr_radical.h: Likewise.
45449         * lib/unictype/pr_soft_dotted.h: Likewise.
45450         * lib/unictype/pr_space.h: Likewise.
45451         * lib/unictype/pr_titlecase.h: Likewise.
45452         * lib/unictype/pr_variation_selector.h: Likewise.
45453         * lib/unictype/pr_white_space.h: Likewise.
45454         * lib/unictype/sy_c_ident.h: Likewise.
45455         * lib/unictype/sy_c_whitespace.h: Likewise.
45456         * lib/unictype/sy_java_whitespace.h: Likewise.
45457         * modules/uni*/*: Bump version number of expected libunistring version.
45458         Reported by Simon Josefsson.
45460 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45462         useless-if-before-free: fix typo in --help and make the internal,
45463         automatic version date update process work once again.
45464         --help output contained a NUL character instead of the
45465         backslash-zero that was intended.  Also, the "must lie within
45466         the first 8 lines" line is on line 9, and hence not getting
45467         automatically updated.
45468         * build-aux/useless-if-before-free: Fix the former by adding a
45469         backslash, and the latter by condensing the three lines of what-it-does
45470         to a single line, leaving one line of slack for the future.
45472 2011-01-09  Bruno Haible  <bruno@clisp.org>
45474         uniwidth/width: Fix width of U+1D173..U+1D17A.
45475         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45476         symbolic_width, output_width_property_test): New functions.
45477         (main): Invoke output_nonspacing_property, output_width_property_test.
45478         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45479         U+1D173..U+1D17A.
45480         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45481         1.
45482         * modules/uniwidth/*: Bump version number of expected libunistring
45483         version.
45484         * modules/unilbrk/*: Likewise.
45486 2011-01-08  Bruno Haible  <bruno@clisp.org>
45488         uninorm tests: Preserve copyright of Unicode data file.
45489         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45490         Mention modifications.
45492 2011-01-08  Bruno Haible  <bruno@clisp.org>
45494         gen-uni-tables: Prepare for Unicode 5.2.0.
45495         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45496         (debug_output_lbp, output_lbp): Update.
45498 2011-01-08  Bruno Haible  <bruno@clisp.org>
45500         unilbrk: Clarify gen-uni-tables.c code.
45501         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45502         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45503         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45505 2011-01-07  Bruno Haible  <bruno@clisp.org>
45507         strtod: Restore errno when successfully parsing Infinity or NaN.
45508         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45509         restore the original errno.
45511 2011-01-07  Bruno Haible  <bruno@clisp.org>
45513         remove test: Avoid failure on HP-UX 11.
45514         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45516 2011-01-07  Bruno Haible  <bruno@clisp.org>
45518         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45519         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45520         error code.
45522 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45524         ignore-value: fixup comments, and add Eric Blake
45525         as an author since he rewrote the macros.
45526         * lib/ignore-value.h (ignore_value):  State that
45527         we now support aggregates.  Also specify exactly
45528         when the GCC warn_unused_result feature was added.
45530 2011-01-06  Eric Blake  <eblake@redhat.com>
45532         ignore-value: support aggregate types
45533         * lib/ignore-value.h (ignore_value): Provide separate gcc
45534         definition.
45535         * modules/ignore-value-tests: New test module.
45536         * tests/test-ignore-value.c: New test.
45538         maint.mk: improve sc_prohibit_strcmp regex
45539         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45540         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45541         definition of STRNEQ.
45543         signal: work around Haiku issue with SIGBUS
45544         * lib/siglist.h: Add comment.
45545         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45546         strsignal's favoring of SIGSEGV.
45547         * tests/test-signal.c (main): Avoid test failure.
45548         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45549         Reported by Scott McCreary.
45551         maint.mk: add pre-release check to ensure submodule commits are public
45552         * top/maint.mk (public-submodule-commit): New rule.
45553         (submodule-checks): New variable.
45554         (alpha beta stable): Depend on the variable.
45556 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45557         and Jim Meyering  <meyering@redhat.com>
45559         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45560         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45561         (ATTRIBUTE_DEPRECATED): Define.
45562         (_ignore_case): New function.
45563         (ignore_value): New macro, to replace the old function.
45564         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45565         * modules/ignore-value (Depends-on): Add stdint.
45567 2011-01-04  Eric Blake  <eblake@redhat.com>
45569         doc: regenerate INSTALL
45570         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45571         @firstparagraphindent support, now that autoconf dropped it.
45572         (INSTALL_PRELUDE): Reinstate old macro.
45573         * doc/install.texi: Resync from autoconf.
45574         * doc/INSTALL: Reflect recent autoconf update.
45575         * doc/INSTALL.ISO: Likewise.
45576         * doc/INSTALL.UTF-8: Likewise.
45577         Reported by Karl Berry.
45579 2011-01-04  Bruce Korb  <address@hidden>
45581         git-version-gen: avoid a sub-shell
45582         * build-aux/git-version-gen: Redirect stderr in `...` via
45583         "exec 2>...", rather than via an added sub-shell.
45585 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45587         git-version-gen: use (...) rather than sh -c '...'
45588         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45589         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45591 2011-01-03  Jim Meyering  <meyering@redhat.com>
45593         git-version-gen: convert leading TABs to spaces
45594         * build-aux/git-version-gen: Expand leading TABs.
45596         git-version-gen: handle failed "git rev-list"
45597         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45598         from git and proceeding as if it had succeeded but printed no SHA1
45599         checksums, suppress the diagnostic and handle the failure.
45600         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45602         git-version-gen: include command name in one more diagnostic
45603         * build-aux/git-version-gen: When the required .tarball-version file
45604         was missing or unreadable, you might see the diagnostic from "cat",
45605         but no trace of the name of the invoking script.  Now, you still see
45606         the diagnostic from cat, but also get one from "git-version-gen: ".
45607         Inspired by a patch from Bruce Korb.
45609         update-copyright: adjust test to match changed code
45610         * tests/test-update-copyright.sh: Change test's expected output
45611         to match new actual output.
45613 2011-01-02  Bruno Haible  <bruno@clisp.org>
45615         getlogin_r: Avoid test failure on HP-UX 11.
45616         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45617         ERANGE when the second argument is zero.
45618         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45619         portability problem.
45621 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45623         * build-aux/update-copyright: doc Simon's changes
45625 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45627         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45628         environment variable.
45630 2011-01-02  Bruno Haible  <bruno@clisp.org>
45632         unigbrk: Avoid gcc warnings.
45633         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45634         unused variable.
45635         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45636         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45637         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45638         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45639         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45640         Change type of first argument to 'const char *'.
45641         (main): Remove unused variable.
45642         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45643         type of first argument to 'const char *'.
45644         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45645         Likewise.
45646         (main): Change type of variable 's'.
45647         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45648         to 'int'.
45650 2011-01-02  Bruno Haible  <bruno@clisp.org>
45652         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45653         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45654         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45655         bug.
45656         * lib/pwrite.c: Undo 2010-12-31 patch.
45657         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45659 2011-01-02  Bruno Haible  <bruno@clisp.org>
45661         pread: Fix test whether it works.
45662         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45664 2011-01-02  Bruno Haible  <bruno@clisp.org>
45666         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45667         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45668         ends in "6". Don't require a specific month name. Try also the locale
45669         names found on HP-UX 11 and Solaris 7.
45671 2011-01-02  Bruno Haible  <bruno@clisp.org>
45673         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45674         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45675         C linkage.
45676         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45678 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45680         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45681         for consistency, since the "cluster" term is not used elsewhere.
45682         * lib/unigbrk.in.h: Update name.
45683         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45684         * lib/unigbrk/u16-grapheme-next.c: Update name.
45685         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45686         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45687         * lib/unigbrk/u32-grapheme-next.c: Update name.
45688         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45689         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45690         * lib/unigbrk/u8-grapheme-next.c: Update name.
45691         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45692         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45693         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45694         Suggested by Bruno Haible.
45696 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45698         Remove module 'u8-grapheme-len' as too redundant with
45699         'u8-grapheme-next'.
45700         * modules/unigbrk/u8-grapheme-len: Delete file.
45701         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45702         * lib/unigbrk.in.h: Remove prototype for deleted function.
45703         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45704         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45706         Remove module 'u16-grapheme-len' as too redundant with
45707         'u16-grapheme-next'.
45708         * modules/unigbrk/u16-grapheme-len: Delete file.
45709         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45710         * lib/unigbrk.in.h: Remove prototype for deleted function.
45711         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45712         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45714         Remove module 'u32-grapheme-len' as too redundant with
45715         'u32-grapheme-next'.
45716         * modules/unigbrk/u32-grapheme-len: Delete file.
45717         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45718         * lib/unigbrk.in.h: Remove prototype for deleted function.
45719         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45720         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45722         Suggested by Bruno Haible.
45724 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45726         * unigbrk.in.h: Fix typo: "ben" => "been".
45727         Reported by Bruno Haible.
45729 2011-01-01  Jim Meyering  <meyering@redhat.com>
45731         maint: update almost all copyright ranges to include 2011
45732         Run the new "make update-copyright" rule.
45734 2011-01-01  Jim Meyering  <meyering@redhat.com>
45736         maint: update-copyright: exempt doc/INSTALL*
45737         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45738         since they are generated.  Suggested by Bruno Haible.
45740 2011-01-01  Jim Meyering  <meyering@redhat.com>
45742         maint: refine the update-copyright rule
45743         * Makefile (update-copyright): Also exclude any file that includes
45744         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45745         code that merely generates the comment.
45747 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45749         New module 'u8-grapheme-len'.
45750         * modules/unigbrk/u8-grapheme-len: New file.
45751         * modules/unigbrk/u8-grapheme-len-tests: New file.
45752         * lib/unigbrk.in.h: Add prototype for new function.
45753         * lib/unigbrk/u8-grapheme-len.c: New file.
45754         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45756         New module 'u16-grapheme-len'.
45757         * modules/unigbrk/u16-grapheme-len: New file.
45758         * modules/unigbrk/u16-grapheme-len-tests: New file.
45759         * lib/unigbrk.in.h: Add prototype for new function.
45760         * lib/unigbrk/u16-grapheme-len.c: New file.
45761         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45763         New module 'u32-grapheme-len'.
45764         * modules/unigbrk/u32-grapheme-len: New file.
45765         * modules/unigbrk/u32-grapheme-len-tests: New file.
45766         * lib/unigbrk.in.h: Add prototype for new function.
45767         * lib/unigbrk/u32-grapheme-len.c: New file.
45768         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45770         New module 'u8-grapheme-next'.
45771         * modules/unigbrk/u8-grapheme-next: New file.
45772         * modules/unigbrk/u8-grapheme-next-tests: New file.
45773         * lib/unigbrk.in.h: Add prototype for new function.
45774         * lib/unigbrk/u8-grapheme-next.c: New file.
45775         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45777         New module 'u16-grapheme-next'.
45778         * modules/unigbrk/u16-grapheme-next: New file.
45779         * modules/unigbrk/u16-grapheme-next-tests: New file.
45780         * lib/unigbrk.in.h: Add prototype for new function.
45781         * lib/unigbrk/u16-grapheme-next.c: New file.
45782         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45784         New module 'u32-grapheme-next'.
45785         * modules/unigbrk/u32-grapheme-next: New file.
45786         * modules/unigbrk/u32-grapheme-next-tests: New file.
45787         * lib/unigbrk.in.h: Add prototype for new function.
45788         * lib/unigbrk/u32-grapheme-next.c: New file.
45789         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45791         New module 'u8-grapheme-prev'.
45792         * modules/unigbrk/u8-grapheme-prev: New file.
45793         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45794         * lib/unigbrk.in.h: Add prototype for new function.
45795         * lib/unigbrk/u8-grapheme-prev.c: New file.
45796         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45798         New module 'u16-grapheme-prev'.
45799         * modules/unigbrk/u16-grapheme-prev: New file.
45800         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45801         * lib/unigbrk.in.h: Add prototype for new function.
45802         * lib/unigbrk/u16-grapheme-prev.c: New file.
45803         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45805         New module 'u32-grapheme-prev'.
45806         * modules/unigbrk/u32-grapheme-prev: New file.
45807         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45808         * lib/unigbrk.in.h: Add prototype for new function.
45809         * lib/unigbrk/u32-grapheme-prev.c: New file.
45810         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45812         New module 'u8-grapheme-breaks'.
45813         * modules/unigbrk/u8-grapheme-breaks: New file.
45814         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45815         * lib/unigbrk.in.h: Add prototype for new function.
45816         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45817         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45819         New module 'u16-grapheme-breaks'.
45820         * modules/unigbrk/u16-grapheme-breaks: New file.
45821         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45822         * lib/unigbrk.in.h: Add prototype for new function.
45823         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45824         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45826         New module 'u32-grapheme-breaks'.
45827         * modules/unigbrk/u32-grapheme-breaks: New file.
45828         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45829         * lib/unigbrk.in.h: Add prototype for new function.
45830         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45831         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45833         New module 'ulc-grapheme-breaks'.
45834         * modules/unigbrk/ulc-grapheme-breaks: New file.
45835         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45836         * m4/locale-ar.m4: New file.
45837         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45838         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45839         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45841 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45843         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45844         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45845         modified how this file was generated before I initially submitted
45846         the module, but failed to regenerate it.  This meant that several
45847         of the level2 entries were wrong.
45848         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45849         Remove the division-by-2 that is folded into the table now that
45850         gbrkprop.h has been regenerated properly.  Now -1 entries are
45851         handled correctly.
45853         New module 'unigbrk/uc-gbrk-prop-tests'.
45854         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45855         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45856         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45857         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45859 2011-01-01  Bruno Haible  <bruno@clisp.org>
45861         Avoid use of hexadecimal escapes.
45862         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45863         instead of hexadecimal escapes.
45865 2011-01-01  Jim Meyering  <meyering@redhat.com>
45867         maint: new rule to update copyright year ranges
45868         * Makefile (update-copyright): New rule.
45870         maint: indent with TABs in Makefile
45871         * Makefile: Expand leading sequences of spaces to TABs
45873         version-etc: update the copyright year it reports
45874         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45876 2010-12-31  Bruno Haible  <bruno@clisp.org>
45878         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45879         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45880         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45881         zero.
45883 2010-12-31  Bruno Haible  <bruno@clisp.org>
45885         pwrite: Work around HP-UX 11.11 bug.
45886         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45887         works and set REPLACE_PWRITE if not.
45888         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45889         function.
45890         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45892 2010-12-31  Bruno Haible  <bruno@clisp.org>
45894         pread: Work around HP-UX 11 bugs.
45895         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45896         and set REPLACE_PREAD if not.
45897         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45899 2010-12-31  Eric Blake  <eblake@redhat.com>
45901         nl_langinfo: fix YESEXPR on Irix 6.5
45902         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45903         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45904         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45905         it.
45907 2010-12-31  Bruno Haible  <bruno@clisp.org>
45909         iconv: Document HP-UX 11 bug.
45910         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45912 2010-12-31  Bruno Haible  <bruno@clisp.org>
45914         ldexpl: Fix link error on HP-UX 11.
45915         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45916         LDEXPL_LIBM, using $ISNANL_LIBM.
45918 2010-12-31  Eric Blake  <eblake@redhat.com>
45920         ftello: avoid compilation failure with SunStudio c89
45921         * lib/ftello.c (ftello): Use lseek, not llseek.
45923         tests: avoid failing coreutils tests on cygwin
45924         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45925         (create_exe_shims_): Return 0 when skipping.
45927 2010-12-31  Bruno Haible  <bruno@clisp.org>
45929         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45930         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45932 2010-12-31  Bruno Haible  <bruno@clisp.org>
45934         waitpid: Fix link error in C++ mode.
45935         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45937 2010-12-31  Bruno Haible  <bruno@clisp.org>
45939         isnan: Use GCC built-ins when possible.
45940         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45941         __builtin_isnan.
45942         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45943         (isnan): Define using GCC built-ins for GCC >= 4.0.
45945 2010-12-31  Bruno Haible  <bruno@clisp.org>
45947         isnand: Fix mistake.
45948         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45949         __builtin_isnand.
45951 2010-12-31  Bruno Haible  <bruno@clisp.org>
45953         open: Avoid C++ error on HP-UX 11.
45954         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45956 2010-12-31  Bruno Haible  <bruno@clisp.org>
45958         time_r: Add missing declarations on HP-UX 11.
45959         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45960         instead of HAVE_LOCALTIME_R.
45961         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45962         HAVE_LOCALTIME_R always.
45963         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45964         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45965         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45966         HAVE_LOCALTIME_R.
45967         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45968         * doc/posix-functions/localtime_r.texi: Likewise.
45970 2010-12-29  Eric Blake  <eblake@redhat.com>
45972         mountlist: tweak previous commit
45973         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45974         Reported by Paul Eggert.
45976         mountlist: fix local drive detection on cygwin
45977         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45978         that works for cygwin.
45980 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45982         ftoastr, snprintf: ftoastr + snprintf module
45983         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45984         since the snprintf module now should be good enough here.
45985         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45986         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45987         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45988         GNULIB_SNPRINTF only for the test directory, and the latter
45989         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45990         seems to suffice by itself.
45992 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45994         alloca: one step towards thread-safety
45995         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45996         need for a static variable.  All callers changed.  This does not
45997         make the alloca replacement thread-safe, but it's one step.
45999         tests: minor indenting change
46000         * tests/init.sh: Sync from coreutils housekeeping patch
46001         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
46002         to keep lines within 80 columns.
46004 2010-12-28  Jim Meyering  <meyering@redhat.com>
46006         regex: don't infloop on persistent failing calloc
46007         * lib/regexec.c (build_trtable): Return failure indication upon
46008         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
46009         In glibc, this was fixed for version 2.13:
46010         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
46012 2010-12-28  Bruno Haible  <bruno@clisp.org>
46013             Paul Eggert <eggert@cs.ucla.edu>
46015         linkat: Make implementation robust against system behaviour variations.
46016         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
46017         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
46018         way, and to -2 if it needs a generic runtime test.
46019         * lib/linkat.c (solaris_optimized_link_immediate,
46020         solaris_optimized_link_follow): New functions.
46021         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
46022         (check_same_link): Use it.
46024 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
46026         New module 'unigbrk/base'.
46027         * modules/unigbrk/base: New file.
46028         * lib/unigbrk.in.h: New file.
46030         New module 'unigbrk/uc-gbrk-prop'.
46031         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
46032         * modules/unigbrk/uc-gbrk-prop: New file.
46033         * lib/unigbrk/gbrkprop.h: New file.
46034         * lib/unigbrk/uc-gbrk-prop.c: New file.
46036         New module 'unigbrk/uc-is-grapheme-break'.
46037         * modules/unigbrk/uc-is-grapheme-break: New file.
46038         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
46039         * lib/unigbrk/uc-is-grapheme-break.c: New file.
46040         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
46041         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
46042         * tests/unigbrk/GraphemeBreakTest.txt: New file.
46044         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
46046 2010-12-27  Bruno Haible  <bruno@clisp.org>
46048         linkat test: Avoid failure on Solaris 11 2010-11.
46049         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
46051 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46053         utimens: work around glibc rounding bug on more platforms
46054         * lib/utimens.c (fdutimens): Work around rounding bug even if
46055         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
46056         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
46058 2010-12-27  Bruno Haible  <bruno@clisp.org>
46060         select tests: Improve comments.
46061         * tests/test-select.c (do_select): Add comments.
46063 2010-12-27  Bruno Haible  <bruno@clisp.org>
46065         select tests: Safer way of handling timeout.
46066         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
46067         at every invocation.
46069 2010-12-27  Bruno Haible  <bruno@clisp.org>
46071         select tests: Use 'bool' where appropriate.
46072         * tests/test-select.c (connect_to_socket): Change argument type to
46073         'bool'.
46075 2010-12-27  Bruno Haible  <bruno@clisp.org>
46077         select tests: Use existing modules.
46078         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
46079         (configure.ac): Don't test for unistd.h.
46080         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
46081         declared in <unistd.h>.
46083 2010-12-27  Bruno Haible  <bruno@clisp.org>
46085         mbrtowc: Work around a Solaris 7 bug.
46086         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
46087         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
46088         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
46089         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
46090         MBRTOWC_NULL_ARG1_BUG.
46091         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
46092         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
46093         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
46094         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
46096 2010-12-27  Jim Meyering  <meyering@redhat.com>
46098         read-file.c: tweak syntax
46099         * lib/read-file.c (fread_file): Remove space after "*" in function
46100         definitions.
46102 2010-12-27  Bruno Haible  <bruno@clisp.org>
46104         times test: Avoid gcc warnings on OSF/1.
46105         * tests/test-times.c (main): Cast printf arguments from clock_t to
46106         'long int'.
46108 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46110         utimens: work around glibc rounding bug on older Linux kernels
46111         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
46112         on Linux with a glibc whose utimes might not work, then work
46113         around a longstanding glibc bug involving rounding rather than
46114         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
46115         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46117 2010-12-26  Bruno Haible  <bruno@clisp.org>
46119         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
46120         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
46121         _GL_CXXALIAS_SYS.
46122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46124 2010-12-26  Bruno Haible  <bruno@clisp.org>
46126         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
46127         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
46128         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
46129         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
46130         looking for the declaration.
46131         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
46132         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
46133         problem.
46134         * doc/posix-functions/inet_pton.texi: Likewise.
46136 2010-12-26  Bruno Haible  <bruno@clisp.org>
46138         arpa_inet: Use the common idioms with C++ support.
46139         * lib/arpa_inet.in.h: Include c++defs.h.
46140         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
46141         support.
46142         * modules/arpa_inet (Depends-on): Add c++defs.
46143         (Makefile.am): Substitute the contents of c++defs.h.
46144         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
46145         * modules/arpa_inet-c++-tests: New file.
46146         * tests/test-arpa_inet-c++.cc: New file.
46148 2010-12-25  Bruno Haible  <bruno@clisp.org>
46150         Fix more C++ link errors on Solaris 8.
46151         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
46152         $(LIB_EACCESS).
46153         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
46154         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
46155         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
46156         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
46157         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
46159 2010-12-25  Bruno Haible  <bruno@clisp.org>
46161         printf-posix: Fix link error when a non-GCC compiler is used.
46162         * lib/stdio.in.h (printf): When not using GCC, override printf
46163         correctly.
46164         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46166 2010-12-25  Bruno Haible  <bruno@clisp.org>
46168         strerror_r-posix: Update doc.
46169         * doc/posix-functions/strerror_r.texi: Update doc about the return
46170         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
46172 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46174         utimens: simplify the logic of the previous change
46175         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
46176         This should not affect whether the test succeeds or fails.
46178         utimens: configure better on hosts with NFS clock skew
46179         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
46180         uses the clock of the local host.  It might use the clock of the
46181         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
46182         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46184 2010-12-25  Bruno Haible  <bruno@clisp.org>
46186         ptsname test: Avoid failure on Solaris.
46187         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
46188         open a pseudo-terminal; don't use BSD-style ptys.
46189         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
46191 2010-12-25  Bruno Haible  <bruno@clisp.org>
46193         ptsname: Avoid ERANGE failure on some systems.
46194         * lib/ptsname.c (buffer): Increase size.
46196 2010-12-25  Bruno Haible  <bruno@clisp.org>
46198         rename, renameat: Avoid test failures at NFS mounted locations.
46199         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
46200         so that subsequent mkdir calls succeed.
46202 2010-12-25  Bruno Haible  <bruno@clisp.org>
46204         iswblank: Fix C++ link error on Solaris 8.
46205         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
46206         _GL_FUNCDECL_SYS.
46208 2010-12-25  Bruno Haible  <bruno@clisp.org>
46210         unistd: Fix C++ link error on Solaris 8.
46211         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
46213 2010-12-25  Bruno Haible  <bruno@clisp.org>
46215         readlink doc: Mention an old glibc bug.
46216         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
46218 2010-12-25  Bruno Haible  <bruno@clisp.org>
46220         fcntl-h: Fix for use of C++ on glibc systems.
46221         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
46222         also on glibc systems in C++ mode.
46223         Reported by Gary V. Vaughan <gary@gnu.org>.
46225 2010-12-25  Bruno Haible  <bruno@clisp.org>
46227         roundl-ieee: Make it work on OSF/1 5.1 with cc.
46228         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
46230 2010-12-25  Bruno Haible  <bruno@clisp.org>
46232         truncl-ieee: Make it work on OSF/1 5.1 with cc.
46233         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
46234         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
46235         test whether truncl works according to ISO C 99 with IEC 60559.
46236         * m4/truncl-ieee.m4: New file.
46237         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
46238         m4/signbit.m4.
46239         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
46241 2010-12-25  Bruno Haible  <bruno@clisp.org>
46243         ceill-ieee: Make it work on OSF/1 5.1 with cc.
46244         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
46245         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
46246         test whether ceill works according to ISO C 99 with IEC 60559.
46247         * m4/ceill-ieee.m4: New file.
46248         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
46249         m4/signbit.m4.
46250         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
46252 2010-12-25  Bruno Haible  <bruno@clisp.org>
46254         Ensure all prerequisites of <wchar.h> are included.
46255         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
46256         before <wchar.h>.
46257         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46258         gl_MBRLEN_NUL_RETVAL): Likewise.
46259         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46260         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
46261         AC_FUNC_MBRTOWC): Likewise.
46262         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46263         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46264         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46265         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46266         Likewise.
46267         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46268         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
46269         (gl_WCHAR_H): Improve comments.
46270         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
46272 2010-12-25  Bruno Haible  <bruno@clisp.org>
46274         strtok_r: Fix C syntax error in autoconf macro.
46275         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
46276         characters in test program.
46278 2010-12-24  Bruno Haible  <bruno@clisp.org>
46280         ceil, trunc, round: Fix gcc warnings.
46281         * lib/ceil.c (MIN): Undefine before redefining.
46282         * lib/trunc.c (MIN): Likewise.
46283         * lib/round.c (MIN): Likewise.
46284         Include <math.h> first.
46286 2010-12-24  Bruno Haible  <bruno@clisp.org>
46288         select tests: Avoid failures on OSF/1 5.1.
46289         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
46290         failure of closing the last socket; it may fail with ECONNRESET.
46292 2010-12-24  Eric Blake  <eblake@redhat.com>
46294         stdint: avoid HP-UX 10.20 preprocessor bug
46295         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
46296         than #if.
46297         * tests/test-floor2.c (main): Likewise.
46298         Reported by Peter O'Gorman.
46300         pipe: make obsoletion transition easier
46301         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
46302         * modules/pipe (Files): Include revived file.
46303         (Include): Drop reference, to mirror getdate's behavior.
46305 2010-12-24  Bruno Haible  <bruno@clisp.org>
46307         sys_socket: Hide mismatch of declarations on NonStop Kernel.
46308         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
46309         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
46310         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46312 2010-12-24  Bruno Haible  <bruno@clisp.org>
46314         gethostname: Ensure declaration on NonStop Kernel.
46315         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
46316         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46318 2010-12-24  Bruno Haible  <bruno@clisp.org>
46320         sys_select: Ensure all necessary types on NonStop Kernel.
46321         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
46322         include <sys/time.h>.
46323         * doc/posix-headers/sys_select.texi: Mention that it's missing on
46324         NonStop Kernel.
46325         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46327 2010-12-24  Bruno Haible  <bruno@clisp.org>
46329         sys_select: Remove unneeded include.
46330         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46331         have <sys/select.h>.
46333 2010-12-24  Bruno Haible  <bruno@clisp.org>
46335         gethostname: Provide a fallback for HOST_NAME_MAX.
46336         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46337         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46338         instead.
46339         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46341 2010-12-24  Bruno Haible  <bruno@clisp.org>
46343         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46344         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46345         (SA_RESTART): Likewise.
46346         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46348 2010-12-24  Bruno Haible  <bruno@clisp.org>
46350         signal: Define NSIG.
46351         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46352         * tests/test-signal.c (nsig): New variable.
46353         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46355 2010-12-24  Bruno Haible  <bruno@clisp.org>
46357         rename, renameat: Avoid test failures on OSF/1 5.1.
46358         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46359         alternative error codes.
46360         * tests/test-renameat.c (main): Likewise.
46362 2010-12-24  Bruno Haible  <bruno@clisp.org>
46364         *printf: Detect large precisions bug on Solaris 10/SPARC.
46365         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46366         by Paul Eggert.
46367         * tests/test-snprintf-posix.h (test_function): Add this test code here
46368         too.
46369         * tests/test-sprintf-posix.h (test_function): Likewise.
46370         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46371         * tests/test-vasprintf-posix.c (test_function): Likewise.
46372         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46373         around by gnulib.
46374         * doc/posix-functions/printf.texi: Likewise.
46375         * doc/posix-functions/snprintf.texi: Likewise.
46376         * doc/posix-functions/sprintf.texi: Likewise.
46377         * doc/posix-functions/vfprintf.texi: Likewise.
46378         * doc/posix-functions/vprintf.texi: Likewise.
46379         * doc/posix-functions/vsnprintf.texi: Likewise.
46380         * doc/posix-functions/vsprintf.texi: Likewise.
46381         * doc/posix-functions/dprintf.texi: Undo last commit.
46382         * doc/posix-functions/vdprintf.texi: Likewise.
46384 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46386         tests: port test-fdutimensat.c to Solaris 8
46387         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46388         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46389         On Solaris 8, it fails with errno == ENOSYS, because there is no
46390         futimens (so it can't use the fd), and there is no lutimens (so it
46391         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46393         vsnprintf: make more consistent with snprintf; doc fixes
46395         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46396         the byte count return problem was promoted from the snprintf-posix
46397         to the snprintf module.
46398         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46399         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46400         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46401         * tests/test-snprintf.c (main): Check the byte count returned.
46402         * tests/test-vsnprintf.c (main): Likewise.
46404 2010-12-23  Eric Blake  <eblake@redhat.com>
46406         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46407         * modules/sigpipe (License): Relax license.
46409 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46411         doc: document Solaris printf bug with large float precisions
46412         * doc/posix-functions/dprintf.texi (dprintf):
46413         * doc/posix-functions/fprintf.texi (fprintf):
46414         * doc/posix-functions/printf.texi (printf):
46415         * doc/posix-functions/snprintf.texi (snprintf):
46416         * doc/posix-functions/sprintf.texi (sprintf):
46417         * doc/posix-functions/vdprintf.texi (vdprintf):
46418         * doc/posix-functions/vfprintf.texi (vfprintf):
46419         * doc/posix-functions/vprintf.texi (vprintf):
46420         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46421         * doc/posix-functions/vsprintf.texi (vsprintf):
46422         Mention that these functions mishandle large floating point
46423         precisions on Solaris 10.  The same bug is also present in Solaris
46424         8, and I assume earlier.  This causes "cd gnulib-tests; make
46425         check" to fail on Solaris 8 (and I assume, later) when building
46426         the latest coreutils, in test-vasprintf-posix's call to
46427         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46428         the wide flavors (e.g., wprintf) so this patch just updates the
46429         documentation for the narrow ones.
46431         test-posixtm.c: add two tests
46432         * tests/test-posixtm.c: Add two tests, to highlight the
46433         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46434         around this bug; this is merely to document it.
46436 2010-12-22  Bruno Haible  <bruno@clisp.org>
46438         getlogin_r: Work around portability problem on OSF/1.
46439         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46440         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46441         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46442         test for a truncated result.
46443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46444         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46445         * modules/getlogin_r (Depends-on): Add memchr.
46446         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46448 2010-12-22  Bruno Haible  <bruno@clisp.org>
46450         ptsname: Avoid test failure on OSF/1 5.1.
46451         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46452         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46453         (same_slave): New function.
46454         (main): Use it to compare ptsname's result with the expected file name.
46456 2010-12-22  Bruno Haible  <bruno@clisp.org>
46458         Port extended stdio modules to HP NonStop Kernel.
46459         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46460         macros.
46461         * lib/fbufmode.c: Update comments.
46462         * lib/fflush.c: Likewise.
46463         * lib/fpurge.c: Likewise.
46464         * lib/freadable.c: Likewise.
46465         * lib/freadahead.c: Likewise.
46466         * lib/freading.c: Likewise.
46467         * lib/freadptr.c: Likewise.
46468         * lib/freadseek.c: Likewise.
46469         * lib/fseeko.c: Likewise.
46470         * lib/fseterr.c: Likewise.
46471         * lib/fwritable.c: Likewise.
46472         * lib/fwriting.c: Likewise.
46473         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46475 2010-12-22  Bruno Haible  <bruno@clisp.org>
46477         ttyname_r: Work around bug on OSF/1 5.1.
46478         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46479         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46480         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46481         present.
46482         * lib/ttyname_r.c (ttyname_r): Update comments.
46484 2010-12-22  Bruno Haible  <bruno@clisp.org>
46486         round: Implement result sign according to IEEE 754.
46487         * lib/round.c (MIN, MINUS_ZERO): New macros.
46488         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46489         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46490         * tests/test-round-ieee.c (main): Likewise.
46491         * tests/test-roundl-ieee.c (main): Likewise.
46493         trunc: Implement result sign according to IEEE 754.
46494         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46495         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46496         * tests/test-trunc2.c: Include minus-zero.h.
46497         (MINUS_ZERO): New macro.
46498         (trunc_reference): Keep in sync with lib/trunc.c.
46499         * tests/test-truncf2.c: Include minus-zero.h.
46500         (MINUS_ZERO): New macro.
46501         (truncf_reference): Keep in sync with lib/trunc.c.
46502         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46503         * tests/test-trunc-ieee.c (main): Likewise.
46504         * tests/test-truncl-ieee.c (main): Likewise.
46506         ceil: Implement result sign according to IEEE 754.
46507         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46508         (FUNC): Return -0.0 for -1 < x < 0.
46509         * tests/test-ceil2.c: Include minus-zero.h.
46510         (MINUS_ZERO): New macro.
46511         (ceil_reference): Keep in sync with lib/ceil.c.
46512         * tests/test-ceilf2.c: Include minus-zero.h.
46513         (MINUS_ZERO): New macro.
46514         (ceilf_reference): Keep in sync with lib/ceil.c.
46515         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46516         * tests/test-ceil-ieee.c (main): Likewise.
46517         * tests/test-ceill-ieee.c (main): Likewise.
46519         floor: Implement result sign according to IEEE 754.
46520         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46521         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46522         * tests/test-floorf2.c (floorf_reference): Likewise.
46523         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46524         * tests/test-floor-ieee.c (main): Likewise.
46525         * tests/test-floorl-ieee.c (main): Likewise.
46527 2010-12-22  Bruno Haible  <bruno@clisp.org>
46529         getaddrinfo: Update doc.
46530         * doc/posix-functions/gai_strerror.texi: Return type is also different
46531         on AIX and HP-UX.
46533 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46535         getaddrinfo, inet_ntop: Update doc for Solaris.
46536         * doc/posix-functions/gai_strerror.texi: Return type is also an
46537         issue on Solaris 9 and earlier.
46538         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46539         on Solaris 10 and earlier.
46541 2010-12-21  Bruno Haible  <bruno@clisp.org>
46543         New module 'roundl-ieee'.
46544         * modules/roundl-ieee: New file.
46545         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46546         test whether roundl works according to ISO C 99 with IEC 60559.
46547         * m4/roundl-ieee.m4: New file.
46548         * modules/roundl-ieee-tests: New file.
46549         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46550         * tests/test-roundl.c (main): Remove signbit tests.
46551         * modules/roundl-tests (Depends-on): Remove signbit.
46552         * doc/posix-functions/roundl.texi: Mention the new module.
46554 2010-12-21  Bruno Haible  <bruno@clisp.org>
46556         New module 'truncl-ieee'.
46557         * modules/truncl-ieee: New file.
46558         * modules/truncl-ieee-tests: New file.
46559         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46560         * tests/test-truncl.c (main): Remove signbit tests.
46561         * modules/truncl-tests (Depends-on): Remove signbit.
46562         * doc/posix-functions/truncl.texi: Mention the new module.
46564 2010-12-21  Bruno Haible  <bruno@clisp.org>
46566         New module 'ceill-ieee'.
46567         * modules/ceill-ieee: New file.
46568         * modules/ceill-ieee-tests: New file.
46569         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46570         * tests/test-ceill.c (main): Remove signbit tests.
46571         * modules/ceill-tests (Depends-on): Remove signbit.
46572         * doc/posix-functions/ceill.texi: Mention the new module.
46574 2010-12-21  Bruno Haible  <bruno@clisp.org>
46576         New module 'floorl-ieee'.
46577         * modules/floorl-ieee: New file.
46578         * modules/floorl-ieee-tests: New file.
46579         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46580         * tests/test-floorl.c (main): Remove signbit tests.
46581         * modules/floorl-tests (Depends-on): Remove signbit.
46582         * doc/posix-functions/floorl.texi: Mention the new module.
46584 2010-12-21  Bruno Haible  <bruno@clisp.org>
46586         New module 'round-ieee'.
46587         * modules/round-ieee: New file.
46588         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46589         whether round works according to ISO C 99 with IEC 60559.
46590         * m4/round-ieee.m4: New file.
46591         * modules/round-ieee-tests: New file.
46592         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46593         * tests/test-round1.c (main): Remove signbit tests.
46594         * modules/round-tests (Depends-on): Remove 'signbit'.
46595         * doc/posix-functions/round.texi: Mention the new module.
46597 2010-12-21  Bruno Haible  <bruno@clisp.org>
46599         New module 'trunc-ieee'.
46600         * modules/trunc-ieee: New file.
46601         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46602         whether trunc works according to ISO C 99 with IEC 60559.
46603         * m4/trunc-ieee.m4: New file.
46604         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46606         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46607         * modules/trunc-ieee-tests: New file.
46608         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46609         * tests/test-trunc1.c (main): Remove signbit tests.
46610         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46611         * doc/posix-functions/trunc.texi: Mention the new module.
46613 2010-12-21  Bruno Haible  <bruno@clisp.org>
46615         New module 'ceil-ieee'.
46616         * modules/ceil-ieee: New file.
46617         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46618         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46619         ISO C 99 with IEC 60559.
46620         * m4/ceil-ieee.m4: New file.
46621         * modules/ceil (Files): Add lib/ceil.c.
46622         (Depends-on): Add 'float'.
46623         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46624         * lib/math.in.h (ceil): New declaration.
46625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46626         REPLACE_CEIL.
46627         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46628         * modules/ceil-ieee-tests: New file.
46629         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46630         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46631         * doc/posix-functions/ceil.texi: Mention the new module.
46633 2010-12-21  Bruno Haible  <bruno@clisp.org>
46635         New module 'floor-ieee'.
46636         * modules/floor-ieee: New file.
46637         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46638         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46639         ISO C 99 with IEC 60559.
46640         * m4/floor-ieee.m4: New file.
46641         * modules/floor (Files): Add lib/floor.c.
46642         (Depends-on): Add 'float'.
46643         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46644         * lib/math.in.h (floor): New declaration.
46645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46646         REPLACE_FLOOR.
46647         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46648         * modules/floor-ieee-tests: New file.
46649         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46650         * tests/test-math-c++.cc: Check the signature of 'floor'.
46651         * doc/posix-functions/floor.texi: Mention the new module.
46653 2010-12-21  Bruno Haible  <bruno@clisp.org>
46655         New module 'roundf-ieee'.
46656         * modules/roundf-ieee: New file.
46657         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46658         test whether roundf works according to ISO C 99 with IEC 60559.
46659         * m4/roundf-ieee.m4: New file.
46660         * modules/roundf-ieee-tests: New file.
46661         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46662         * tests/test-roundf1.c (main): Remove signbit tests.
46663         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46664         * doc/posix-functions/roundf.texi: Mention the new module.
46666 2010-12-21  Bruno Haible  <bruno@clisp.org>
46668         New module 'truncf-ieee'.
46669         * modules/truncf-ieee: New file.
46670         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46671         test whether truncf works according to ISO C 99 with IEC 60559.
46672         * m4/truncf-ieee.m4: New file.
46673         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46675         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46676         * modules/truncf-ieee-tests: New file.
46677         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46678         * tests/test-truncf1.c (main): Remove signbit tests.
46679         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46680         * doc/posix-functions/truncf.texi: Mention the new module.
46682 2010-12-21  Bruno Haible  <bruno@clisp.org>
46684         New module 'ceilf-ieee'.
46685         * modules/ceilf-ieee: New file.
46686         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46687         test whether ceilf works according to ISO C 99 with IEC 60559.
46688         * m4/ceilf-ieee.m4: New file.
46689         * modules/ceilf-ieee-tests: New file.
46690         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46691         * tests/test-ceilf1.c (main): Remove signbit tests.
46692         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46693         * doc/posix-functions/ceilf.texi: Mention the new module.
46695 2010-12-21  Bruno Haible  <bruno@clisp.org>
46697         New module 'floorf-ieee'.
46698         * modules/floorf-ieee: New file.
46699         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46700         test whether floorf works according to ISO C 99 with IEC 60559.
46701         * m4/floorf-ieee.m4: New file.
46702         * modules/floorf-ieee-tests: New file.
46703         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46704         * tests/test-floorf1.c (main): Remove signbit tests.
46705         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46706         * doc/posix-functions/floorf.texi: Mention the new module.
46708 2010-12-21  Bruno Haible  <bruno@clisp.org>
46710         Support for minus zero in autoconf macros.
46711         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46712         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46713         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46714         * tests/minus-zero.h: Update comments.
46716 2010-12-21  Bruno Haible  <bruno@clisp.org>
46718         Tests for module 'ceil'.
46719         * modules/ceil-tests: New file.
46720         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46721         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46723 2010-12-21  Bruno Haible  <bruno@clisp.org>
46725         Tests for module 'floor'.
46726         * modules/floor-tests: New file.
46727         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46728         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46730 2010-12-21  Bruno Haible  <bruno@clisp.org>
46732         math: Fix indentation.
46733         * lib/math.in.h (floorf): Fix indentation.
46735 2010-12-21  Bruno Haible  <bruno@clisp.org>
46737         Fix cross-compilation guesses on Solaris.
46738         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46739         not match "solaris2.10".
46740         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46741         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46742         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46744 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46746         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46747         This fixes a problem observed with the latest coreutils snapshot
46748         that caused a test to fail on Solaris 8.  src/csplit.c's call
46749         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46750         earlier, instead of returning the number of bytes that would have
46751         been generated; this causes csplit to incorrectly report memory
46752         exhaustion.
46753         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46754         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46755         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46756         comments to match.
46757         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46758         Fix typo in matching older versions of Solaris: "solaris2.10"
46759         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46760         only for guessing while cross-compiling.
46761         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46763 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46765         ftoastr: fix comment again
46766         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46767         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46768         Also, simplify example a bit by using flags = 0.
46770 2010-12-20  Bruno Haible  <bruno@clisp.org>
46772         round*, trunc*: Update documentation regarding glibc.
46773         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46774         * doc/posix-functions/round.texi: Likewise.
46775         * doc/posix-functions/roundl.texi: Likewise.
46776         * doc/posix-functions/truncf.texi: Likewise.
46777         * doc/posix-functions/trunc.texi: Likewise.
46778         * doc/posix-functions/truncl.texi: Likewise.
46780 2010-12-20  Bruno Haible  <bruno@clisp.org>
46782         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46783         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46784         * doc/posix-functions/round.texi: Likewise.
46785         * doc/posix-functions/roundl.texi: Likewise.
46787 2010-12-20  Bruno Haible  <bruno@clisp.org>
46789         ttyname_r: Add missing declaration on HP-UX 11.
46790         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46791         HAVE_TTYNAME_R.
46792         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46793         declared. Set HAVE_TTYNAME_R always.
46794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46795         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46796         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46797         HAVE_TTYNAME_R.
46798         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46800 2010-12-20  Bruno Haible  <bruno@clisp.org>
46802         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46803         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46804         * doc/posix-functions/getlogin_r.texi: Likewise.
46805         * tests/test-getlogin.c: Include <errno.h>.
46806         (main): Avoid test failure on HP-UX 11.11.
46807         * tests/test-getlogin_r.c (main): Likewise.
46809 2010-12-20  Bruno Haible  <bruno@clisp.org>
46811         getlogin_r: Add missing declaration on HP-UX 11.
46812         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46813         declared also when it exists as a function.
46814         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46816 2010-12-20  Bruno Haible  <bruno@clisp.org>
46818         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46819         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46820         through wcrtomb.
46822 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46824         ftoastr: fix comment
46825         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46826         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46828 2010-12-19  Bruno Haible  <bruno@clisp.org>
46830         isnan: Ensure it is a macro.
46831         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46832         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46833         Solaris.
46835 2010-12-19  Bruno Haible  <bruno@clisp.org>
46837         ldexpl test: Fix link error on OSF/1 5.1.
46838         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46840 2010-12-19  Bruno Haible  <bruno@clisp.org>
46842         wctype: Make it work in C++ mode on OSF/1 5.1.
46843         * lib/wctype.in.h (iswblank): Declare but not define here.
46844         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46845         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46846         * modules/wctype (Files): Add lib/iswblank.c.
46848 2010-12-19  Bruno Haible  <bruno@clisp.org>
46850         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46851         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46852         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46854 2010-12-19  Bruno Haible  <bruno@clisp.org>
46856         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46857         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46858         _POSIX_PII_SOCKET.
46859         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46860         * doc/posix-functions/recvfrom.texi: Likewise.
46861         * doc/posix-functions/send.texi: Likewise.
46862         * doc/posix-functions/sendto.texi: Likewise.
46864 2010-12-19  Bruno Haible  <bruno@clisp.org>
46866         tcgetsid: Add missing declaration on OSF/1 5.1.
46867         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46868         HAVE_TCGETSID.
46869         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46870         Don't set HAVE_TCGETSID.
46871         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46872         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46873         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46874         HAVE_TCGETSID.
46875         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46877 2010-12-19  Bruno Haible  <bruno@clisp.org>
46879         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46880         * lib/stdio.in.h: During the include_next statement, let recursive
46881         includes of this file include only the system header file.
46883 2010-12-19  Bruno Haible  <bruno@clisp.org>
46885         iconv_open: Fix regression from 2010-12-04.
46886         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46887         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46889 2010-12-19  Bruno Haible  <bruno@clisp.org>
46891         stdbool test: Avoid a gcc warning.
46892         * tests/test-stdbool.c (main): Fail if e1 is false.
46893         Reported by Jim Meyering.
46895 2010-12-19  Jim Meyering  <meyering@redhat.com>
46897         setenv: restore to working order
46898         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46899         mistakenly removed.
46900         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46901         HAVE_SETENV.
46902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46903         HAVE_SETENV.
46905 2010-12-19  Bruno Haible  <bruno@clisp.org>
46907         Document some different function declarations on OSF/1 5.1.
46908         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46909         * doc/posix-functions/inet_ntop.texi: Likewise.
46910         * doc/posix-functions/gethostname.texi: Likewise.
46911         * lib/unistd.in.h (gethostname): Update comment.
46913 2010-12-19  Bruno Haible  <bruno@clisp.org>
46915         doc: Mention vasprintf-posix module.
46916         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46917         the 'vasprintf-posix' module.
46918         * doc/glibc-functions/vasprintf.texi: Likewise.
46920 2010-12-19  Bruno Haible  <bruno@clisp.org>
46922         unsetenv: Add missing declaration on OSF/1 5.1.
46923         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46924         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46925         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46927         not HAVE_UNSETENV.
46928         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46929         HAVE_UNSETENV.
46930         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46932 2010-12-19  Bruno Haible  <bruno@clisp.org>
46934         setenv: Add missing declaration on OSF/1 5.1.
46935         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46936         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46937         declared. Don't set HAVE_SETENV.
46938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46939         not HAVE_SETENV.
46940         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46941         HAVE_SETENV.
46942         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46944 2010-12-19  Bruno Haible  <bruno@clisp.org>
46946         nl_langinfo tests: Avoid gcc warning.
46947         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46949 2010-12-19  Bruno Haible  <bruno@clisp.org>
46951         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46952         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46953         _GL_CXXALIAS_SYS.
46955 2010-12-19  Bruno Haible  <bruno@clisp.org>
46957         stdbool: Relax test.
46958         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46959         address to 'bool' work in static initializer, for compilers other than
46960         GCC.
46962 2010-12-19  Bruno Haible  <bruno@clisp.org>
46964         ftello: Add missing declaration on OSF/1 5.1.
46965         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46966         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46968         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46969         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46971 2010-12-19  Bruno Haible  <bruno@clisp.org>
46973         fseeko: Add missing declaration on OSF/1 5.1.
46974         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46975         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46977         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46978         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46980 2010-12-19  Bruno Haible  <bruno@clisp.org>
46982         fchdir: Add missing declaration on OSF/1 5.1.
46983         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46986         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46987         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46989 2010-12-19  Bruno Haible  <bruno@clisp.org>
46991         relocatable-prog-wrapper: Separate from relocatable-prog.
46992         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46993         uninstall-relocwrapper rule here.
46994         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46995         Reported by Ian Beckwith <ianb@erislabs.net>.
46997 2010-12-19  Bruno Haible  <bruno@clisp.org>
46999         unistr/u8-mbsnlen: Add missing dependency.
47000         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
47001         Reported by Ian Beckwith <ianb@erislabs.net>.
47003 2010-12-19  Bruno Haible  <bruno@clisp.org>
47005         iconv: Make it possible again to use this module without 'iconv-h'.
47006         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
47007         if it is not defined.
47008         Reported by Ian Beckwith <ianb@erislabs.net>.
47010 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47012         acl: port to Solaris 8 when copying from tmpfs to ufs
47013         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
47014         error number.  Problem observed on Solaris 8 with latest
47015         coreutils, with "mv A B", where A is on a tmpfs file system and B
47016         is on a ufs file system.  This caused coreutils' mv/part-symlink
47017         test to fail.
47019         tests: set fail=0 at start
47020         * tests/init.sh (setup_): Move fail=0 initialization here ...
47021         (mktempd_): ... from here, so that tests can rely on fail being
47022         set to 0 initially.  This fixes a problem in coreutils; see:
47023         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
47025 2010-12-18  Bruno Haible  <bruno@clisp.org>
47027         memmem-simple: Stylistic changes.
47028         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
47029         Fix preprocessor directive indentation.
47031 2010-12-15  Pádraig Brady  <P@draigBrady.com>
47033         memmem, memmem-simple: reorganize and expand empty needle check
47034         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
47035         functional checks to memmem-simple so that one has a fully functional
47036         memmem by using just this module.
47037         Restrict the performance only check to the memmem module.
47038         Also expand the empty needle check to ensure the correct
47039         pointer is returned, not just a non NULL pointer.
47040         * doc/glibc-functions/memmem.texi: Rearrange the portability
47041         documentation to correlate with the rearranged checks.
47042         Clarify exactly how the memmem and memmem-simple modules
47043         relate to each other.
47045 2010-12-15  Pádraig Brady  <P@draigBrady.com>
47046             Bruno Haible  <bruno@clisp.org>
47048         Improve cross-compilation guesses for uClibc.
47049         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
47050         that uClibc does not have the glibc bug.
47051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
47052         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
47054 2010-12-14  Eric Blake  <eblake@redhat.com>
47056         configmake: provide fallbacks for oldest supported autotools
47057         * m4/configmake.m4: New file.
47058         * modules/configmake (Files): Ship it.
47059         (configure.ac): Use it to guarantee fallbacks.
47061 2010-12-13  Pádraig Brady  <P@draigBrady.com>
47063         read-file: Improve handling of large files
47064         * lib/read-file.c (fread_file): Minimize realloc()s
47065         for regular files, and better manage sizes around SIZE_MAX.
47067 2010-12-13  Eric Blake  <eblake@redhat.com>
47069         cloexec, fcntl: relax license
47070         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
47071         consent from all contributors.
47072         * modules/fcntl (License): Likewise.
47074 2010-12-10  Bruno Haible  <bruno@clisp.org>
47076         Tests for module 'pipe-posix'.
47077         * modules/pipe-posix-tests: New file.
47078         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
47080 2010-12-10  Bruno Haible  <bruno@clisp.org>
47082         pipe-posix: Make it work in C++ mode.
47083         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
47084         (pipe): Use common idiom, not a macro definition.
47085         * lib/pipe.c: New file.
47086         * m4/pipe.m4: New file.
47087         * modules/pipe-posix (Description): Enhance.
47088         (Files): Add lib/pipe.c, m4/pipe.m4.
47089         (configure.ac): Invoke gl_FUNC_PIPE.
47090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
47091         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
47092         * tests/test-unistd-c++.cc: Check the signature of pipe.
47094 2010-12-10  Bruno Haible  <bruno@clisp.org>
47096         Rename module 'pipe' to 'spawn-pipe'.
47097         * modules/spawn-pipe: New file, renamed from modules/pipe.
47098         (Files, configure.ac, Makefile.am): Update.
47099         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
47100         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
47101         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
47102         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
47103         "spawn-pipe.h" instead of "pipe.h".
47104         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
47105         to gl_SPAWN_PIPE.
47106         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
47107         (Files, Makefile.am): Update.
47108         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
47109         Update.
47110         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
47111         Include "spawn-pipe.h" instead of "pipe.h".
47112         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
47113         * lib/javacomp.c: Likewise.
47114         * lib/javaversion.c: Likewise.
47115         * lib/pipe-filter-gi.c: Likewise.
47116         * lib/pipe-filter-ii.c: Likewise.
47117         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
47118         * modules/javacomp (Depends-on): Likewise.
47119         * modules/javaversion (Depends-on): Likewise.
47120         * modules/pipe-filter-gi (Depends-on): Likewise.
47121         * modules/pipe-filter-ii (Depends-on): Likewise.
47122         * MODULES.html.sh (Executing programs): Update.
47123         * NEWS: Mention the change.
47125 2010-12-10  Eric Blake  <eblake@redhat.com>
47127         pipe-posix: new module
47128         * modules/pipe-posix: New file.
47129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
47130         (gl_UNISTD_H): Check for declaration.
47131         * modules/unistd (Makefile.am): Substitute it.
47132         * lib/unistd.in.h (pipe): Provide it for mingw.
47133         * doc/posix-functions/pipe.texi (pipe): Update documentation.
47134         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
47136 2010-12-07  Bruno Haible  <bruno@clisp.org>
47138         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
47139         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
47140         u8_strcmp_gnu.
47141         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
47143 2010-12-06  Bruno Haible  <bruno@clisp.org>
47145         Update internal documentation.
47146         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
47148 2010-12-04  Bruno Haible  <bruno@clisp.org>
47150         Put more information about failed tests into the test return codes.
47151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
47152         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
47153         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
47154         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47155         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
47156         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47157         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47158         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47159         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
47160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47161         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
47162         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47163         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47164         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47165         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
47166         returns a bit mask.
47167         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
47168         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
47169         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
47170         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
47171         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
47172         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47173         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47174         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47175         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47176         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47177         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47178         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47179         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47181         * m4/link.m4 (gl_FUNC_LINK): Likewise.
47182         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
47183         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
47184         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
47185         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47186         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
47187         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47188         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
47189         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
47190         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47191         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47192         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
47193         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
47194         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47195         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47196         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
47197         gl_PRINTF_PRECISION): Likewise.
47198         * m4/regex.m4 (gl_REGEX): Likewise.
47199         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47200         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
47201         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
47202         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
47203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47205         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
47206         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
47207         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47208         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47209         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
47210         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
47211         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47212         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47213         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
47214         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
47215         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
47216         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47218         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
47219         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
47220         enumerated value.
47221         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
47223 2010-12-04  Bruno Haible  <bruno@clisp.org>
47225         Update for Solaris 11 2010-11.
47226         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
47227         Express, released in November 2010.
47229 2010-12-04  Bruno Haible  <bruno@clisp.org>
47231         nproc: Relax license.
47232         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
47233         and Paul Eggert.
47234         Requested by Ludovic Courtès <ludo@gnu.org>.
47236 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47238         utimecmp: fine-grained src to nearby coarse-grained dest
47240         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
47241         and the source is on a file system with higher-resolution time
47242         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
47243         not work, and the time stamps are close together, the algorithm to
47244         determine the exact resolution from the read-back mtime was buggy:
47245         it had a "!=" where it should have had an "==".  This bug has been
47246         in the code ever since it was introduced to gnulib.
47247         Problem reported by Dan Jacobson in
47248         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
47250 2010-11-30  Bruno Haible  <bruno@clisp.org>
47252         strerror_r-posix: Fix autoconf test.
47253         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
47255 2010-11-28  Bruno Haible  <bruno@clisp.org>
47256             Paul Eggert  <eggert@cs.ucla.edu>
47258         Tests for module 'getdomainname'.
47259         * modules/getdomainname-tests: New file.
47260         * tests/test-getdomainname.c: New file, based on
47261         tests/test-gethostname.c.
47263 2010-11-28  Bruno Haible  <bruno@clisp.org>
47264             Paul Eggert  <eggert@cs.ucla.edu>
47266         getdomainname: Use the system function when possible.
47267         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
47268         (getdomainname): Replace if needed. Provide the declaration if it is
47269         missing. Don't use _GL_CXXALIAS_SYS_CAST.
47270         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
47271         (getdomainname): When the system has getdomainname, call the system
47272         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
47273         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47274         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47275         found in libnsl. Look for the declaration also in <netdb.h>. Replace
47276         the function if its second argument is of type 'int' or if it is found
47277         in libnsl.
47278         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
47279         <sys/systeminfo.h> and sysinfo().
47280         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
47281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47282         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
47283         HAVE_GETDOMAINNAME.
47284         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
47285         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
47286         * doc/glibc-functions/getdomainname.texi: Document the problems with
47287         the getdomainname declaration.
47289 2010-11-28  Bruno Haible  <bruno@clisp.org>
47291         sys_socket: Ensure ss_family field on AIX.
47292         * lib/sys_socket.in.h (ss_family): New macro definition.
47293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
47294         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
47295         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47296         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47297         * modules/sys_socket (Makefile.am): Substitute
47298         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47299         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
47301 2010-11-27  Bruno Haible  <bruno@clisp.org>
47303         readline: Improve configure output.
47304         * m4/readline.m4 (gl_FUNC_READLINE): Make the
47305         "checking for readline..." result understandable.
47307 2010-11-27  Bruno Haible  <bruno@clisp.org>
47309         *printf-posix: Detect a bug on Solaris 10/x86.
47310         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
47311         for floating-point output.
47312         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
47313         directive.
47314         * tests/test-snprintf-posix.h (test_function): Likewise.
47315         * tests/test-sprintf-posix.h (test_function): Likewise.
47316         * tests/test-vasprintf-posix.c (test_function): Likewise.
47317         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
47318         * doc/posix-functions/printf.texi: Likewise.
47319         * doc/posix-functions/snprintf.texi: Likewise.
47320         * doc/posix-functions/sprintf.texi: Likewise.
47321         * doc/posix-functions/vfprintf.texi: Likewise.
47322         * doc/posix-functions/vprintf.texi: Likewise.
47323         * doc/posix-functions/vsnprintf.texi: Likewise.
47324         * doc/posix-functions/vsprintf.texi: Likewise.
47325         * doc/glibc-functions/obstack_printf.texi: Likewise.
47326         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47328 2010-11-27  Bruno Haible  <bruno@clisp.org>
47330         Fix link error when module libunistring-optional is in use.
47331         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47332         * modules/striconveha-tests (Makefile.am): Likewise.
47334 2010-11-27  Bruno Haible  <bruno@clisp.org>
47336         regex: Mention link dependencies.
47337         * modules/regex (Link): New section.
47338         * modules/rpmatch (Link): Likewise.
47339         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47341 2010-11-27  Bruno Haible  <bruno@clisp.org>
47343         ftoastr: Fix compilation error on Solaris.
47344         * lib/ftoastr.c: Include <config.h>.
47346 2010-11-27  Bruno Haible  <bruno@clisp.org>
47348         getloadavg: Update documentation.
47349         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47351 2010-11-27  Bruno Haible  <bruno@clisp.org>
47353         sys_socket: Fix test whether the functions are declared.
47354         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47355         not <sys/select.h>.
47357 2010-11-27  Bruno Haible  <bruno@clisp.org>
47359         getpass: Make sure to get system declaration on some platforms.
47360         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47361         gl_USE_SYSTEM_EXTENSIONS.
47362         * modules/getpass (Depends-on): Add extensions.
47364 2010-11-26  Bruno Haible  <bruno@clisp.org>
47366         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47367         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47368         'iconv' module is present.
47369         (ICONV_CONST): New macro.
47370         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47371         ICONV_CONST.
47372         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47373         set ICONV_CONST.
47374         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47375         here.
47376         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47377         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47378         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47379         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47380         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47381         present.
47383 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47385         ftoastr: comment fix
47386         * lib/ftoastr.c: "little" -> "little or no" in comment
47388 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47390         stdint: port to GCC 4.3 + OSX + Octave
47391         On this platform, stdint.h is buggy and defines int64_t to long
47392         long int.  The replacement defined it to long int, causing
47393         problems with C++ style name mangling.  Instead, trust the system
47394         definition if INT64_MAX is defined, and likewise for the unsigned
47395         variant.   Problem reported by Jarno Rajahalme in
47396         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47397         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47398         and don't mess with int64_t and INT64_MAX in this case.
47399         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47401 2010-11-24  Bruno Haible  <bruno@clisp.org>
47403         doc: Corrections regarding MacOS X 10.4 and 10.5.
47404         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47405         MacOS X.
47406         Reported by Simon Josefsson.
47408 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47410         Uninstall ".bin" files installed by relocwrapper.
47411         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47412         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47413         unless it is already there.
47415 2010-11-21  Bruno Haible  <bruno@clisp.org>
47417         Update for NetBSD 5.0.
47418         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47419         NetBSD; the test fails on NetBSD 5.0.
47420         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47421         about NetBSD.
47423 2010-11-21  Bruno Haible  <bruno@clisp.org>
47425         Update for HP-UX 11.23 and HP-UX 11.31.
47426         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47427         HP-UX.
47429 2010-11-21  Bruno Haible  <bruno@clisp.org>
47431         Update for MacOS X 10.5.
47432         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47433         MacOS X; the test fails on MacOS X 10.5.8.
47434         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47435         about MacOS X.
47437 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47439         bootstrap: add bootstrap_sync option.
47440         See discussion at
47441         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47442         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47443         * build-aux/bootstrap: Accept --bootstrap-sync to update
47444         bootstrap if it is not identical to the local gnulib's
47445         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47446         enable this by default.  Accept --no-bootstrap-sync to disable
47447         it.
47449 2010-11-20  Bruno Haible  <bruno@clisp.org>
47451         Ensure that <features.h> is included before __GLIBC__ is tested.
47452         * lib/printf-parse.h: Include <features.h>.
47453         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47454         Reported by Mike Frysinger <vapier@gentoo.org>.
47456         Ensure that <features.h> is included before __GLIBC__ is tested.
47457         * lib/wchar.in.h: Include <features.h>.
47458         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47459         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47460         Reported by Mike Frysinger <vapier@gentoo.org>.
47462         Ensure that <features.h> is included before __GLIBC__ is tested.
47463         * lib/arpa_inet.in.h: Include <features.h>.
47464         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47465         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47466         Reported by Mike Frysinger <vapier@gentoo.org>.
47468         Ensure that <features.h> is included before __GLIBC__ is tested.
47469         * build-aux/link-warning.h: Include <features.h>.
47470         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47471         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47472         Reported by Mike Frysinger <vapier@gentoo.org>.
47474         Ensure that <features.h> is included before __GLIBC__ is tested.
47475         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47476         Reported by Mike Frysinger <vapier@gentoo.org>.
47478 2010-11-20  Bruno Haible  <bruno@clisp.org>
47480         memmem: Fix autoconf test.
47481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47483 2010-11-20  Bruno Haible  <bruno@clisp.org>
47485         Port to uClibc.
47486         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47487         * lib/fcntl.in.h: Likewise.
47488         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47489         * lib/mbrtowc.c (mbrtowc): Likewise.
47490         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47491         * lib/strerror_r.c: Likewise.
47492         * lib/unistr/u8-strnlen.c: Likewise.
47493         * lib/vasnprintf.c (decimal_point_char): Likewise.
47494         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47495         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47496         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47497         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47498         * tests/test-sigaction.c (handler, main): Likewise.
47499         * lib/freading.h: Treat uClibc like a non-glibc platform.
47500         * lib/freading.c: Likewise.
47501         * lib/gettext.h: Likewise.
47502         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47503         Likewise.
47504         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47505         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47506         * lib/propername.c (proper_name_utf8): Likewise.
47507         * lib/spawn.in.h: Likewise.
47508         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47509         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47510         mem_cd_iconveh_internal): Likewise.
47511         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47512         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47513         strstr, strcasestr): Likewise.
47514         * lib/unicodeio.c (unicode_to_mb): Likewise.
47515         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47516         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47517         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47518         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47519         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47520         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47521         * lib/unistr/u8-stpncpy.c: Likewise.
47522         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47523         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47524         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47525         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47526         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47527         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47528         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47530         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47531         Likewise.
47532         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47533         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47534         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47537         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47538         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47539         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47540         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47541         * tests/test-striconveha.c (main): Likewise.
47542         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47543         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47544         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47545         * doc/posix-functions/getline.texi: Likewise.
47546         Reported by Mike Frysinger <vapier@gentoo.org>.
47548 2010-11-20  Bruno Haible  <bruno@clisp.org>
47550         nproc: Fix condition.
47551         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47552         HAVE_PTHREAD_AFFINITY_NP.
47554 2010-11-20  Bruno Haible  <bruno@clisp.org>
47556         Fix a comment.
47557         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47559 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47561         ftoastr: don't assume snprintf
47562         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47563         Implement a subset of snprintf here, by using sprintf safely.
47564         * modules/ftoastr (Depends-on): Remove snprintf.
47566 2010-11-19  Jim Meyering  <meyering@redhat.com>
47568         test-rename.h: fix compilation failure
47569         * tests/test-rename.h (test_rename): Add omitted "}".
47571 2010-11-17  Jim Meyering  <meyering@redhat.com>
47573         maint.mk: add a URL discussing the no-@acronym policy
47574         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47576 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47578         ftoastr: depend on snprintf, improve comments
47579         * lib/ftoastr.c: Also mention Loitsch's draft.
47580         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47581         needed in the current implementation, but it might simplify
47582         speeding up the code later.
47583         * modules/ftoastr: Depend on snprintf; this improves portability.
47584         Suggested by Bruno Haible in the same email.
47586         ftoastr: port to hosts lacking strtof and strtold
47587         Problem reported by Bruno Haible in
47588         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47589         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47590         environment and strtold (and presumably strtof) are not available.
47591         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47592         (configure.ac): Require gl_C99_STRTOLD.
47594 2010-11-18  Bruno Haible  <bruno@clisp.org>
47596         c-strtold: Avoid link error on AIX 7.
47597         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47598         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47599         (gl_C_STRTOLD): Test whether strtold_l exists.
47600         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47602 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47604         intprops: new macro INT_BITS_STRLEN_BOUND
47605         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47606         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47607         not exposed.  Also, it uses a slightly tighter bound than before;
47608         though this makes no practical difference, we might as well be as
47609         tight as we easily can.
47611         ftoastr: new module, for lossless conversion of floats to short strings
47612         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47613         * modules/ftoastr: New files.
47615 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47617         bootstrap: port to Solaris sed
47618         * build-aux/bootstrap (get_version): Port to Solaris sed.
47619         See Ralf Wildenhues's note in
47620         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47622 2010-11-14  Jim Meyering  <meyering@redhat.com>
47624         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47625         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47626         and move definition closer to sole use.
47628 2010-11-13  Jim Meyering  <meyering@redhat.com>
47630         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47631         Now we require at least autoconf-2.59, which means the work-around
47632         is no longer needed.
47633         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47634         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47635         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47636         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47637         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47639 2010-11-13  Bruno Haible  <bruno@clisp.org>
47641         rename, renameat: Avoid test failures at NFS mounted locations.
47642         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47643         functions.
47644         (test_rename): Use assert_nonexistent.
47645         * tests/test-rename.c: Include <dirent.h>.
47646         * tests/test-renameat.c: Likewise.
47647         Reported by Gary V. Vaughan <gary@gnu.org>.
47649         rename, renameat: Document Linux bug with NFS
47650         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47651         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47652         * doc/posix-functions/renameat.texi: Likewise.
47653         Suggested by Eric Blake.
47655 2010-11-13  Bruno Haible  <bruno@clisp.org>
47657         rename test: Add comments.
47658         * tests/test-rename.h (test_rename): Add structure and comments.
47660 2010-11-13  Eric Blake  <eblake@redhat.com>
47662         maintainer-makefile: cover a few more files
47663         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47664         scripts generated within C files, for libvirt.
47666 2010-11-13  Bruno Haible  <bruno@clisp.org>
47668         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47669         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47670         character, return the number of bytes that belong together, not always
47671         1.
47672         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47673         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47674         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47675         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47676         number of bytes of an invalid character.
47677         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47678         (main): Invoke it.
47679         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47680         results.
47681         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47682         malformed byte sequences.
47683         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47684         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47685         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47686         Reported by Ben Pfaff and Paolo Bonzini.
47688 2010-11-13  Bruno Haible  <bruno@clisp.org>
47690         openat: Work around glibc bug with fchownat() and empty file names.
47691         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47692         (gl_FUNC_FCHOWNAT): Invoke it.
47693         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47694         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47695         Reported by Gary V. Vaughan <gary@gnu.org>.
47697 2010-11-13  Bruno Haible  <bruno@clisp.org>
47699         openat: Ensure autoconf macro ordering.
47700         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47701         gl_USE_SYSTEM_EXTENSIONS.
47702         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47704 2010-11-13  Bruno Haible  <bruno@clisp.org>
47706         Update comments.
47707         * lib/unistr/u8-check.c: Update file name in comments.
47708         * lib/unistr/u8-mblen.c: Likewise.
47709         * lib/unistr/u8-prev.c: Likewise.
47710         * lib/unistr/u8-strmblen.c: Likewise.
47711         * lib/unistr/u8-strmbtouc.c: Likewise.
47713 2010-11-13  Jim Meyering  <meyering@redhat.com>
47715         tests: avoid test failure on Solaris 10 due to lack of PATH export
47716         * tests/test-update-copyright.sh: Don't forget to export PATH.
47718         init.sh: ensure that IFS is defined, just in case...
47719         * tests/init.sh (setup_): Ensure that IFS is defined,
47720         so that saving and restoring it works as expected.  This
47721         appears to be useful at least for an old version of dash
47722         from a long time ago (RH 6).  See here for details:
47723         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47725         maint.mk: tighten "test a == b" check
47726         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47727         test to files that contain something like #!/bin/sh.
47728         Without this, coreutils would get two false positives in
47729         the comments of C source files.
47731 2010-11-12  Eric Blake  <eblake@redhat.com>
47733         bootstrap: fix typo in previous attempt
47734         * build-aux/bootstrap (buildreq): Correct the grouping.
47735         Reported by Paul Eggert.
47737         maintainer-makefile: prohibit test x == x
47738         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47739         Based on a report by Matthias Bolte.
47741         bootstrap: allow FreeBSD gzip
47742         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47743         which has no '.' and goes to stderr.
47744         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47745         Reported by Matthias Bolte.
47747         maintainer-makefile: check for i18n setup
47748         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47749         will likely work.
47751 2010-11-12  Bruno Haible  <bruno@clisp.org>
47753         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47754         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47755         * lib/nanosleep.c (nanosleep): Likewise.
47757 2010-11-11  Bruno Haible  <bruno@clisp.org>
47759         fcntl-h: Fix for use of C++ on glibc systems.
47760         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47761         also on glibc systems in C++ mode.
47762         Reported by Gary V. Vaughan <gary@gnu.org>.
47764 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47766         mknod: avoid false failure with dash
47767         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47769 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47771         unlink: Fix "is it should" typo in diagnostic.
47772         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47773         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47775 2010-11-11  Bruno Haible  <bruno@clisp.org>
47777         Tests for module 'strerror_r-posix'.
47778         * modules/strerror_r-posix-tests: New file.
47779         * tests/test-strerror_r.c: New file.
47780         * tests/test-string-c++.cc: Check the signature of strerror_r.
47782         New module 'strerror_r-posix'.
47783         * lib/string.in.h (strerror_r): New declaration.
47784         * lib/strerror_r.c: New file.
47785         * m4/strerror_r.m4: New file.
47786         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47787         of strerror_r.
47788         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47789         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47790         * modules/strerror_r-posix: New file.
47791         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47792         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47793         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47794         portability problems.
47796 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47798         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47799         line is also considered for output. Quoted function name in shell
47800         command, so temporary files for functions like MyClass::operator()
47801         are removed correctly without errors.
47803 2010-11-09  Bruno Haible  <bruno@clisp.org>
47805         * doc/posix-functions/strerror.texi: List more failing platforms.
47807         * doc/posix-functions/strerror.texi: Add a comment.
47809 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47811         fdopendir: fix bug on MacOS X when low on file descriptors
47813         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47814         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47815         All callers changed.
47816         (fdopendir): Invoke save_cwd at the top level, not after using
47817         multiple dup() calls to use up file descriptors.  Then retry
47818         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47819         less than the maximum number of open file descriptors, because
47820         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47821         on Mac OS X 10.6.4 for tar 1.24
47822         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47823         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47824         and for tar 1.25
47825         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47827 2010-11-07  Bruno Haible  <bruno@clisp.org>
47829         vasnprintf: Support I flag on glibc systems.
47830         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47831         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47832         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47833         snprintf function.
47834         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47835         glibc systems.
47836         * tests/test-vasnprintf-posix3.c: New file.
47837         * modules/vasnprintf-posix-tests (Files): Add it.
47838         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47840 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47842         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47843         * MODULES.html.sh: For compiler warnings, use name
47844         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47846 2010-11-05  Eric Blake  <eblake@redhat.com>
47848         ceil, floor: avoid spurious failure with icc
47849         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47850         [denormals-as-zero] when optimizing without -mieee-fp option.
47851         * tests/test-floorf2.c (floorf_reference): Likewise.
47852         * tests/test-ceilf1.c (dummy): New function.
47853         (main): Use it to outsmart icc's optimization.
47854         * tests/test-floorf1.c (dummy, main): Likewise.
47856         tests: require working signbit
47857         * modules/ceilf-tests (Depends-on): Add signbit.
47858         * modules/ceill-tests (Depends-on): Likewise.
47859         * modules/floorf-tests (Depends-on): Likewise.
47860         * modules/floorl-tests (Depends-on): Likewise.
47861         * modules/round-tests (Depends-on): Likewise.
47862         * modules/roundf-tests (Depends-on): Likewise.
47863         * modules/roundl-tests (Depends-on): Likewise.
47864         * modules/trunc-tests (Depends-on): Likewise.
47865         * modules/truncf-tests (Depends-on): Likewise.
47866         * modules/truncl-tests (Depends-on): Likewise.
47868         strtod: work around icc bug
47869         * lib/strtod.c (minus_zero): Define to working value.
47870         (strtod): Use it to avoid icc bug.
47872         copysign: enhance tests
47873         * modules/copysign-tests (Files): Add minus-zero.h.
47874         * tests/test-copysign.c (main): Also test zeros.
47876 2010-11-04  Eric Blake  <eblake@redhat.com>
47878         ceil, floor, round, trunc: enhance tests of -0
47879         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47880         * tests/test-ceill.c (main): Likewise.
47881         * tests/test-floorf1.c (main): Likewise.
47882         * tests/test-floorl.c (main): Likewise.
47883         * tests/test-round1.c (main): Likewise.
47884         * tests/test-roundf1.c (main): Likewise.
47885         * tests/test-roundl.c (main): Likewise.
47886         * tests/test-trunc1.c (main): Likewise.
47887         * tests/test-truncf1.c (main): Likewise.
47888         * tests/test-truncl.c (main): Likewise.
47890 2010-11-04  Eric Blake  <eblake@redhat.com>
47892         frexp, tests: work around ICC bug with -zero
47893         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47894         works with more compilers.
47895         * tests/minus-zero.h: New file.
47896         * modules/ceilf-tests (Files): Include it.
47897         * modules/ceill-tests (Files): Likewise.
47898         * modules/floorf-tests (Files): Likewise.
47899         * modules/floorl-tests (Files): Likewise.
47900         * modules/frexp-nolibm-tests (Files): Likewise.
47901         * modules/frexp-tests (Files): Likewise.
47902         * modules/frexpl-nolibm-tests (Files): Likewise.
47903         * modules/frexpl-tests (Files): Likewise.
47904         * modules/isnan-tests (Files): Likewise.
47905         * modules/isnand-nolibm-tests (Files): Likewise.
47906         * modules/isnand-tests (Files): Likewise.
47907         * modules/isnanf-nolibm-tests (Files): Likewise.
47908         * modules/isnanf-tests (Files): Likewise.
47909         * modules/isnanl-nolibm-tests (Files): Likewise.
47910         * modules/isnanl-tests (Files): Likewise.
47911         * modules/round-tests (Files): Likewise.
47912         * modules/roundf-tests (Files): Likewise.
47913         * modules/roundl-tests (Files): Likewise.
47914         * modules/ldexpl-tests (Files): Likewise.
47915         * modules/signbit-tests (Files): Likewise.
47916         * modules/snprintf-posix-tests (Files): Likewise.
47917         * modules/sprintf-posix-tests (Files): Likewise.
47918         * modules/strtod-tests (Files): Likewise.
47919         * modules/trunc-tests (Files): Likewise.
47920         * modules/truncf-tests (Files): Likewise.
47921         * modules/truncl-tests (Files): Likewise.
47922         * modules/vsnprintf-posix-tests (Files): Likewise.
47923         * modules/vsprintf-posix-tests (Files): Likewise.
47924         * modules/vasnprintf-posix-tests (Files): Likewise.
47925         * modules/vasprintf-posix-tests (Files): Likewise.
47926         * tests/test-ceilf1.c (main): Use it.
47927         * tests/test-ceill.c (main): Likewise.
47928         * tests/test-floorf1.c (main): Likewise.
47929         * tests/test-floorl.c (main): Likewise.
47930         * tests/test-frexp.c (main): Likewise.
47931         * tests/test-frexpl.c (main): Likewise.
47932         * tests/test-isnan.c (main): Likewise.
47933         * tests/test-isnand.h (main): Likewise.
47934         * tests/test-isnanf.h (main): Likewise.
47935         * tests/test-isnanl.h (main): Likewise.
47936         * tests/test-ldexpl.c (main): Likewise.
47937         * tests/test-round.c (main): Likewise.
47938         * tests/test-roundf.c (main): Likewise.
47939         * tests/test-roundl.c (main): Likewise.
47940         * tests/test-signbit.c (test_signbitf, test_signbitd)
47941         (test_signbitl): Likewise.
47942         * tests/test-snprintf-posix.h (test_function): Likewise.
47943         * tests/test-sprintf-posix.h (test_function): Likewise.
47944         * tests/test-strtod.c (main): Likewise.
47945         * tests/test-trunc1.c (main): Likewise.
47946         * tests/test-truncf1.c (main): Likewise.
47947         * tests/test-truncl.c (main): Likewise.
47949         isnanl: work around icc bug
47950         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47952 2010-11-03  Eric Blake  <eblake@redhat.com>
47954         tests: fix compiler warnings
47955         * tests/test-getopt.h (test_getopt): Fix condition.
47956         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47957         * tests/test-pipe2.c (main): Likewise.
47958         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47960         utimens: fix broken m4 test
47961         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47963 2010-10-28  Bruno Haible  <bruno@clisp.org>
47965         posix_spawn*, getdtablesize: Relax license.
47966         * modules/posix_spawn (License): Change to LGPLv2+.
47967         * modules/posix_spawnp (License): Likewise.
47968         * modules/posix_spawn-internal (License): Likewise.
47969         * modules/posix_spawnattr_init (License): Likewise.
47970         * modules/posix_spawnattr_getflags (License): Likewise.
47971         * modules/posix_spawnattr_setflags (License): Likewise.
47972         * modules/posix_spawnattr_getpgroup (License): Likewise.
47973         * modules/posix_spawnattr_setpgroup (License): Likewise.
47974         * modules/posix_spawnattr_getschedparam (License): Likewise.
47975         * modules/posix_spawnattr_setschedparam (License): Likewise.
47976         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47977         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47978         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47979         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47980         * modules/posix_spawnattr_getsigmask (License): Likewise.
47981         * modules/posix_spawnattr_setsigmask (License): Likewise.
47982         * modules/posix_spawnattr_destroy (License): Likewise.
47983         * modules/posix_spawn_file_actions_init (License): Likewise.
47984         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47985         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47986         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47987         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47988         * modules/getdtablesize (License): Likewise.
47989         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47991 2010-10-26  Bruno Haible  <bruno@clisp.org>
47993         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47994         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47995         Cygwin and mingw.
47996         Suggested by Eric Blake.
47998 2010-10-26  Bruno Haible  <bruno@clisp.org>
48000         stdio: Work around compilation error due to renameat() on Solaris 10.
48001         * lib/stdio.in.h: Include <unistd.h> on Solaris.
48002         * lib/renameat.c: Don't include <unistd.h> here.
48003         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
48004         Reported by Paul Eggert and Eric Blake.
48006 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48008         renameat: port to Solaris 10, which declares renameat in unistd.h
48010         * lib/renameat.c: Include unistd.h before stdio.h, because
48011         Solaris 10 declares renameat in unistd.h.  Problem encountered
48012         when building GNU tar 1.24 on Solaris 10.
48014 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48016         fdopendir: fix C89 compilation
48017         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
48018         compilers.
48020 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
48022         inttostr: simplify by removing unnecessary redundancy
48023         * lib/anytostr.c: Don't include verify.h.
48024         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
48025         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
48026         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
48027         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
48028         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
48029         Likewise.
48030         * modules/inttostr (Depends-on): Remove 'verify'.
48032 2010-10-23  Bruno Haible  <bruno@clisp.org>
48034         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
48035         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
48036         Reported by Eric Blake.
48038 2010-10-23  Bruno Haible  <bruno@clisp.org>
48040         Tests: Fix LOCALE_JA on MirBSD 10.
48041         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
48042         to an UTF-8 locale.
48043         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
48044         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48045         Reported by Eric Blake.
48047 2010-10-21  Bruno Haible  <bruno@clisp.org>
48049         nl_langinfo test: Avoid test failure on NetBSD 5.
48050         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
48051         Reported by Eric Blake.
48053 2010-10-21  Eric Blake  <eblake@redhat.com>
48055         c-stack: work around libsigsegv 2.8 bug
48056         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
48057         overflow on at least PowerPC64.
48059 2010-10-17  Bruno Haible  <bruno@clisp.org>
48061         userspec: Drop redundant file.
48062         * modules/userspec (Files): Remove lib/inttostr.h.
48064 2010-10-17  Bruno Haible  <bruno@clisp.org>
48066         nl_langinfo tests: Silence some warnings.
48067         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
48068         Reported by Jim Meyering.
48070 2010-10-17  Bruno Haible  <bruno@clisp.org>
48072         Make use of GCC's attribute __alloc_size__.
48073         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
48074         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
48075         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
48076         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
48077         __alloc_size__.
48078         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48079         Suggested by Jim Meyering.
48081 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
48083         bootstrap: anchor .gitignore entries.
48084         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
48085         with...
48086         (insert_vc_ignore): ... this new function, which prepends `/' to
48087         all .gitignore entries before passing them to
48088         insert_sorted_if_absent.
48090 2010-10-16  Bruno Haible  <bruno@clisp.org>
48092         nextafter: Fix configure check.
48093         * modules/nextafter (configure.ac): Correct expected prototype.
48095 2010-10-16  Bruno Haible  <bruno@clisp.org>
48097         termios: Update documentation.
48098         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
48100 2010-10-16  Bruno Haible  <bruno@clisp.org>
48102         tests: Make them compile with TinyCC.
48103         * tests/test-strstr.c (main): Remove parentheses around array
48104         initializer.
48106 2010-10-15  Eric Blake  <eblake@redhat.com>
48108         ignore-value: make header idempotent
48109         * lib/ignore-value.h: Add double-inclusion guards.
48110         Reported by Stefan Berger.
48112 2010-10-15  Jim Meyering  <meyering@redhat.com>
48114         GNUmakefile: handle "stable" target, not "major"
48115         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
48116         lists in maint.mk and announce-gen.  Without this, "make stable"
48117         would fail to ensure that $(VERSION) is up to date.
48119 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
48121         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
48122         & co.
48124 2010-10-14  Bruno Haible  <bruno@clisp.org>
48126         vasnprintf: Don't set errno to 0.
48127         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
48128         block that sets it to 0.
48129         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
48131 2010-10-14  Bruno Haible  <bruno@clisp.org>
48133         socketlib: Fix.
48134         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
48135         gl_PREREQ_SYS_H_WINSOCK2.
48136         Reported by Ian Beckwith <ianb@erislabs.net>.
48138 2010-10-13  Jim Meyering  <meyering@redhat.com>
48140         test-select-stdin.c: avoid warn_unused_result warnings
48141         * tests/test-select-stdin.c: Include "macros.h".
48142         ASSERT that read and fflush succeed.
48144 2010-10-13  Jim Meyering  <meyering@redhat.com>
48146         git-version-gen: do require git-VC'd files in cwd
48147         * build-aux/git-version-gen: Reject a git version string
48148         if there are no commits associated with the current directory.
48149         This avoids an unlikely false-positive (unrelated dir whose parent
48150         repository also contains a tag matching v*), as pointed out
48151         by Giuseppe Scrivano in
48152         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
48154 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48156         argv-iter: omit nonconforming declaration
48157         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
48158         enum arg_iter_err declaration, which doesn't conform to C99.
48159         Solaris 10 cc warns about this.
48161 2010-10-13  Eric Blake  <eblake@redhat.com>
48163         termios: fix compilation on mingw
48164         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
48165         (gl_TERMIOS_H): Adjust it on mingw.
48166         * modules/termios (Makefile.am): Substitute new key.
48167         * lib/termios.in.h (includes): Make include_next conditional.
48168         * doc/posix-headers/termios.texi (termios.h): Update
48169         documentation.
48170         Reported by Daniel P. Berrange.
48172 2010-10-13  Jim Meyering  <meyering@redhat.com>
48174         git-version-gen: don't require that .git/ be in the current dir
48175         * build-aux/git-version-gen: Adjust this script so that it works
48176         when run from any working directory beneath the top-level .git/-
48177         containing directory.  Inspired by a patch from Giuseppe Scrivano,
48178         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
48180         test-select: avoid warn_unused_result warnings
48181         * tests/test-select.c: Include "macros.h".
48182         ASSERT that each call to read, write, and pipe succeeds.
48183         While not technically required, also check each "close".
48184         * modules/select-tests (Files): Add tests/macros.h.
48186         test-symlinkat: remove declaration of unused local
48187         * tests/test-symlinkat.c (main): Remove unused local, "buf".
48189         test-inttostr: avoid shadowing warnings
48190         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
48191         and use malloc rather than the stack for the same reason as
48192         mentioned in the comment justifying the other allocation.
48194 2010-10-11  Bruno Haible  <bruno@clisp.org>
48196         stdlib: Allow multiple gnulib generated replacements to coexist.
48197         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
48198         Reported by Sam Steingold <sds@gnu.org>.
48200 2010-10-11  Jim Meyering  <meyering@redhat.com>
48202         fix a documentation typo
48203         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
48205 2010-10-11  Eric Blake  <eblake@redhat.com>
48207         futimens: work around Solaris 11 bug
48208         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
48209         * tests/test-futimens.h (test_futimens): Enhance, rather than
48210         weaken test.
48211         * doc/posix-functions/futimens.texi (futimens): Document the bug.
48213 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48215         Indentation.
48216         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
48217         higher-level operators more to the left.
48219 2010-10-11  Jim Meyering  <meyering@redhat.com>
48221         test-futimens: avoid unwarranted test failure on Solaris 5.11
48222         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
48223         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
48224         because it tries to dereference the NULL name argument.
48226 2010-10-11  Bruno Haible  <bruno@clisp.org>
48228         Indentation.
48229         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
48230         indentation.
48232 2010-10-11  Jim Meyering  <meyering@redhat.com>
48234         spawn.in.h: make indentation consistent with parentheses
48235         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
48236         Make indentation consistent with parentheses.
48238 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
48240         Fix mismatched parens in previous commit
48241         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
48242         parens.
48244 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48246         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
48248         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
48249         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
48250         * lib/malloca.c: Include "verify.h".
48251         (verify1): Remove, replacing with a verify call.
48252         * lib/relocwrapper.c (verify1): Likewise.
48253         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
48254         Likewise.
48255         * modules/malloca (Depends-on): Add 'verify'.
48256         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
48257         * modules/vasnprintf (Depends-on): Add 'verify'.
48258         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48259         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48260         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48261         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48262         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48263         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48264         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48266         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
48268         Formerly the style was sometimes 2*X - 1, because the C standard
48269         was wrongly thought to disallow ?: in integral constant expressions.
48270         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
48271         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
48272         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48273         * lib/stdint.in.h (_verify_intmax_size): Likewise.
48274         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
48275         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
48276         verify that time_t cannot be floating.
48278 2010-10-08  Eric Blake  <eblake@redhat.com>
48280         time: enforce recent POSIX ruling that time_t is integral
48281         * lib/time.in.h (__time_t_must_be_integral): Detect any
48282         problematic systems, allowing the rest of gnulib to assume POSIX.
48284 2010-10-08  Jim Meyering  <meyering@redhat.com>
48286         fdopendir: fix a bug on systems lacking openat and /proc support
48287         OpenBSD 4.7 is one such system.  The most noticeable effect was
48288         failure of any application making nontrivial use of fts: rm, du,
48289         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
48290           ./rm: traversal failed: `a': Bad file descriptor
48291         Debugging that, you see that even though FD 6 was closed just
48292         prior to the opendir call in fd_clone_opendir, its resulting
48293         dir->dd_fd was 8, rather than the expected value of 6:
48295         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
48296         93                close (fd);
48297         (gdb) n
48298         94                dir = fd_clone_opendir (dupfd);
48299         (gdb) n
48300         95                saved_errno = errno;
48301         (gdb) p dir->dd_fd
48302         $11 = 8
48304         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
48305         The problem is that on OpenBSD, fd_clone_opendir has to resort
48306         to using the old-style save/restore CWD mechanism, due to its
48307         lack of openat/proc support, and *that* would steal the FD (6)
48308         that opendir was supposed to use.
48310         The fix is to squirrel away the desired FD so that save_cwd uses a
48311         different one, and then free the dest FD right before calling opendir.
48312         That guarantees opendir will use the required file descriptor.
48314         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
48316 2010-10-08  Bruno Haible  <bruno@clisp.org>
48318         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
48319         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
48321 2010-10-08  Bruno Haible  <bruno@clisp.org>
48323         nanosleep: Make replacement POSIX compliant.
48324         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
48325         is out of range.
48326         Reported by Jim Meyering.
48328 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48330         bootstrap: add hook for altering gnulib.mk, for Bison
48331         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48332         the Bison bootstrapping process can rewrite file names and variables
48333         in this file before later parts of 'bootstrap' use the file.
48334         Bison wants to include lib/gnulib.mk from the top-level makefile,
48335         so it needs the file names in this file to be relative to the top
48336         level, not relative to lib; plus it needs variable names to be
48337         rewritten.
48338         (slurp): Use the new function.
48340         bootstrap: reformat for readability
48341         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48343 2010-10-08  Eric Blake  <eblake@redhat.com>
48345         docs: update cygwin progress
48346         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48347         1.7.7.
48348         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48349         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48350         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48351         * doc/posix-functions/carg.texi (carg): Likewise.
48352         * doc/posix-functions/cargf.texi (cargf): Likewise.
48353         * doc/posix-functions/casin.texi (casin): Likewise.
48354         * doc/posix-functions/casinf.texi (casinf): Likewise.
48355         * doc/posix-functions/casinh.texi (casinh): Likewise.
48356         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48357         * doc/posix-functions/catan.texi (catan): Likewise.
48358         * doc/posix-functions/catanf.texi (catanf): Likewise.
48359         * doc/posix-functions/catanh.texi (catanh): Likewise.
48360         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48361         * doc/posix-functions/ccos.texi (ccos): Likewise.
48362         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48363         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48364         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48365         * doc/posix-functions/cexp.texi (cexp): Likewise.
48366         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48367         * doc/posix-functions/cimag.texi (cimag): Likewise.
48368         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48369         * doc/posix-functions/clog.texi (clog): Likewise.
48370         * doc/posix-functions/clogf.texi (clogf): Likewise.
48371         * doc/posix-functions/conj.texi (conj): Likewise.
48372         * doc/posix-functions/conjf.texi (conjf): Likewise.
48373         * doc/posix-functions/cpow.texi (cpow): Likewise.
48374         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48375         * doc/posix-functions/cproj.texi (cproj): Likewise.
48376         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48377         * doc/posix-functions/creal.texi (creal): Likewise.
48378         * doc/posix-functions/crealf.texi (crealf): Likewise.
48379         * doc/posix-functions/csin.texi (csin): Likewise.
48380         * doc/posix-functions/csinf.texi (csinf): Likewise.
48381         * doc/posix-functions/csinh.texi (csinh): Likewise.
48382         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48383         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48384         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48385         * doc/posix-functions/ctan.texi (ctan): Likewise.
48386         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48387         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48388         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48389         * doc/posix-headers/complex.texi (complex.h): Likewise.
48391 2010-10-07  Jim Meyering  <meyering@redhat.com>
48393         parse-datetime: avoid compilation failure on OpenBSD 4.7
48394         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48395         This works around a compilation failure on OpenBSD 4.7:
48396         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48398 2010-10-07  Eric Blake  <eblake@redhat.com>
48400         docs: update cygwin progress
48401         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48402         1.7.6.
48403         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48404         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48405         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48406         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48407         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48408         Likewise.
48409         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48410         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48411         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48412         Likewise.
48413         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48414         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48415         Likewise.
48416         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48417         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48418         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48419         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48420         Likewise.
48421         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48422         Likewise.
48423         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48425         docs: update parse-datetime history
48426         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48427         documentation of this function's history and alternatives.
48429         cygwin: use more robust version check
48430         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48431         exclude an eventual cygwin 1.9.1.
48432         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48434         (gl_FUNC_STRCASESTR): Likewise.
48435         Reported by Bruno Haible.
48437 2010-10-06  Bruno Haible  <bruno@clisp.org>
48439         string, sys_select: Avoid #including large headers unless necessary.
48440         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48441         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48442         OSF/1, BeOS, Haiku.
48443         Reported by Jim Meyering.
48445 2010-10-05  Eric Blake  <eblake@redhat.com>
48447         memmem, strstr, strcasestr: fix bug with long periodic needle
48448         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48449         periodic needle having false positive.
48450         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48451         and cygwin 1.7.7.
48452         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48454         (gl_FUNC_STRCASESTR): Likewise.
48455         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48456         * tests/test-memmem.c (main): Expose the bug.
48457         * tests/test-strcasestr.c (main): Likewise.
48458         * tests/test-strstr.c (main): Likewise.
48459         * tests/test-c-strcasestr.c (main): Likewise.
48460         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48461         * doc/posix-functions/strstr.texi (strstr): Likewise.
48462         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48463         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48465 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48467         parse-datetime: do some more renaming
48468         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48469         parse_datetime, not get_date.  Mention the renaming.
48470         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48471         in comments.
48472         * m4/bison.m4: Likewise.
48474 2010-10-05  Eric Blake  <eblake@redhat.com>
48476         parse-datetime: better name than get_date
48477         * NEWS: Reword the deprecation notice.
48478         * modules/get_date: Rename to modules/parse-datetime.
48479         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48480         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48481         * lib/get_date.y: Rename to lib/parse-datetime.y.
48482         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48483         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48484         * doc/getdate.texi: Provide fallback wrapper.
48485         * lib/getdate.h: Move guts, and wrap...
48486         * lib/parse-datetime.h: ...new file.
48487         * lib/parse-datetime.y (get_date): Rename...
48488         (parse_datetime): ...to this.
48489         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48490         (gl_PARSE_DATETIME): ...to this.
48491         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48492         documentation.
48493         * modules/getdate (Files): Provide fallback docs and header.
48494         (Notice, Depends-on): Update references.
48495         * tests/test-parse-datetime.c: Likewise.
48496         * DEPENDENCIES: Likewise.
48497         * MODULES.html.sh (Date and time <time.h>): Likewise.
48498         * doc/parse-datetime.texi (Date input formats)
48499         (Authors of parse_datetime): Likewise.
48500         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48501         (Include): Likewise.
48502         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48503         * gnulib-tool: Likewise.
48504         * m4/bison.m4 (gl_BISON): Likewise.
48505         Suggested by Bruno Haible.
48507 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48509         more ports to Solaris tr, which needs [] around ranges
48510         * gnulib-tool: Solaris tr needs [] around ranges.
48511         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48512         * tests/test-pipe-filter-gi1.c (main): Likewise.
48513         * tests/test-pipe-filter-ii1.c (main): Likewise.
48515 2010-10-05  Eric Blake  <eblake@redhat.com>
48517         bootstrap: fix Solaris regression
48518         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48519         around ranges.
48520         Reported by Pádraig Brady.
48522         bootstrap: work with pkg-config
48523         * build-aux/bootstrap (check_versions): Also transliterate - in
48524         prerequisite name.
48525         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48526         prerequisites that were already found, to avoid confusion.
48527         Reported by Justin Clift.
48529         faccessat: remove unused wrappers
48530         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48531         presence of these wrappers dragged in -lgen on Solaris.
48532         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48534 2010-10-05  Jim Meyering  <meyering@redhat.com>
48536         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48537         * Makefile (sc_pragma_columns): New syntax-check rule.
48539 2010-10-04  Bruno Haible  <bruno@clisp.org>
48541         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48542         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48543         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48544         Reported by Bruce Korb and Eric Blake.
48546 2010-10-04  Bruno Haible  <bruno@clisp.org>
48548         threadlib: Make option --with-libpth-prefix work.
48549         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48550         use $LIBPTH, not just -lpth.
48552 2010-10-04  Bruno Haible  <bruno@clisp.org>
48554         Avoid line length limitation from HP NonStop system header files.
48555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48556         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48557         * lib/ctype.in.h: Likewise.
48558         * lib/dirent.in.h: Likewise.
48559         * lib/errno.in.h: Likewise.
48560         * lib/fcntl.in.h: Likewise.
48561         * lib/float.in.h: Likewise.
48562         * lib/getopt.in.h: Likewise.
48563         * lib/iconv.in.h: Likewise.
48564         * lib/inttypes.in.h: Likewise.
48565         * lib/langinfo.in.h: Likewise.
48566         * lib/locale.in.h: Likewise.
48567         * lib/math.in.h: Likewise.
48568         * lib/netdb.in.h: Likewise.
48569         * lib/netinet_in.in.h: Likewise.
48570         * lib/poll.in.h: Likewise.
48571         * lib/pthread.in.h: Likewise.
48572         * lib/pty.in.h: Likewise.
48573         * lib/sched.in.h: Likewise.
48574         * lib/se-selinux.in.h: Likewise.
48575         * lib/search.in.h: Likewise.
48576         * lib/signal.in.h: Likewise.
48577         * lib/spawn.in.h: Likewise.
48578         * lib/stdarg.in.h: Likewise.
48579         * lib/stddef.in.h: Likewise.
48580         * lib/stdint.in.h: Likewise.
48581         * lib/stdio.in.h: Likewise.
48582         * lib/stdlib.in.h: Likewise.
48583         * lib/string.in.h: Likewise.
48584         * lib/strings.in.h: Likewise.
48585         * lib/sys_file.in.h: Likewise.
48586         * lib/sys_ioctl.in.h: Likewise.
48587         * lib/sys_select.in.h: Likewise.
48588         * lib/sys_socket.in.h: Likewise.
48589         * lib/sys_stat.in.h: Likewise.
48590         * lib/sys_time.in.h: Likewise.
48591         * lib/sys_times.in.h: Likewise.
48592         * lib/sys_utsname.in.h: Likewise.
48593         * lib/sys_wait.in.h: Likewise.
48594         * lib/sysexits.in.h: Likewise.
48595         * lib/termios.in.h: Likewise.
48596         * lib/time.in.h: Likewise.
48597         * lib/unistd.in.h: Likewise.
48598         * lib/wchar.in.h: Likewise.
48599         * lib/wctype.in.h: Likewise.
48600         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48601         * modules/ctype (Makefile.am): Likewise.
48602         * modules/dirent (Makefile.am): Likewise.
48603         * modules/errno (Makefile.am): Likewise.
48604         * modules/fcntl-h (Makefile.am): Likewise.
48605         * modules/float (Makefile.am): Likewise.
48606         * modules/getopt-posix (Makefile.am): Likewise.
48607         * modules/iconv-h (Makefile.am): Likewise.
48608         * modules/inttypes (Makefile.am): Likewise.
48609         * modules/langinfo (Makefile.am): Likewise.
48610         * modules/locale (Makefile.am): Likewise.
48611         * modules/math (Makefile.am): Likewise.
48612         * modules/netdb (Makefile.am): Likewise.
48613         * modules/netinet_in (Makefile.am): Likewise.
48614         * modules/poll-h (Makefile.am): Likewise.
48615         * modules/pthread (Makefile.am): Likewise.
48616         * modules/pty (Makefile.am): Likewise.
48617         * modules/sched (Makefile.am): Likewise.
48618         * modules/search (Makefile.am): Likewise.
48619         * modules/selinux-h (Makefile.am): Likewise.
48620         * modules/signal (Makefile.am): Likewise.
48621         * modules/spawn (Makefile.am): Likewise.
48622         * modules/stdarg (Makefile.am): Likewise.
48623         * modules/stddef (Makefile.am): Likewise.
48624         * modules/stdint (Makefile.am): Likewise.
48625         * modules/stdio (Makefile.am): Likewise.
48626         * modules/stdlib (Makefile.am): Likewise.
48627         * modules/string (Makefile.am): Likewise.
48628         * modules/strings (Makefile.am): Likewise.
48629         * modules/sys_file (Makefile.am): Likewise.
48630         * modules/sys_ioctl (Makefile.am): Likewise.
48631         * modules/sys_select (Makefile.am): Likewise.
48632         * modules/sys_socket (Makefile.am): Likewise.
48633         * modules/sys_stat (Makefile.am): Likewise.
48634         * modules/sys_time (Makefile.am): Likewise.
48635         * modules/sys_times (Makefile.am): Likewise.
48636         * modules/sys_utsname (Makefile.am): Likewise.
48637         * modules/sys_wait (Makefile.am): Likewise.
48638         * modules/sysexits (Makefile.am): Likewise.
48639         * modules/termios (Makefile.am): Likewise.
48640         * modules/time (Makefile.am): Likewise.
48641         * modules/unistd (Makefile.am): Likewise.
48642         * modules/wchar (Makefile.am): Likewise.
48643         * modules/wctype (Makefile.am): Likewise.
48645 2010-10-04  Bruno Haible  <bruno@clisp.org>
48647         read-file tests: Avoid a test failure on NonStop Kernel.
48648         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48649         a regular file.
48650         Reported by Joachim Schmitz <schmitz@hp.com>.
48652 2010-10-03  Bruno Haible  <bruno@clisp.org>
48654         gnulib-tool: Fixes for --create-testdir with --libtool.
48655         * gnulib-tool (func_get_automake_snippet): Don't augment
48656         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48657         an executable.
48658         (func_create_testdir): Handle module 'alloca' like func_import.
48659         Reported by Bruce Korb <bruce.korb@gmail.com>.
48661 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48663         Avoid some lines longer than 80 characters.
48664         * lib/stdint.in.h: Break long comment lines.
48665         * lib/math.in.h: Likewise.
48666         (_GL_NUM_UINT_WORDS): New macro, for readability.
48667         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48668         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48669         * lib/stdlib.in.h: Likewise.
48670         * lib/spawn.in.h: Likewise.
48671         * lib/sys_socket.in.h: Update an URL.
48672         * lib/sys_stat.in.h: Break long line.
48674 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48676         Improve pmccabe2html.
48677         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48678         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48679         when the sources change. Remove the line in the HTML about "Used
48680         ranges" (which implied that there might be other unused ranges),
48681         rename "Resume" to "Summary" (easier to understand for more users).
48682         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48683         styles, and some unnecessary blank lines.
48685 2010-10-03  Bruno Haible  <bruno@clisp.org>
48686             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48688         acl: Add support for ACLs on NonStop Kernel.
48689         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48690         Check whether the function aclsort() exists.
48691         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48692         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48693         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48694         (acl_nontrivial [HAVE_ACLSORT]: New function.
48695         (file_has_acl): Implement for NonStop Kernel.
48696         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48697         (qset_acl): Implement for NonStop Kernel.
48698         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48699         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48700         (main): Implement for NonStop Kernel.
48701         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48702         Kernel. Handle this flavor.
48703         * tests/test-set-mode-acl.sh: Likewise.
48704         * tests/test-copy-acl.sh: Likewise.
48705         * tests/test-copy-file.sh: Likewise.
48707 2010-10-03  Bruno Haible  <bruno@clisp.org>
48709         Info about ACLs on NonStop Kernel.
48710         * doc/acl-resources.txt: Add info about NonStop Kernel.
48711         References by Joachim Schmitz <schmitz@hp.com>.
48713 2010-10-02  Bruno Haible  <bruno@clisp.org>
48715         Define missing EDQUOT on NonStop Kernel.
48716         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48717         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48719         missing.
48720         * doc/posix-headers/errno.texi: Mention the NSK bug.
48721         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48722         Reported by Joachim Schmitz <schmitz@hp.com>.
48724 2010-10-02  Bruno Haible  <bruno@clisp.org>
48726         Update doc for POSIX:2008.
48727         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48728         Update URL of POSIX specification.
48730 2010-10-02  Bruno Haible  <bruno@clisp.org>
48732         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48733         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48734         from gnulib, not from Automake.
48736 2010-10-02  Bruno Haible  <bruno@clisp.org>
48738         New module 'system-posix'.
48739         * modules/system-posix: New file.
48740         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48741         module is present.
48742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48743         GNULIB_SYSTEM_POSIX.
48744         * modules/stdlib (Depends-on): Remove sys_wait.
48745         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48746         * doc/posix-functions/system.texi: Mention the new module.
48747         * doc/posix-headers/stdlib.texi: Likewise.
48748         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48749         define test_sys_wait_macros to a no-op.
48750         Reported by Sam Steingold <sds@gnu.org>.
48752 2010-09-30  Bruno Haible  <bruno@clisp.org>
48754         More renaming from 'getdate' to 'get_date'.
48755         * doc/get_date.texi: Renamed from doc/getdate.texi.
48756         * modules/get_date (Files): Update.
48757         * MODULES.html.sh (Date and time <time.h>): Update.
48758         * DEPENDENCIES: Update.
48759         * gnulib-tool: Update comment.
48760         * m4/bison.m4 (gl_BISON): Likewise.
48761         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48763 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48765         bootstrap: support ACLOCAL_FLAGS during aclocal
48766         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48767         can add additional -I dir for third-party .m4 files.
48769 2010-09-30  Eric Blake  <eblake@redhat.com>
48771         bootstrap: use glibtoolize on MacOS
48772         * build-aux/bootstrap (check_versions): Convert libtool into
48773         libtoolize.
48774         (tool search): Move libtool check earlier, and look for
48775         glibtoolize for MacOS.
48776         (gnulib_tool_options): Auto-add --libtool when appropriate.
48777         Reported by Justin Clift.
48779         poll: fix typo that broke test on MacOS
48780         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48781         Reported by Justin Clift.
48783         getdate: rename to get_date
48784         Note: getdate.h is not renamed, to minimize client impact.
48785         * modules/getdate: Mark obsolete.  Move old contents...
48786         * modules/get_date: ...to new module name.
48787         * modules/getdate-tests: Move...
48788         * modules/get_date-tests: ...here.
48789         * m4/getdate.m4: Move...
48790         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48791         * lib/getdate.y: Move...
48792         * lib/get_date.y: ...here.
48793         * tests/test-getdate.c: Move...
48794         * tests/test-get_date.c: ...here.
48795         * doc/posix-functions/getdate.texi (getdate): Update name.
48796         * NEWS: Mention the change.
48798 2010-09-29  Bruno Haible  <bruno@clisp.org>
48800         Separate the module 'waitpid' from the module 'sys_wait'.
48801         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48802         present.
48803         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48804         gl_MODULE_INDICATOR_FOR_TESTS.
48805         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48806         * modules/sys_wait (Depends-on): Remove waitpid.
48807         (Makefile.am): Substitute GNULIB_WAITPID.
48808         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48809         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48810         signature only if the 'waitpid' module is present.
48811         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48812         * NEWS: Mention the change.
48813         * modules/grantpt (Depends-on): Add waitpid.
48814         * modules/wait-process (Depends-on): Likewise.
48816 2010-09-29  Bruno Haible  <bruno@clisp.org>
48818         More tests for module 'sys_wait'.
48819         * modules/sys_wait-c++-tests: New file.
48820         * tests/test-sys_wait-c++.cc: New file.
48821         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48822         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48824 2010-09-29  Bruno Haible  <bruno@clisp.org>
48826         New module 'waitpid'.
48827         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48828         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48829         Don't include <process.h>.
48830         (waitpid): Declare only, using modern idiom.
48831         * m4/waitpid.m4: New file.
48832         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48833         * modules/waitpid: New file.
48834         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48835         (Makefile.am): Update.
48836         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48838 2010-09-28  Bruno Haible  <bruno@clisp.org>
48840         poll: Assume ANSI C.
48841         * lib/poll.c (poll): Use an ANSI C declaration.
48843 2010-09-28  Bruno Haible  <bruno@clisp.org>
48845         poll-h: Create poll.h on all platforms.
48846         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48847         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48848         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48849         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48850         (gl_REPLACE_POLL_H): Don't set POLL_H.
48851         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48852         * modules/poll-h (Depends-on): Add include_next.
48853         (Makefile.am): Create poll.h unconditionally. Substitute also
48854         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48856 2010-09-28  Bruno Haible  <bruno@clisp.org>
48858         Tests for module 'poll-h'.
48859         * modules/poll-h-c++-tests: New file.
48860         * tests/test-poll-h-c++.cc: New file.
48862         Tests for module 'poll-h'.
48863         * modules/poll-h-tests: New file.
48864         * tests/test-poll-h.c: New file.
48866 2010-09-28  Bruno Haible  <bruno@clisp.org>
48868         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48869         * modules/poll-h (Depends-on): Add 'extensions'.
48871 2010-09-28  Bruno Haible  <bruno@clisp.org>
48873         New module 'poll-h'.
48874         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48875         (poll): Use modern idiom.
48876         * modules/poll-h: New file.
48877         * modules/poll (Files): Remove lib/poll.in.h.
48878         (Depends-on): Add poll-h.
48879         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48880         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48881         * m4/poll_h.m4: New file.
48882         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48883         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48884         and invoke gl_REPLACE_POLL_H.
48885         * lib/poll.c: Use common idiom.
48886         * tests/test-poll.c: Likewise.
48887         * doc/posix-headers/poll.texi: Mention the poll-h module.
48888         Suggested by Eric Blake.
48890 2010-09-26  Bruno Haible  <bruno@clisp.org>
48892         sys_wait: Implement WSTOPSIG.
48893         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48894         Reported by Simon Josefsson.
48896 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48898         stdlib, sys_wait: Avoid compilation error on mingw.
48899         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48901 2010-09-26  Bruno Haible  <bruno@clisp.org>
48903         stdlib tests: Avoid code duplication.
48904         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48905         * modules/sys_wait-tests (Files): Likewise.
48906         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48907         * tests/test-stdlib.c: Include test-sys_wait.h.
48908         (main): Invoke test_sys_wait_macros.
48909         * tests/test-sys_wait.c: Include test-sys_wait.h.
48910         (main): Invoke test_sys_wait_macros.
48912 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48914         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48915         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48916         sure Windows sockets are working before calling getaddrinfo.
48917         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48918         * doc/gnulib.texi (Windows sockets): Fix typo.
48920 2010-09-25  Bruno Haible  <bruno@clisp.org>
48922         Tests for module 'regex-quote'.
48923         * modules/regex-quote-tests: New file.
48924         * tests/test-regex-quote.c: New file.
48926         New module 'regex-quote'.
48927         * lib/regex-quote.h: New file.
48928         * lib/regex-quote.c: New file.
48929         * modules/regex-quote: New file.
48930         Suggested by Reuben Thomas <rrt@sc3d.org>.
48932 2010-09-24  Bruno Haible  <bruno@clisp.org>
48934         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48935         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48937 2010-09-23  Bruno Haible  <bruno@clisp.org>
48939         setenv: Relax license.
48940         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48941         Blake.
48942         Requested by Eric Blake.
48944 2010-09-22  Bruno Haible  <bruno@clisp.org>
48946         termios: Relax license.
48947         * modules/termios (License): Change to LGPLv2+.
48948         Requested by Eric Blake.
48950 2010-09-22  Bruno Haible  <bruno@clisp.org>
48952         threadlib: Allow the package to change the default to 'no'.
48953         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48954         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48955         Reported by Paul Eggert.
48957 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48958             Bruno Haible  <bruno@clisp.org>
48960         Fix endless loop in mbmemcasecoll.
48961         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48962         byte.
48963         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48965 2010-09-22  Bruno Haible  <bruno@clisp.org>
48967         Tests for module 'memcoll'.
48968         * modules/memcoll-tests: New file.
48969         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48971         memcoll, xmemcoll: Clarify size vs. length.
48972         * modules/memcoll.c (memcoll0): Clarify specification.
48973         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48974         passed to collate_error.
48976 2010-09-22  Bruno Haible  <bruno@clisp.org>
48978         Tests for module 'memcasecmp'.
48979         * modules/memcasecmp-tests: New file.
48980         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48982 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48984         * lib/pthread.in.h: Add split double-inclusion guard, and include
48985         system <pthread.h> if there is one.  Use @@-style as in other
48986         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48987         pthread.h doesn't.
48988         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48989         (pthread_mutexattr_settype, pthread_mutex_trylock):
48990         New static inline functions, if there's no system <pthread.h>.
48991         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48992         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48993         Approximate with mutexes if the system lacks spinlocks, as in
48994         MacOS.
48995         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48996         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48997         @@-style.  Check for spinlocks separately.
48998         (gl_PTHREAD_DEFAULTS): New macro.
48999         * modules/pthread: Redo to use a more typical style for in.h files.
49001 2010-09-21  Eric Blake  <eblake@redhat.com>
49003         net_if: enhance tests
49004         * tests/test-net_if.c (main): Move signature checks earlier.
49005         Print failures to stderr.
49006         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
49007         Document the bug that we do not yet fix.
49009 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
49011         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
49012         about gnulib, not GSS.
49014 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
49016         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
49017         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
49018         for Emacs.
49019         * build-aux/pmccabe2html: Make Makefile.am example code more
49020         cut-and-paste friendly.
49022 2010-09-21  Simon Josefsson  <simon@josefsson.org>
49024         * tests/test-net_if.c: New file.
49025         * modules/net_if-tests: New file.
49027 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49029         pthread: add pthread_spin_destroy
49030         * lib/pthread.in.h (pthread_spin_destroy): New function.
49032 2010-09-19  Bruno Haible  <bruno@clisp.org>
49034         gnulib-tool: Fix --help output.
49035         * gnulib-tool (func_usage): Fix help message.
49036         Reported by Reuben Thomas <rrt@sc3d.org>.
49038 2010-09-18  Jim Meyering  <meyering@redhat.com>
49040         maint.mk: avoid unexpanded \n in two diagnostics
49041         * top/maint.mk (sc_prohibit_always_true_header_tests):
49042         Don't use a literal \n in a halt=... assignment.  It would not be
49043         expanded, and the two \n bytes would appear in the diagnostic output
49044         rather than the desired newline.  Use halt=$$(printf ... instead.
49045         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
49047 2010-09-18  Bruno Haible  <bruno@clisp.org>
49049         netinet_in: Doc tweak.
49050         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
49051         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49053 2010-09-18  Jim Meyering  <meyering@redhat.com>
49055         init.sh: correct an outdated comment
49056         * tests/init.sh (create_exe_shims_):  s/function/alias/
49058         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
49059         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
49060         a file named "*.exe" is removed between the glob expansion and the
49061         processing of that oddly named file.
49063 2010-09-17  Eric Blake  <eblake@redhat.com>
49065         mirbsd: add some more support
49066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
49067         in BSD family.
49068         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
49069         devices as OpenBSD.
49070         * m4/host-os.m4 (mirbsd): Add MirBSD.
49072         tests: fix unportable assumption on sys/wait.h
49073         * tests/test-sys_wait.c (main): Relax test.
49074         * tests/test-stdlib.c (main): Likewise.
49076         init.sh: accommodate directory with no .exes
49077         * tests/init.sh: Accomodate directory containing only scripts.
49079         tests: avoid compiler warning
49080         * tests/test-stdlib.c (main): Use the variable.
49082         fdutimens, fdutimensat: update signature, again
49083         * lib/utimens.h (gl_futimens): Delete, and move signature...
49084         (fdutimens): ...here.
49085         (fdutimensat): Rearrange signature.
49086         (lutimensat): Rename variable for clarity.
49087         * lib/fdutimensat.c (fdutimensat): Update signature.
49088         * lib/utimens.c (fdutimens): Likewise.
49089         (gl_futimens): Delete.
49090         (utimens, lutimens): Update callers.
49091         * lib/futimens.c (futimens): Likewise.
49092         * tests/test-fdutimensat.c: Likewise.
49093         * tests/test-utimens.c: Likewise.
49094         * tests/test-futimens.h: Update comment.
49095         * NEWS: Mention this.
49096         Suggested by Paul Eggert.
49098 2010-09-17  Bruno Haible  <bruno@clisp.org>
49100         Take over the maintenance of some older macros from Autoconf.
49101         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
49102         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
49103         GNU Autoconf.
49104         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
49105         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
49107 2010-09-17  Eric Blake  <eblake@redhat.com>
49109         fdutimensat: drop atflag validation
49110         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
49111         with valid fd, to close a race scenario where futimens is
49112         unsupported and FILE was replaced by a symlink.
49113         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
49114         accordingly.
49115         Suggested by Paul Eggert.
49117 2010-09-16  Bruno Haible  <bruno@clisp.org>
49119         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
49120         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
49122 2010-09-16  Bruno Haible  <bruno@clisp.org>
49124         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
49125         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
49126         login_tty exists.
49127         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49129 2010-09-16  Bruno Haible  <bruno@clisp.org>
49131         login_tty: Make the replacement code work on BSD systems.
49132         * lib/login_tty.c: Include <sys/ioctl.h>.
49133         (login_tty): Use ioctl TIOCSCTTY when available.
49134         * modules/login_tty (Depends-on): Add sys_ioctl.
49135         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49137 2010-09-16  Bruno Haible  <bruno@clisp.org>
49139         login_tty: Stricter unit test.
49140         * modules/login_tty-tests (Depends-on): Add tcgetsid.
49141         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
49142         and tcgetsid() after login_tty.
49143         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49145 2010-09-16  Bruno Haible  <bruno@clisp.org>
49147         New module 'tcgetsid'.
49148         * lib/tcgetsid.c: New file.
49149         * m4/tcgetsid.m4: New file.
49150         * modules/tcgetsid: New file.
49151         * modules/termios (Depends-on): Add c++defs, warn-on-use.
49152         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
49153         GNULIB_TCGETSID, HAVE_TCGETSID.
49154         * lib/termios.in.h: Include <sys/types.h>.
49155         (tcgetsid): New declaration.
49156         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
49157         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
49158         * doc/posix-functions/tcgetsid.texi: Mention the new module.
49159         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
49161 2010-09-16  Bruno Haible  <bruno@clisp.org>
49163         Tests for module 'termios'.
49164         * modules/termios-c++-tests: New file.
49165         * modules/termios-tests: New file.
49166         * tests/test-termios-c++.cc: New file.
49167         * tests/test-termios.c: New file.
49169         New module 'termios'.
49170         * modules/termios: New file.
49171         * lib/termios.in.h: New file.
49172         * m4/termios_h.m4: New file.
49173         * doc/posix-headers/termios.texi: Mention the new module.
49175 2010-09-16  Eric Blake  <eblake@redhat.com>
49177         fdutimensat: add an atflag parameter
49178         * lib/fdutimensat.c (fdutimensat): Add new parameter.
49179         * lib/utimens.h (fdutimensat): Update prototype.
49180         * tests/test-fdutimensat.c: Adjust test to match.
49181         * NEWS: Document the change.
49182         Suggested by Paul Eggert.
49184 2010-09-16  Bruno Haible  <bruno@clisp.org>
49186         Fix typos in comments.
49187         * lib/striconveh.h: Fix typo in comment.
49188         * lib/login_tty.c (login_tty): Likewise.
49190 2010-09-15  Bruno Haible  <bruno@clisp.org>
49192         stdlib: clarify MirBSD WEXITSTATUS bug
49193         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
49194         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49196 2010-09-15  Eric Blake  <eblake@redhat.com>
49198         stdlib: work around MirBSD WEXITSTATUS bug
49199         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
49200         * modules/stdlib (Depends-on): Add sys_wait.
49201         * tests/test-sys_wait.c (main): Enhance test.
49202         * tests/test-stdlib.c (main): Likewise.
49203         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
49205         docs: mention MacOS issue with WEXITSTATUS(constant)
49206         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
49207         issue.
49208         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49210         strnlen: add tests
49211         * modules/strnlen-tests: New file.
49212         * tests/test-strnlen.c: Likewise.
49214 2010-09-14  Bruno Haible  <bruno@clisp.org>
49216         unistr/base: Avoid link errors when module 'libunistring' is also used.
49217         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
49218         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
49219         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
49220         Declare also when HAVE_LIBUNISTRING is set.
49221         Reported by Pádraig Brady <P@draigbrady.com>.
49223 2010-09-14  Eric Blake  <eblake@redhat.com>
49225         test-rawmemchr: make more robust
49226         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
49227         (Depends-on, configure.ac): Add needed prerequisites to use it.
49228         * modules/memchr-tests (Files, Depends-on, configure.ac):
49229         Likewise, to avoid implicit reliance on memchr module prereqs.
49230         * tests/test-memchr.c (main): Ensure proper masking.
49231         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
49232         reads.
49234         memchr: detect glibc Alpha bug
49235         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
49236         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
49237         Alpha.
49238         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
49239         * tests/test-memchr.c (main): Enhance test.
49240         Reported by Nelson H. F. Beebe.
49242 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49244         fts, getcwd, glob: audit for dirfd returning -1
49245         * lib/fts.c (opendir): Remove #define; no longer used.
49246         (opendirat): New arg PDIR_FD.  All callers changed.
49247         (fts_build, _opendir2): Use new opendirat to avoid the need for
49248         dirfd, or for checking whether dirfd returns a negative value.
49249         Don't use opendir; always use openat followed by fdopendir.
49250         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
49251         it.
49252         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
49253         returns -1 here.
49254         * modules/fts (Depends-on): Remove dirfd.
49255         * modules/getcwd (Depends-on): Likewise.
49257 2010-09-13  Eric Blake  <eblake@redhat.com>
49259         float: fix broken MirBSD header
49260         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
49261         * doc/posix-headers/float.texi (float.h): Document it.
49263 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49265         fts: use O_NOFOLLOW to avoid race condition when opening a directory
49266         * lib/fts.c (opendirat): New arg extra_flags.
49267         (__opendir2): Use it to avoid following symlinks when opening
49268         a directory, if symlinks are not supposed to be followed.  See
49269         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
49271         fdopendir: preserve argument fd before returning
49272         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
49273         (fdopendir_with_dup, fd_clone_opendir): New static functions.
49274         (fdopendir): Use them, arranging for FD to be open to the same
49275         directory that it was when it started.  (It might be temporarily
49276         closed while fdopendir is running, so this not thread- or
49277         signal-safe.)  Be careful to do the right thing even when file
49278         descriptors are scarce and dup fails with errno == EMFILE.  See
49279         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
49281 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
49283         regex: Pass the system regex if its only problem is 32-bit regoff_t.
49284         * NEWS: Document change.
49285         * m4/regex.m4: Disable test for regoff_t size.
49287 2010-09-13  Jim Meyering  <meyering@redhat.com>
49289         fts: don't operate on an invalid file descriptor after failed dup
49290         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
49291         negative file descriptor.
49293 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49295         savedir: add streamsavedir, deprecate fdsavedir
49296         * NEWS: Mention deprecation of fdsavedir.
49297         * lib/savedir.c (streamsavedir): New extern function, whose name
49298         ends in "savedir" to be consistent with the others.  This differs
49299         from savedirstream in that it doesn't close its argument.  The
49300         next version of GNU tar will use this instead of fdsavedir, to
49301         avoid some race conditions and conserve file descriptors.
49302         (savedirstream): Reimplement as a wrapper around streamsavedir.
49303         (fdsavedir): Add a comment deprecating this function.  As far as
49304         I know, only GNU tar used it, and GNU tar doesn't need it any more.
49305         * lib/savedir.h (streamsavedir): New decl.
49306         (fdsavedir): Add a comment deprecating this.
49308 2010-09-10  Bruno Haible  <bruno@clisp.org>
49310         langinfo: Fix last commit.
49311         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
49312         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
49313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49315 2010-09-10  Bruno Haible  <bruno@clisp.org>
49317         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
49318         * lib/progreloc.c (O_EXEC): Define fallback.
49320 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
49322         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
49323         * NEWS: Document recent changes to fcntl-h.
49324         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
49325         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
49326         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
49327         Similarly for O_SEARCH; this last was already true, but not documented.
49328         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
49329         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49330         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49331         Likewise.
49332         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49333         is zero, not whether it is defined.
49334         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49335         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49336         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49338 2010-09-10  Bruno Haible  <bruno@clisp.org>
49340         langinfo, nl_langinfo: Fix for IRIX 5.3.
49341         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49342         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49343         HAVE_LANGINFO_YESEXPR.
49344         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49345         HAVE_LANGINFO_YESEXPR.
49346         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49347         HAVE_LANGINFO_T_FMT_AMPM is 0.
49348         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49349         HAVE_LANGINFO_YESEXPR is 0.
49350         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49351         NOEXPR.
49352         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49353         * doc/posix-functions/nl_langinfo.texi: Likewise.
49354         Reported by Eric Blake.
49356 2010-09-10  Bruno Haible  <bruno@clisp.org>
49358         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49359         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49360         on FreeBSD 8.0 and OpenBSD 4.6.
49361         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49362         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49363         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49364         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49365         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49366         ac_includes_default.
49367         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49369 2010-09-09  Eric Blake  <eblake@redhat.com>
49371         strsignal: work around NetBSD bug
49372         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49373         * lib/string.in.h (includes): Likewise.
49374         * doc/posix-functions/strsignal.texi (strsignal): Document the
49375         bug.
49376         Reported by Nelson H. F. Beebe.
49378         gnulib-tool: work with NetBSD /bin/sh
49379         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49380         (func_get_description, func_get_comment, func_get_status)
49381         (func_get_notice, func_get_applicability, func_get_filelist)
49382         (func_get_dependencies, func_get_autoconf_early_snippet)
49383         (func_get_autoconf_snippet, func_get_automake_snippet)
49384         (func_get_include_directive, func_get_link_directive)
49385         (func_get_license, func_get_maintainer, func_import): Avoid
49386         shell syntax errors from parsing syntax extensions.
49388 2010-09-09  Bruno Haible  <bruno@clisp.org>
49390         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49391         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49392         a reliable way to determine whether the 'alias' command works.
49394 2010-09-08  Jim Meyering  <meyering@redhat.com>
49396         init.sh: penalize a set-x-impaired shell; don't disqualify it
49397         * tests/init.sh: Too many shells corrupt application stderr when
49398         you set -x, so we can't afford to disqualify them, since at least
49399         on Irix-6.5, that would disqualify all bourne shells.
49400         Instead, use a two-pass approach.
49401         On the first pass, try to find a shell that meets the stricter
49402         condition that set -x does not corrupt stderr.
49403         If no shell meets the stricter condition, retest each candidate
49404         shell, but without that extra condition.  Finally, when
49405         VERBOSE=yes is requested and set -x might cause trouble, simply
49406         issue a warning and refrain from enabling debug output.
49408 2010-09-08  Eric Blake  <eblake@redhat.com>
49410         unsetenv: fix OpenBSD bug
49411         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49412         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49413         documentation.
49414         Reported by Jim Meyering.
49416         strtod: work around IRIX 6.5 bug
49417         * lib/strtod.c (strtod): Reparse number on shorter string if
49418         exponent parse was invalid.
49419         * tests/test-strtod.c (main): Add check for "0x1p 2".
49420         Reported by Tom G. Christensen.
49422         getopt: optimize previous patch
49423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49424         empty variable.  Speed up awk script.
49425         Reported by Paolo Bonzini.
49427 2010-09-08  Jim Meyering  <meyering@redhat.com>
49429         test.sh: disqualify shells for which set -x corrupts stderr
49430         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49431         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49432         appear in stderr output.  For example, this command:
49433             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49434         prints "P=1" on those two systems:
49436 2010-09-08  Bruno Haible  <bruno@clisp.org>
49438         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49439         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49440         commands, because some shells ignore redirections when there is an
49441         error in the command lookup.
49442         Reported by Eric Blake.
49444 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49446         * lib/regex.h: Fix a mention of `regex_compile' (should be
49447         `re_compile_pattern').
49448         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49449         (re_set_registers): Correct name of parameter in comment.
49451         * doc/regex.texi: Add documentation for missing syntax flags.
49452         Remove commented-out documentation of defunct syntax option
49453         RE_NO_EMPTY_ALTS.
49454         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49455         Add documentation of re_set_registers.
49456         Document trick to re-use a pattern buffer by setting fastmap manually.
49457         Update documentation of struct re_pattern_buffer per public members.
49458         Uncomment documentation of equivalence class operators and
49459         collating symbol operators, since they are now implemented,
49460         Explain leftmost-longest matching in relation to alternatives.
49461         Tidy documentation of substring matching.
49462         Remove POSIX documentation, which is done better in
49463         glibc, and refer the reader there. Keep BSD API documentation, as
49464         that is not readily available elsewhere.
49466 2010-09-07  Eric Blake  <eblake@redhat.com>
49468         getopt: handle POSIXLY_CORRECT set but not exported
49469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49470         export state of POSIXLY_CORRECT, due to bash set -o posix.
49471         Reported by Dustin J. Mitchell.
49473 2010-09-05  Bruno Haible  <bruno@clisp.org>
49475         gnulib-tool: Highlight the changed options.
49476         * gnulib-tool (func_usage): Display the --import, --add-import,
49477         --remove-import explanations in bold font.
49479 2010-09-06  Karl Berry  <karl@gnu.org>
49481         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49483 2010-09-05  Bruno Haible  <bruno@clisp.org>
49485         uniwidth/width: Update comment.
49486         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49487         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49489 2010-09-05  Bruno Haible  <bruno@clisp.org>
49491         isinf, isnan: Relax license.
49492         * modules/isinf (License): Change from GPL to LGPL, with consent from
49493         Ben Pfaff.
49494         * modules/isnan (License): Likewise.
49495         Requested by Ludovic Courtès.
49497 2010-09-04  Bruno Haible  <bruno@clisp.org>
49499         gnulib-tool: Help migration from --import to --add-import or --update.
49500         * gnulib-tool: Emit a verbose error message when --import is used
49501         without any module name.
49503 2010-09-04  Bruno Haible  <bruno@clisp.org>
49505         Update doc about gnulib-tool.
49506         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49507         'gnulib-tool --update' in more detail.
49508         Reported by Eric Blake.
49510 2010-09-04  Bruno Haible  <bruno@clisp.org>
49512         gnulib-tool: Change --import. New options --add/remove-import.
49513         * gnulib-tool: New options --add-import, --remove-import.
49514         (func_usage): Document them.
49515         (have_associative): Define always.
49516         (func_import): In import mode, don't merge the specified settings with
49517         the cached settings. Implement remove-import mode.
49518         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49519         Explain when to use them versus --import.
49520         (Simple update): Use --add-import instead of --import.
49521         * NEWS: Mention the change.
49523 2010-09-04  Bruno Haible  <bruno@clisp.org>
49525         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49526         separate gnulib.mk.
49528 2010-09-04  Bruno Haible  <bruno@clisp.org>
49530         gnulib-tool: Don't talk about CVS any more.
49531         * gnulib-tool (func_usage, func_import): Write "version control"
49532         instead of CVS.
49534 2010-09-04  Jim Meyering  <meyering@redhat.com>
49536         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49537         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49538         false positives (whose names may be ill-chosen) when searching
49539         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49540         would cause a false-positive.
49542         avoid coreutils "make distcheck" failure
49543         Coreutils tests with an absolute build directory name that contains
49544         a space.  Not quoting this directory name caused a failure.
49545         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49546         * tests/test-vc-list-files-cvs.sh: Likewise.
49548 2010-09-04  Bruno Haible  <bruno@clisp.org>
49550         gnulib-tool: Avoid error when run in a package without Makefile.am.
49551         * gnulib-tool: When collecting the m4dirs in a package that does not
49552         have a Makefile.am, eliminate those directories that contain no
49553         gnulib-cache.m4. Fix expression that counts these directories.
49555 2010-09-04  Bruno Haible  <bruno@clisp.org>
49557         update-copyright test: Improve output when perl is missing or too old.
49558         * tests/test-update-copyright.sh: Move test of Perl version down after
49559         the test whether Perl exists. Provide an explanation relating Perl's
49560         error message to Automake's SKIP: message.
49562 2010-09-04  Bruno Haible  <bruno@clisp.org>
49564         Don't augment PATH in TESTS_ENVIRONMENT.
49565         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49566         set abs_aux_dir instead of augmenting PATH.
49567         * modules/vc-list-files-tests (Makefile.am): Likewise.
49568         * tests/test-update-copyright.sh: Augment PATH here.
49569         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49570         path_prepend_.
49571         * tests/test-vc-list-files-git.sh: Likewise.
49573 2010-09-04  Jim Meyering  <meyering@redhat.com>
49575         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49576         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49578 2010-09-04  Bruno Haible  <bruno@clisp.org>
49580         strdup: Fix compilation error in C++ mode.
49581         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49582         the macro.
49584 2010-09-04  Bruno Haible  <bruno@clisp.org>
49586         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49587         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49588         macro into a function.
49589         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49591 2010-09-04  Bruno Haible  <bruno@clisp.org>
49593         Set PATH_SEPARATOR the same way autoconf does.
49594         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49595         the value of PATH_SEPARATOR the same way autoconf-generated configure
49596         scripts do.
49597         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49598         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49600 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49602         Set PATH_SEPARATOR the same way autoconf does.
49603         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49604         the same way autoconf-generated configure scripts do.
49605         * posix-modules: Likewise.
49607 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49609         hash: fix safe_hasher const typo
49610         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49611         const; otherwise, there is a type error later.
49613 2010-09-02  Jim Meyering  <meyering@redhat.com>
49615         test-update-copyright.sh: require perl 5.8.0
49616         * tests/test-update-copyright.sh: Require 5.8.0,
49617         which Tom G. Christensen has confirmed is adequate,
49618         while 5.6.1 is not.
49620 2010-09-02  Eric Blake  <eblake@redhat.com>
49622         tests: init.sh improvements for re-exec'ing with zsh
49623         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49624         -vx through shell re-exec.
49625         Reported by Tom G. Christensen.
49627         wctype: fix typo in previous commit
49628         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49629         Reported by Ludovic Courtès.
49631 2010-09-02  Jim Meyering  <meyering@redhat.com>
49633         test-update-copyright.sh: skip test if Perl is too old
49634         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49635         Reported by Tom G. Christensen.
49637 2010-09-02  Bruno Haible  <bruno@clisp.org>
49639         wctype: Avoid compilation error on IRIX 6.5.30.
49640         * lib/wctype.in.h (iswblank): Declare with a replacement if
49641         REPLACE_ISWBLANK is set.
49642         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49643         declared. Set REPLACE_ISWBLANK.
49644         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49645         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49646         * doc/posix-headers/wctype.texi: Likewise.
49647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49649 2010-09-01  Bruno Haible  <bruno@clisp.org>
49651         New module 'socketlib'.
49652         * modules/socketlib: New file.
49653         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49654         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49655         * modules/sockets (Depends-on): Add socketlib.
49656         Suggested by Sam Steingold <sds@gnu.org>.
49658 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49660         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49662         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49663         when one needs search access to a directory but not read access.
49664         On systems where it is available, it works in some cases where
49665         O_RDONLY does not, namely on directories that are searchable but
49666         not readable, and which need only to be searchable.  If O_SEARCH
49667         is not available, fall back to the traditional method of using
49668         O_RDONLY.
49670         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49671         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49672         when opening a directory that needs only to be searchable.
49673         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49674         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49675         * lib/openat-proc.c (openat_proc_name): Likewise.
49676         * lib/openat.c (openat_needs_fchdir): Likewise.
49677         * lib/save-cwd.c (save_cwd): Likewise.
49678         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49680 2010-08-28  Bruno Haible  <bruno@clisp.org>
49682         New module 'host-cpu-c-abi'.
49683         * modules/host-cpu-c-abi: New file.
49684         * m4/host-cpu-c-abi.m4: New file, based on part of
49685         clisp/src/m4/general.m4.
49686         Requested by Sam Steingold <sds@gnu.org>.
49688 2010-08-31  Eric Blake  <eblake@redhat.com>
49689         and Jim Meyering  <meyering@redhat.com>
49691         hash: factor, and guard against misbehaving hasher function
49692         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49693         of table->hasher's return value.  Also protect against a hash value
49694         so large that adding it to table->bucket results in a NULL pointer.
49695         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49696         Use it in place of open-coded check-and-abort.
49698 2010-08-30  Bruno Haible  <bruno@clisp.org>
49700         hash: silence spurious clang warning
49701         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49702         Reported by Eric Blake.
49704 2010-08-30  Eric Blake  <eblake@redhat.com>
49706         strstr, memmem, strcasestr: avoid leaked shell message
49707         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49708         FreeBSD.
49709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49712         tests: silence clang warning
49713         * tests/test-malloca.c (do_allocation): Avoid dead store.
49715 2010-08-29  Bruno Haible  <bruno@clisp.org>
49717         gettext: Fix recent mistake.
49718         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49720 2010-08-29  Bruno Haible  <bruno@clisp.org>
49722         selinux-h: Offer a --without-selinux option.
49723         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49724         --without-selinux was specified, skip all tests and define
49725         HAVE_SELINUX_SELINUX_H to 0.
49726         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49727         set LIB_SELINUX to empty.
49728         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49729         gl_LIBSELINUX. If --without-selinux was specified, replace
49730         selinux/context.h.
49731         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49733 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49734             Bruno Haible  <bruno@clisp.org>
49736         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49737         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49738         of HAVE_REALLOC.
49739         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49740         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49741         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49742         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49744 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49745             Bruno Haible  <bruno@clisp.org>
49747         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49748         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49749         HAVE_CALLOC.
49750         * lib/xmalloc.c: Update accordingly.
49751         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49752         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49753         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49755 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49756             Bruno Haible  <bruno@clisp.org>
49758         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49759         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49760         HAVE_MALLOC.
49761         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49762         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49763         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49765 2010-08-29  Bruno Haible  <bruno@clisp.org>
49767         Update modules list.
49768         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49769         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49770         (String handling <string.h>): Add astrxfrm.
49771         (File system functions): Add readlinkat.
49773 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49775         Tests for module 'realloc-gnu'.
49776         * modules/realloc-gnu-tests: New file.
49777         * tests/test-realloc-gnu.c: New file.
49779         Tests for module 'calloc-gnu'.
49780         * modules/calloc-gnu-tests: New file.
49781         * tests/test-calloc-gnu.c: New file.
49783         Tests for module 'malloc-gnu'.
49784         * modules/malloc-gnu-tests: New file.
49785         * tests/test-malloc-gnu.c: New file.
49787 2010-08-28  Bruno Haible  <bruno@clisp.org>
49789         Rename module 'realloc' -> 'realloc-gnu'.
49790         * modules/realloc-gnu: New file, copied from modules/realloc.
49791         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49792         obsolete.
49793         * modules/mgetgroups (Depends-on): Update.
49794         * doc/posix-functions/realloc.texi: Update.
49795         * NEWS: Mention the change.
49797         Rename module 'calloc' -> 'calloc-gnu'.
49798         * modules/calloc-gnu: New file, copied from modules/calloc.
49799         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49800         obsolete.
49801         * doc/posix-functions/calloc.texi: Update.
49802         * NEWS: Mention the change.
49804         Rename module 'malloc' -> 'malloc-gnu'.
49805         * modules/malloc-gnu: New file, copied from modules/malloc.
49806         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49807         obsolete.
49808         * modules/argp (Depends-on): Update.
49809         * modules/regex (Depends-on): Update.
49810         * doc/posix-functions/malloc.texi: Update.
49811         * NEWS: Mention the change.
49813 2010-08-28  Eric Blake  <eblake@redhat.com>
49815         pread, pwrite: add missing dependency
49816         * modules/pread (Depends-on): Add extensions.
49817         * modules/pwrite (Depends-on): Likewise.
49819 2010-08-28  Bruno Haible  <bruno@clisp.org>
49821         unistr/u*-strchr: Fix tests dependencies.
49822         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49823         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49824         Reported by Ian Beckwith <ianb@erislabs.net>.
49826 2010-08-28  Bruno Haible  <bruno@clisp.org>
49828         read-file: Don't occupy too much unused memory.
49829         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49831 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49832             Eric Blake  <eblake@redhat.com>
49833             Bruno Haible  <bruno@clisp.org>
49835         read-file: Avoid memory reallocations with regular files.
49836         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49837         (fread_file): With regular files, use the remaining length as the
49838         initial buffer size.  Check against overflow.
49839         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49840         sys_stat.
49842 2010-08-28  Bruno Haible  <bruno@clisp.org>
49844         ftello: Relax license.
49845         * modules/ftello (License): Relax to LGPLv2+.
49846         Reported by Eric Blake.
49848 2010-08-28  Bruno Haible  <bruno@clisp.org>
49850         Avoid relocwrapper link errors due to gnulib replacement functions.
49851         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49852         function.
49853         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49855 2010-08-28  Bruno Haible  <bruno@clisp.org>
49857         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49858         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49859         defined.
49860         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49861         Suggested by Eric Blake.
49863 2010-08-28  Bruno Haible  <bruno@clisp.org>
49865         sys_socket, netdb: Ensure socklen_t gets defined.
49866         * modules/sys_socket (Depends-on): Add socklen.
49867         * modules/netdb (Depends-on): Likewise.
49868         * modules/getaddrinfo (Depends-on): Remove socklen.
49869         * modules/getsockopt (Depends-on): Likewise.
49870         * modules/setsockopt (Depends-on): Likewise.
49871         * tests/test-sys_socket.c: Check that socklen_t is defined.
49872         * tests/test-netdb.c: Likewise.
49873         * m4/socklen.m4: Update comments.
49874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49876 2010-08-27  Eric Blake  <eblake@redhat.com>
49878         login_tty: add missing dependency
49879         * modules/login_tty (Depends-on): Add pty.
49881 2010-08-26  Eric Blake  <eblake@redhat.com>
49883         lib-symbol-versions: fix m4 quoting
49884         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49885         format for AC_LINK_IFELSE.
49887         glob: fix compile test
49888         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49890         btowc: fix missing file
49891         * modules/btowc (Files): Also ship locale-fr.m4.
49893         lseek: fix link test
49894         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49895         AC_LINK_IFELSE.
49897         include_next: silence autoconf 2.68 warning
49898         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49899         AC_COMPILE_IFELSE as special.
49900         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49901         autoconf < 2.68.
49903         acl: fix compilation test
49904         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49905         AC_COMPILE_IFELSE.
49907 2010-08-26  Bruno Haible  <bruno@clisp.org>
49909         Modernize AC_TRY_RUN invocations.
49910         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49911         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49912         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49913         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49914         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49915         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49918         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49919         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49920         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49921         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49922         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49923         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49924         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49925         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49926         gl_MBRLEN_NUL_RETVAL): Likewise.
49927         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49928         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49929         Likewise.
49930         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49931         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49932         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49933         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49934         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49935         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49936         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49937         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49938         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49939         Likewise.
49940         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49941         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49942         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49943         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49944         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49945         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49947         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49948         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49951 2010-08-26  Bruno Haible  <bruno@clisp.org>
49953         Modernize AC_TRY_LINK invocations.
49954         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49955         AC_TRY_LINK.
49956         * m4/argp.m4 (gl_ARGP): Likewise.
49957         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49958         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49959         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49960         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49961         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49962         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49963         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49964         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49965         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49966         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49967         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49968         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49969         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49970         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49971         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49972         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49973         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49974         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49975         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49976         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49977         Likewise.
49978         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49979         Likewise.
49980         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49981         Likewise.
49982         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49983         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49984         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49985         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49986         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49987         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49988         * m4/servent.m4 (gl_SERVENT): Likewise.
49989         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49990         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49991         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49992         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49993         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49994         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49995         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49997         * modules/tsearch-tests (configure.ac): Likewise.
49999 2010-08-26  Bruno Haible  <bruno@clisp.org>
50001         Modernize AC_TRY_COMPILE invocations.
50002         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
50003         AC_TRY_COMPILE.
50004         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
50005         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
50006         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50007         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50008         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50009         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50010         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50011         * m4/lock.m4 (gl_LOCK): Likewise.
50012         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
50013         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50014         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
50015         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
50016         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50017         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
50018         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
50020         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50021         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50022         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50023         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50024         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
50025         extraneous semicolon.
50027 2010-08-26  Jim Meyering  <meyering@redhat.com>
50029         stat-time: relax license LGPL
50030         * modules/stat-time (License): Change from GPL to LGPL,
50031         with consent from all contributors, for use in libguile.
50032         Requested by Ludovic Courtès.
50034 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
50036         poll: return immediately on POLLHUP.
50037         * lib/poll.c (poll): Always set timeout before wait_timeout is
50038         computed.
50040 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50042         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
50043         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
50044         rmdir ("dir/.//"), unlinkat.
50046 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50048         stdbool: avoid spurious failure with modern xlc
50049         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
50051 2010-08-24  Bruno Haible  <bruno@clisp.org>
50053         getloadavg: simplify code
50054         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
50055         gl_have_func. Update comments.
50057 2010-08-24  Eric Blake  <eblake@redhat.com>
50059         getloadavg: don't define SVR4 on cygwin
50060         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
50061         only define SVR4 when -lkvm is required.
50062         Reported by Yaakov Selkowitz.
50064 2010-08-24  Bruno Haible  <bruno@clisp.org>
50066         priv-set: fix comment
50067         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
50069 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50071         priv-set: fix comments
50072         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
50073         to match code, as suggested by David Bartley in:
50074         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
50076 2010-08-23  Eric Blake  <eblake@redhat.com>
50078         stdbool: avoid rejecting clang
50079         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
50080         * tests/test-stdbool.c: Enable more tests if using the system
50081         <stdbool.h> instead of the gnulib replacement.
50082         (main): Move xlc bug test to a runtime test for all compilers.
50083         Reported by Anders Kaseorg.
50085         argz: fix shell quoting issue
50086         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
50087         Reported by Charles Wilson.
50089 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
50090             Erik Faye-Lund <kusmabite@gmail.com>
50092         poll, select: handle ERROR_BROKEN_PIPE.
50093         * lib/poll.c (win32_compute_revents): Return POLLHUP when
50094         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
50095         * lib/select.c (win32_compute_revents): Do not mark a pipe
50096         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
50098 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
50100         fts: allow compilation with C++
50101         * lib/fts_.h: Specify extern "C" linkage with C++.
50103 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50105         Fix gnulib-tool sed script de-commentation for AIX sed.
50106         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
50107         sed.
50109 2010-08-17  Eric Blake  <eblake@redhat.com>
50111         test-stddef: test for (some) offsetof bugs
50112         * tests/test-stddef.c: Enhance test to ensure correct type of
50113         offsetof.
50114         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
50115         that we are not fixing at this time.
50117 2010-08-15  Bruno Haible  <bruno@clisp.org>
50119         stpncpy: Allow stpncpy to be defined as a macro.
50120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
50121         if it's already correctly declared.
50122         * lib/string.in.h (stpncpy): Undefine before redefining.
50123         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
50125 2010-08-14  Bruno Haible  <bruno@clisp.org>
50127         Rename module 'memxfrm' to 'amemxfrm'.
50128         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
50129         (amemxfrm): Renamed from memxfrm.
50130         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
50131         (amemxfrm): Renamed from memxfrm.
50132         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
50133         * NEWS: Mention the change.
50134         * MODULES.html.sh (String handling <string.h>): Update.
50135         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
50136         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
50137         * lib/unicase/u16-casexfrm.c: Likewise.
50138         * lib/unicase/u32-casexfrm.c: Likewise.
50139         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
50140         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
50141         * lib/uninorm/u16-normxfrm.c: Likewise.
50142         * lib/uninorm/u32-normxfrm.c: Likewise.
50143         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
50144         memxfrm.
50145         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
50146         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
50147         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
50148         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
50149         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
50150         Suggested by Paul Eggert.
50152 2010-08-14  Bruno Haible  <bruno@clisp.org>
50154         Tests for module 'astrxfrm'.
50155         * modules/astrxfrm-tests: New file.
50156         * tests/test-astrxfrm.c: New file.
50158         New module 'astrxfrm'.
50159         * lib/astrxfrm.h: New file.
50160         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
50161         * modules/astrxfrm: New file.
50163 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
50165         regex: Tweak doc.
50166         * doc/regex.texi (Overview): Don't mention regex.c.
50167         (GNU Regular Expression Compiling): Likewise.
50168         (Match-end-of-line Operator): Mention 'not_eol'.
50170 2010-08-14  Brian Gough  <bjg@gnu.org>
50171             Bruno Haible  <bruno@clisp.org>
50173         git-merge-changelog: add doc relating to use with bzr and hg.
50174         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
50176 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
50178         pthread: fix pthread.h creation for srcdir != builddir
50179         * modules/pthread (Makefile.am): Fix the rule to work also in a
50180         non-srcdir build.
50182 2010-08-13  Karl Berry  <karl@gnu.org>
50184         * doc/regex.texi (Predefined Syntaxes): @smallexample.
50185         * doc/posix-*/*: force line break before @url of POSIX
50186         specifications.
50187         Suggested by Werner Lemberg.
50189 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50191         strtod: fix const diagnostic
50192         * lib/strtod.c (strtod): Don't assign const char * to char *,
50193         as this elicits a warning from GCC when warnings are enabled.
50195 2010-08-10  Pádraig Brady  <P@draigbrady.com>
50196         and Eric Blake  <eblake@redhat.com>
50198         copy-acl: ignore ENOTSUP on HP-UX
50199         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
50200         so that it is available for HP-UX.
50201         * lib/copy-acl.c (qcopy_acl): Use it.
50202         Reported by Patrick M. Callahan.
50204 2010-08-10  Eric Blake  <eblake@redhat.com>
50206         open, chown: relax license
50207         * modules/open (License): Change to LGPLv2+, with consent by all
50208         authors, for use in augeas.
50209         * modules/chown (License): Likewise.
50210         * modules/lchown (Likewise): Likewise.
50211         Requested by Adam Stokes.
50213 2010-08-09  Karl Berry  <karl@gnu.org>
50215         * build-aux/ar-lib: new file, import from Automake.
50216         * config/srclist.txt: autocheck for updates.
50218 2010-08-09  Eric Blake  <eblake@redhat.com>
50220         readlinkat: adjust client modules
50221         * modules/areadlinkat (Depends-on): Use readlinkat, not
50222         symlinkat.
50223         * modules/areadlinkat-with-size (Depends-on): Likewise.
50225         mknod: be more vocal about danger of running tests as root
50226         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
50227         root, since that is just asking for problems.
50228         Suggested by Bruno Haible, based on a report by Rainer Tammer.
50230         readlinkat: split into its own module
50231         * modules/symlinkat: Split readlinkat...
50232         * modules/readlinkat: ...into separate module.
50233         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
50234         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
50235         * lib/symlinkat.c (readlinkat): Move...
50236         * lib/readlinkat.c: ...into new file.
50237         * modules/symlinkat-tests: Split readlinkat test...
50238         * modules/readlinkat-tests: ...into separate module.
50239         * tests/test-symlinkat.c: Split...
50240         * tests/test-readlinkat.c: ...into new file.
50241         * NEWS: Document the split.
50242         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
50243         * lib/unistd.in.h (readlinkat): Likewise.
50244         Suggested by Bruno Haible.
50246 2010-08-08  Bruno Haible  <bruno@clisp.org>
50248         memxfrm: Speed up.
50249         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
50250         that usually only one call to strxfrm is necessary for each string
50251         part.
50252         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50254 2010-08-07  Karl Berry  <karl@gnu.org>
50256         * doc/posix-headers/limits.texi,
50257         * doc/posix-functions/malloc.texi,
50258         * doc/posix-functions/strsignal.texi: missing @item.
50259         * doc/ld-version-script.texi: spurious leading i.
50260         * doc/regex.texi (Interval Operators): no commas inside @var.
50262 2010-08-01  Bruno Haible  <bruno@clisp.org>
50264         Integrate the regex documentation.
50265         * doc/gnulib.texi: Define 'cn' index.
50266         (Regular expressions): New a chapter that includes regex.texi and
50267         regexprops-generic.texi.
50268         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
50269         syntax.
50271         Whitespace cleanup.
50272         * doc/regex.texi: Remove trailing spaces.
50274         Add regex documentation.
50275         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
50276         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
50277         Written by Kathy A. Hargreaves and Karl Berry.
50279 2010-08-01  Bruno Haible  <bruno@clisp.org>
50281         link: Update documentation.
50282         * doc/posix-functions/link.texi: Update regarding Solaris.
50284 2010-07-31  Bruno Haible  <bruno@clisp.org>
50286         Update modules list.
50287         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
50288         (String handling <string.h>): Add memcmp2, memxfrm.
50289         (Container data structures): Add xlist, xsublist, xoset.
50290         (Core language properties): Add alignof, unused-parameter.
50291         (Process control, Numeric conversion functions <stdlib.h>): Renamed
50292         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
50293         (Unibyte characters <ctype.h>): New section.
50294         (String handling <string.h>): New section.
50295         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
50296         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
50297         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
50298         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
50299         tan, tanh, tanl, y0, y1, yn.
50300         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
50301         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
50302         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
50303         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50304         unlockpt, vdprintf, vdprintf-posix.
50305         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
50306         (File system functions): Add concat-filename, sys_file, sys_ioctl,
50307         xconcat-filename.
50308         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
50309         getdtablesize, pipe2, pipe2-safer.
50310         (Security): New section.
50311         (Networking functions): Add accept4.
50312         (Signal handling): Add sigpipe.
50313         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
50314         mbmemcasecoll.
50315         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
50316         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
50317         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
50318         pipe-filter-ii.
50319         (Misc): Add argp-version-etc, login_tty, parse-duration.
50321 2010-07-31  Bruno Haible  <bruno@clisp.org>
50323         Improve doc in MODULES.html.
50324         * modules/linkat (Description): Add the word "function".
50325         * modules/mkfifo (Description): Likewise.
50326         * modules/mknod (Description): Likewise.
50327         * modules/remove (Description): Likewise.
50328         * modules/renameat (Description): Likewise.
50329         * modules/stat (Description): Likewise.
50330         * modules/symlink (Description): Likewise.
50331         * modules/unlink (Description): Likewise.
50333 2010-07-31  Bruno Haible  <bruno@clisp.org>
50335         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50336         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50337         option --enable/disable-c++ instead of --enable/disable-cxx.
50338         * NEWS: Mention the change.
50340 2010-07-31  Bruno Haible  <bruno@clisp.org>
50342         readlink, areadlink: Relax test a bit.
50343         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50344         alternative to ENOTDIR.
50345         * tests/test-areadlink.h (test_areadlink): Likewise.
50346         Reported by Rainer Tammer.
50348 2010-07-31  Bruno Haible  <bruno@clisp.org>
50350         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50351         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50352         character, perform the search using U_STRCHR.
50353         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50354         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50355         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50356         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50357         Suggested by Paolo Bonzini.
50359 2010-07-31  Bruno Haible  <bruno@clisp.org>
50361         unistr/u*-strstr: Fix dependencies.
50362         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50363         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50364         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50366 2010-07-31  Bruno Haible  <bruno@clisp.org>
50368         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50369         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50370         the beginning of the loop.
50371         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50372         cases in 'switch' statement.
50374         unistr/u8-strchr: Fix several bugs.
50375         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50376         the string. When not found, return NULL, not a pointer near the end.
50378         More tests for unistr/u8-strchr.
50379         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50380         that the function does not read past the first occurrence of the byte
50381         being searched.
50382         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50383         * tests/unistr/test-u16-strchr.c (main): New function.
50384         * tests/unistr/test-u32-strchr.c (main): New function.
50386 2010-07-31  Bruno Haible  <bruno@clisp.org>
50388         posix-modules: Ignore backup files of documentation files.
50389         * posix-modules: grep only through files named *.texi.
50391 2010-07-31  Bruno Haible  <bruno@clisp.org>
50393         symlinkat: Fix documentation.
50394         * doc/posix-functions/readlinkat.texi: Fix module name.
50396 2010-07-31  Bruno Haible  <bruno@clisp.org>
50398         fchownat: Replace also when chown has the trailing slash bug.
50399         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50400         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50401         introduced on 2010-04-10.
50402         Reported by Rainer Tammer.
50404 2010-07-31  Bruno Haible  <bruno@clisp.org>
50406         linkat: Work around AIX 7.1 bug.
50407         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50408         whether linkat handles trailing slash correctly. If not, replace linkat
50409         and define LINKAT_TRAILING_SLASH_BUG.
50410         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50411         check whether (fd1,file1) points to a directory if file1 or file2 ends
50412         in a slash. Code taken from lib/link.c.
50413         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50414         Reported by Rainer Tammer.
50416 2010-07-31  Bruno Haible  <bruno@clisp.org>
50418         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50419         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50420         This disables an xlc optimization that was causing wrong test results.
50421         Reported by Rainer Tammer.
50423 2010-07-31  Bruno Haible  <bruno@clisp.org>
50425         iconv: Work around AIX 6.1..7.1 bug.
50426         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50427         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50428         cross-compiling, guess no on all versions of AIX.
50429         Reported by Rainer Tammer.
50431 2010-07-31  Bruno Haible  <bruno@clisp.org>
50433         readlink: Relax test a bit.
50434         * tests/test-readlink.h (test_readlink): Allow different errno value
50435         when readlink is called with a file name that ends in / and refers to
50436         a file.
50437         Suggested by Eric Blake.
50438         Reported by Rainer Tammer.
50440 2010-07-31  Bruno Haible  <bruno@clisp.org>
50442         copysign: Does not require -lm on glibc systems.
50443         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50444         gl_COMMON_DOUBLE_MATHFUNC.
50445         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50447 2010-07-31  Bruno Haible  <bruno@clisp.org>
50449         duplocale: Work around AIX 7.1 bug.
50450         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50451         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50452         * lib/duplocale.c (rpl_duplocale): Update comment.
50453         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50454         Reported by Rainer Tammer.
50456 2010-07-30  Bruno Haible  <bruno@clisp.org>
50458         dirfd: Avoid link error on AIX 7.1.
50459         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50460         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50461         exist, set REPLACE_DIRFD.
50462         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50463         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50464         * doc/posix-functions/dirfd.texi: Update.
50465         Reported by Rainer Tammer.
50467 2010-07-30  Eric Blake  <eblake@redhat.com>
50469         strtod: next round of AIX fixes
50470         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50471         exponent.
50472         * tests/test-strtod.c (main): Enhance tests.
50473         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50474         Reported by Rainer Tammer.
50476         futimens: fix configure check
50477         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50478         Reported by Bruno Haible.
50480 2010-07-30  Bruno Haible  <bruno@clisp.org>
50482         getline: Update regarding AIX.
50483         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50484         Reported by Rainer Tammer.
50486 2010-07-30  Bruno Haible  <bruno@clisp.org>
50488         wcwidth: Drop replacement on AIX 7.
50489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50490         AIX 7.
50491         Reported by Rainer Tammer.
50493 2010-07-30  Bruno Haible  <bruno@clisp.org>
50495         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50497         a 'char *'.
50498         Reported by Rainer Tammer.
50500 2010-07-30  Bruno Haible  <bruno@clisp.org>
50502         unlink: Update regarding AIX.
50503         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50504         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50505         Reported by Rainer Tammer.
50507 2010-07-30  Bruno Haible  <bruno@clisp.org>
50509         symlink: Update regarding AIX.
50510         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50511         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50512         Reported by Rainer Tammer.
50514 2010-07-30  Bruno Haible  <bruno@clisp.org>
50516         strndup: Update regarding AIX.
50517         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50518         AIX 7.
50519         Reported by Rainer Tammer.
50521 2010-07-30  Bruno Haible  <bruno@clisp.org>
50523         stat: Update regarding AIX.
50524         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50525         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50526         Reported by Rainer Tammer.
50528 2010-07-30  Bruno Haible  <bruno@clisp.org>
50530         truncl: Fix autoconf test.
50531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50532         whether truncl works.
50533         Reported by Rainer Tammer.
50535 2010-07-30  Bruno Haible  <bruno@clisp.org>
50537         round: Update regarding AIX.
50538         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50539         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50540         Reported by Rainer Tammer.
50542 2010-07-30  Bruno Haible  <bruno@clisp.org>
50544         rename: Update regarding AIX.
50545         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50546         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50547         Reported by Rainer Tammer.
50549 2010-07-30  Bruno Haible  <bruno@clisp.org>
50551         printf.m4: Update regarding AIX.
50552         * m4/printf.m4: Update comments regarding AIX.
50553         Reported by Rainer Tammer.
50555 2010-07-30  Bruno Haible  <bruno@clisp.org>
50557         iconv: Update regarding AIX.
50558         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50559         AIX 7.
50560         Reported by Rainer Tammer.
50562 2010-07-30  Bruno Haible  <bruno@clisp.org>
50564         getopt: Update regarding AIX.
50565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50566         no on AIX.
50567         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50568         Reported by Rainer Tammer.
50570 2010-07-30  Bruno Haible  <bruno@clisp.org>
50572         ldexpl; Update regarding AIX.
50573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50574         on AIX 7.
50575         Reported by Rainer Tammer.
50577 2010-07-30  Bruno Haible  <bruno@clisp.org>
50579         frexpl: Update regarding AIX.
50580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50581         on AIX 7.
50582         Reported by Rainer Tammer.
50584 2010-07-30  Bruno Haible  <bruno@clisp.org>
50586         open, fopen: Update regarding AIX.
50587         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50588         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50589         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50590         * doc/posix-functions/fopen.texi: Likewise.
50591         Reported by Rainer Tammer.
50593 2010-07-30  Bruno Haible  <bruno@clisp.org>
50595         chown: Update doc regarding AIX.
50596         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50597         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50598         Reported by Rainer Tammer.
50600 2010-07-30  Eric Blake  <eblake@redhat.com>
50602         strtod: fix bug in replacement function on AIX
50603         * lib/strtod.c (strtod): Special case broken "0x" parse in
50604         underlying strtod.
50605         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50606         * doc/posix-functions/strtod.texi (strtod): Likewise.
50607         Reported by Rainer Tammer.
50609 2010-07-30  Bruno Haible  <bruno@clisp.org>
50611         mbrlen: Fix cross-compilation guess for AIX.
50612         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50613         guess. Leftover from 2008-12-22.
50615 2010-07-30  Bruno Haible  <bruno@clisp.org>
50617         mbrtowc: Fix cross-compilation guess for AIX.
50618         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50619         guess. Leftover from 2008-12-21.
50621 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50623         init.sh: work around trap limitation of some shells
50624         * tests/init.sh (setup_): Move exit trap outside of shell function.
50626 2010-07-29  Eric Blake  <eblake@redhat.com>
50628         strtod: aid debugging
50629         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50630         understanding why strtod is rejected.
50632 2010-07-28  Bruno Haible  <bruno@clisp.org>
50634         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50635         * lib/unistr/u8-chr.c: Include <string.h>.
50636         * tests/unistr/test-u8-chr.c: Likewise.
50637         * tests/unistr/test-u16-chr.c: Likewise.
50638         * tests/unistr/test-u32-chr.c: Likewise.
50639         * tests/unistr/test-u8-strchr.c: Likewise.
50640         * tests/unistr/test-u16-strchr.c: Likewise.
50641         * tests/unistr/test-u32-strchr.c: Likewise.
50642         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50643         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50644         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50645         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50647 2010-07-28  Bruno Haible  <bruno@clisp.org>
50649         Use spaces for indentation, not tabs.
50650         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50652 2010-07-27  Bruno Haible  <bruno@clisp.org>
50654         mbspcasecmp: Fix function specification.
50655         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50656         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50657         Reported by Eric Blake <eblake@redhat.com>.
50659 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50661         timespec: use cast and not conditional, as truncation isn't possible
50662         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50663         instead of a conditional.  Comment about the situation in more detail.
50664         This undoes most of the 2009-10-29 patch.
50666 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50668         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50669         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50670         * lib/unistr/u8-strchr.c: Likewise.
50671         * modules/unistr/u8-chr: Depend on memchr.
50673         unistr/u*-strchr: add tests
50674         * modules/unistr/u8-strchr-tests: New file.
50675         * modules/unistr/u16-strchr-tests: New file.
50676         * modules/unistr/u32-strchr-tests: New file.
50677         * tests/unistr/test-strchr.h: New file.
50678         * tests/unistr/test-u8-strchr.c: New file.
50679         * tests/unistr/test-u16-strchr.c: New file.
50680         * tests/unistr/test-u32-strchr.c: New file.
50682         unistr/u*-chr: test multibyte sequences more
50683         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50684         test vector.
50685         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50686         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50687         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50689         unistr/u*-chr: test multibyte sequences
50690         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50692         unistr/u*-chr: prepare for multibyte tests
50693         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50694         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50695         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50696         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50697         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50698         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50700 2010-07-18  Bruno Haible  <bruno@clisp.org>
50702         unistr/u8-strchr: Optimize non-ASCII argument case.
50703         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50704         because the first byte often matches anyway.
50705         Reported by Pádraig Brady <P@draigbrady.com>.
50707 2010-07-15  Karl Berry  <karl@gnu.org>
50709         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50711 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50713         getcwd: on Solaris, work better if ancestors are inaccessible
50714         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50715         buffer and size, try again with a large buffer.  This works better
50716         on Solaris, since its getcwd succeeds even if the path to the root
50717         is inaccessible, and this is helpful in common cases such as .zfs
50718         hidden directories.  Problem reported by J Chapman Flack in
50719         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50720         Use system getcwd if it's declared, not merely if it's partly
50721         working; use the partly-working test only to avoid needless effort
50722         if the system getcwd fails.
50723         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50724         comment that was already obsolete and is now even more obsolete.
50725         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50726         now might call strdup.
50728 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50730         pthread: Add enough so that coreutils/src/sort.c compiles.
50731         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50732         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50733         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50734         Include <sys/types.h>, in case it defines pthread_t.
50735         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50736         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50737         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50738         (pthread_rwlockattr_t, pthread_spinlock_t):
50739         New typedefs, if HAVE_PTHREAD_T is not defined.
50740         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50741         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50742         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50743         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50744         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50745         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50746         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50747         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50748         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50749         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50750         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50751         New macros.
50752         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50753         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50754         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50755         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50756         (pthread_spin_unlock): New dummy functions.
50757         (pthread_create): Return EAGAIN; don't set errno.
50758         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50759         require AC_C_INLINE.
50760         * modules/pthread (Depends-on): Add sched, time.
50761         (pthread.h): Use AM_V_GEN.
50763 2010-07-13  Bruno Haible  <bruno@clisp.org>
50765         striconveh: Don't malloc memory if the result buffer is sufficient.
50766         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50767         buffer if its size is sufficient.
50768         Reported by Ludovic Courtès <ludo@gnu.org>.
50770 2010-07-13  Bruno Haible  <bruno@clisp.org>
50772         strtod: Add safety check.
50773         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50775 2010-07-12  Bruno Haible  <bruno@clisp.org>
50777         Unify tests that set gl_cv_func_ldexpl_no_libm.
50778         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50779         gl_FUNC_LDEXPL.
50780         (gl_FUNC_LDEXPL): Invoke it.
50781         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50783 2010-07-12  Bruno Haible  <bruno@clisp.org>
50785         Unify tests that set gl_cv_func_ldexp_no_libm.
50786         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50787         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50788         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50789         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50790         * modules/strtod (Files): Add m4/ldexp.m4.
50792 2010-07-12  Bruno Haible  <bruno@clisp.org>
50794         Unify tests that set gl_cv_func_frexpl_no_libm.
50795         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50796         gl_FUNC_FREXPL_NO_LIBM.
50797         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50798         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50800 2010-07-12  Bruno Haible  <bruno@clisp.org>
50802         Unify tests that set gl_cv_func_frexp_no_libm.
50803         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50804         gl_FUNC_FREXP_NO_LIBM.
50805         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50806         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50808 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50810         memcoll: clarify sizes versus lengths, document better, and tweak perf
50811         * lib/memcoll.c (strcoll_loop, memcoll0):
50812         Improve quality of descriptive comments.  Name variables
50813         consistently as to whether they are lengths (which do not include
50814         terminating null) versus sizes (which do).
50815         * lib/xmemcoll.c (xmemcoll0): Likewise.
50816         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50817         returned when s1size == 0; this is easier to compile and saves
50818         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50820 2010-07-12  Bruno Haible  <bruno@clisp.org>
50822         Tests for module '_Exit'.
50823         * modules/_Exit-tests: New file.
50824         * tests/test-_Exit.sh: New file.
50825         * tests/test-_Exit.c: New file.
50827         New module '_Exit'.
50828         * lib/stdlib.in.h (__attribute__): New macro.
50829         (_Exit): New declaration.
50830         * lib/_Exit.c: New file.
50831         * m4/_Exit.m4: New file.
50832         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50833         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50834         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50835         * modules/_Exit: New file.
50836         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50837         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50839 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50841         strtod: make it more-accurate typically, and don't require libm
50842         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50843         Include limits.h.  Don't include string.h.
50844         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50845         (locale_isspace): New function, so that no casts are needed to
50846         check whether *s is a space.
50847         (ldexp): Provide an unused dummy if not available.
50848         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50849         (strtod): Use them.  This implementation prefers to use the
50850         underlying strtod if available, falling back on our own code
50851         only to fix known bugs.  This is more likely to produce an
50852         accurate result.  Also, it avoids the use of libm functions.
50853         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50854         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50855         was absent, but it caused a test failure with coreutils.
50856         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50857         with libm.
50858         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50859         * modules/strtod-tests (Makefile.am): Likewise.
50861 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50862             Bruno Haible  <bruno@clisp.org>
50864         unistr/u8-strchr: Optimize ASCII argument case.
50865         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50867 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50869         (x)memcoll: minor tweaks
50870         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50871         is after the type that it qualifies.
50872         (memcoll0): Likewise.
50873         * lib/memcoll.h (memcoll0): Likewise.
50874         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50875         * lib/xmemcoll.h (xmemcoll0): Likewise.
50876         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50877         differs from memcoll in that the NUL byte is part of the argument.
50878         Omit the abort-checks, as performance is a real issue here.  Plus,
50879         the checks were wrong anyway (an off-by-one error).  Omit local
50880         variable 'diff', as it's a bit clearer that way.
50881         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50882         no longer needed.
50884 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50886         (x)memcoll: speedup when input is known to be NUL delimited
50887         * lib/memcoll.c: Include stdlib.
50888         (memcoll0): New function.
50889         (strcoll_loop): New function, refactored for use in both memcoll
50890         and memcoll0.
50891         * lib/memcoll.h (memcoll0): Add prototype.
50892         * lib/xmemcoll.c (xmemcoll0): New function.
50893         (collate_error): New function, refactored for use in both xmemcoll
50894         and xmemcoll0.
50895         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50896         * m4/memcoll.m4: add inline invocation.
50898 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50900         * build-aux/bootstrap: Remove any local translations
50901         from the translation project synchronization directory,
50902         so that local only translations are not distributed.
50904 2010-07-04  Bruno Haible  <bruno@clisp.org>
50906         fsusage: Clarify which code applies to which platforms.
50907         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50908         platform.
50909         * lib/fsusage.c (get_fs_usage): Likewise.
50911 2010-07-04  Bruno Haible  <bruno@clisp.org>
50913         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50914         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50915         Reported by Martin Lambers <marlam@marlam.de>.
50917 2010-07-04  Jim Meyering  <meyering@redhat.com>
50919         hash: once again explicitly disallow insertion of NULL
50920         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50921         inserting a NULL pointer cannot work with these functions.
50922         Add a comment with details.
50923         This reverts part of the 2010-07-01 commit, 5bef1a35
50924         "hash: extend module to deal with non-pointer keys".
50926 2010-07-01  Bruno Haible  <bruno@clisp.org>
50928         stdbool: Update doc.
50929         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50930         Info from Christian Weisgerber <naddy@mips.inka.de>.
50932 2010-07-01  Jim Meyering  <meyering@redhat.com>
50934         hash: extend module to deal with non-pointer keys
50935         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50936         but that allows insertion of non-pointer entries.
50937         Do not disallow an ENTRY value of NULL.
50938         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50939         * lib/hash.h (hash_insert0): Declare.
50941 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50943         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50944         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50945         not present (i.e. with autoconf 2.59 and when using gettextize, not
50946         gnulib), require AC_GNU_SOURCE instead.
50948 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50950         idpriv-drop: Fix tests.
50951         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50952         not to the test-idpriv-droptemp program.
50954 2010-06-29  Bruno Haible  <bruno@clisp.org>
50956         string: Fix syntax error with g++ 2.96.
50957         * lib/string.in.h (__pure__): Remove definition.
50958         (_GL_ATTRIBUTE_PURE): New macro.
50959         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50960         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50961         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50963 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50965         unitypes: Fix bug introduced on 2010-05-18.
50966         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50968 2010-06-22  Eric Blake  <eblake@redhat.com>
50970         memmem: slight optimization
50971         * lib/str-two-way.h (critical_factorization): Update comments.
50972         Reduce work during factorization phase.
50973         Reported by Carlos Bueno <carlos@bueno.org>.
50975 2010-06-21  Bruno Haible  <bruno@clisp.org>
50977         Fix HAVE_CALLOC_POSIX misnomer.
50978         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50979         !HAVE_CALLOC_POSIX.
50980         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50981         HAVE_CALLOC_POSIX.
50982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50983         instead of HAVE_CALLOC_POSIX.
50984         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50985         HAVE_CALLOC_POSIX.
50987         Use modern idiom for calloc() replacement.
50988         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50989         AC_FUNC_CALLOC.
50990         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50991         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50992         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50993         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50994         (gl_REPLACE_CALLOC): New macro.
50996 2010-06-21  Bruno Haible  <bruno@clisp.org>
50998         Fix HAVE_REALLOC_POSIX misnomer.
50999         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
51000         !HAVE_REALLOC_POSIX.
51001         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
51002         HAVE_REALLOC_POSIX.
51003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
51004         instead of HAVE_REALLOC_POSIX.
51005         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
51006         HAVE_REALLOC_POSIX.
51008         Use modern idiom for realloc() replacement.
51009         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
51010         AC_FUNC_REALLOC.
51011         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
51012         Autoconf's AC_FUNC_REALLOC.
51013         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51014         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
51015         (gl_REPLACE_REALLOC): New macro.
51016         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
51018 2010-06-21  Bruno Haible  <bruno@clisp.org>
51020         Fix HAVE_MALLOC_POSIX misnomer.
51021         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
51022         !HAVE_MALLOC_POSIX.
51023         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
51024         HAVE_MALLOC_POSIX.
51025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
51026         instead of HAVE_MALLOC_POSIX.
51027         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
51028         HAVE_MALLOC_POSIX.
51030         Use modern idiom for malloc() replacement.
51031         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
51032         AC_FUNC_MALLOC.
51033         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
51034         Autoconf's AC_FUNC_MALLOC.
51035         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51036         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
51037         (gl_REPLACE_MALLOC): New macro.
51038         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
51040 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
51042         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
51043         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
51044         This macro takes 3 arguments, not 4.
51046 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
51048         ipv6: fix detection under mingw
51049         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
51050         in6_addr.
51052 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
51054         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
51055         that strtod() works when cross-compiling to a glibc version known
51056         to work.
51058 2010-06-15  Bruno Haible  <bruno@clisp.org>
51060         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
51062 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
51064         select: Correct timeout.
51065         * lib/select.c (rpl_select): Compute wait_timeout correctly.
51067 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51069         git-version-gen: init shell var to avoid env var influence
51070         * build-aux/git-version-gen (v): Init shell var to empty.
51072 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
51074         priv-set: Don't assume that priv.h exists merely because getppriv does.
51075         See Jan Andersen's bug report about AIX 5L in
51076         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
51077         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
51078         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
51079         * lib/priv-set.h: Likewise.
51080         * tests/test-priv-set.c: Likewise.
51082 2010-06-13  Bruno Haible  <bruno@clisp.org>
51084         relocatable: Make it easier to test whether to install wrappers.
51085         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
51086         RELOCATABLE_VIA_WRAPPER.
51088 2010-06-13  Bruno Haible  <bruno@clisp.org>
51090         gnulib-tool: Display specified modules and dependencies differently.
51091         * gnulib-tool (func_show_module_list): New function.
51092         (func_import, func_create_testdir): Invoke it.
51093         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51095 2010-06-13  Bruno Haible  <bruno@clisp.org>
51097         gnulib-tool: Align code of func_import and func_create_testdir.
51098         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
51099         specified_modules.
51101 2010-06-12  Jim Meyering  <meyering@redhat.com>
51103         test-inttostr: avoid spurious failure on Solaris 9
51104         * tests/test-inttostr.c (main): Skip the test when snprintf fails
51105         to accept "%ju".  Reported by Bruno Haible.
51107 2010-06-11  Jim Meyering  <meyering@redhat.com>
51109         test-sys_socket: mark variables as used more readably
51110         * tests/test-sys_socket.c (main): Mark otherwise unused variables
51111         as "used" explicitly via (void) statement casts.  This is more
51112         readable than using them in an artificial return expression.
51113         Suggestion from Bruno Haible.
51115 2010-06-11  Bruno Haible  <bruno@clisp.org>
51117         Avoid some more warnings from "gcc -Wwrite-strings".
51118         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
51119         to 'const char *'.
51120         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
51121         * tests/test-c-strcasestr.c (main): Likewise.
51122         * tests/test-mbscasestr1.c (main): Likewise.
51123         * tests/test-mbscasestr2.c (main): Likewise.
51124         * tests/test-memmem.c (main): Likewise.
51125         * tests/test-strstr.c (main): Likewise.
51126         * tests/test-strcasestr.c (main): Likewise.
51128 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51130         init.sh: change framework_failure_ to fail with status 99, not 1
51131         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
51132         automake's parallel-tests rule that this is an unexpected failure,
51133         even if the test is listed in XFAIL_TESTS.
51135 2010-06-11  Jim Meyering  <meyering@redhat.com>
51137         test-inttostr: avoid warnings about 4-6KB literal strings
51138         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
51139         Include "macros.h", for its definition of ASSERT.
51140         (CK): s/assert/ASSERT/
51141         * modules/inttostr-tests (Files): Add macros.h.
51143         init.sh: don't use $ME_ or skip_ before they are defined
51144         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
51145         their first uses.  Also hoist their companions: warn_, fail_,
51146         framework_failure_, $stderr_fileno.  Prompted by a patch from
51147         Stefano Lattarini.
51149         test-sys_socket: avoid set-but-not-used warnings from gcc
51150         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
51151         avoid warning about set-but-not-used variables.
51153         test-xvasprintf: avoid 'const' discard warnings
51154         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
51155         "const" when assigning from literal strings.
51156         (test_xasprintf): Add "void" in function argument list to placate
51157         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
51159         tests: avoid compilation warnings in argmatch and exclude tests...
51160         in packages that define ARGMATCH_DIE_DECL, like coreutils.
51161         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
51162         Since it always exits, declare with the "noreturn" attribute.
51163         * tests/test-argmatch.c: Likewise.
51165         tests: avoid 'const' discard warnings in mbsstr tests
51166         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
51167         * tests/test-mbsstr2.c (main): Likewise.
51169         test-verify: avoid warning from gcc's -Wmissing-declarations
51170         * tests/test-verify.c (function): Declare to be static.
51172         test-inttostr.c: include <string.h> for use of strcmp
51173         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
51175         test-linkat: avoid failed assertion on "other" architectures
51176         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
51177         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
51178         sparc: https://bugs.launchpad.net/bugs/591968
51180 2010-06-11  Jim Meyering  <meyering@redhat.com>
51182         printf.m4: avoid autoconf's "Expanded Before Required" warning
51183         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
51184         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
51185         autoconf warning.
51187 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
51189         Replacement header templates are now named with ".in", not "_".
51190         * doc/gnulib-intro.texi: Correct.
51192 2010-06-10  Jim Meyering  <meyering@redhat.com>
51194         inttostr-tests: depend on snprintf, not snprintf-posix
51195         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
51196         snprintf-posix, to avoid this aclocal failure:
51197           missing file gnulib-tests/vasnprintf.c
51198           configure.ac:45: error: expected source file, required through \
51199           AC_LIBSOURCES, not found
51201 2010-06-10  Jim Meyering  <meyering@redhat.com>
51203         inttostr: add a new function, inttostr, and tests
51204         The namesake function was not available.  The existence of the
51205         template file, inttostr.c makes its addition nontrivial.
51206         * lib/anytostr.c: Rename from inttostr.c.
51207         (anytostr): Rename from inttostr.
51208         * lib/inttostr.c: New file.
51209         * modules/inttostr (Files): Add anytostr.c.
51210         (Makefile.am): Set lib_SOURCES instead of ...
51211         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
51212         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
51213         * lib/offtostr.c: Likewise.
51214         * lib/uinttostr.c: Likewise.
51215         * lib/umaxtostr.c: Likewise.
51216         * modules/inttostr-tests: New file.
51217         * tests/test-inttostr.c: New file.  Test these functions.
51219 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
51220             Bruno Haible  <bruno@clisp.org>
51222         Add "Extending Gnulib" chapter to manual.
51223         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
51224         chapter.
51225         (Extending Gnulib): New chapter.
51226         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
51227         chapter.
51229 2010-06-09  Bruno Haible  <bruno@clisp.org>
51231         Avoid relocwrapper link errors due to gnulib replacement functions.
51232         * lib/areadlink.c: Use the system's malloc, realloc functions.
51233         (areadlink): Set errno to ENOMEM explicitly.
51234         * modules/areadlink (Depends-on): Remove malloc-posix.
51235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51237 2010-06-09  Bruno Haible  <bruno@clisp.org>
51239         Avoid relocwrapper link errors due to gnulib replacement functions.
51240         * lib/canonicalize-lgpl.c: Use the system's malloc function.
51241         * lib/malloca.c: Likewise.
51242         * lib/relocatable.c: Likewise.
51243         * lib/progreloc.c: Use the system's malloc, sprintf functions.
51244         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
51245         * lib/setenv.c: Use the system's malloc, realloc functions.
51246         * lib/strerror.c: Use the system's sprintf function.
51247         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51249 2010-06-04  Bruno Haible  <bruno@clisp.org>
51251         Prefer documented low-level autoconf macro names.
51252         * m4/lib-link.m4: Use m4_translit instead of translit.
51253         * m4/environ.m4: Likewise.
51254         * m4/mathfunc.m4: Likewise.
51255         * m4/onceonly.m4: Likewise.
51256         * m4/stdint.m4: Likewise.
51257         Suggested by Eric Blake.
51259 2010-06-04  Martin Lambers  <marlam@marlam.de>
51260             Bruno Haible  <bruno@clisp.org>
51262         havelib: Allow library names with '+' characters.
51263         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51264         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
51266 2010-06-09  Bruno Haible  <bruno@clisp.org>
51268         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
51269         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
51270         realloc failed.
51272 2010-06-08  Peter Simons  <simons@cryp.to>
51274         maint.mk: make the news-check rule more configurable
51275         * top/maint.mk (news-check-lines-spec): New variable.
51276         (news-check): Use "sed -n 1,10p" in place of "head".
51278 2010-06-07  Jim Meyering  <meyering@redhat.com>
51280         do-release-commit-and-tag: fix typo in --help
51281         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
51283         regex: avoid new dead-code warning with gcc-4.6.0
51284         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
51285         if-block containing a while-loop.  It's been unused for at least
51286         5 years.
51288 2010-06-05  Bruno Haible  <bruno@clisp.org>
51290         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
51291         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
51293 2010-06-04  Bruno Haible  <bruno@clisp.org>
51295         Update to GNU gettext 0.18.1.
51296         * modules/gettext (configure.ac): Require gettext infrastructure from
51297         version 0.18.1.
51299 2010-06-03  Bruno Haible  <bruno@clisp.org>
51301         Don't use AC_LIBOBJ with file names in subdirectories.
51302         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
51303         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
51304         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
51305         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
51306         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
51307         gl_LIBUNISTRING_LIBSOURCE.
51308         (Makefile.am): Augment lib_SOURCES here, conditionally.
51309         * NEWS: Drop requirement for Automake option 'subdir-objects'.
51311 2010-06-03  Bruno Haible  <bruno@clisp.org>
51313         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
51314         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
51315         expansion does not end with a newline.
51316         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
51317         unnecessary newline.
51319 2010-06-03  Bruno Haible  <bruno@clisp.org>
51321         Reduce dependencies.
51322         * tests/test-quotearg.h: New file, extracted from
51323         tests/test-quotearg.c.
51324         * tests/test-quotearg-simple.c: New file, extracted from
51325         tests/test-quotearg.c.
51326         * tests/test-quotearg.c: Don't include <ctype.h>.
51327         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
51328         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
51329         use_quote_double_quotes, use_quotearg_colon): Moved to
51330         tests/test-quotearg.h.
51331         (results_g, flag_results, custom_quotes, custom_results): Moved
51332         to tests/test-quotearg-simple.c.
51333         (main): Moved the part that does not depend on gettext to
51334         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51335         performed.
51336         * modules/quotearg-simple: New file.
51337         * modules/quotearg-simple-tests: New file.
51338         * modules/quotearg (Depends-on): Add quotearg-simple.
51339         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51340         (Files): Add tests/test-quotearg.h.
51341         Reported by Paolo Bonzini.
51343 2010-06-03  Bruno Haible  <bruno@clisp.org>
51345         Reduce dependencies.
51346         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51348 2010-06-03  Bruno Haible  <bruno@clisp.org>
51350         time: Undefine more broken macros.
51351         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51352         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51353         Reported by Eric Blake.
51355 2010-06-03  Bruno Haible  <bruno@clisp.org>
51357         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51358         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51359         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51360         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51361         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51362         Reported by Ludovic Courtès <ludo@gnu.org>.
51364 2010-06-02  Eric Blake  <eblake@redhat.com>
51366         time: work with mingw + pthreads-win32 library
51367         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51368         if timespec is defined only in pthread.h.
51369         * modules/time (Makefile.am): Substitute it.
51370         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51371         <pthread.h>, when needed.
51372         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51373         from the library.
51375 2010-05-31  Bruno Haible  <bruno@clisp.org>
51377         Avoid expanding two macros in the wrong order.
51378         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51379         gl_LIBUNISTRING if it is defined.
51380         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51381         autoconf >= 2.64.
51382         Reported by Ludovic Courtès <ludo@gnu.org>.
51384 2010-05-27  Jim Meyering  <meyering@redhat.com>
51386         maint.mk: also prohibit "#undef" of always-defined symbols
51387         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51388         Allow more than one space before the symbol name.
51389         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51390         the regexp uses alternation.
51392 2010-05-26  Eric Blake  <eblake@redhat.com>
51394         maint.mk: avoid echo -e
51395         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51396         Convert all uses of echo -* to printf.
51397         Reported by Matthias Bolte.
51399 2010-05-25  Bruno Haible  <bruno@clisp.org>
51401         Update to GNU gettext 0.18, part 2.
51402         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51403         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51405 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51407         Add missing include in test-pwrite.c.
51408         * tests/test-pwrite.c: Include string.h, for strcmp.
51410 2010-05-24  Bruno Haible  <bruno@clisp.org>
51412         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51414 2010-05-24  Bruno Haible  <bruno@clisp.org>
51416         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51417         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51418         iconveh_error argument.
51419         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51420         U_STRCONV_TO_LOCALE.
51421         * lib/unistr/u16-strcoll.c: Likewise.
51422         * lib/unistr/u32-strcoll.c: Likewise.
51423         * modules/unistr/u8-strcoll (Depends-on): Add
51424         uniconv/u8-strconv-to-enc, localcharset. Remove
51425         uniconv/u8-strconv-to-locale.
51426         (configure.ac): Bump version number.
51427         * modules/unistr/u16-strcoll (Depends-on): Add
51428         uniconv/u16-strconv-to-enc, localcharset. Remove
51429         uniconv/u16-strconv-to-locale.
51430         (configure.ac): Bump version number.
51431         * modules/unistr/u32-strcoll (Depends-on): Add
51432         uniconv/u32-strconv-to-enc, localcharset. Remove
51433         uniconv/u32-strconv-to-locale.
51434         (configure.ac): Bump version number.
51436 2010-05-24  Bruno Haible  <bruno@clisp.org>
51438         Avoid a test failure on NetBSD 5.0.
51439         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51440         an iconv() bug.
51442 2010-05-24  Bruno Haible  <bruno@clisp.org>
51444         Adjust #include directive style.
51445         * modules/regex (Includes): Recommend to write <regex.h>.
51447 2010-05-24  Bruno Haible  <bruno@clisp.org>
51449         regex: Don't require alloca.
51450         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51451         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51452         only inside if (0).
51454 2010-05-23  Jim Meyering  <meyering@redhat.com>
51456         test-renameat.c: include <sys/stat.h>
51457         * tests/test-renameat.c: Include <sys/stat.h>; required for
51458         definition of S_IS* macros.
51460 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51462         Update maintainer documentation for 'relocatable-prog' module.
51463         * doc/relocatable-maint.texi: Update.
51464         Comments by Bruno Haible.
51466 2010-05-23  Bruno Haible  <bruno@clisp.org>
51468         git-merge-changelog: Enable --split-merged-entry by default.
51469         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51470         (usage): Don't mention this option any more.
51471         Reported by Ralf Wildenhues.
51473 2010-05-23  Jim Meyering  <meyering@redhat.com>
51475         test-pwrite: do not leave behind a test file named "out"
51476         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51477         The trivial-looking use of init.sh is really necessary.
51478         It ensures that the temporary file, "out", is created in
51479         a temporary directory, and removed upon termination.
51480         * tests/test-pwrite.sh: Re-add file.
51481         * modules/pwrite-tests: Reference it.
51483 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51485         Fix output redirection buglet in init.sh.
51486         * tests/init.sh: Fix redirection of stderr.
51488 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51490         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51492 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51494         * modules/valgrind-tests: New file.
51495         * m4/valgrind-tests.m4: New file.
51496         * doc/valgrind-tests.texi: New file.
51497         * doc/gnulib.texi (Running self-tests under valgrind): New
51498         section.
51500 2010-05-19  Bruno Haible  <bruno@clisp.org>
51502         Clean up dead code in recent commit.
51503         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51504         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51505         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51506         Suggested by Paolo Bonzini.
51508 2010-05-19  Bruno Haible  <bruno@clisp.org>
51510         Avoid valgrind error reports from libunistring.
51511         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51512         * modules/libunistring (Files): Add it.
51513         * modules/libunistring-optional (Files): Likewise.
51515 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51516             Bruno Haible  <bruno@clisp.org>
51518         New module 'libunistring-optional'.
51519         * modules/libunistring-optional: New file.
51520         * m4/libunistring-base.m4: New file.
51521         * m4/libunistring-optional.m4: New file.
51522         * lib/unicase.in.h: Renamed from lib/unicase.h.
51523         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51524         * lib/unictype.in.h: Renamed from lib/unictype.h.
51525         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51526         * lib/uniname.in.h: Renamed from lib/uniname.h.
51527         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51528         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51529         * lib/unistr.in.h: Renamed from lib/unistr.h.
51530         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51531         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51532         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51533         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51534         gl_LIBUNISTRING. If the library was found, determine the installed
51535         version and set LIBUNISTRING_VERSION.
51536         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51537         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51538         handle a configuration option --with-included-libunistring.
51539         * modules/libunistring (Files): Add m4/absolute-header.m4.
51540         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51541         Add m4/libunistring-base.m4.
51542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51543         (Makefile.am): Build unicase.h from unicase.in.h.
51544         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51545         Add m4/libunistring-base.m4.
51546         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51547         (Makefile.am): Build uniconv.h from uniconv.in.h.
51548         * modules/unictype/base (Files): Use unictype.in.h instead of
51549         unictype.h. Add m4/libunistring-base.m4.
51550         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51551         (Makefile.am): Build unictype.h from unictype.in.h.
51552         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51553         Add m4/libunistring-base.m4.
51554         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51555         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51556         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51557         Add m4/libunistring-base.m4.
51558         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51559         (Makefile.am): Build uniname.h from uniname.in.h.
51560         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51561         Add m4/libunistring-base.m4.
51562         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51563         (Makefile.am): Build uninorm.h from uninorm.in.h.
51564         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51565         unistdio.h. Add m4/libunistring-base.m4.
51566         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51567         (Makefile.am): Build unistdio.h from unistdio.in.h.
51568         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51569         Add m4/libunistring-base.m4.
51570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51571         (Makefile.am): Build unistr.h from unistr.in.h.
51572         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51573         Add m4/libunistring-base.m4.
51574         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51575         (Makefile.am): Build unitypes.h from unitypes.in.h.
51576         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51577         Add m4/libunistring-base.m4.
51578         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51579         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51580         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51581         uniwidth.h. Add m4/libunistring-base.m4.
51582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51583         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51584         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51585         instead of augmenting lib_SOURCES.
51586         * modules/unicase/empty-suffix-context: Likewise.
51587         * modules/unicase/locale-language: Likewise.
51588         * modules/unicase/tolower: Likewise.
51589         * modules/unicase/totitle: Likewise.
51590         * modules/unicase/toupper: Likewise.
51591         * modules/unicase/u8-casecmp: Likewise.
51592         * modules/unicase/u8-casecoll: Likewise.
51593         * modules/unicase/u8-casefold: Likewise.
51594         * modules/unicase/u8-casexfrm: Likewise.
51595         * modules/unicase/u8-ct-casefold: Likewise.
51596         * modules/unicase/u8-ct-tolower: Likewise.
51597         * modules/unicase/u8-ct-totitle: Likewise.
51598         * modules/unicase/u8-ct-toupper: Likewise.
51599         * modules/unicase/u8-is-cased: Likewise.
51600         * modules/unicase/u8-is-casefolded: Likewise.
51601         * modules/unicase/u8-is-lowercase: Likewise.
51602         * modules/unicase/u8-is-titlecase: Likewise.
51603         * modules/unicase/u8-is-uppercase: Likewise.
51604         * modules/unicase/u8-prefix-context: Likewise.
51605         * modules/unicase/u8-suffix-context: Likewise.
51606         * modules/unicase/u8-tolower: Likewise.
51607         * modules/unicase/u8-totitle: Likewise.
51608         * modules/unicase/u8-toupper: Likewise.
51609         * modules/unicase/u16-casecmp: Likewise.
51610         * modules/unicase/u16-casecoll: Likewise.
51611         * modules/unicase/u16-casefold: Likewise.
51612         * modules/unicase/u16-casexfrm: Likewise.
51613         * modules/unicase/u16-ct-casefold: Likewise.
51614         * modules/unicase/u16-ct-tolower: Likewise.
51615         * modules/unicase/u16-ct-totitle: Likewise.
51616         * modules/unicase/u16-ct-toupper: Likewise.
51617         * modules/unicase/u16-is-cased: Likewise.
51618         * modules/unicase/u16-is-casefolded: Likewise.
51619         * modules/unicase/u16-is-lowercase: Likewise.
51620         * modules/unicase/u16-is-titlecase: Likewise.
51621         * modules/unicase/u16-is-uppercase: Likewise.
51622         * modules/unicase/u16-prefix-context: Likewise.
51623         * modules/unicase/u16-suffix-context: Likewise.
51624         * modules/unicase/u16-tolower: Likewise.
51625         * modules/unicase/u16-totitle: Likewise.
51626         * modules/unicase/u16-toupper: Likewise.
51627         * modules/unicase/u32-casecmp: Likewise.
51628         * modules/unicase/u32-casecoll: Likewise.
51629         * modules/unicase/u32-casefold: Likewise.
51630         * modules/unicase/u32-casexfrm: Likewise.
51631         * modules/unicase/u32-ct-casefold: Likewise.
51632         * modules/unicase/u32-ct-tolower: Likewise.
51633         * modules/unicase/u32-ct-totitle: Likewise.
51634         * modules/unicase/u32-ct-toupper: Likewise.
51635         * modules/unicase/u32-is-cased: Likewise.
51636         * modules/unicase/u32-is-casefolded: Likewise.
51637         * modules/unicase/u32-is-lowercase: Likewise.
51638         * modules/unicase/u32-is-titlecase: Likewise.
51639         * modules/unicase/u32-is-uppercase: Likewise.
51640         * modules/unicase/u32-prefix-context: Likewise.
51641         * modules/unicase/u32-suffix-context: Likewise.
51642         * modules/unicase/u32-tolower: Likewise.
51643         * modules/unicase/u32-totitle: Likewise.
51644         * modules/unicase/u32-toupper: Likewise.
51645         * modules/unicase/ulc-casecmp: Likewise.
51646         * modules/unicase/ulc-casecoll: Likewise.
51647         * modules/unicase/ulc-casexfrm: Likewise.
51648         * modules/uniconv/u8-conv-from-enc: Likewise.
51649         * modules/uniconv/u8-conv-to-enc: Likewise.
51650         * modules/uniconv/u8-strconv-from-enc: Likewise.
51651         * modules/uniconv/u8-strconv-from-locale: Likewise.
51652         * modules/uniconv/u8-strconv-to-enc: Likewise.
51653         * modules/uniconv/u8-strconv-to-locale: Likewise.
51654         * modules/uniconv/u16-conv-from-enc: Likewise.
51655         * modules/uniconv/u16-conv-to-enc: Likewise.
51656         * modules/uniconv/u16-strconv-from-enc: Likewise.
51657         * modules/uniconv/u16-strconv-from-locale: Likewise.
51658         * modules/uniconv/u16-strconv-to-enc: Likewise.
51659         * modules/uniconv/u16-strconv-to-locale: Likewise.
51660         * modules/uniconv/u32-conv-from-enc: Likewise.
51661         * modules/uniconv/u32-conv-to-enc: Likewise.
51662         * modules/uniconv/u32-strconv-from-enc: Likewise.
51663         * modules/uniconv/u32-strconv-from-locale: Likewise.
51664         * modules/uniconv/u32-strconv-to-enc: Likewise.
51665         * modules/uniconv/u32-strconv-to-locale: Likewise.
51666         * modules/unictype/bidicategory-byname: Likewise.
51667         * modules/unictype/bidicategory-name: Likewise.
51668         * modules/unictype/bidicategory-of: Likewise.
51669         * modules/unictype/bidicategory-test: Likewise.
51670         * modules/unictype/block-list: Likewise.
51671         * modules/unictype/block-test: Likewise.
51672         * modules/unictype/category-C: Likewise.
51673         * modules/unictype/category-Cc: Likewise.
51674         * modules/unictype/category-Cf: Likewise.
51675         * modules/unictype/category-Cn: Likewise.
51676         * modules/unictype/category-Co: Likewise.
51677         * modules/unictype/category-Cs: Likewise.
51678         * modules/unictype/category-L: Likewise.
51679         * modules/unictype/category-Ll: Likewise.
51680         * modules/unictype/category-Lm: Likewise.
51681         * modules/unictype/category-Lo: Likewise.
51682         * modules/unictype/category-Lt: Likewise.
51683         * modules/unictype/category-Lu: Likewise.
51684         * modules/unictype/category-M: Likewise.
51685         * modules/unictype/category-Mc: Likewise.
51686         * modules/unictype/category-Me: Likewise.
51687         * modules/unictype/category-Mn: Likewise.
51688         * modules/unictype/category-N: Likewise.
51689         * modules/unictype/category-Nd: Likewise.
51690         * modules/unictype/category-Nl: Likewise.
51691         * modules/unictype/category-No: Likewise.
51692         * modules/unictype/category-P: Likewise.
51693         * modules/unictype/category-Pc: Likewise.
51694         * modules/unictype/category-Pd: Likewise.
51695         * modules/unictype/category-Pe: Likewise.
51696         * modules/unictype/category-Pf: Likewise.
51697         * modules/unictype/category-Pi: Likewise.
51698         * modules/unictype/category-Po: Likewise.
51699         * modules/unictype/category-Ps: Likewise.
51700         * modules/unictype/category-S: Likewise.
51701         * modules/unictype/category-Sc: Likewise.
51702         * modules/unictype/category-Sk: Likewise.
51703         * modules/unictype/category-Sm: Likewise.
51704         * modules/unictype/category-So: Likewise.
51705         * modules/unictype/category-Z: Likewise.
51706         * modules/unictype/category-Zl: Likewise.
51707         * modules/unictype/category-Zp: Likewise.
51708         * modules/unictype/category-Zs: Likewise.
51709         * modules/unictype/category-and: Likewise.
51710         * modules/unictype/category-and-not: Likewise.
51711         * modules/unictype/category-byname: Likewise.
51712         * modules/unictype/category-name: Likewise.
51713         * modules/unictype/category-none: Likewise.
51714         * modules/unictype/category-of: Likewise.
51715         * modules/unictype/category-or: Likewise.
51716         * modules/unictype/category-test: Likewise.
51717         * modules/unictype/combining-class: Likewise.
51718         * modules/unictype/ctype-alnum: Likewise.
51719         * modules/unictype/ctype-alpha: Likewise.
51720         * modules/unictype/ctype-blank: Likewise.
51721         * modules/unictype/ctype-cntrl: Likewise.
51722         * modules/unictype/ctype-digit: Likewise.
51723         * modules/unictype/ctype-graph: Likewise.
51724         * modules/unictype/ctype-lower: Likewise.
51725         * modules/unictype/ctype-print: Likewise.
51726         * modules/unictype/ctype-punct: Likewise.
51727         * modules/unictype/ctype-space: Likewise.
51728         * modules/unictype/ctype-upper: Likewise.
51729         * modules/unictype/ctype-xdigit: Likewise.
51730         * modules/unictype/decimal-digit: Likewise.
51731         * modules/unictype/digit: Likewise.
51732         * modules/unictype/mirror: Likewise.
51733         * modules/unictype/numeric: Likewise.
51734         * modules/unictype/property-alphabetic: Likewise.
51735         * modules/unictype/property-ascii-hex-digit: Likewise.
51736         * modules/unictype/property-bidi-arabic-digit: Likewise.
51737         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51738         * modules/unictype/property-bidi-block-separator: Likewise.
51739         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51740         * modules/unictype/property-bidi-common-separator: Likewise.
51741         * modules/unictype/property-bidi-control: Likewise.
51742         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51743         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51744         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51745         * modules/unictype/property-bidi-european-digit: Likewise.
51746         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51747         * modules/unictype/property-bidi-left-to-right: Likewise.
51748         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51749         * modules/unictype/property-bidi-other-neutral: Likewise.
51750         * modules/unictype/property-bidi-pdf: Likewise.
51751         * modules/unictype/property-bidi-segment-separator: Likewise.
51752         * modules/unictype/property-bidi-whitespace: Likewise.
51753         * modules/unictype/property-byname: Likewise.
51754         * modules/unictype/property-combining: Likewise.
51755         * modules/unictype/property-composite: Likewise.
51756         * modules/unictype/property-currency-symbol: Likewise.
51757         * modules/unictype/property-dash: Likewise.
51758         * modules/unictype/property-decimal-digit: Likewise.
51759         * modules/unictype/property-default-ignorable-code-point: Likewise.
51760         * modules/unictype/property-deprecated: Likewise.
51761         * modules/unictype/property-diacritic: Likewise.
51762         * modules/unictype/property-extender: Likewise.
51763         * modules/unictype/property-format-control: Likewise.
51764         * modules/unictype/property-grapheme-base: Likewise.
51765         * modules/unictype/property-grapheme-extend: Likewise.
51766         * modules/unictype/property-grapheme-link: Likewise.
51767         * modules/unictype/property-hex-digit: Likewise.
51768         * modules/unictype/property-hyphen: Likewise.
51769         * modules/unictype/property-id-continue: Likewise.
51770         * modules/unictype/property-id-start: Likewise.
51771         * modules/unictype/property-ideographic: Likewise.
51772         * modules/unictype/property-ids-binary-operator: Likewise.
51773         * modules/unictype/property-ids-trinary-operator: Likewise.
51774         * modules/unictype/property-ignorable-control: Likewise.
51775         * modules/unictype/property-iso-control: Likewise.
51776         * modules/unictype/property-join-control: Likewise.
51777         * modules/unictype/property-left-of-pair: Likewise.
51778         * modules/unictype/property-line-separator: Likewise.
51779         * modules/unictype/property-logical-order-exception: Likewise.
51780         * modules/unictype/property-lowercase: Likewise.
51781         * modules/unictype/property-math: Likewise.
51782         * modules/unictype/property-non-break: Likewise.
51783         * modules/unictype/property-not-a-character: Likewise.
51784         * modules/unictype/property-numeric: Likewise.
51785         * modules/unictype/property-other-alphabetic: Likewise.
51786         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51787         * modules/unictype/property-other-grapheme-extend: Likewise.
51788         * modules/unictype/property-other-id-continue: Likewise.
51789         * modules/unictype/property-other-id-start: Likewise.
51790         * modules/unictype/property-other-lowercase: Likewise.
51791         * modules/unictype/property-other-math: Likewise.
51792         * modules/unictype/property-other-uppercase: Likewise.
51793         * modules/unictype/property-paired-punctuation: Likewise.
51794         * modules/unictype/property-paragraph-separator: Likewise.
51795         * modules/unictype/property-pattern-syntax: Likewise.
51796         * modules/unictype/property-pattern-white-space: Likewise.
51797         * modules/unictype/property-private-use: Likewise.
51798         * modules/unictype/property-punctuation: Likewise.
51799         * modules/unictype/property-quotation-mark: Likewise.
51800         * modules/unictype/property-radical: Likewise.
51801         * modules/unictype/property-sentence-terminal: Likewise.
51802         * modules/unictype/property-soft-dotted: Likewise.
51803         * modules/unictype/property-space: Likewise.
51804         * modules/unictype/property-terminal-punctuation: Likewise.
51805         * modules/unictype/property-test: Likewise.
51806         * modules/unictype/property-titlecase: Likewise.
51807         * modules/unictype/property-unassigned-code-value: Likewise.
51808         * modules/unictype/property-unified-ideograph: Likewise.
51809         * modules/unictype/property-uppercase: Likewise.
51810         * modules/unictype/property-variation-selector: Likewise.
51811         * modules/unictype/property-white-space: Likewise.
51812         * modules/unictype/property-xid-continue: Likewise.
51813         * modules/unictype/property-xid-start: Likewise.
51814         * modules/unictype/property-zero-width: Likewise.
51815         * modules/unictype/scripts: Likewise.
51816         * modules/unictype/syntax-c-ident: Likewise.
51817         * modules/unictype/syntax-c-whitespace: Likewise.
51818         * modules/unictype/syntax-java-ident: Likewise.
51819         * modules/unictype/syntax-java-whitespace: Likewise.
51820         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51821         * modules/unilbrk/u8-width-linebreaks: Likewise.
51822         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51823         * modules/unilbrk/u16-width-linebreaks: Likewise.
51824         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51825         * modules/unilbrk/u32-width-linebreaks: Likewise.
51826         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51827         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51828         * modules/uniname/uniname: Likewise.
51829         * modules/uninorm/canonical-decomposition: Likewise.
51830         * modules/uninorm/composition: Likewise.
51831         * modules/uninorm/decomposing-form: Likewise.
51832         * modules/uninorm/decomposition: Likewise.
51833         * modules/uninorm/filter: Likewise.
51834         * modules/uninorm/nfc: Likewise.
51835         * modules/uninorm/nfd: Likewise.
51836         * modules/uninorm/nfkc: Likewise.
51837         * modules/uninorm/nfkd: Likewise.
51838         * modules/uninorm/u8-normalize: Likewise.
51839         * modules/uninorm/u8-normcmp: Likewise.
51840         * modules/uninorm/u8-normcoll: Likewise.
51841         * modules/uninorm/u8-normxfrm: Likewise.
51842         * modules/uninorm/u16-normalize: Likewise.
51843         * modules/uninorm/u16-normcmp: Likewise.
51844         * modules/uninorm/u16-normcoll: Likewise.
51845         * modules/uninorm/u16-normxfrm: Likewise.
51846         * modules/uninorm/u32-normalize: Likewise.
51847         * modules/uninorm/u32-normcmp: Likewise.
51848         * modules/uninorm/u32-normcoll: Likewise.
51849         * modules/uninorm/u32-normxfrm: Likewise.
51850         * modules/unistdio/u8-asnprintf: Likewise.
51851         * modules/unistdio/u8-asprintf: Likewise.
51852         * modules/unistdio/u8-snprintf: Likewise.
51853         * modules/unistdio/u8-sprintf: Likewise.
51854         * modules/unistdio/u8-u8-asnprintf: Likewise.
51855         * modules/unistdio/u8-u8-asprintf: Likewise.
51856         * modules/unistdio/u8-u8-snprintf: Likewise.
51857         * modules/unistdio/u8-u8-sprintf: Likewise.
51858         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51859         * modules/unistdio/u8-u8-vasprintf: Likewise.
51860         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51861         * modules/unistdio/u8-u8-vsprintf: Likewise.
51862         * modules/unistdio/u8-vasnprintf: Likewise.
51863         * modules/unistdio/u8-vasprintf: Likewise.
51864         * modules/unistdio/u8-vsnprintf: Likewise.
51865         * modules/unistdio/u8-vsprintf: Likewise.
51866         * modules/unistdio/u16-asnprintf: Likewise.
51867         * modules/unistdio/u16-asprintf: Likewise.
51868         * modules/unistdio/u16-snprintf: Likewise.
51869         * modules/unistdio/u16-sprintf: Likewise.
51870         * modules/unistdio/u16-u16-asnprintf: Likewise.
51871         * modules/unistdio/u16-u16-asprintf: Likewise.
51872         * modules/unistdio/u16-u16-snprintf: Likewise.
51873         * modules/unistdio/u16-u16-sprintf: Likewise.
51874         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51875         * modules/unistdio/u16-u16-vasprintf: Likewise.
51876         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51877         * modules/unistdio/u16-u16-vsprintf: Likewise.
51878         * modules/unistdio/u16-vasnprintf: Likewise.
51879         * modules/unistdio/u16-vasprintf: Likewise.
51880         * modules/unistdio/u16-vsnprintf: Likewise.
51881         * modules/unistdio/u16-vsprintf: Likewise.
51882         * modules/unistdio/u32-asnprintf: Likewise.
51883         * modules/unistdio/u32-asprintf: Likewise.
51884         * modules/unistdio/u32-snprintf: Likewise.
51885         * modules/unistdio/u32-sprintf: Likewise.
51886         * modules/unistdio/u32-u32-asnprintf: Likewise.
51887         * modules/unistdio/u32-u32-asprintf: Likewise.
51888         * modules/unistdio/u32-u32-snprintf: Likewise.
51889         * modules/unistdio/u32-u32-sprintf: Likewise.
51890         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51891         * modules/unistdio/u32-u32-vasprintf: Likewise.
51892         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51893         * modules/unistdio/u32-u32-vsprintf: Likewise.
51894         * modules/unistdio/u32-vasnprintf: Likewise.
51895         * modules/unistdio/u32-vasprintf: Likewise.
51896         * modules/unistdio/u32-vsnprintf: Likewise.
51897         * modules/unistdio/u32-vsprintf: Likewise.
51898         * modules/unistdio/ulc-asnprintf: Likewise.
51899         * modules/unistdio/ulc-asprintf: Likewise.
51900         * modules/unistdio/ulc-fprintf: Likewise.
51901         * modules/unistdio/ulc-snprintf: Likewise.
51902         * modules/unistdio/ulc-sprintf: Likewise.
51903         * modules/unistdio/ulc-vasnprintf: Likewise.
51904         * modules/unistdio/ulc-vasprintf: Likewise.
51905         * modules/unistdio/ulc-vfprintf: Likewise.
51906         * modules/unistdio/ulc-vsnprintf: Likewise.
51907         * modules/unistdio/ulc-vsprintf: Likewise.
51908         * modules/unistr/u8-check: Likewise.
51909         * modules/unistr/u8-chr: Likewise.
51910         * modules/unistr/u8-cmp: Likewise.
51911         * modules/unistr/u8-cmp2: Likewise.
51912         * modules/unistr/u8-cpy: Likewise.
51913         * modules/unistr/u8-cpy-alloc: Likewise.
51914         * modules/unistr/u8-endswith: Likewise.
51915         * modules/unistr/u8-mblen: Likewise.
51916         * modules/unistr/u8-mbsnlen: Likewise.
51917         * modules/unistr/u8-mbtouc: Likewise.
51918         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51919         * modules/unistr/u8-mbtoucr: Likewise.
51920         * modules/unistr/u8-move: Likewise.
51921         * modules/unistr/u8-next: Likewise.
51922         * modules/unistr/u8-prev: Likewise.
51923         * modules/unistr/u8-set: Likewise.
51924         * modules/unistr/u8-startswith: Likewise.
51925         * modules/unistr/u8-stpcpy: Likewise.
51926         * modules/unistr/u8-stpncpy: Likewise.
51927         * modules/unistr/u8-strcat: Likewise.
51928         * modules/unistr/u8-strchr: Likewise.
51929         * modules/unistr/u8-strcmp: Likewise.
51930         * modules/unistr/u8-strcoll: Likewise.
51931         * modules/unistr/u8-strcpy: Likewise.
51932         * modules/unistr/u8-strcspn: Likewise.
51933         * modules/unistr/u8-strdup: Likewise.
51934         * modules/unistr/u8-strlen: Likewise.
51935         * modules/unistr/u8-strmblen: Likewise.
51936         * modules/unistr/u8-strmbtouc: Likewise.
51937         * modules/unistr/u8-strncat: Likewise.
51938         * modules/unistr/u8-strncmp: Likewise.
51939         * modules/unistr/u8-strncpy: Likewise.
51940         * modules/unistr/u8-strnlen: Likewise.
51941         * modules/unistr/u8-strpbrk: Likewise.
51942         * modules/unistr/u8-strrchr: Likewise.
51943         * modules/unistr/u8-strspn: Likewise.
51944         * modules/unistr/u8-strstr: Likewise.
51945         * modules/unistr/u8-strtok: Likewise.
51946         * modules/unistr/u8-to-u16: Likewise.
51947         * modules/unistr/u8-to-u32: Likewise.
51948         * modules/unistr/u8-uctomb: Likewise.
51949         * modules/unistr/u16-check: Likewise.
51950         * modules/unistr/u16-chr: Likewise.
51951         * modules/unistr/u16-cmp: Likewise.
51952         * modules/unistr/u16-cmp2: Likewise.
51953         * modules/unistr/u16-cpy: Likewise.
51954         * modules/unistr/u16-cpy-alloc: Likewise.
51955         * modules/unistr/u16-endswith: Likewise.
51956         * modules/unistr/u16-mblen: Likewise.
51957         * modules/unistr/u16-mbsnlen: Likewise.
51958         * modules/unistr/u16-mbtouc: Likewise.
51959         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51960         * modules/unistr/u16-mbtoucr: Likewise.
51961         * modules/unistr/u16-move: Likewise.
51962         * modules/unistr/u16-next: Likewise.
51963         * modules/unistr/u16-prev: Likewise.
51964         * modules/unistr/u16-set: Likewise.
51965         * modules/unistr/u16-startswith: Likewise.
51966         * modules/unistr/u16-stpcpy: Likewise.
51967         * modules/unistr/u16-stpncpy: Likewise.
51968         * modules/unistr/u16-strcat: Likewise.
51969         * modules/unistr/u16-strchr: Likewise.
51970         * modules/unistr/u16-strcmp: Likewise.
51971         * modules/unistr/u16-strcoll: Likewise.
51972         * modules/unistr/u16-strcpy: Likewise.
51973         * modules/unistr/u16-strcspn: Likewise.
51974         * modules/unistr/u16-strdup: Likewise.
51975         * modules/unistr/u16-strlen: Likewise.
51976         * modules/unistr/u16-strmblen: Likewise.
51977         * modules/unistr/u16-strmbtouc: Likewise.
51978         * modules/unistr/u16-strncat: Likewise.
51979         * modules/unistr/u16-strncmp: Likewise.
51980         * modules/unistr/u16-strncpy: Likewise.
51981         * modules/unistr/u16-strnlen: Likewise.
51982         * modules/unistr/u16-strpbrk: Likewise.
51983         * modules/unistr/u16-strrchr: Likewise.
51984         * modules/unistr/u16-strspn: Likewise.
51985         * modules/unistr/u16-strstr: Likewise.
51986         * modules/unistr/u16-strtok: Likewise.
51987         * modules/unistr/u16-to-u32: Likewise.
51988         * modules/unistr/u16-to-u8: Likewise.
51989         * modules/unistr/u16-uctomb: Likewise.
51990         * modules/unistr/u32-check: Likewise.
51991         * modules/unistr/u32-chr: Likewise.
51992         * modules/unistr/u32-cmp: Likewise.
51993         * modules/unistr/u32-cmp2: Likewise.
51994         * modules/unistr/u32-cpy: Likewise.
51995         * modules/unistr/u32-cpy-alloc: Likewise.
51996         * modules/unistr/u32-endswith: Likewise.
51997         * modules/unistr/u32-mblen: Likewise.
51998         * modules/unistr/u32-mbsnlen: Likewise.
51999         * modules/unistr/u32-mbtouc: Likewise.
52000         * modules/unistr/u32-mbtouc-unsafe: Likewise.
52001         * modules/unistr/u32-mbtoucr: Likewise.
52002         * modules/unistr/u32-move: Likewise.
52003         * modules/unistr/u32-next: Likewise.
52004         * modules/unistr/u32-prev: Likewise.
52005         * modules/unistr/u32-set: Likewise.
52006         * modules/unistr/u32-startswith: Likewise.
52007         * modules/unistr/u32-stpcpy: Likewise.
52008         * modules/unistr/u32-stpncpy: Likewise.
52009         * modules/unistr/u32-strcat: Likewise.
52010         * modules/unistr/u32-strchr: Likewise.
52011         * modules/unistr/u32-strcmp: Likewise.
52012         * modules/unistr/u32-strcoll: Likewise.
52013         * modules/unistr/u32-strcpy: Likewise.
52014         * modules/unistr/u32-strcspn: Likewise.
52015         * modules/unistr/u32-strdup: Likewise.
52016         * modules/unistr/u32-strlen: Likewise.
52017         * modules/unistr/u32-strmblen: Likewise.
52018         * modules/unistr/u32-strmbtouc: Likewise.
52019         * modules/unistr/u32-strncat: Likewise.
52020         * modules/unistr/u32-strncmp: Likewise.
52021         * modules/unistr/u32-strncpy: Likewise.
52022         * modules/unistr/u32-strnlen: Likewise.
52023         * modules/unistr/u32-strpbrk: Likewise.
52024         * modules/unistr/u32-strrchr: Likewise.
52025         * modules/unistr/u32-strspn: Likewise.
52026         * modules/unistr/u32-strstr: Likewise.
52027         * modules/unistr/u32-strtok: Likewise.
52028         * modules/unistr/u32-to-u16: Likewise.
52029         * modules/unistr/u32-to-u8: Likewise.
52030         * modules/unistr/u32-uctomb: Likewise.
52031         * modules/uniwbrk/u8-wordbreaks: Likewise.
52032         * modules/uniwbrk/u16-wordbreaks: Likewise.
52033         * modules/uniwbrk/u32-wordbreaks: Likewise.
52034         * modules/uniwbrk/ulc-wordbreaks: Likewise.
52035         * modules/uniwbrk/wordbreak-property: Likewise.
52036         * modules/uniwidth/u8-strwidth: Likewise.
52037         * modules/uniwidth/u8-width: Likewise.
52038         * modules/uniwidth/u16-strwidth: Likewise.
52039         * modules/uniwidth/u16-width: Likewise.
52040         * modules/uniwidth/u32-strwidth: Likewise.
52041         * modules/uniwidth/u32-width: Likewise.
52042         * modules/uniwidth/width: Likewise.
52043         * modules/unicase/cased-tests (Makefile.am): Link all test programs
52044         with $(LIBUNISTRING).
52045         * modules/unicase/ignorable-tests: Likewise.
52046         * modules/unicase/locale-language-tests: Likewise.
52047         * modules/unicase/tolower-tests: Likewise.
52048         * modules/unicase/totitle-tests: Likewise.
52049         * modules/unicase/toupper-tests: Likewise.
52050         * modules/unicase/u8-casecmp-tests: Likewise.
52051         * modules/unicase/u8-casecoll-tests: Likewise.
52052         * modules/unicase/u8-casefold-tests: Likewise.
52053         * modules/unicase/u8-is-cased-tests: Likewise.
52054         * modules/unicase/u8-is-casefolded-tests: Likewise.
52055         * modules/unicase/u8-is-lowercase-tests: Likewise.
52056         * modules/unicase/u8-is-titlecase-tests: Likewise.
52057         * modules/unicase/u8-is-uppercase-tests: Likewise.
52058         * modules/unicase/u8-tolower-tests: Likewise.
52059         * modules/unicase/u8-totitle-tests: Likewise.
52060         * modules/unicase/u8-toupper-tests: Likewise.
52061         * modules/unicase/u16-casecmp-tests: Likewise.
52062         * modules/unicase/u16-casecoll-tests: Likewise.
52063         * modules/unicase/u16-casefold-tests: Likewise.
52064         * modules/unicase/u16-is-cased-tests: Likewise.
52065         * modules/unicase/u16-is-casefolded-tests: Likewise.
52066         * modules/unicase/u16-is-lowercase-tests: Likewise.
52067         * modules/unicase/u16-is-titlecase-tests: Likewise.
52068         * modules/unicase/u16-is-uppercase-tests: Likewise.
52069         * modules/unicase/u16-tolower-tests: Likewise.
52070         * modules/unicase/u16-totitle-tests: Likewise.
52071         * modules/unicase/u16-toupper-tests: Likewise.
52072         * modules/unicase/u32-casecmp-tests: Likewise.
52073         * modules/unicase/u32-casecoll-tests: Likewise.
52074         * modules/unicase/u32-casefold-tests: Likewise.
52075         * modules/unicase/u32-is-cased-tests: Likewise.
52076         * modules/unicase/u32-is-casefolded-tests: Likewise.
52077         * modules/unicase/u32-is-lowercase-tests: Likewise.
52078         * modules/unicase/u32-is-titlecase-tests: Likewise.
52079         * modules/unicase/u32-is-uppercase-tests: Likewise.
52080         * modules/unicase/u32-tolower-tests: Likewise.
52081         * modules/unicase/u32-totitle-tests: Likewise.
52082         * modules/unicase/u32-toupper-tests: Likewise.
52083         * modules/unicase/ulc-casecmp-tests: Likewise.
52084         * modules/unicase/ulc-casecoll-tests: Likewise.
52085         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
52086         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
52087         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
52088         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
52089         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
52090         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
52091         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
52092         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
52093         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
52094         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
52095         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
52096         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
52097         * modules/unictype/bidicategory-byname-tests: Likewise.
52098         * modules/unictype/bidicategory-name-tests: Likewise.
52099         * modules/unictype/bidicategory-of-tests: Likewise.
52100         * modules/unictype/bidicategory-test-tests: Likewise.
52101         * modules/unictype/block-list-tests: Likewise.
52102         * modules/unictype/block-of-tests: Likewise.
52103         * modules/unictype/block-test-tests: Likewise.
52104         * modules/unictype/category-C-tests: Likewise.
52105         * modules/unictype/category-Cc-tests: Likewise.
52106         * modules/unictype/category-Cf-tests: Likewise.
52107         * modules/unictype/category-Cn-tests: Likewise.
52108         * modules/unictype/category-Co-tests: Likewise.
52109         * modules/unictype/category-Cs-tests: Likewise.
52110         * modules/unictype/category-L-tests: Likewise.
52111         * modules/unictype/category-Ll-tests: Likewise.
52112         * modules/unictype/category-Lm-tests: Likewise.
52113         * modules/unictype/category-Lo-tests: Likewise.
52114         * modules/unictype/category-Lt-tests: Likewise.
52115         * modules/unictype/category-Lu-tests: Likewise.
52116         * modules/unictype/category-M-tests: Likewise.
52117         * modules/unictype/category-Mc-tests: Likewise.
52118         * modules/unictype/category-Me-tests: Likewise.
52119         * modules/unictype/category-Mn-tests: Likewise.
52120         * modules/unictype/category-N-tests: Likewise.
52121         * modules/unictype/category-Nd-tests: Likewise.
52122         * modules/unictype/category-Nl-tests: Likewise.
52123         * modules/unictype/category-No-tests: Likewise.
52124         * modules/unictype/category-P-tests: Likewise.
52125         * modules/unictype/category-Pc-tests: Likewise.
52126         * modules/unictype/category-Pd-tests: Likewise.
52127         * modules/unictype/category-Pe-tests: Likewise.
52128         * modules/unictype/category-Pf-tests: Likewise.
52129         * modules/unictype/category-Pi-tests: Likewise.
52130         * modules/unictype/category-Po-tests: Likewise.
52131         * modules/unictype/category-Ps-tests: Likewise.
52132         * modules/unictype/category-S-tests: Likewise.
52133         * modules/unictype/category-Sc-tests: Likewise.
52134         * modules/unictype/category-Sk-tests: Likewise.
52135         * modules/unictype/category-Sm-tests: Likewise.
52136         * modules/unictype/category-So-tests: Likewise.
52137         * modules/unictype/category-Z-tests: Likewise.
52138         * modules/unictype/category-Zl-tests: Likewise.
52139         * modules/unictype/category-Zp-tests: Likewise.
52140         * modules/unictype/category-Zs-tests: Likewise.
52141         * modules/unictype/category-and-not-tests: Likewise.
52142         * modules/unictype/category-and-tests: Likewise.
52143         * modules/unictype/category-byname-tests: Likewise.
52144         * modules/unictype/category-name-tests: Likewise.
52145         * modules/unictype/category-none-tests: Likewise.
52146         * modules/unictype/category-of-tests: Likewise.
52147         * modules/unictype/category-or-tests: Likewise.
52148         * modules/unictype/category-test-withtable-tests: Likewise.
52149         * modules/unictype/combining-class-tests: Likewise.
52150         * modules/unictype/ctype-alnum-tests: Likewise.
52151         * modules/unictype/ctype-alpha-tests: Likewise.
52152         * modules/unictype/ctype-blank-tests: Likewise.
52153         * modules/unictype/ctype-cntrl-tests: Likewise.
52154         * modules/unictype/ctype-digit-tests: Likewise.
52155         * modules/unictype/ctype-graph-tests: Likewise.
52156         * modules/unictype/ctype-lower-tests: Likewise.
52157         * modules/unictype/ctype-print-tests: Likewise.
52158         * modules/unictype/ctype-punct-tests: Likewise.
52159         * modules/unictype/ctype-space-tests: Likewise.
52160         * modules/unictype/ctype-upper-tests: Likewise.
52161         * modules/unictype/ctype-xdigit-tests: Likewise.
52162         * modules/unictype/decimal-digit-tests: Likewise.
52163         * modules/unictype/digit-tests: Likewise.
52164         * modules/unictype/mirror-tests: Likewise.
52165         * modules/unictype/numeric-tests: Likewise.
52166         * modules/unictype/property-alphabetic-tests: Likewise.
52167         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
52168         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
52169         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
52170         * modules/unictype/property-bidi-block-separator-tests: Likewise.
52171         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
52172         * modules/unictype/property-bidi-common-separator-tests: Likewise.
52173         * modules/unictype/property-bidi-control-tests: Likewise.
52174         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
52175         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
52176         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
52177         * modules/unictype/property-bidi-european-digit-tests: Likewise.
52178         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
52179         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
52180         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
52181         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
52182         * modules/unictype/property-bidi-pdf-tests: Likewise.
52183         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
52184         * modules/unictype/property-bidi-whitespace-tests: Likewise.
52185         * modules/unictype/property-byname-tests: Likewise.
52186         * modules/unictype/property-combining-tests: Likewise.
52187         * modules/unictype/property-composite-tests: Likewise.
52188         * modules/unictype/property-currency-symbol-tests: Likewise.
52189         * modules/unictype/property-dash-tests: Likewise.
52190         * modules/unictype/property-decimal-digit-tests: Likewise.
52191         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
52192         * modules/unictype/property-deprecated-tests: Likewise.
52193         * modules/unictype/property-diacritic-tests: Likewise.
52194         * modules/unictype/property-extender-tests: Likewise.
52195         * modules/unictype/property-format-control-tests: Likewise.
52196         * modules/unictype/property-grapheme-base-tests: Likewise.
52197         * modules/unictype/property-grapheme-extend-tests: Likewise.
52198         * modules/unictype/property-grapheme-link-tests: Likewise.
52199         * modules/unictype/property-hex-digit-tests: Likewise.
52200         * modules/unictype/property-hyphen-tests: Likewise.
52201         * modules/unictype/property-id-continue-tests: Likewise.
52202         * modules/unictype/property-id-start-tests: Likewise.
52203         * modules/unictype/property-ideographic-tests: Likewise.
52204         * modules/unictype/property-ids-binary-operator-tests: Likewise.
52205         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
52206         * modules/unictype/property-ignorable-control-tests: Likewise.
52207         * modules/unictype/property-iso-control-tests: Likewise.
52208         * modules/unictype/property-join-control-tests: Likewise.
52209         * modules/unictype/property-left-of-pair-tests: Likewise.
52210         * modules/unictype/property-line-separator-tests: Likewise.
52211         * modules/unictype/property-logical-order-exception-tests: Likewise.
52212         * modules/unictype/property-lowercase-tests: Likewise.
52213         * modules/unictype/property-math-tests: Likewise.
52214         * modules/unictype/property-non-break-tests: Likewise.
52215         * modules/unictype/property-not-a-character-tests: Likewise.
52216         * modules/unictype/property-numeric-tests: Likewise.
52217         * modules/unictype/property-other-alphabetic-tests: Likewise.
52218         * modules/unictype/property-other-default-ignorable-code-point-tests:
52219         Likewise.
52220         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
52221         * modules/unictype/property-other-id-continue-tests: Likewise.
52222         * modules/unictype/property-other-id-start-tests: Likewise.
52223         * modules/unictype/property-other-lowercase-tests: Likewise.
52224         * modules/unictype/property-other-math-tests: Likewise.
52225         * modules/unictype/property-other-uppercase-tests: Likewise.
52226         * modules/unictype/property-paired-punctuation-tests: Likewise.
52227         * modules/unictype/property-paragraph-separator-tests: Likewise.
52228         * modules/unictype/property-pattern-syntax-tests: Likewise.
52229         * modules/unictype/property-pattern-white-space-tests: Likewise.
52230         * modules/unictype/property-private-use-tests: Likewise.
52231         * modules/unictype/property-punctuation-tests: Likewise.
52232         * modules/unictype/property-quotation-mark-tests: Likewise.
52233         * modules/unictype/property-radical-tests: Likewise.
52234         * modules/unictype/property-sentence-terminal-tests: Likewise.
52235         * modules/unictype/property-soft-dotted-tests: Likewise.
52236         * modules/unictype/property-space-tests: Likewise.
52237         * modules/unictype/property-terminal-punctuation-tests: Likewise.
52238         * modules/unictype/property-test-tests: Likewise.
52239         * modules/unictype/property-titlecase-tests: Likewise.
52240         * modules/unictype/property-unassigned-code-value-tests: Likewise.
52241         * modules/unictype/property-unified-ideograph-tests: Likewise.
52242         * modules/unictype/property-uppercase-tests: Likewise.
52243         * modules/unictype/property-variation-selector-tests: Likewise.
52244         * modules/unictype/property-white-space-tests: Likewise.
52245         * modules/unictype/property-xid-continue-tests: Likewise.
52246         * modules/unictype/property-xid-start-tests: Likewise.
52247         * modules/unictype/property-zero-width-tests: Likewise.
52248         * modules/unictype/scripts-tests: Likewise.
52249         * modules/unictype/syntax-c-ident-tests: Likewise.
52250         * modules/unictype/syntax-c-whitespace-tests: Likewise.
52251         * modules/unictype/syntax-java-ident-tests: Likewise.
52252         * modules/unictype/syntax-java-whitespace-tests: Likewise.
52253         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
52254         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
52255         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
52256         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
52257         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
52258         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
52259         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
52260         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
52261         * modules/uniname/uniname-tests: Likewise.
52262         * modules/uninorm/canonical-decomposition-tests: Likewise.
52263         * modules/uninorm/compat-decomposition-tests: Likewise.
52264         * modules/uninorm/composition-tests: Likewise.
52265         * modules/uninorm/decomposing-form-tests: Likewise.
52266         * modules/uninorm/decomposition-tests: Likewise.
52267         * modules/uninorm/filter-tests: Likewise.
52268         * modules/uninorm/nfc-tests: Likewise.
52269         * modules/uninorm/nfd-tests: Likewise.
52270         * modules/uninorm/nfkc-tests: Likewise.
52271         * modules/uninorm/nfkd-tests: Likewise.
52272         * modules/uninorm/u8-normcmp-tests: Likewise.
52273         * modules/uninorm/u8-normcoll-tests: Likewise.
52274         * modules/uninorm/u16-normcmp-tests: Likewise.
52275         * modules/uninorm/u16-normcoll-tests: Likewise.
52276         * modules/uninorm/u32-normcmp-tests: Likewise.
52277         * modules/uninorm/u32-normcoll-tests: Likewise.
52278         * modules/unistdio/u8-asnprintf-tests: Likewise.
52279         * modules/unistdio/u8-vasnprintf-tests: Likewise.
52280         * modules/unistdio/u8-vasprintf-tests: Likewise.
52281         * modules/unistdio/u8-vsnprintf-tests: Likewise.
52282         * modules/unistdio/u8-vsprintf-tests: Likewise.
52283         * modules/unistdio/u16-asnprintf-tests: Likewise.
52284         * modules/unistdio/u16-vasnprintf-tests: Likewise.
52285         * modules/unistdio/u16-vasprintf-tests: Likewise.
52286         * modules/unistdio/u16-vsnprintf-tests: Likewise.
52287         * modules/unistdio/u16-vsprintf-tests: Likewise.
52288         * modules/unistdio/u32-asnprintf-tests: Likewise.
52289         * modules/unistdio/u32-vasnprintf-tests: Likewise.
52290         * modules/unistdio/u32-vasprintf-tests: Likewise.
52291         * modules/unistdio/u32-vsnprintf-tests: Likewise.
52292         * modules/unistdio/u32-vsprintf-tests: Likewise.
52293         * modules/unistdio/ulc-asnprintf-tests: Likewise.
52294         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
52295         * modules/unistdio/ulc-vasprintf-tests: Likewise.
52296         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
52297         * modules/unistdio/ulc-vsprintf-tests: Likewise.
52298         * modules/unistr/u8-check-tests: Likewise.
52299         * modules/unistr/u8-chr-tests: Likewise.
52300         * modules/unistr/u8-cmp-tests: Likewise.
52301         * modules/unistr/u8-cmp2-tests: Likewise.
52302         * modules/unistr/u8-cpy-alloc-tests: Likewise.
52303         * modules/unistr/u8-cpy-tests: Likewise.
52304         * modules/unistr/u8-mblen-tests: Likewise.
52305         * modules/unistr/u8-mbsnlen-tests: Likewise.
52306         * modules/unistr/u8-mbtouc-tests: Likewise.
52307         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
52308         * modules/unistr/u8-mbtoucr-tests: Likewise.
52309         * modules/unistr/u8-move-tests: Likewise.
52310         * modules/unistr/u8-next-tests: Likewise.
52311         * modules/unistr/u8-prev-tests: Likewise.
52312         * modules/unistr/u8-set-tests: Likewise.
52313         * modules/unistr/u8-stpcpy-tests: Likewise.
52314         * modules/unistr/u8-stpncpy-tests: Likewise.
52315         * modules/unistr/u8-strcat-tests: Likewise.
52316         * modules/unistr/u8-strcmp-tests: Likewise.
52317         * modules/unistr/u8-strcoll-tests: Likewise.
52318         * modules/unistr/u8-strcpy-tests: Likewise.
52319         * modules/unistr/u8-strdup-tests: Likewise.
52320         * modules/unistr/u8-strlen-tests: Likewise.
52321         * modules/unistr/u8-strmblen-tests: Likewise.
52322         * modules/unistr/u8-strmbtouc-tests: Likewise.
52323         * modules/unistr/u8-strncat-tests: Likewise.
52324         * modules/unistr/u8-strncmp-tests: Likewise.
52325         * modules/unistr/u8-strncpy-tests: Likewise.
52326         * modules/unistr/u8-strnlen-tests: Likewise.
52327         * modules/unistr/u8-to-u16-tests: Likewise.
52328         * modules/unistr/u8-to-u32-tests: Likewise.
52329         * modules/unistr/u8-uctomb-tests: Likewise.
52330         * modules/unistr/u16-check-tests: Likewise.
52331         * modules/unistr/u16-chr-tests: Likewise.
52332         * modules/unistr/u16-cmp-tests: Likewise.
52333         * modules/unistr/u16-cmp2-tests: Likewise.
52334         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52335         * modules/unistr/u16-cpy-tests: Likewise.
52336         * modules/unistr/u16-mblen-tests: Likewise.
52337         * modules/unistr/u16-mbsnlen-tests: Likewise.
52338         * modules/unistr/u16-mbtouc-tests: Likewise.
52339         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52340         * modules/unistr/u16-mbtoucr-tests: Likewise.
52341         * modules/unistr/u16-move-tests: Likewise.
52342         * modules/unistr/u16-next-tests: Likewise.
52343         * modules/unistr/u16-prev-tests: Likewise.
52344         * modules/unistr/u16-set-tests: Likewise.
52345         * modules/unistr/u16-stpcpy-tests: Likewise.
52346         * modules/unistr/u16-stpncpy-tests: Likewise.
52347         * modules/unistr/u16-strcat-tests: Likewise.
52348         * modules/unistr/u16-strcmp-tests: Likewise.
52349         * modules/unistr/u16-strcoll-tests: Likewise.
52350         * modules/unistr/u16-strcpy-tests: Likewise.
52351         * modules/unistr/u16-strdup-tests: Likewise.
52352         * modules/unistr/u16-strlen-tests: Likewise.
52353         * modules/unistr/u16-strmblen-tests: Likewise.
52354         * modules/unistr/u16-strmbtouc-tests: Likewise.
52355         * modules/unistr/u16-strncat-tests: Likewise.
52356         * modules/unistr/u16-strncmp-tests: Likewise.
52357         * modules/unistr/u16-strncpy-tests: Likewise.
52358         * modules/unistr/u16-strnlen-tests: Likewise.
52359         * modules/unistr/u16-to-u32-tests: Likewise.
52360         * modules/unistr/u16-to-u8-tests: Likewise.
52361         * modules/unistr/u16-uctomb-tests: Likewise.
52362         * modules/unistr/u32-check-tests: Likewise.
52363         * modules/unistr/u32-chr-tests: Likewise.
52364         * modules/unistr/u32-cmp-tests: Likewise.
52365         * modules/unistr/u32-cmp2-tests: Likewise.
52366         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52367         * modules/unistr/u32-cpy-tests: Likewise.
52368         * modules/unistr/u32-mblen-tests: Likewise.
52369         * modules/unistr/u32-mbsnlen-tests: Likewise.
52370         * modules/unistr/u32-mbtouc-tests: Likewise.
52371         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52372         * modules/unistr/u32-mbtoucr-tests: Likewise.
52373         * modules/unistr/u32-move-tests: Likewise.
52374         * modules/unistr/u32-next-tests: Likewise.
52375         * modules/unistr/u32-prev-tests: Likewise.
52376         * modules/unistr/u32-set-tests: Likewise.
52377         * modules/unistr/u32-stpcpy-tests: Likewise.
52378         * modules/unistr/u32-stpncpy-tests: Likewise.
52379         * modules/unistr/u32-strcat-tests: Likewise.
52380         * modules/unistr/u32-strcmp-tests: Likewise.
52381         * modules/unistr/u32-strcoll-tests: Likewise.
52382         * modules/unistr/u32-strcpy-tests: Likewise.
52383         * modules/unistr/u32-strdup-tests: Likewise.
52384         * modules/unistr/u32-strlen-tests: Likewise.
52385         * modules/unistr/u32-strmblen-tests: Likewise.
52386         * modules/unistr/u32-strmbtouc-tests: Likewise.
52387         * modules/unistr/u32-strncat-tests: Likewise.
52388         * modules/unistr/u32-strncmp-tests: Likewise.
52389         * modules/unistr/u32-strncpy-tests: Likewise.
52390         * modules/unistr/u32-strnlen-tests: Likewise.
52391         * modules/unistr/u32-to-u16-tests: Likewise.
52392         * modules/unistr/u32-to-u8-tests: Likewise.
52393         * modules/unistr/u32-uctomb-tests: Likewise.
52394         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52395         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52396         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52397         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52398         * modules/uniwidth/u8-strwidth-tests: Likewise.
52399         * modules/uniwidth/u8-width-tests: Likewise.
52400         * modules/uniwidth/u16-strwidth-tests: Likewise.
52401         * modules/uniwidth/u16-width-tests: Likewise.
52402         * modules/uniwidth/u32-strwidth-tests: Likewise.
52403         * modules/uniwidth/u32-width-tests: Likewise.
52404         * modules/uniwidth/width-tests: Likewise.
52406 2010-05-18  Richard Jones  <rjones@redhat.com>
52408         doc: users.txt: list hivex
52409         * users.txt: Add hivex.
52411 2010-05-18  Richard Jones  <rjones@redhat.com>
52413         doc: users.txt: list febootstrap
52414         * users.txt: Add febootstrap.
52416 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52418         bootstrap: fix an error when gnulib is not used as a git submodule
52419         * build-aux/bootstrap (gnulib_path): If its length is zero then
52420         assign "gnulib" to it.
52421         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52423 2010-05-16  Bruno Haible  <bruno@clisp.org>
52425         Avoid autoconf warnings about AM_ICONV.
52426         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52427         2.64.
52429 2010-05-16  Bruno Haible  <bruno@clisp.org>
52431         absolute-header: Make the macro usable in more situations.
52432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52433         from gl_ABSOLUTE_HEADER.
52434         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52436 2010-05-16  James Youngman  <jay@gnu.org>
52438         doc: update users.txt
52439         * users.txt: Add CSSC.
52441 2010-05-16  Jim Meyering  <meyering@redhat.com>
52443         init.sh: fix an error in the previous change; add more comments
52444         * tests/init.sh: Compare exit code in loop against 9, not 2.
52445         Patch by Bruno Haible.
52446         Make the two tests more similar by adding an empty "then" clause.
52447         Add comments.
52449         init.sh: avoid unnecessary shell re-exec
52450         * tests/init.sh: Improve the re-exec-required check to first test the
52451         current shell.  If it passes the test, do not search for a shell that
52452         does pass, and do not re-exec.  This test is particularly contorted to
52453         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52454         of $(...) evokes a syntax error and causes immediate shell exit with
52455         status 2.  Bruno Haible reported that the re-exec made it impossible
52456         to single-step through any init.sh-using script.
52458 2010-05-16  Bruno Haible  <bruno@clisp.org>
52460         Fix collision between gnulib's and libintl's printf replacements.
52461         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52462         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52463         (printf): When using GNU C, map the __printf__ function to rpl_printf
52464         via __asm__. When not using GNU C, define rpl_printf instead of
52465         __printf__.
52466         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52467         commit.
52468         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52469         commit.
52470         * m4/asm-underscore.m4: New file.
52471         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52472         * modules/stdio (Files): Add m4/asm-underscore.m4.
52473         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52474         Reported by Ben Pfaff.
52476 2010-05-16  Bruno Haible  <bruno@clisp.org>
52478         verify: Avoid skipping the test on openSUSE 11.0.
52479         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52481 2010-05-13  Bruno Haible  <bruno@clisp.org>
52483         Avoid useless warnings from G++.
52484         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52485         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52488 2010-05-11  Jim Meyering  <meyering@redhat.com>
52490         maint.mk: tweak preceding change
52491         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52492         regexps tighter by anchoring at EOL, and make the new group "shy"
52493         for slightly decreased overhead.
52495 2010-05-11  Eric Blake  <eblake@redhat.com>
52497         maint.mk: gnulib doesn't guarantee NSIG
52498         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52500 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52502         test-pwrite.c: Remove unused variable declaration.
52503         * tests/test-pwrite.c (main): Remove read_buf declaration.
52505         Remove useless test-pwrite.sh file.
52506         * tests/test-pwrite.sh: Delete file.
52507         * modules/pwrite-tests: Remove references.
52508         Reported by Bruno Haible.
52510 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52512         init.sh: fix a typo
52513         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52515 2010-05-10  Jim Meyering  <meyering@redhat.com>
52517         maint.mk: avoid using a temporary file in the always-defined-macros check
52518         * top/maint.mk (.re-defmac): Remove rule.
52519         (gl_trap_): Remove definition.
52520         (sc_prohibit_always-defined_macros): Rewrite not to create and
52521         depend on a temporary file.  Instead, depend on GNU grep's ability
52522         to read a list of regular expressions from stdin when given "-f -".
52524 2010-05-09  Bruno Haible  <bruno@clisp.org>
52526         Update to GNU gettext 0.18, part 1.
52527         * m4/gettext.m4: Update to GNU gettext 0.18.
52528         * m4/intl.m4: Likewise.
52529         * m4/po.m4: Likewise.
52530         * modules/gettext (Files): Add m4/fcntl-o.m4.
52531         (configure.ac): Require gettext infrastructure from version 0.18.
52533 2010-05-09  Jim Meyering  <meyering@redhat.com>
52535         init.sh: enable MALLOC_PERTURB_
52536         * tests/init.sh: Enable glibc's malloc-perturbing option.
52538         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52539         With my recent change in init.sh from the two-line form:
52540             -#   : ${srcdir=.}
52541             -#   . "$srcdir/init.sh"; path_prepend_ .
52542             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52543         I noticed that using the one-line form would cause this test
52544         to fail with a false-positive, or to stop working altogether,
52545         depending on whether help-version changed or all the tests did.
52546         * top/maint.mk (_hv_regex): Remove this definition.
52547         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52548         (_hv_regex_strong): Use a stronger regex to check for conformance.
52549         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52550         Give a separate diagnostic for lack of conforming use.
52552         maint.mk: prohibit definition of symbols defined by gnulib
52553         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52554         definition of symbols defined by gnulib.
52556 2010-05-09  Bruno Haible  <bruno@clisp.org>
52558         acl: Avoid test failure on Cygwin-hosted mingw.
52559         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52561 2010-05-09  Bruno Haible  <bruno@clisp.org>
52563         error: Use system's fcntl function.
52564         * lib/error.c (fcntl): Undefine.
52566 2010-05-09  Jim Meyering  <meyering@redhat.com>
52568         verify: adjust formatting to be more consistent
52569         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52570         argument-list '('s, and after one comma.
52572 2010-05-09  Bruno Haible  <bruno@clisp.org>
52574         error: More reliable output on mingw.
52575         * lib/error.c: Include <windows.h>.
52576         (is_open): New function.
52577         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52578         defined.
52580 2010-05-09  Bruno Haible  <bruno@clisp.org>
52582         vasnprintf: Fix syntax errors in libintl build on mingw.
52583         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52584         pad_ourselves and prec_ourselves after use.
52586 2010-05-08  Bruno Haible  <bruno@clisp.org>
52588         * lib/config.charset: Update comments for Cygwin 1.7.
52589         * lib/localcharset.c: Likewise.
52591 2010-05-07  Jim Meyering  <meyering@redhat.com>
52593         init.sh: improve comments
52594         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52595         . "${srcdir=.}/init.sh"; path_prepend_ .
52596         Add a note about path_prepend_ and the alternative of using
52597         TESTS_ENVIRONMENT.
52599 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52601         exclude: Unescape hashed patterns in wildcard mode.
52602         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52603         to the hash list.
52604         * tests/test-exclude8.sh: New test case.
52605         * modules/exclude-tests: Add new test.
52607 2010-05-05  Eric Blake  <eblake@redhat.com>
52609         verify: automate tests
52610         * modules/verify-tests: New module.
52611         * tests/test-verify.sh: New file.
52612         * tests/test-verify.c: Guard each negative test with a unique id.
52613         Also avoid warning about unused left hand of comma expressions.
52615 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52617         Further improvements to verify.h, suggested by Eric Blake.
52618         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52619         the GL_* versions, to avoid collision with OpenGL.
52620         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52621         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52622         than testing merely whether it's defined.
52624         Modify verify.h to pacify gcc -Wredundant_decls.
52625         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52626         These use the prefix "GL_" since they're likely to be useful elsewhere.
52627         We may need to break them out into a different .h file.
52628         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52629         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52630         of verify_function__.
52632 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52634         Tests for module pwrite.
52635         * modules/pwrite-tests: New file.
52636         * tests/test-pwrite.sh: New file.
52637         * tests/test-pwrite.c: New file.
52639         New module pwrite.
52640         * lib/unistd.in.h (pwrite): New declaration.
52641         * lib/pwrite.c: New file, from glibc with modifications.
52642         * m4/pwrite.m4: New file.
52643         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52644         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52645         REPLACE_PWRITE.
52646         * modules/pwrite: New file.
52647         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52648         REPLACE_PWRITE.
52649         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52650         * doc/posix-functions/pwrite.texi: Mention the new module.
52652 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52654         pread: Update documentation.
52655         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52657 2010-05-04  Eric Blake  <eblake@redhat.com>
52659         docs: update cygwin progress
52660         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52661         this bug.
52662         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52663         Added in cygwin 1.7.2.
52664         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52665         Likewise.
52666         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52667         Likewise.
52668         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52669         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52670         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52671         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52672         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52673         Mention nproc module.
52674         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52675         bug in cygwin 1.7.5 addition.
52676         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52677         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52678         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52679         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52680         1.7.5.
52681         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52682         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52683         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52684         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52685         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52686         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52687         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52688         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52689         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52690         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52691         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52692         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52693         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52694         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52695         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52696         Likewise.
52697         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52698         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52699         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52700         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52701         Likewise.
52702         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52703         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52704         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52705         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52706         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52707         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52708         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52709         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52710         Likewise.
52711         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52712         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52713         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52714         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52715         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52716         Likewise.
52717         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52718         Likewise.
52719         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52720         Likewise.
52721         * doc/glibc-functions/xdrrec_endofrecord.texi
52722         (xdrrec_endofrecord): Likewise.
52723         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52724         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52725         Likewise.
52726         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52727         Likewise.
52729 2010-05-04  Jim Meyering  <meyering@redhat.com>
52731         gendocs.sh: make its "-s FILE" option more useful
52732         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52733         $PACKAGE to reflect the probably-different basename of "FILE".
52735 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52737         bootstrap: don't ignore download_po_files failure
52738         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52739         failure.
52741 2010-05-03  Jim Meyering  <meyering@redhat.com>
52743         maint.mk: allow to pass options to gendocs.sh
52744         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52745         (gendocs_options_): New overridable variable.
52747         gnu-web-doc-update: don't ignore configure or build failure
52748         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52750         announce-gen: backslash-escape '@'s in --help output
52751         * build-aux/announce-gen: Fix syntax errors.
52753         maint.mk, announce-gen: allow project-specific announcement mail headers
52754         * top/maint.mk (translation_project_): Define default.
52755         (announcement_Cc_, announcement_mail_headers_): Likewise.
52756         (announcement): Invoke announce-gen with new --mail-headers option.
52757         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52759         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52760         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52761         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52762         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52763         line in the "err2" output file when running "make check" in verbose
52764         mode (i.e., with set -x enabled).
52766 2010-05-03  Bruno Haible  <bruno@clisp.org>
52768         wctob: Fix for weird platforms.
52769         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52770         argument value.
52772 2010-05-03  Jim Meyering  <meyering@redhat.com>
52774         maint.mk: prohibit unwarranted use of <strings.h>
52775         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52776         strings.h in a file that does not also use strcasecmp, strncasecmp,
52777         ffs or ffsll.
52779         maint.mk: remove obsolete comments
52780         * top/maint.mk: Remove stale, commented-out rules.
52782 2010-05-02  Bruno Haible  <bruno@clisp.org>
52784         wcwidth: Declare also when it's aliased.
52785         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52786         macro.
52788 2010-05-02  Bruno Haible  <bruno@clisp.org>
52790         Fix regression from 2010-04-25.
52791         * gnulib-tool (func_modules_transitive_closure): Check the status of
52792         all modules, not only of the tests that are of the form foo-tests where
52793         foo is a module.
52795 2010-05-02  Bruno Haible  <bruno@clisp.org>
52797         wctob: Work around nasty Cygwin 1.7.2 bug.
52798         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52799         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52801 2010-05-01  Bruno Haible  <bruno@clisp.org>
52803         fpurge: Sharper test.
52804         * tests/test-fpurge.c (main): Add one more ftell check.
52805         * modules/fpurge-tests (Depends-on): Add ftell.
52806         Suggested by Eric Blake.
52808 2010-05-01  Bruno Haible  <bruno@clisp.org>
52810         ftello: Another test.
52811         * tests/test-ftello3.c: New file.
52812         * modules/ftello-tests (Files): Add it.
52813         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52814         MOSTLYCLEANFILES.
52816         ftell: Another test.
52817         * tests/test-ftell3.c: New file.
52818         * modules/ftell-tests (Files): Add it.
52819         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52820         MOSTLYCLEANFILES.
52822 2010-05-01  Bruno Haible  <bruno@clisp.org>
52824         ftell, ftello: Work around Solaris bug.
52825         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52826         * lib/ftello.c: Include stdio-impl.h.
52827         (ftello): On Solaris, when _IOWRT is set, compute the result without
52828         looking at _IOREAD.
52829         * modules/ftello (Files): Add lib/stdio-impl.h.
52830         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52831         * doc/posix-functions/ftello.texi: Likewise.
52832         Reported by Eric Blake.
52834 2010-05-01  Bruno Haible  <bruno@clisp.org>
52836         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52837         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52838         the _IOWRT flag is also set.
52840 2010-05-01  Bruno Haible  <bruno@clisp.org>
52842         Fix doc about a HP-UX stdio bug.
52843         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52844         * doc/posix-functions/ftello.texi: Likewise.
52846 2010-05-01  Bruno Haible  <bruno@clisp.org>
52848         lseek test: Fix failure on Solaris.
52849         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52850         output.
52852 2010-04-30  Jim Meyering  <meyering@redhat.com>
52854         bootstrap: don't ignore failure to generate po*/Makevars
52855         * build-aux/bootstrap (with_gettext): Don't ignore failure
52856         to create po/Makevars or runtime-po/Makevars.
52858 2010-04-29  Eric Blake  <eblake@redhat.com>
52860         headers: relax license to LGPLv2+
52861         * modules/fcntl-h (License): Relax license.
52862         * modules/getopt-posix (License): Likewise.
52863         * modules/locale (License): Likewise.
52864         * modules/math (License): Likewise.
52865         * modules/pty (License): Likewise.
52866         * modules/sched (License): Likewise.
52867         * modules/search (License): Likewise.
52868         * modules/spawn (License): Likewise.
52869         * modules/stdarg (License): Likewise.
52870         * modules/sysexits (License): Likewise.
52872 2010-04-29  Jim Meyering  <meyering@redhat.com>
52874         inttypes: relax license to LGPLv2+
52875         * modules/inttypes (License): Relax license.
52877 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52879         * top/maint.mk (indent): Run twice to produce idempotent results.
52881 2010-04-28  Bruno Haible  <bruno@clisp.org>
52883         getdate: Generate getdate.c in the source directory.
52884         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52885         MOSTLYCLEANFILES.
52886         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52888 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52890         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52891         is not declared as a const *; avoid warnings in that case.
52893 2010-04-28  Eric Blake  <eblake@redhat.com>
52895         canonicalize-lgpl: avoid compiler warning
52896         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52897         declaration' / 'extraneous semicolon' warning with some compilers.
52898         Reported by Andreas Gruenbacher.
52900 2010-04-28  Jim Meyering  <meyering@redhat.com>
52902         init.sh: ensure a more reliable exit status when exiting via trap
52903         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52904         Inspired by patches from Dmitry V. Levin.
52905         Also trap on signal 3 (SIGQUIT).
52907 2010-04-27  Bruno Haible  <bruno@clisp.org>
52909         Update doc about utimes().
52910         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52911         'utimens' module.
52912         Reported by Andreas Gruenbacher <agruen@suse.de>.
52914 2010-04-27  Eric Blake  <eblake@redhat.com>
52916         full-read, full-write: relax license
52917         * modules/full-read (License): Drop to LGPLv2+.
52918         * modules/full-write (License): Likewise.
52919         * modules/safe-read (License): Likewise.
52920         * modules/safe-write (License): Likewise.
52922         pthread: mention library for linking
52923         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52925 2010-04-27  Jim Meyering  <meyering@redhat.com>
52927         maint.mk: fix a bug introduced in last change
52928         * top/maint.mk (gl_assured_headers_): Now that all names are on
52929         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52930         is not anchored to end of word, it should be adequate.
52932         maint.mk: avoid side-effect in latest syntax-check
52933         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52934         to run commands via $(shell...), and hence to incur cost only when
52935         the new rule is actually run.
52937         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52938         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52939         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52940         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52941         (gl_assured_headers_, az_, AZ_): Define.
52942         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52944 2010-04-26  Jim Meyering  <jim@meyering.net>
52945             Bruno Haible  <bruno@clisp.org>
52947         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52948         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52949         Prompted by an exchange with Gilles Espinasse.
52951 2010-04-26  Jim Meyering  <meyering@redhat.com>
52953         git-version-gen: aesthetic tweak
52954         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52955         so that the command remains on a single line.
52957 2010-04-26  Eric Blake  <eblake@redhat.com>
52959         git-version-gen: allow use on EBCDIC hosts
52960         * build-aux/git-version-gen (dirty): Use literal rather than tying
52961         ourselves to ascii.
52962         Reported by Steve Goetze.
52964 2010-04-25  Bruno Haible  <bruno@clisp.org>
52966         netdb: Add support for GNULIB_POSIXCHECK.
52967         * lib/netdb.in.h: Include warn-on-use.h.
52968         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52969         functions are used when GNULIB_POSIXCHECK is defined and the
52970         getaddrinfo module is not in use.
52971         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52972         freeaddrinfo, gai_strerror, getnameinfo are declared.
52973         * modules/netdb (Depends-on): Add warn-on-use.
52974         (Makefile.am): Include warn-on-use.h in netdb.h.
52976 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52978         build: avoid "make check" failure without .git/ directory
52979         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52980         there is no .git/ directory.
52982 2010-04-25  Bruno Haible  <bruno@clisp.org>
52984         ptsname: Fix misuse of ttyname_r.
52985         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52986         of errno.
52988 2010-04-25  Bruno Haible  <bruno@clisp.org>
52990         ttyname_r: Make it work on Solaris 10.
52991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52992         if the system function has the POSIX declaration. Test whether the
52993         function fails if the buffer is less than 128 bytes large.
52994         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52995         system's ttyname_r function. Provide a reasonably large buffer.
52996         * modules/ttyname_r (Depends-on): Add extensions.
52997         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52999 2010-04-25  Bruno Haible  <bruno@clisp.org>
53001         Use the 'extensions' module for some more functions on Solaris.
53002         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
53003         module.
53004         * doc/posix-functions/ctime_r.texi: Likewise.
53005         * doc/posix-functions/getgrgid_r.texi: Likewise.
53006         * doc/posix-functions/getgrnam_r.texi: Likewise.
53007         * doc/posix-functions/getpwnam_r.texi: Likewise.
53008         * doc/posix-functions/getpwuid_r.texi: Likewise.
53009         * doc/posix-functions/readdir_r.texi: Likewise.
53010         * doc/posix-functions/sigwait.texi: Likewise.
53011         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
53012         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
53014 2010-04-25  Bruno Haible  <bruno@clisp.org>
53016         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
53017         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
53018         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
53019         * lib/ttyname_r.c: Include <limits.h>.
53020         (ttyname_r): Define using the system's ttyname_r function, if it exists
53021         and not on Solaris.
53022         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
53023         set.
53024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
53025         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
53026         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
53027         Reported by Simon Josefsson.
53029 2010-04-25  Bruno Haible  <bruno@clisp.org>
53031         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
53032         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
53033         * doc/posix-functions/ctime_r.texi: Likewise.
53034         * doc/posix-functions/getgrgid_r.texi: Likewise.
53035         * doc/posix-functions/getgrnam_r.texi: Likewise.
53036         * doc/posix-functions/getlogin_r.texi: Likewise.
53037         * doc/posix-functions/getpwnam_r.texi: Likewise.
53038         * doc/posix-functions/getpwuid_r.texi: Likewise.
53039         * doc/posix-functions/readdir_r.texi: Likewise.
53040         * doc/posix-functions/sigwait.texi: Likewise.
53041         * doc/posix-functions/ttyname_r.texi: Likewise.
53042         Reported by Simon Josefsson.
53044 2010-04-25  Bruno Haible  <bruno@clisp.org>
53046         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
53047         * gnulib-tool (func_usage): Document that --with-*-tests options apply
53048         also to --create-testdir.
53049         (func_acceptable): Don't consider the status of *-tests modules here.
53050         (func_modules_transitive_closure): Consider it here, before including a
53051         test module.
53052         (func_import, func_create_testdir): Set inc_all_direct_tests,
53053         inc_all_indirect_tests.
53054         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
53055         --create-testdir and --create-megatestdir.
53057 2010-04-25  Bruno Haible  <bruno@clisp.org>
53059         gnulib-tool: Add --without-*-tests options.
53060         * gnulib-tool (func_usage): Document the --without-*-tests options.
53061         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
53062         excl_unportable_tests): New variables.
53063         Fail if they are specified with --import or --update.
53064         (func_acceptable): Respect the excl_*_tests variables.
53065         (func_import): Set the excl_*_tests variables to empty.
53067 2010-04-25  Simon Josefsson  <simon@josefsson.org>
53068             Bruno Haible  <bruno@clisp.org>
53070         Work around a MacOS X 10.4 bug with openpty.
53071         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
53072         * tests/test-openpty.c (main): Close the master side explicitly.
53074 2010-04-25  Bruno Haible  <bruno@clisp.org>
53076         strnlen: Fix a C++ test error on MacOS X and Solaris.
53077         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
53078         the function is not declared.
53079         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
53080         Simon Josefsson.
53082 2010-04-24  Bruno Haible  <bruno@clisp.org>
53084         Avoid a gcc warning.
53085         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
53086         of correct type for %08lx directive.
53087         Reported by Eric Blake.
53089 2010-04-24  Bruno Haible  <bruno@clisp.org>
53091         vasnprintf: Correct errno value in case of out-of-memory.
53092         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
53093         or sprintf. Use the errno value from SNPRINTF or sprintf.
53094         Reported by Ian Beckwith <ianb@erislabs.net>.
53096 2010-04-24  Bruno Haible  <bruno@clisp.org>
53098         ansi-c++-opt: Find correct compiler when cross-compiling.
53099         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
53100         AC_CHECK_PROGS.
53101         Reported by Simon Josefsson.
53103 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
53105         vc-list-files: Add support for subversion
53106         * build-aux/vc-list-files: Use "svn list" to generate the list of
53107         files controlled by subversion.
53109 2010-04-23  Jim Meyering  <meyering@redhat.com>
53111         vc-list-files tests: convert to use init.sh
53112         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
53113         path_prepend_.
53114         Use Exit, not exit.
53115         Use skip_ rather than open coding it.
53116         Remove trap set-up and compare definitions.
53117         * tests/test-vc-list-files-git.sh: Likewise.
53118         * modules/vc-list-files-tests (Files): Add tests/init.sh.
53120 2010-04-22  Simon Josefsson  <simon@josefsson.org>
53122         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
53123         backup files.
53125 2010-04-21  Simon Josefsson  <simon@josefsson.org>
53127         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
53129 2010-04-20  Eric Blake  <eblake@redhat.com>
53131         tests: be robust to ignored SIGPIPE
53132         * tests/test-select-in.sh: Consume all output.
53133         * tests/test-lseek.sh: Check correct exit status, while avoiding
53134         EPIPE.
53136 2010-04-20  Simon Josefsson  <simon@josefsson.org>
53137             Bruno Haible  <bruno@clisp.org>
53139         visibility: Don't use -fvisibility if it leads to a warning.
53140         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
53141         yes, don't pretend that visibility works if it leads to a warning.
53142         Reported by Mike Gran <spk121@yahoo.com>.
53144 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
53146         * build-aux/bootstrap: Use "git -h" for testing for supported options
53147         instead of "git --help".  The short-form option only shows a summary,
53148         and doesn't layout the full man page.  Grep for the full option name
53149         in the summary, too.
53151 2010-04-19  Bruno Haible  <bruno@clisp.org>
53153         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
53154         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
53155         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
53156         mention of RELOCATABLE_STRIP.
53157         Reported by Sylvain Beucler <beuc@beuc.net>.
53159 2010-04-19  Bruno Haible  <bruno@clisp.org>
53161         * lib/diffseq.h: Fix typo in comment.
53162         Reported by Eric Blake.
53164 2010-04-19  Bruno Haible  <bruno@clisp.org>
53166         ioctl: Move autoconf macro to a .m4 file.
53167         * m4/ioctl.m4: New file, extracted from modules/ioctl.
53168         * modules/ioctl (Files): Add it.
53169         (configure.ac): Simply invoke gl_FUNC_IOCTL.
53170         Reported by Ian Beckwith <ianb@erislabs.net>.
53172 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
53173             Bruno Haible  <bruno@clisp.org>
53175         diffseq: Accommodate use-case with abstract arrays.
53176         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
53177         is not defined.
53178         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
53179         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
53181 2010-04-18  Bruno Haible  <bruno@clisp.org>
53183         * doc/posix-headers/stdbool.texi: More precise wording.
53185 2010-04-17  Jim Meyering  <meyering@redhat.com>
53187         maint.mk: use gnu-style indentation in an embedded perl script
53188         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
53189         Rename variable: s/two/last_two_bytes/
53191 2010-04-16  Eric Blake  <eblake@redhat.com>
53193         test-stdbool: skip test that fails with Solaris CC
53194         * tests/test-stdbool.c (f): Skip test that causes compilation
53195         error under buggy C++ compiler.
53196         * lib/stdbool.in.h: Document the limitation.
53197         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
53199         setenv: allow compilation with C++
53200         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
53201         register keyword.
53203         stdint: allow test to pass with C++
53204         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
53206         getopt: allow compilation with C++
53207         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
53208         struct.
53209         * lib/getopt.c (_getopt_internal_r): Use correct type.
53210         Reported by Dagobert Michelson, via Joel E. Denny.
53212 2010-04-16  Bruno Haible  <bruno@clisp.org>
53214         Override netdb.h always.
53215         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
53216         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
53217         Reported by Ludovic Courtès <ludo@gnu.org>.
53219 2010-04-15  Bruno Haible  <bruno@clisp.org>
53221         openpty: Fix mistake from 2010-03-21.
53222         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
53223         Reported by Simon Josefsson.
53225 2010-04-15  Eric Blake  <eblake@redhat.com>
53227         test-forkpty: fix expected signature
53228         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
53229         Reported by Simon Josefsson.
53231 2010-04-15  Jim Meyering  <meyering@redhat.com>
53233         maint.mk: texinfo_suffix_re_: correct the default regexp
53234         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
53236         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
53237         make it configurable via texinfo_suffix_re_.
53239 2010-04-14  Eric Blake  <eblake@redhat.com>
53241         strtok_r: relax license to LGPLv2+
53242         * modules/strtok_r (License): Relax license.
53243         Reported by Matthias Bolte.
53245 2010-04-14  Simon Josefsson  <simon@josefsson.org>
53247         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
53248         version 1.4.4 by default instead of requiring the libgcrypt
53249         version used during build.  This makes it possible to use the
53250         application with older but still binary compatible libgcrypt
53251         versions.
53253 2010-04-13  Eric Blake  <eblake@redhat.com>
53255         getopt-gnu: match recent glibc fixes and posix ruling
53256         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
53257         '+' handling, when requesting extensions.
53258         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
53259         'W;' handling.
53260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
53261         * doc/posix-functions/getopt.texi (getopt): Document this.
53262         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53263         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53264         Likewise.
53266         getopt: merge bug fixes from glibc
53267         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
53268         diagnostics.  Honor '+:' correctly.  Reject ';'.
53270         getopt-posix: detect MacOS bug
53271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
53272         optind when missing a required argument.
53273         * doc/posix-functions/getopt.texi (getopt): Document the bug.
53274         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53275         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53276         Likewise.
53278         getopt-posix: avoid spurious failure on Solaris
53279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
53280         an indicator that setting optind=1 is sufficient for reset.
53282         getopt-posix: avoid spurious failure on FreeBSD
53283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
53284         in POSIX mode, since the m4 test uses it.
53286         gnulib-tool: silence warning on BSD sh
53287         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
53289 2010-04-13  Jim Meyering  <meyering@redhat.com>
53291         doc: users.txt: GNU patch now uses gnulib
53292         * users.txt: Add patch.
53294 2010-04-12  Jim Meyering  <meyering@redhat.com>
53296         maint.mk: generate more concise timing data for syntax-check rules
53297         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
53298         " done" from each line that reports a syntax-check test duration.
53300 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
53302         git-version-gen: use "git update-index..." rather than "git status"
53303         * build-aux/git-version-gen: Use git update-index --refresh, not
53304         "git status".  With some versions of git, "git status" would fail
53305         to update the index and result in an unwarranted "-dirty" suffix.
53307 2010-04-11  Jim Meyering  <meyering@redhat.com>
53309         openat: correct formatting (no semantic change)
53310         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
53311         Suggested by Bruno Haible.
53313 2010-04-11  Bruno Haible  <bruno@clisp.org>
53315         Stricter declaration checking in testdirs.
53316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53317         If for_tests is true, augment AM_CPPFLAGS to define
53318         GNULIB_STRICT_CHECKING.
53319         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
53320         GNULIB_STRICT_CHECKING is defined, verify that the function is
53321         declared.
53323 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
53324             Bruno Haible  <bruno@clisp.org>
53326         libunistring: Improve configure output.
53327         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
53328         Don't say "consider installing GNU libunistring" when checking again
53329         with libiconv.
53331 2010-04-11  Bruno Haible  <bruno@clisp.org>
53333         libunistring: Correct value of $LTLIBUNISTRING.
53334         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53335         correct the value of $LTLIBUNISTRING.
53337 2010-04-11  Bruno Haible  <bruno@clisp.org>
53339         havelib: Add static libraries to LIBS in the right order.
53340         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53341         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53343 2010-04-11  Bruno Haible  <bruno@clisp.org>
53345         libunistring: Detect libunistring also when it depends on libiconv.
53346         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53347         the second AC_LIB_HAVE_LINKFLAGS invocation.
53349 2010-04-11  James Youngman  <jay@gnu.org>
53351         close-stream: declare local scalars to be "const"
53352         * lib/close-stream.c (close_stream): Make boolean variables const
53353         to document the fact that we set but do not change them.
53355 2010-04-11  Bruno Haible  <bruno@clisp.org>
53357         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53359 2010-04-11  Jim Meyering  <meyering@redhat.com>
53361         maint.mk: don't include dist-check.mk
53362         * top/maint.mk: Remove bogus include directive.
53364         maint.mk: improve empty-line-at-EOF check
53365         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53366         solution, rather than tail+Perl-based one.  The latter would read
53367         a few kilobytes from the end of each file, and did not handle empty
53368         files properly.
53370         maint.mk: print the elapsed time for each syntax-check rule
53371         * top/maint.mk (sc_m_rules_): Save start time in a file.
53372         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53373         (local-check): Interpose the .z rules
53375 2010-04-11  Jim Meyering  <meyering@redhat.com>
53377         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53378         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53379         empty file with one that ends in an empty line.
53381 2010-04-10  Bruno Haible  <bruno@clisp.org>
53383         mkdir: Make it work on mingw64.
53384         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53385         * lib/mkdir.c: Update comment.
53386         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53388 2010-04-10  Bruno Haible  <bruno@clisp.org>
53390         Don't override improved macro from newer autoconf.
53391         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53392         autoconf >= 2.62.
53393         Reported by Joel E. Denny <jdenny@clemson.edu>.
53395 2010-04-10  Jim Meyering  <meyering@redhat.com>
53397         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53398         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53400         maint.mk: correct a diagnostic
53401         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53402         in diagnostic; now use $prohibit.
53404 2010-04-10  Bruno Haible  <address@hidden>
53406         fchownat: Fix a C++ test error on Solaris 8.
53407         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53408         the function does not exist.
53410 2010-04-10  Bruno Haible  <bruno@clisp.org>
53412         vasnprintf: Add more tests.
53413         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53414         (test_function): Test converting an invalid wide string.
53416         vasnprintf: Correct handling of unconvertible wide string arguments.
53417         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53418         VASNPRINTF.
53419         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53420         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53421         smaller than the expected maximum need for the directive. Set errno to
53422         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53423         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53425         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53426         * modules/vasnprintf (Files): Add m4/printf.m4.
53427         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53429 2010-04-10  Bruno Haible  <bruno@clisp.org>
53431         vasnprintf: Fix crash in %ls directive.
53432         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53433         string is passed as argument to %ls, with no precision and no width.
53434         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53436 2010-04-10  Bruno Haible  <bruno@clisp.org>
53438         vasnprintf: Fix multiple test failures on mingw.
53439         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53440         _snprintf, or snwprintf, not _snwprintf.
53442 2010-04-10  Bruno Haible  <bruno@clisp.org>
53444         write: Fix a C++ test error on mingw.
53445         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53447 2010-04-10  Bruno Haible  <bruno@clisp.org>
53449         vasnprintf test: Reduce code duplication.
53450         * tests/test-vasnprintf.c (test_function): New function, extracted from
53451         test_vasnprintf.
53452         (test_vasnprintf, test_asnprintf): Invoke it.
53454 2010-04-10  Bruno Haible  <bruno@clisp.org>
53456         strnlen: Fix warning in C++ mode on MacOS X.
53457         * lib/string.in.h (strnlen): Use the modern idiom.
53458         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53459         defining strnlen as a macro already in <config.h>.
53460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53461         REPLACE_STRNLEN.
53462         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53463         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53465 2010-04-08  James Youngman  <jay@gnu.org>
53467         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53468         the example.
53470 2010-04-09  Jim Meyering  <meyering@redhat.com>
53472         maint.mk: print better diagnostic when there is no $(_hv_file)
53473         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53474         announce that when $(_hv_file) (aka help-version) does not exist.
53476         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53477         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53478         not try to interpret its random input bytes.  Jarno Rajahalme reported
53479         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53480         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53481         (mktempd_): Likewise, just in case.
53483         ftruncate: add two years to projected module removal date: 2012
53484         * m4/ftruncate.m4: Adjust comments.
53486         ftruncate: mark module as obsolete; even MinGW provides it, now
53487         * modules/ftruncate (Status): Obsolete.
53488         (Notice): Say that.
53489         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53490         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53492 2010-04-08  Bruno Haible  <bruno@clisp.org>
53494         Fix side effects from tests-related modules.
53495         * modules/dprintf-posix (Comment): New section.
53496         * modules/fprintf-posix (Comment): Likewise.
53497         * modules/obstack-printf-posix (Comment): Likewise.
53498         * modules/printf-posix (Comment): Likewise.
53499         * modules/snprintf-posix (Comment): Likewise.
53500         * modules/sprintf-posix (Comment): Likewise.
53501         * modules/vasnprintf-posix (Comment): Likewise.
53502         * modules/vasprintf-posix (Comment): Likewise.
53503         * modules/vdprintf-posix (Comment): Likewise.
53504         * modules/vfprintf-posix (Comment): Likewise.
53505         * modules/vprintf-posix (Comment): Likewise.
53506         * modules/vsnprintf-posix (Comment): Likewise.
53507         * modules/vsprintf-posix (Comment): Likewise.
53508         * modules/xprintf-posix (Comment): Likewise.
53509         * modules/xvasprintf-posix (Comment): Likewise.
53510         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53511         * modules/floorf-tests (Depends-on): Likewise.
53512         * modules/round-tests (Depends-on): Likewise.
53513         * modules/roundf-tests (Depends-on): Likewise.
53514         * modules/trunc-tests (Depends-on): Likewise.
53515         * modules/truncf-tests (Depends-on): Likewise.
53516         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53517         'fprintf-posix' module is not present.
53518         * tests/test-floorf2.c (check): Likewise.
53519         * tests/test-trunc2.c (check): Likewise.
53520         * tests/test-truncf2.c (check): Likewise.
53521         * tests/test-round2.c (equal): Likewise.
53522         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53524 2010-04-07  Karl Berry  <karl@gnu.org>
53526         * config/srclist.txt,
53527         * config/srclistvars.sh,
53528         * config/srclist-update: doc fixes.
53530 2010-04-07  Jim Meyering  <meyering@redhat.com>
53532         maint.mk: add a PATH crosschecking syntax-check rule
53533         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53534         Useful if you use a test like the one in help-version (coreutils,
53535         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53536         printed by prog --version.
53538 2010-04-06  Bruno Haible  <bruno@clisp.org>
53540         Fix link error on mingw.
53541         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53542         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53544 2010-04-06  Bruno Haible  <bruno@clisp.org>
53546         Assume rmdir exists.
53547         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53549 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53551         doc: update users.txt
53552         * users.txt: Add gcal.
53554 2010-04-06  Jim Meyering  <meyering@redhat.com>
53556         init.sh: simply unset TMPDIR rather than risking env -i
53557         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53558         although it probably works fine on all Unix-based systems, some
53559         systems (Cygwin?) cannot tolerate a totally cleared environment.
53560         Suggestion from Eric Blake.
53562 2010-04-06  Jim Meyering  <meyering@redhat.com>
53564         init.sh: portability fix: use env's POSIX-specified -i option not -u
53565         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53566         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53568 2010-04-05  Bruno Haible  <bruno@clisp.org>
53570         btowc: Work around Cygwin 1.7.2 bug.
53571         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53572         does not map NUL to 0.
53573         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53575 2010-04-05  Bruno Haible  <bruno@clisp.org>
53577         Make the multithread modules work on Cygwin 1.7.2.
53578         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53579         imported symbols can be declared weak, so that it returns "no" on
53580         Cygwin 1.7.2.
53582 2010-04-05  Bruno Haible  <bruno@clisp.org>
53584         Use the module 'strncat'.
53585         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53587         Tests for module 'strncat'.
53588         * modules/strncat-tests: New file.
53589         * tests/test-strncat.c: New file.
53591         New module 'strncat'.
53592         * lib/string.in.h (strncat): New declaration.
53593         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53594         * m4/strncat.m4: New file, based on m4/memchr.m4.
53595         * modules/strncat: New file.
53596         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53597         is declared.
53598         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53599         REPLACE_STRNCAT.
53600         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53601         REPLACE_STRNCAT.
53602         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53603         module.
53604         * tests/test-string-c++.cc: Check signature of strncat.
53606 2010-04-05  Jim Meyering  <meyering@redhat.com>
53608         xstrtoumax-tests: convert to use init.sh
53609         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53610         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53611         Use Exit, not exit.
53612         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53614         xstrtoimax-tests: convert to use init.sh
53615         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53616         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53617         Use Exit, not exit.
53618         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53620 2010-04-05  Bruno Haible  <bruno@clisp.org>
53622         sys_socket: Avoid #define replacements in C++ mode.
53623         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53624         warning to the function if possible, rather than #defining the symbol
53625         to a dysfunctional alias.
53627 2010-04-05  Bruno Haible  <bruno@clisp.org>
53629         fseeko: Fix C++ test error on mingw.
53630         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53631         gl_FUNC_FSEEKO.
53632         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53633         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53634         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53635         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53637 2010-04-05  Bruno Haible  <bruno@clisp.org>
53639         duplocale: Improve test output.
53640         * tests/test-duplocale.c (main): Print reason for skipped test.
53642 2010-04-05  Bruno Haible  <bruno@clisp.org>
53644         Assume rmdir exists.
53645         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53646         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53648 2010-04-05  Bruno Haible  <bruno@clisp.org>
53650         Fix link error on Solaris 8 with cc.
53651         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53653 2010-04-05  Bruno Haible  <bruno@clisp.org>
53655         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53656         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53658 2010-04-05  Bruno Haible  <bruno@clisp.org>
53660         vasprintf: Update documentation.
53661         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53663 2010-04-05  Bruno Haible  <bruno@clisp.org>
53665         ptsname: Improve test.
53666         * tests/test-ptsname.c (main): Also try the various master names of BSD
53667         systems.
53669 2010-04-05  Bruno Haible  <bruno@clisp.org>
53671         memchr: Avoid a possible C++ test error.
53672         * lib/string.in.h (memchr): Provide declaration if function is missing.
53673         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53674         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53676         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53678 2010-04-05  Bruno Haible  <bruno@clisp.org>
53680         strtok_r: Improve idiom.
53681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53682         AC_LIBOBJ is used.
53684 2010-04-05  Bruno Haible  <bruno@clisp.org>
53686         strdup: Improve idiom.
53687         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53688         AC_LIBOBJ is used.
53689         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53690         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53691         when AC_LIBOBJ is used.
53693 2010-04-05  Bruno Haible  <bruno@clisp.org>
53695         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53696         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53697         don't set REPLACE_MBSINIT to 1.
53698         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53699         don't set REPLACE_MBRTOWC to 1.
53700         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53701         exist, don't set REPLACE_MBSRTOWCS to 1.
53702         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53703         exist, don't set REPLACE_MBSNRTOWCS to 1.
53704         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53705         don't set REPLACE_WCRTOMB to 1.
53706         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53707         exist, don't set REPLACE_WCSRTOMBS to 1.
53708         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53709         exist, don't set REPLACE_WCSNRTOMBS to 1.
53711 2010-04-05  Bruno Haible  <bruno@clisp.org>
53713         ldexpl: Improve idiom.
53714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53715         make sure to set HAVE_DECL_LDEXPL to 0.
53717 2010-04-05  Jim Meyering  <meyering@redhat.com>
53719         xstrtol-tests: convert to use init.sh
53720         * modules/xstrtol-tests (Files): Add tests/init.sh.
53721         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53722         Use Exit, not exit.
53723         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53725         atexit-tests: convert to use init.sh
53726         * modules/atexit-tests (Files): Add tests/init.sh.
53727         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53728         Use Exit, not exit.
53729         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53731         init.sh: fix typo
53732         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53734         init.sh: make it easier for a test script to write to the tty, ...
53735         when using automake's parallel-tests mode.
53736         * tests/init.sh (stderr_fileno_): Define overridable variable.
53737         (warn_): New function, to use it.
53738         (fail_, skip_, framework_failure_): Use warn_.
53740 2010-04-04  Bruno Haible  <bruno@clisp.org>
53742         btowc: Avoid warning.
53743         * lib/btowc.c: Include <stdlib.h>.
53744         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53746 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53747             Bruno Haible  <bruno@clisp.org>
53749         wchar: Port to NetBSD 1.5.
53750         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53751         * lib/wctype.in.h (WEOF): Likewise.
53753 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53754             Bruno Haible  <bruno@clisp.org>
53756         Port extended stdio to NetBSD 1.5.
53757         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53758         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53759         older.
53761 2010-04-04  Bruno Haible  <bruno@clisp.org>
53763         string: Remove unused substitution.
53764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53765         HAVE_DECL_STRERROR.
53766         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53768 2010-04-04  Bruno Haible  <bruno@clisp.org>
53770         strtod: Avoid a possible C++ test error.
53771         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53772         set REPLACE_STRTOD.
53774 2010-04-04  Bruno Haible  <bruno@clisp.org>
53776         strerror: Update documentation.
53777         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53779 2010-04-04  Bruno Haible  <bruno@clisp.org>
53781         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53782         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53783         _GL_CXXALIAS_SYS_CAST.
53785 2010-04-04  Bruno Haible  <bruno@clisp.org>
53787         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53788         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53789         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53790         REPLACE_FREXPL to 1.
53791         * doc/posix-functions/frexpl.texi: Update documentation.
53793 2010-04-04  Bruno Haible  <bruno@clisp.org>
53795         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53796         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53798 2010-04-04  Bruno Haible  <bruno@clisp.org>
53800         Implement nanosleep for native Windows.
53801         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53803 2010-04-04  Bruno Haible  <bruno@clisp.org>
53805         math: Fix some C++ test errors on Solaris 8.
53806         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53808 2010-04-04  Bruno Haible  <bruno@clisp.org>
53810         math: Fix some C++ test errors on Cygwin.
53811         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53812         truncl): Provide declaration if the system does not have it.
53813         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53814         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53815         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53816         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53817         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53818         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53819         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53820         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53821         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53822         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53823         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53824         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53825         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53826         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53827         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53828         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53830         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53831         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53832         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53833         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53834         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53836 2010-04-04  Bruno Haible  <bruno@clisp.org>
53838         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53839         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53840         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53841         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53842         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53843         * m4/isinf.m4 (gl_ISINF): Likewise.
53844         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53846 2010-04-04  Bruno Haible  <bruno@clisp.org>
53848         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53849         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53851 2010-04-04  Bruno Haible  <bruno@clisp.org>
53853         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53854         * modules/tmpfile (configure.ac): Update.
53856         tmpfile: Fix C++ test error on mingw.
53857         * lib/stdio.in.h (tmpfile): New declaration.
53858         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53859         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53860         * modules/tmpfile (Depends-on): Add stdio.
53861         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53862         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53863         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53864         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53865         REPLACE_TMPFILE.
53866         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53868 2010-04-04  Bruno Haible  <bruno@clisp.org>
53870         ioctl: Fix C++ test error on mingw.
53871         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53872         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53873         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53875 2010-04-03  Bruno Haible  <bruno@clisp.org>
53877         wcwidth: Fix C++ test error on mingw.
53878         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53880         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53882 2010-04-03  Bruno Haible  <bruno@clisp.org>
53884         nanosleep: Fix C++ test error on mingw.
53885         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53886         * lib/time.in.h (nanosleep): Use modern idiom.
53887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53888         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53889         REPLACE_NANOSLEEP to 1.
53890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53891         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53893 2010-04-03  Bruno Haible  <bruno@clisp.org>
53895         strptime: Fix C++ test error on mingw.
53896         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53897         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53898         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53899         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53901         not REPLACE_STRPTIME.
53902         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53903         REPLACE_STRPTIME.
53905 2010-04-03  Bruno Haible  <bruno@clisp.org>
53907         timegm: Fix C++ test error on mingw.
53908         * lib/time.in.h (timegm): Use modern idiom.
53909         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53910         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53911         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53912         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53914 2010-04-03  Bruno Haible  <bruno@clisp.org>
53916         timegm: Assume declaration if function exists.
53917         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53918         if it exists. Don't clobber ac_cv_func_timegm.
53920 2010-04-03  Bruno Haible  <bruno@clisp.org>
53922         time_r: Fix C++ test error on mingw.
53923         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53924         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53925         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53926         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53927         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53929 2010-04-03  Bruno Haible  <bruno@clisp.org>
53931         time_r: Minor updates.
53932         * modules/time_r (Description): Mention the provided functions.
53933         * lib/time_r.c: Don't include <string.h>.
53934         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53935         * doc/posix-functions/localtime_r.texi: Likewise.
53937 2010-04-03  Bruno Haible  <bruno@clisp.org>
53939         time: Fix regression introduced on 2010-03-08.
53940         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53941         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53943 2010-04-03  Jim Meyering  <meyering@redhat.com>
53945         maint.mk: don't silently disable project-specific syntax-check rules
53946         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53947         that they need to convert their project-specific syntax-check rules
53948         to use the new _sc_search_regexp.
53950 2010-04-03  Bruno Haible  <bruno@clisp.org>
53952         fchdir: Fix regression introduced on 2010-03-08.
53953         * lib/unistd.in.h (fchdir): Fix declaration.
53954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53956         REPLACE_FCHDIR.
53957         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53958         REPLACE_FCHDIR.
53960 2010-04-03  Bruno Haible  <bruno@clisp.org>
53962         getpagesize: Fix C++ test error on mingw.
53963         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53964         system does not declare the function.
53965         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53966         declared.
53967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53968         HAVE_DECL_GETPAGESIZE.
53969         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53971 2010-04-03  Bruno Haible  <bruno@clisp.org>
53973         stdio: Make C++ tests work on mingw.
53974         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53975         does not declare the function.
53977 2010-04-03  Bruno Haible  <bruno@clisp.org>
53979         ftello: Fix C++ test error on mingw.
53980         * lib/stdio.in.h (ftello): Use modern idiom.
53981         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53982         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53983         is missing and that it needs to be replaced.
53984         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53986         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53988 2010-04-03  Bruno Haible  <bruno@clisp.org>
53990         fseeko: Fix C++ test error on mingw.
53991         * lib/stdio.in.h (fseeko): Use modern idiom.
53992         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53994         is missing and that it needs to be replaced.
53995         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53997         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53999 2010-04-03  Bruno Haible  <bruno@clisp.org>
54001         mkstemp: Fix C++ test error on mingw.
54002         * lib/stdlib.in.h (mkstemp): Use modern idiom.
54003         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
54004         function is missing and that it needs to be replaced.
54005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
54006         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
54008 2010-04-03  Bruno Haible  <bruno@clisp.org>
54010         stpncpy: Fix C++ test error on mingw.
54011         * lib/string.in.h (stpncpy): Use modern idiom.
54012         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
54013         function is missing and that it needs to be replaced.
54014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54015         REPLACE_STPNCPY.
54016         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
54018 2010-04-03  Bruno Haible  <bruno@clisp.org>
54020         sys_stat: Fix C++ test error on mingw.
54021         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
54022         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
54024 2010-04-03  Bruno Haible  <bruno@clisp.org>
54026         pty: Update doc.
54027         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
54029 2010-04-03  Bruno Haible  <bruno@clisp.org>
54031         unistd: Fix C++ test error on mingw.
54032         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
54034 2010-04-03  Bruno Haible  <bruno@clisp.org>
54036         Update doc regarding mingw.
54037         * doc/glibc-functions/openpty.texi: Update regarding mingw.
54038         * doc/glibc-functions/login_tty.texi: Likewise.
54039         * doc/glibc-functions/forkpty.texi: Likewise.
54041 2010-04-03  Bruno Haible  <bruno@clisp.org>
54043         stdlib: Avoid compilation failure of c-strtold on mingw.
54044         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
54046 2010-04-03  Bruno Haible  <bruno@clisp.org>
54048         locale: Make C++ tests work on Cygwin and mingw.
54049         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
54050         cannot provide the function.
54051         Reported by Simon Josefsson.
54053 2010-04-03  Bruno Haible  <bruno@clisp.org>
54055         localename: Port to MacOS X 10.6.
54056         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
54057         memory layout of the locales in MacOS X 10.6 as well.
54058         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
54060 2010-04-02  Bruno Haible  <bruno@clisp.org>
54062         gnulib-tool: Ensure that long-running tests are executed last.
54063         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
54064         running tests after the one for the other tests.
54066 2010-04-02  Bruno Haible  <bruno@clisp.org>
54068         gnulib-tool: Ensure the tests in the main directory are executed first.
54069         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
54070         start with the current directory.
54072 2010-04-02  Bruno Haible  <bruno@clisp.org>
54074         Tests for module 'havelib', moved here from GNU gettext.
54075         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
54076         modifications.
54077         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
54078         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
54079         with modifications.
54080         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
54081         modifications.
54082         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
54083         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
54084         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
54085         with modifications.
54086         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
54087         with modifications.
54088         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
54089         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
54090         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
54091         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
54092         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
54093         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
54094         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
54095         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
54096         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
54097         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
54098         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
54099         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
54100         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
54101         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
54102         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
54103         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
54104         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
54105         with modifications.
54106         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
54107         with modifications.
54108         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
54109         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
54110         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
54111         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
54112         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
54113         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
54114         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
54115         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
54116         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
54117         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
54118         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
54119         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
54120         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
54121         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
54122         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
54123         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
54124         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
54125         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
54126         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
54127         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
54128         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
54129         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
54130         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
54131         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
54132         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
54133         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
54134         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
54135         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
54136         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
54137         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
54138         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
54139         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
54140         * tests/havelib/rpathx/rpathx.c: New file, from
54141         gettext/autoconf-lib-link.
54142         * tests/havelib/rpathx/Makefile.am: New file, from
54143         gettext/autoconf-lib-link.
54144         * tests/havelib/rpathx/configure.ac: New file, from
54145         gettext/autoconf-lib-link with modifications.
54146         * tests/havelib/rpathy/rpathy.c: New file, from
54147         gettext/autoconf-lib-link.
54148         * tests/havelib/rpathy/Makefile.am: New file, from
54149         gettext/autoconf-lib-link.
54150         * tests/havelib/rpathy/configure.ac: New file, from
54151         gettext/autoconf-lib-link with modifications.
54152         * tests/havelib/rpathz/rpathz.c: New file, from
54153         gettext/autoconf-lib-link.
54154         * tests/havelib/rpathz/Makefile.am: New file, from
54155         gettext/autoconf-lib-link.
54156         * tests/havelib/rpathz/configure.ac: New file, from
54157         gettext/autoconf-lib-link with modifications.
54158         * tests/havelib/rpathlx/usex.c: New file, from
54159         gettext/autoconf-lib-link.
54160         * tests/havelib/rpathlx/Makefile.am: New file, from
54161         gettext/autoconf-lib-link.
54162         * tests/havelib/rpathlx/configure.ac: New file, from
54163         gettext/autoconf-lib-link with modifications.
54164         * tests/havelib/rpathly/usey.c: New file, from
54165         gettext/autoconf-lib-link.
54166         * tests/havelib/rpathly/Makefile.am: New file, from
54167         gettext/autoconf-lib-link.
54168         * tests/havelib/rpathly/configure.ac: New file, from
54169         gettext/autoconf-lib-link with modifications.
54170         * tests/havelib/rpathlz/usez.c: New file, from
54171         gettext/autoconf-lib-link.
54172         * tests/havelib/rpathlz/Makefile.am: New file, from
54173         gettext/autoconf-lib-link.
54174         * tests/havelib/rpathlz/configure.ac: New file, from
54175         gettext/autoconf-lib-link with modifications.
54176         * tests/havelib/rpathlyx/usey.c: New file, from
54177         gettext/autoconf-lib-link.
54178         * tests/havelib/rpathlyx/Makefile.am: New file, from
54179         gettext/autoconf-lib-link.
54180         * tests/havelib/rpathlyx/configure.ac: New file, from
54181         gettext/autoconf-lib-link with modifications.
54182         * tests/havelib/rpathlzyx/usez.c: New file, from
54183         gettext/autoconf-lib-link.
54184         * tests/havelib/rpathlzyx/Makefile.am: New file, from
54185         gettext/autoconf-lib-link.
54186         * tests/havelib/rpathlzyx/configure.ac: New file, from
54187         gettext/autoconf-lib-link with modifications.
54188         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
54189         with modifications.
54191 2010-04-02  Bruno Haible  <bruno@clisp.org>
54193         gnulib-tool: Create distributed built sources also for the tests.
54194         * gnulib-tool (func_create_testdir): Also generate distributed built
54195         sources in the tests directory.
54197 2010-04-02  Bruno Haible  <bruno@clisp.org>
54199         gnulib-tool: Obey user's environment variables.
54200         * gnulib-tool (func_create_testdir): When creating built sources,
54201         respect the environment variables for autoconf, automake, etc. given by
54202         the user.
54204 2010-04-02  Bruno Haible  <bruno@clisp.org>
54206         gnulib-tool: Provide the value of --m4-base to modules.
54207         * gnulib-tool (func_import, func_create_testdir): Emit a definition
54208         of gl_m4_base.
54210 2010-04-02  Eric Blake  <eblake@redhat.com>
54212         maint.mk: fix some fallout
54213         * NEWS: Document the incompatible change, and its effect on cfg.mk.
54214         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
54216 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54218         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
54219         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
54220         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
54221         (sc_cast_of_x_alloc_return_value): Likewise.
54222         (sc_cast_of_alloca_return_value): Likewise.
54223         (sc_space_tab): Likewise.
54224         (sc_prohibit_atoi_atof): Likewise.
54225         (sc_prohibit_magic_number_exit): Likewise.
54226         (sc_error_exit_success): Likewise.
54227         (sc_file_system): Likewise.
54228         (sc_prohibit_have_config_h): Likewise.
54229         (sc_require_config_h): Likewise.
54230         (sc_prohibit_HAVE_MBRTOWC): Likewise.
54231         (sc_obsolete_symbols): Likewise.
54232         (sc_changelog): Likewise.
54233         (sc_program_name): Likewise.
54234         (sc_the_the): Likewise.
54235         (sc_trailing_blank): Likewise.
54236         (sc_two_space_separator_in_usage): Likewise.
54237         (sc_useless_cpp_parens): Likewise.
54238         (sc_GPL_version): Likewise.
54239         (sc_GFDL_version): Likewise.
54240         (sc_texinfo_acronym): Likewise.
54241         (sc_prohibit_cvs_keyword): Likewise.
54242         (sc_prohibit_stat_st_blocks): Likewise.
54243         (sc_prohibit_S_IS_definition): Likewise.
54244         (sc_redundant_const): Likewise.
54245         (sc_makefile_TAB_only_indentation): Likewise.
54246         (sc_m4_quote_check): Likewise.
54247         (sc_makefile_path_separator_check): Likewise.
54248         (sc_copyright_check): Likewise.
54249         (sc_Wundef_boolean): Likewise.
54250         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54252         maint.mk: match 0 or more whitespace-before-function-call '('
54253         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
54254         that have zero or two-and-more spaces between the function name
54255         and the open parenthesis.
54256         (sc_error_message_warn_fatal): Likewise.
54257         (sc_error_message_uppercase): Likewise.
54258         (sc_error_message_period): Likewise.
54260 2010-03-31  Eric Blake  <eblake@redhat.com>
54262         maint.mk: check for [ as well as test
54263         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
54264         Based on a libvirt report by Matthias Bolte.
54266         gnumakefile: don't squelch _version output
54267         * top/GNUmakefile (_version): Create one-shot dependency rather
54268         than using $(shell) when version must be regenerated.
54269         (_autoreconf): Run verbosely, by default.
54271         sys_time: avoid compiler warnings
54272         * lib/sys_time.in.h (includes): Ensure gcc pragma is
54273         unconditional, fixing regression from 2010-03-29.
54274         Reported by Simon Josefsson.
54276 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54278         maint.mk: s/_header_without_use/_sc_header_without_use/
54279         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
54280         (sc_prohibit_assert_without_use): Use the new name.
54281         (sc_prohibit_close_stream_without_use): Likewise.
54282         (sc_prohibit_getopt_without_use): Likewise.
54283         (sc_prohibit_quotearg_without_use): Likewise.
54284         (sc_prohibit_quote_without_use): Likewise.
54285         (sc_prohibit_long_options_without_use): Likewise.
54286         (sc_prohibit_inttostr_without_use): Likewise.
54287         (sc_prohibit_ignore_value_without_use): Likewise.
54288         (sc_prohibit_error_without_use): Likewise.
54289         (sc_prohibit_xalloc_without_use): Likewise.
54290         (sc_prohibit_hash_without_use): Likewise.
54291         (sc_prohibit_hash_pjw_without_use): Likewise.
54292         (sc_prohibit_safe_read_without_use): Likewise.
54293         (sc_prohibit_argmatch_without_use): Likewise.
54294         (sc_prohibit_canonicalize_without_use): Likewise.
54295         (sc_prohibit_root_dev_ino_without_use): Likewise.
54296         (sc_prohibit_openat_without_use): Likewise.
54297         (sc_prohibit_c_ctype_without_use): Likewise.
54298         (sc_prohibit_signal_without_use): Likewise.
54299         (sc_prohibit_intprops_without_use): Likewise.
54301 2010-03-30  Eric Blake  <eblake@redhat.com>
54303         maint: improve module indicators
54304         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
54305         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
54306         columns, and avoid extra macro expansion.
54308         fdopendir: work around FreeBSD bug
54309         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54310         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
54311         * modules/dirent (Makefile.am): Substitute it.
54312         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
54313         declaration.
54314         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
54315         fix.
54316         Reported by Christian Weisgerber <naddy@mips.inka.de>.
54318 2010-03-29  Bruno Haible  <bruno@clisp.org>
54320         Emit #pragma system_header after the inclusion guard, not before.
54321         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
54322         guard that spans the entire file, not before. This enables an
54323         optimization in GCC's preprocessor.
54324         * lib/ctype.in.h: Likewise.
54325         * lib/dirent.in.h: Likewise.
54326         * lib/errno.in.h: Likewise.
54327         * lib/float.in.h: Likewise.
54328         * lib/getopt.in.h: Likewise.
54329         * lib/iconv.in.h: Likewise.
54330         * lib/langinfo.in.h: Likewise.
54331         * lib/locale.in.h: Likewise.
54332         * lib/math.in.h: Likewise.
54333         * lib/netdb.in.h: Likewise.
54334         * lib/netinet_in.in.h: Likewise.
54335         * lib/pty.in.h: Likewise.
54336         * lib/sched.in.h: Likewise.
54337         * lib/se-selinux.in.h: Likewise.
54338         * lib/search.in.h: Likewise.
54339         * lib/spawn.in.h: Likewise.
54340         * lib/stdarg.in.h: Likewise.
54341         * lib/stdint.in.h: Likewise.
54342         * lib/string.in.h: Likewise.
54343         * lib/strings.in.h: Likewise.
54344         * lib/sys_file.in.h: Likewise.
54345         * lib/sys_ioctl.in.h: Likewise.
54346         * lib/sys_time.in.h: Likewise.
54347         * lib/sys_times.in.h: Likewise.
54348         * lib/sys_utsname.in.h: Likewise.
54349         * lib/sys_wait.in.h: Likewise.
54350         * lib/sysexits.in.h: Likewise.
54351         * lib/wctype.in.h: Likewise.
54353 2010-03-28  James Youngman  <jay@gnu.org>
54355         save-cwd: don't leak a file descriptor when the caller execs.
54356         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54357         saved file descriptor.
54358         * modules/save-cwd (Depends-on): Depend on cloexec.
54360 2010-03-29  Bruno Haible  <bruno@clisp.org>
54362         Remove vestiges of fts-lgpl module.
54363         * lib/fts_.h: Assume GNULIB_FTS is 1.
54364         * lib/fts.c: Likewise.
54365         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54367 2010-03-28  Bruno Haible  <bruno@clisp.org>
54369         Fix definition of tests witness macro.
54370         * gnulib-tool (func_import): Fix definition of witness macro.
54372 2010-03-28  Bruno Haible  <bruno@clisp.org>
54374         Fix ioctl's protoype on glibc systems.
54375         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54376         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54377         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54378         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54379         signature. If not, arrange to replace the ioctl function.
54380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54381         REPLACE_IOCTL.
54382         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54383         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54384         Reported by Ludovic Courtès <ludo@gnu.org>.
54386 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54388         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54389         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54390         made it so grep -r --include=GLOB* ... did not work.
54392 2010-03-26  Jim Meyering  <meyering@redhat.com>
54393             Eric Blake  <eblake@redhat.com>
54395         maint.mk: prohibit use of test's -o and -a operators
54396         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54398 2010-03-28  Bruno Haible  <bruno@clisp.org>
54400         Remove unused GNULIB_XYZ macro definitions.
54401         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54402         invocation.
54404 2010-03-28  Bruno Haible  <bruno@clisp.org>
54406         Mark privileged tests modules.
54407         * modules/idpriv-drop-tests (Status): New section.
54408         * modules/idpriv-droptemp-tests (Status): New section.
54410 2010-03-28  Bruno Haible  <bruno@clisp.org>
54412         Split C++ tests into separate tests modules.
54413         * modules/dirent-c++-tests: New file, extracted from
54414         modules/dirent-tests.
54415         * modules/dirent-tests: Depend on it.
54416         * modules/fcntl-h-c++-tests: New file, extracted from
54417         modules/fcntl-h-tests.
54418         * modules/fcntl-h-tests: Depend on it.
54419         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54420         * modules/glob-tests: Depend on it.
54421         * modules/iconv-h-c++-tests: New file, extracted from
54422         modules/iconv-h-tests.
54423         * modules/iconv-h-tests: Depend on it.
54424         * modules/langinfo-c++-tests: New file, extracted from
54425         modules/langinfo-tests.
54426         * modules/langinfo-tests: Depend on it.
54427         * modules/locale-c++-tests: New file, extracted from
54428         modules/locale-tests.
54429         * modules/locale-tests: Depend on it.
54430         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54431         * modules/math-tests: Depend on it.
54432         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54433         * modules/pty-tests: Depend on it.
54434         * modules/search-c++-tests: New file, extracted from
54435         modules/search-tests.
54436         * modules/search-tests: Depend on it.
54437         * modules/signal-c++-tests: New file, extracted from
54438         modules/signal-tests.
54439         * modules/signal-tests: Depend on it.
54440         * modules/spawn-c++-tests: New file, extracted from
54441         modules/spawn-tests.
54442         * modules/spawn-tests: Depend on it.
54443         * modules/stdio-c++-tests: New file, extracted from
54444         modules/stdio-tests.
54445         * modules/stdio-tests: Depend on it.
54446         * modules/stdlib-c++-tests: New file, extracted from
54447         modules/stdlib-tests.
54448         * modules/stdlib-tests: Depend on it.
54449         * modules/string-c++-tests: New file, extracted from
54450         modules/string-tests.
54451         * modules/string-tests: Depend on it.
54452         * modules/sys_ioctl-c++-tests: New file, extracted from
54453         modules/sys_ioctl-tests.
54454         * modules/sys_ioctl-tests: Depend on it.
54455         * modules/sys_select-c++-tests: New file, extracted from
54456         modules/sys_select-tests.
54457         * modules/sys_select-tests: Depend on it.
54458         * modules/sys_socket-c++-tests: New file, extracted from
54459         modules/sys_socket-tests.
54460         * modules/sys_socket-tests: Depend on it.
54461         * modules/sys_stat-c++-tests: New file, extracted from
54462         modules/sys_stat-tests.
54463         * modules/sys_stat-tests: Depend on it.
54464         * modules/sys_time-c++-tests: New file, extracted from
54465         modules/sys_time-tests.
54466         * modules/sys_time-tests: Depend on it.
54467         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54468         * modules/time-tests: Depend on it.
54469         * modules/unistd-c++-tests: New file, extracted from
54470         modules/unistd-tests.
54471         * modules/unistd-tests: Depend on it.
54472         * modules/wchar-c++-tests: New file, extracted from
54473         modules/wchar-tests.
54474         * modules/wchar-tests: Depend on it.
54475         * modules/wctype-c++-tests: New file, extracted from
54476         modules/wctype-tests.
54477         * modules/wctype-tests: Depend on it.
54478         Reported by Simon Josefsson.
54480 2010-03-28  Bruno Haible  <bruno@clisp.org>
54482         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54483         * gnulib-tool (func_exists_module): New function, extracted from
54484         func_verify_module.
54485         (func_verify_module): Use it.
54486         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54487         'foo' only if 'foo' exists.
54488         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54489         module.
54491 2010-03-28  Bruno Haible  <bruno@clisp.org>
54493         gnulib-tool: Add support for special categories of tests.
54494         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54495         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54496         (func_usage): Document them.
54497         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54498         inc_unportable_tests, inc_all_tests): New variables.
54499         (func_acceptable): Consider these variables.
54500         (func_modules_transitive_closure): Make it work when the 'Status' field
54501         consists of multiple words.
54502         (func_import): Store and restore the values of inc_cxx_tests,
54503         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54504         inc_all_tests in gnulib-comp.m4.
54505         (func_create_testdir): Set inc_all_tests to true.
54506         * doc/gnulib.texi (Extra tests modules): New section.
54507         Suggested by Jim Meyering.
54509 2010-03-28  Bruno Haible  <bruno@clisp.org>
54511         ansi-c++-opt: Allow turning off the C++ build by default.
54512         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54513         gl_CXX_CHOICE_DEFAULT_NO is defined.
54514         Requested by Eric Blake.
54516 2010-03-28  Bruno Haible  <bruno@clisp.org>
54518         unistd: Avoid #define replacements in C++ mode.
54519         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54520         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54521         setsockopt, shutdown, select): In C++, attach a warning to the function
54522         if possible, rather than #defining the symbol to a dysfunctional alias.
54523         Reported by John W. Eaton <jwe@gnu.org>.
54525 2010-03-28  Bruno Haible  <bruno@clisp.org>
54527         Fix link errors on mingw.
54528         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54529         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54530         $(LIBSOCKET).
54531         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54532         $(LIBSOCKET).
54534 2010-03-28  Bruno Haible  <bruno@clisp.org>
54535             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54537         lib-ignore: Determine different options for different compilers.
54538         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54539         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54540         Add comments.
54541         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54542         * NEWS: Mention the change.
54544 2010-03-27  Bruno Haible  <bruno@clisp.org>
54546         Remove unused GNULIB_XYZ macro definitions.
54547         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54548         * modules/fseek (configure.ac): Likewise.
54549         * modules/ioctl (configure.ac): Likewise.
54550         * modules/open (configure.ac): Likewise.
54551         * modules/stdlib-safer (configure.ac): Likewise.
54553 2010-03-27  Bruno Haible  <bruno@clisp.org>
54555         Add a remark about certain modules.
54556         * modules/malloc (Comment): New section.
54557         * modules/realloc (Comment): Likewise.
54558         * modules/sigpipe (Comment): Likewise.
54560 2010-03-27  Bruno Haible  <bruno@clisp.org>
54562         Resolve conflict between the two kinds of module indicators.
54563         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54564         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54565         * modules/canonicalize (configure.ac): Invoke
54566         gl_MODULE_INDICATOR_FOR_TESTS.
54567         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54568         GNULIB_XYZ.
54569         * tests/test-dirent-c++.cc: Likewise.
54570         * tests/test-dirent-safer.c: Likewise.
54571         * tests/test-dup2.c: Likewise.
54572         * tests/test-fchdir.c: Likewise.
54573         * tests/test-fcntl-h-c++.cc: Likewise.
54574         * tests/test-getopt.c: Likewise.
54575         * tests/test-getopt.h: Likewise.
54576         * tests/test-langinfo-c++.cc: Likewise.
54577         * tests/test-locale-c++.cc: Likewise.
54578         * tests/test-math-c++.cc: Likewise.
54579         * tests/test-pty-c++.cc: Likewise.
54580         * tests/test-search-c++.cc: Likewise.
54581         * tests/test-signal-c++.cc: Likewise.
54582         * tests/test-spawn-c++.cc: Likewise.
54583         * tests/test-stdio-c++.cc: Likewise.
54584         * tests/test-stdlib-c++.cc: Likewise.
54585         * tests/test-string-c++.cc: Likewise.
54586         * tests/test-sys_ioctl-c++.cc: Likewise.
54587         * tests/test-sys_select-c++.cc: Likewise.
54588         * tests/test-sys_socket-c++.cc: Likewise.
54589         * tests/test-sys_stat-c++.cc: Likewise.
54590         * tests/test-sys_time-c++.cc: Likewise.
54591         * tests/test-time-c++.cc: Likewise.
54592         * tests/test-unistd-c++.cc: Likewise.
54593         * tests/test-wchar-c++.cc: Likewise.
54594         * tests/uninorm/test-u8-nfc.c: Likewise.
54595         * tests/uninorm/test-u8-nfd.c: Likewise.
54596         * tests/uninorm/test-u8-nfkc.c: Likewise.
54597         * tests/uninorm/test-u8-nfkd.c: Likewise.
54598         * tests/uninorm/test-u16-nfc.c: Likewise.
54599         * tests/uninorm/test-u16-nfd.c: Likewise.
54600         * tests/uninorm/test-u16-nfkc.c: Likewise.
54601         * tests/uninorm/test-u16-nfkd.c: Likewise.
54602         * tests/uninorm/test-u32-nfc.c: Likewise.
54603         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54604         * tests/uninorm/test-u32-nfd.c: Likewise.
54605         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54606         * tests/uninorm/test-u32-nfkc.c: Likewise.
54607         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54608         * tests/uninorm/test-u32-nfkd.c: Likewise.
54609         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54610         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54612 2010-03-27  Bruno Haible  <bruno@clisp.org>
54614         Distinguish two kinds of module indicators.
54615         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54616         gl_MODULE_INDICATOR.
54617         (gl_MODULE_INDICATOR): New macro.
54618         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54619         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54620         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54621         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54622         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54623         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54624         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54625         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54626         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54627         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54628         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54629         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54631         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54632         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54633         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54634         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54635         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54636         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54637         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54638         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54639         * modules/cloexec (configure.ac): Likewise.
54640         * modules/getopt-gnu (configure.ac): Likewise.
54641         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54642         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54643         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54644         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54646 2010-03-27  Bruno Haible  <bruno@clisp.org>
54648         New module description field 'Comment'.
54649         * gnulib-tool: New option --extract-comment.
54650         (func_usage): Document it.
54651         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54652         (func_get_comment): New function.
54653         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54655 2010-03-27  Bruno Haible  <bruno@clisp.org>
54657         Addendum to 2010-02-07 commit.
54658         * gnulib-tool (func_usage): Document --extract-applicability option.
54660 2010-03-27  Bruno Haible  <bruno@clisp.org>
54662         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54663         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54664         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54665         rather than link errors.
54667 2010-03-27  Bruno Haible  <bruno@clisp.org>
54669         Avoid side effects from tests-related modules on the compilation of lib.
54670         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54671         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54672         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54673         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54674         macro.
54675         (func_import): Define a witness macro. Assign it a value that depends
54676         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54677         tests-related modules.
54678         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54679         Reported by Jim Meyering.
54681 2010-03-27  Bruno Haible  <bruno@clisp.org>
54683         Factorize common .m4 code.
54684         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54685         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54686         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54687         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54688         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54689         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54690         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54691         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54692         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54693         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54694         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54695         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54696         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54697         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54698         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54699         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54700         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54701         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54703         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54704         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54706         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54708         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54709         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54710         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54711         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54712         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54713         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54714         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54715         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54717 2010-03-27  Bruno Haible  <bruno@clisp.org>
54719         Fix a compilation error on Cygwin with g++ >= 4.3.
54720         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54721         if it is undefined or if we alias it to chmod.
54722         (lstat): Don't warn about the use of this function if it is undefined
54723         or if we alias it to stat.
54724         Reported by Simon Josefsson.
54726 2010-03-27  Bruno Haible  <bruno@clisp.org>
54728         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54729         * modules/getlogin (configure.ac): Update.
54731         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54732         * modules/getlogin_r (configure.ac): Update.
54734         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54736         * modules/inet_ntop (configure.ac): Update.
54738         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54739         * modules/inet_pton (configure.ac): Update.
54741         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54742         * modules/mbslen (configure.ac): Update.
54744         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54745         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54746         * modules/forkpty (configure.ac): Update.
54747         * modules/openpty (configure.ac): Update.
54749 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54751         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54752         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54754 2010-03-25  Eric Blake  <eblake@redhat.com>
54756         maint: use pragma consistently across replacement headers
54757         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54758         * lib/dirent.in.h (system_header): Likewise.
54759         * lib/errno.in.h (system_header): Likewise.
54760         * lib/float.in.h (system_header): Likewise.
54761         * lib/getopt.in.h (system_header): Likewise.
54762         * lib/iconv.in.h (system_header): Likewise.
54763         * lib/inttypes.in.h (system_header): Likewise.
54764         * lib/langinfo.in.h (system_header): Likewise.
54765         * lib/locale.in.h (system_header): Likewise.
54766         * lib/math.in.h (system_header): Likewise.
54767         * lib/netdb.in.h (system_header): Likewise.
54768         * lib/netinet_in.in.h (system_header): Likewise.
54769         * lib/pty.in.h (system_header): Likewise.
54770         * lib/sched.in.h (system_header): Likewise.
54771         * lib/se-selinux.in.h (system_header): Likewise.
54772         * lib/search.in.h (system_header): Likewise.
54773         * lib/spawn.in.h (system_header): Likewise.
54774         * lib/stdarg.in.h (system_header): Likewise.
54775         * lib/stdint.in.h (system_header): Likewise.
54776         * lib/string.in.h (system_header): Likewise.
54777         * lib/strings.in.h (system_header): Likewise.
54778         * lib/sys_file.in.h (system_header): Likewise.
54779         * lib/sys_ioctl.in.h (system_header): Likewise.
54780         * lib/sys_socket.in.h (system_header): Likewise.
54781         * lib/sys_times.in.h (system_header): Likewise.
54782         * lib/sys_utsname.in.h (system_header): Likewise.
54783         * lib/sys_wait.in.h (system_header): Likewise.
54784         * lib/sysexits.in.h (system_header): Likewise.
54785         * lib/unistd.in.h (system_header): Likewise.
54786         * lib/wctype.in.h (system_header): Likewise.
54788         arpa/inet: fix mingw compilation warning
54789         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54790         Reported by Matthew Bolte.
54792 2010-03-25  Bruno Haible  <bruno@clisp.org>
54794         Avoid collision between gnulib wrapper and libintl wrapper.
54795         * lib/printf.c (printf): Don't define if a printf wrapper is already
54796         defined in intl/printf.c.
54797         Reported by Michel Boaventura <michel@michelboaventura.com>.
54799 2010-03-25  Bruno Haible  <bruno@clisp.org>
54801         Use ANSI C.
54802         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54804 2010-03-25  Bruno Haible  <bruno@clisp.org>
54806         Minor formatting changes.
54807         * lib/acosl.c: Insert space before function argument list.
54808         * lib/argz.c: Likewise.
54809         * lib/asinl.c: Likewise.
54810         * lib/expl.c: Likewise.
54811         * lib/gen-uni-tables.c: Likewise.
54812         * lib/gettext.h: Likewise.
54813         * lib/glthread/lock.h: Likewise.
54814         * lib/tanl.c: Likewise.
54815         * lib/uniname/uniname.c: Likewise.
54816         * tests/test-idpriv-drop.c: Likewise.
54817         * tests/test-idpriv-droptemp.c: Likewise.
54818         * tests/test-lock.c: Likewise.
54819         * tests/test-tls.c: Likewise.
54820         * lib/argp-help.c: Insert space before function-like macro argument
54821         list.
54822         * lib/memcmp.c: Likewise.
54823         * tests/test-base64.c: Likewise.
54824         * lib/localename.c: Insert space before sizeof's argument list.
54825         * lib/safe-alloc.h: Likewise.
54826         * lib/file-set.h: Insert space before macro argument list.
54827         * tests/test-argp.c: Likewise.
54828         * lib/argp-namefrob.h: Insert space before function parameter list.
54829         * lib/getaddrinfo.c: Likewise.
54830         * lib/netdb.in.h: Likewise.
54831         * lib/parse-duration.h: Likewise.
54832         * lib/parse-duration.c: Likewise.
54833         * lib/poll.c: Likewise.
54834         * lib/select.c: Likewise.
54835         * lib/trim.h: Likewise.
54836         * tests/test-usleep.c: Likewise.
54837         * lib/ldexpl.c: Insert space before function parameter list and before
54838         function argument list.
54839         * lib/logl.c: Likewise.
54840         * lib/sqrtl.c: Likewise.
54841         * lib/trim.c: Likewise.
54842         * lib/cosl.c: Use GNU style indentation. Insert space before function
54843         argument list.
54844         * lib/sinl.c: Likewise.
54845         * lib/tsearch.c: Insert space after 'for'.
54846         Reported by Jim Meyering.
54848 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54850         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54851         config header before grepping, as it's not present before
54852         autoreconf/configure are run.  Reported by Simon Josefsson.
54854 2010-03-23  Bruno Haible  <bruno@clisp.org>
54856         pt_chown: Make it work with automake < 1.11.
54857         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54858         Reported by Simon Josefsson.
54860 2010-03-23  Bruno Haible  <bruno@clisp.org>
54862         pt_chown: Don't depend on GPLed modules.
54863         * lib/pt_chown.c: Don't include idpriv.h.
54864         (main): Don't drop privileges.
54865         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54866         Reported by Simon Josefsson.
54868 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54870         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54871         suggestions from karl@freefriends.org (Karl Berry).
54873 2010-03-22  Eric Blake  <eblake@redhat.com>
54875         gethostname: further tweaks
54876         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54877         are overriding gethostname.
54878         Suggested by Bruno Haible.
54880 2010-03-21  Bruno Haible  <bruno@clisp.org>
54882         Fix comments.
54883         * lib/forkpty.c (rpl_forkpty): Fix comment.
54884         * lib/openpty.c (rpl_openpty): Likewise.
54885         Reported by Eric Blake.
54887 2010-03-22  Eric Blake  <eblake@redhat.com>
54889         gethostname: fix build on mingw
54890         * lib/unistd.in.h (includes): Work around fact that mingw
54891         <winsock2.h> re-includes <unistd.h>, by avoiding any
54892         redeclarations if we are being included by <winsock2.h>.
54893         Reported by Matthias Bolte.
54895 2010-03-21  Bruno Haible  <bruno@clisp.org>
54897         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54898         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54899         modifications.
54900         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54901         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54902         provide the replacement.
54903         * modules/forkpty (Depends-on): Add openpty, login_tty.
54904         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54905         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54906         * doc/glibc-functions/forkpty.texi: More supported platforms.
54907         * config/srclist.txt: Add forkpty.c (commented).
54909 2010-03-21  Bruno Haible  <bruno@clisp.org>
54911         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54912         (Makefile.am): Verify that PTY_LIB is defined.
54914         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54916 2010-03-21  Bruno Haible  <bruno@clisp.org>
54918         Tests for module 'login_tty'.
54919         * modules/login_tty-tests: New file.
54920         * tests/test-login_tty.c: New file.
54922         New module 'login_tty'.
54923         * lib/login_tty.c: New file.
54924         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54925         * modules/login_tty: New file.
54926         * doc/glibc-functions/login_tty.texi: Mention the new module.
54928 2010-03-21  Bruno Haible  <bruno@clisp.org>
54930         login_tty: Documentation.
54931         * doc/glibc-functions/login_tty.texi: New file.
54932         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54934 2010-03-21  Bruno Haible  <bruno@clisp.org>
54936         pty: Consistent macro naming.
54937         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54938         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54939         * modules/pty (configure.ac): Update.
54941 2010-03-21  Bruno Haible  <bruno@clisp.org>
54943         Tests for openpty: Make stricter.
54944         * tests/test-openpty.c (main): Add test of canonical processing and
54945         erase.
54946         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54948         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54949         * lib/openpty.c (openpty): New replacement function.
54950         * lib/pty.in.h: Include <termios.h>.
54951         (openpty): Update declaration. Add comments.
54952         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54953         is not declared, arrange to provide the replacement. Check for _getpty
54954         and posix_openpt.
54955         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54956         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54957         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54958         * modules/pty-tests (test_pty_c___LDADD): New variable.
54959         * doc/glibc-functions/openpty.texi: More supported platforms.
54961 2010-03-21  Bruno Haible  <bruno@clisp.org>
54963         setenv: Tweaks.
54964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54965         the test program.
54966         * doc/posix-functions/setenv.texi: Update platforms list.
54968 2010-03-21  Bruno Haible  <bruno@clisp.org>
54970         New module 'unlockpt'.
54971         * lib/unlockpt.c: New file, from glibc with modifications.
54972         * m4/unlockpt.m4: New file.
54973         * modules/unlockpt: New file.
54974         * lib/stdlib.in.h (unlockpt): New declaration.
54975         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54976         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54977         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54978         HAVE_UNLOCKPT.
54979         * doc/posix-functions/unlockpt.texi: Mention the new module.
54980         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54981         * config/srclist.txt: Add unlockpt.c (commented).
54983 2010-03-21  Jim Meyering  <meyering@redhat.com>
54985         maint.mk: prohibit inclusion of "intprops.h" without use
54986         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54988 2010-03-21  Bruno Haible  <bruno@clisp.org>
54990         New module 'grantpt'.
54991         * lib/grantpt.c: New file, from glibc with modifications.
54992         * m4/grantpt.m4: New file.
54993         * modules/grantpt: New file.
54994         * lib/stdlib.in.h (grantpt): New declaration.
54995         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54996         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54997         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54998         HAVE_GRANTPT.
54999         * doc/posix-functions/grantpt.texi: Mention the new module.
55000         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
55001         * config/srclist.txt: Add grantpt.c (commented).
55003 2010-03-21  Bruno Haible  <bruno@clisp.org>
55005         New module 'pt_chown'.
55006         * lib/pt_chown.c: New file, from glibc with modifications.
55007         * lib/pty-private.h: New file, from glibc with modifications.
55008         * modules/pt_chown: New file.
55009         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
55011 2010-03-21  Bruno Haible  <bruno@clisp.org>
55013         Tests for module 'ptsname'.
55014         * modules/ptsname-tests: New file.
55015         * tests/test-ptsname.c: New file.
55017         New module 'ptsname'.
55018         * lib/ptsname.c: New file, from glibc with modifications.
55019         * m4/ptsname.m4: New file.
55020         * modules/ptsname: New file.
55021         * lib/stdlib.in.h (ptsname): New declaration.
55022         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
55023         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
55024         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
55025         HAVE_PTSNAME.
55026         * doc/posix-functions/ptsname.texi: Mention the new module.
55027         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
55028         * config/srclist.txt: Add ptsname.c (commented).
55030 2010-03-21  Bruno Haible  <bruno@clisp.org>
55032         Tests for module 'ttyname_r'.
55033         * modules/ttyname_r-tests: New file.
55034         * tests/test-ttyname_r.c: New file.
55036         New module 'ttyname_r'.
55037         * lib/ttyname_r.c: New file.
55038         * m4/ttyname_r.m4: New file.
55039         * modules/ttyname_r: New file.
55040         * lib/unistd.in.h (ttyname_r): New declaration.
55041         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
55042         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
55043         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
55044         HAVE_TTYNAME_R.
55045         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
55046         * doc/posix-functions/ttyname_r.texi: Mention the new module.
55048 2010-03-20  Bruno Haible  <bruno@clisp.org>
55050         signal: Undefine macro definitions in C++ mode.
55051         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
55052         sigfillset): Undefine macro definitions from the system header in C++
55053         mode.
55054         Reported by John W. Eaton <jwe@gnu.org>.
55056 2010-03-20  Bruno Haible  <bruno@clisp.org>
55058         Ensure no #include statements inside extern "C" { ... }.
55059         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
55060         contain #include statements.
55061         * lib/time.in.h: Likewise.
55063 2010-03-20  Bruno Haible  <bruno@clisp.org>
55065         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
55066         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
55067         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
55068         Reported by John W. Eaton <jwe@gnu.org>.
55070 2010-03-20  Bruno Haible  <bruno@clisp.org>
55072         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
55073         Reported by Jim Meyering.
55075 2010-03-20  Bruno Haible  <bruno@clisp.org>
55077         pipe: Set errno upon failure.
55078         * lib/pipe.h: Specify that when -1 is returned, errno is set.
55079         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
55080         errno value in error message.
55082 2010-03-20  Bruno Haible  <bruno@clisp.org>
55083             Jim Meyering  <meyering@redhat.com>
55085         lchown: Avoid "unused variable" warning.
55086         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
55088 2010-03-20  Bruno Haible  <bruno@clisp.org>
55090         Work around unlink() bug on MacOS X 10.5.6.
55091         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
55092         attempting to unlink a parent directory.
55093         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
55094         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
55095         activate for the replacement function.
55096         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
55098 2010-03-20  Bruno Haible  <bruno@clisp.org>
55100         Fix link errors on Solaris 8.
55101         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
55102         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
55104 2010-03-19  Jim Meyering  <meyering@redhat.com>
55106         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
55107         The _LIBC implementation of build_range_exp correctly honors the
55108         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
55109         However, the non-_LIBC implementation would ignore that syntax-bit
55110         flag and return REG_ERANGE unconditionally.
55111         This change makes it honor that flag.
55112         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
55113         Make two pointer parameters "const".
55114         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
55115         (parse_bracket_exp): Update caller.
55117         regex.m4: correct the reversed range endpoint ([b-a]) test
55118         * m4/regex.m4: When requiring that [b-a] evoke failure,
55119         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
55120         test pass once again for x86-based systems.
55122 2010-03-19  Bruno Haible  <bruno@clisp.org>
55124         scandir: Fix link error on Solaris 8.
55125         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
55126         macros.
55128 2010-03-19  Bruno Haible  <bruno@clisp.org>
55130         getusershell: Fix documentation.
55131         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
55132         module.
55133         * doc/glibc-functions/setusershell.texi: Likewise.
55135         getusershell: Provide declaration, missing on Solaris 9.
55136         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
55137         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
55138         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
55139         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
55140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55141         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
55142         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
55143         HAVE_GETUSERSHELL.
55144         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
55146 2010-03-19  Bruno Haible  <bruno@clisp.org>
55148         wctype: Provide iswblank function.
55149         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
55150         exists and is fine.
55151         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
55152         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
55153         * tests/test-wctype.c (main): Re-enable the iswblank tests.
55154         * doc/posix-functions/iswblank.texi: Update.
55156 2010-03-19  Bruno Haible  <bruno@clisp.org>
55158         Tests of module 'pty' in C++ mode.
55159         * modules/pty-tests: New file.
55160         * tests/test-pty-c++.cc: New file.
55161         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55163 2010-03-19  Eric Blake  <eblake@redhat.com>
55165         logb: fix documentation
55166         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
55167         1.5 declaration bug.
55169         forkpty, openpty: prefer glibc's const-safe prototype
55170         * lib/forkpty.c (rpl_forkpty): New file.
55171         * lib/openpty.c (rpl_openpty): Likewise.
55172         * modules/forkpty (Files): Distribute it.
55173         * modules/openpty (Files): Likewise.
55174         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
55175         check...
55176         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
55177         replacement for non-const BSD signature.
55178         * modules/pty (Makefile.am): Substitute witnesses.
55179         * lib/pty.in.h (forkpty, openpty): Declare replacements.
55180         * tests/test-forkpty.c: Update signature check.
55181         * tests/test-openpty.c: Likewise.
55182         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
55183         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55185         forkpty, openpty: split functions into new modules
55186         * modules/pty (Makefile.am): Substitute new witnesses.
55187         (Libraries): Move library detection...
55188         * modules/forkpty: ...into new module.
55189         * modules/openpty: Another new module.
55190         * modules/pty-tests: Rename and split...
55191         * modules/forkpty-tests: ...to this...
55192         * modules/openpty-tests: ...and this.
55193         * tests/test-pty.c: Rename and split...
55194         * tests/test-forkpty.c: ...to this...
55195         * tests/test-openpty.c: ...and this.
55196         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
55197         (gl_PTY): Split library searching...
55198         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
55199         (gl_FORKPTY, gl_OPENPTY): New macros.
55200         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
55201         * NEWS: Mention the split.
55202         * MODULES.html.sh (Misc): Document the modules.
55203         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
55204         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55206         pty: improve replacement header
55207         * lib/pty.in.h: New file.
55208         * modules/pty (Files): Ship it.
55209         (Makefile.am): Always build replacement.
55210         * m4/pty.m4: Rename...
55211         * m4/pty_h.m4: ...to this.
55212         (gl_PTY): Modernize setting of witness macros; update check of
55213         forkpty to take proper advantage of cache.
55214         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
55216         getopt: avoid compiler warning
55217         * lib/getopt.c (attribute_hidden): Remove unused macro.
55219 2010-03-18  Bruno Haible  <bruno@clisp.org>
55221         Fix link errors on Solaris 8.
55222         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
55223         * modules/search-tests (test_search_c___LDADD): Likewise.
55224         * modules/signal-tests (test_signal_c___LDADD): Likewise.
55225         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
55226         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
55227         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
55228         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
55229         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
55230         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
55232 2010-03-18  Bruno Haible  <bruno@clisp.org>
55234         Fix bug introduced on 2010-03-14.
55235         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
55236         (gl_SPAWN_H): Require it.
55237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
55238         Reported by Simon Josefsson.
55240 2010-03-18  Bruno Haible  <bruno@clisp.org>
55242         Fix typo introduced on 2009-12-31.
55243         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
55244         posix_spawn_file_actions_adddup2.
55246 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
55247         and Eric Blake  <eblake@redhat.com>
55249         test-vc-list-files-git: make more robust
55250         * tests/test-vc-list-files-git.sh: Unset problematic environment
55251         variables.  Chain commands together.
55253 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
55255         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
55256         `AC_CHECK_DECL' invocation.
55258 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
55260         * lib/inttostr.c (inttostr): Make sure the invocation of verify
55261         appears before executable statements. Suggested by Petr Sumbera
55262         <Petr.Sumbera@Sun.COM>.
55264 2010-03-14  Bruno Haible  <bruno@clisp.org>
55266         * tests/test-flock.c (test_exclusive): Comment out a test that causes
55267         portability problems. Instead use a simpler test.
55268         (main): Check that invalid arguments are rejected only on Linux.
55270 2010-03-14  Bruno Haible  <bruno@clisp.org>
55272         Fix bug introduced on 2009-12-31.
55273         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55274         gl_PREREQ_SYS_H_WINSOCK2 always.
55275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
55276         SYS_SOCKET_H variable.
55277         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
55278         Update comments.
55279         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
55280         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55281         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55282         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55283         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
55285 2010-03-14  Bruno Haible  <bruno@clisp.org>
55287         Fix values returned by sinl, cosl.
55288         * lib/trigl.h: Add specification comments.
55289         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
55290         that combines the values from the precomputed table with the values of
55291         the Chebyshev polynomials.
55293 2010-03-14  Bruno Haible  <bruno@clisp.org>
55295         Fix compilation error when modules 'posix_spawn[p]' are not used.
55296         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
55297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
55299 2010-03-14  Bruno Haible  <bruno@clisp.org>
55301         Fix compilation error on mingw when module 'time_r' is not used.
55302         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
55303         is 1.
55304         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
55305         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55306         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
55307         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
55309 2010-03-14  Bruno Haible  <bruno@clisp.org>
55311         Fix compilation error with Sun C.
55312         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
55313         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
55314         instead of GCC specific ULONG_LONG_MAX.
55315         * lib/xstrtoll.c: Likewise.
55316         * lib/xstrtoull.c: Likewise.
55318 2010-03-13  Bruno Haible  <bruno@clisp.org>
55320         Allow the user to disable C++ code and tests.
55321         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
55322         (gl_PROG_ANSI_CXX): Require it.
55324 2010-03-13  Bruno Haible  <bruno@clisp.org>
55326         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
55327         cases.
55329 2010-03-13  Bruno Haible  <bruno@clisp.org>
55331         Test that gnulib does not break the standard C++ headers.
55332         * tests/test-locale-c++2.cc: New file.
55333         * modules/locale-tests (Files): Add it.
55334         (Makefile.am): Compile it for test-locale-c++.
55335         * tests/test-math-c++2.cc: New file.
55336         * modules/math-tests (Files): Add it.
55337         (Makefile.am): Compile it for test-math-c++.
55338         * tests/test-signal-c++2.cc: New file.
55339         * modules/signal-tests (Files): Add it.
55340         (Makefile.am): Compile it for test-signal-c++.
55341         * tests/test-stdio-c++2.cc: New file.
55342         * modules/stdio-tests (Files): Add it.
55343         (Makefile.am): Compile it for test-stdio-c++.
55344         * tests/test-stdlib-c++2.cc: New file.
55345         * modules/stdlib-tests (Files): Add it.
55346         (Makefile.am): Compile it for test-stdlib-c++.
55347         * tests/test-string-c++2.cc: New file.
55348         * modules/string-tests (Files): Add it.
55349         (Makefile.am): Compile it for test-string-c++.
55350         * tests/test-time-c++2.cc: New file.
55351         * modules/time-tests (Files): Add it.
55352         (Makefile.am): Compile it for test-time-c++.
55353         Reported by John W. Eaton <jwe@gnu.org>.
55355 2010-03-13  Bruno Haible  <bruno@clisp.org>
55357         * gnulib-tool (func_usage): Clarify which options are available for
55358         --create-testdir and --create-megatestdir.
55360 2010-03-13  Bruno Haible  <bruno@clisp.org>
55362         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55363         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55364         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55365         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55366         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55367         when appropriate.
55368         Reported by Jim Meyering.
55370 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55372         * gnulib-tool (func_import): Explain origin of code.
55374 2010-03-12  Bruno Haible  <bruno@clisp.org>
55376         Fix problem with automake's definition of CXXLINK.
55377         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55378         Reported by Simon Josefsson and Ludovic Courtès.
55380 2010-03-12  Bruno Haible  <bruno@clisp.org>
55382         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55383         stable releases.
55385 2010-03-11  Bruno Haible  <bruno@clisp.org>
55387         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55388         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55389         whether the system provides one variant or multiple variants of the
55390         function.
55391         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55392         C++ compilers.
55393         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55394         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55395         Reported by Jim Meyering.
55397 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55399         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55401 2010-03-08  Bruno Haible  <bruno@clisp.org>
55403         gnulib-tool: Add support for --libtool in --create-testdir.
55404         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55405         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55407 2010-03-08  Eric Blake  <eblake@redhat.com>
55409         gnulib-tool.texi: mention possibility of git submodule
55410         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55411         submodules.
55412         * doc/.gitignore: Ignore another generated file.
55414 2010-03-08  Karl Berry  <karl@gnu.org>
55416         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55417         of committing gnulib files while skipping others.
55419 2010-03-07  Bruno Haible  <bruno@clisp.org>
55421         Tests of module 'wctype' in C++ mode.
55422         * tests/test-wctype-c++.cc: New file.
55423         * modules/wctype-tests (Files): Add it and tests/signature.h.
55424         (Depends-on): Add ansi-c++-opt.
55425         (Makefile.am): Arrange to compile and run test-wctype-c++.
55427         Tests of module 'wchar' in C++ mode.
55428         * tests/test-wchar-c++.cc: New file.
55429         * modules/wchar-tests (Files): Add it and tests/signature.h.
55430         (Depends-on): Add ansi-c++-opt.
55431         (Makefile.am): Arrange to compile and run test-wchar-c++.
55432         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55433         gl_MODULE_INDICATOR.
55435         Tests of module 'unistd' in C++ mode.
55436         * tests/test-unistd-c++.cc: New file.
55437         * modules/unistd-tests (Files): Add it and tests/signature.h.
55438         (Depends-on): Add ansi-c++-opt.
55439         (Makefile.am): Arrange to compile and run test-unistd-c++.
55440         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55441         gl_MODULE_INDICATOR.
55443         Tests of module 'time' in C++ mode.
55444         * tests/test-time-c++.cc: New file.
55445         * modules/time-tests (Files): Add it and tests/signature.h.
55446         (Depends-on): Add ansi-c++-opt.
55447         (Makefile.am): Arrange to compile and run test-time-c++.
55448         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55450         Tests of module 'sys_time' in C++ mode.
55451         * tests/test-sys_time-c++.cc: New file.
55452         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55453         (Depends-on): Add ansi-c++-opt.
55454         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55455         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55456         gl_MODULE_INDICATOR.
55458         Tests of module 'sys_stat' in C++ mode.
55459         * tests/test-sys_stat-c++.cc: New file.
55460         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55461         (Depends-on): Add ansi-c++-opt.
55462         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55463         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55464         gl_MODULE_INDICATOR.
55466         Tests of module 'sys_socket' in C++ mode.
55467         * tests/test-sys_socket-c++.cc: New file.
55468         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55469         (Depends-on): Add ansi-c++-opt.
55470         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55472         gl_MODULE_INDICATOR.
55474         Tests of module 'sys_select' in C++ mode.
55475         * tests/test-sys_select-c++.cc: New file.
55476         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55477         (Depends-on): Add ansi-c++-opt.
55478         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55479         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55480         gl_MODULE_INDICATOR.
55482         Tests of module 'sys_ioctl' in C++ mode.
55483         * tests/test-sys_ioctl-c++.cc: New file.
55484         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55485         (Depends-on): Add ansi-c++-opt.
55486         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55487         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55488         gl_MODULE_INDICATOR.
55490         Tests of module 'string' in C++ mode.
55491         * tests/test-string-c++.cc: New file.
55492         * modules/string-tests (Files): Add it and tests/signature.h.
55493         (Depends-on): Add ansi-c++-opt.
55494         (Makefile.am): Arrange to compile and run test-string-c++.
55495         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55496         gl_MODULE_INDICATOR.
55498         Tests of module 'stdlib' in C++ mode.
55499         * tests/test-stdlib-c++.cc: New file.
55500         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55501         (Depends-on): Add ansi-c++-opt.
55502         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55503         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55504         gl_MODULE_INDICATOR.
55506         Tests of module 'stdio' in C++ mode.
55507         * tests/test-stdio-c++.cc: New file.
55508         * modules/stdio-tests (Files): Add it and tests/signature.h.
55509         (Depends-on): Add ansi-c++-opt.
55510         (Makefile.am): Arrange to compile and run test-stdio-c++.
55511         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55512         gl_MODULE_INDICATOR.
55514         Tests of module 'spawn' in C++ mode.
55515         * tests/test-spawn-c++.cc: New file.
55516         * modules/spawn-tests (Files): Add it and tests/signature.h.
55517         (Depends-on): Add ansi-c++-opt.
55518         (Makefile.am): Arrange to compile and run test-spawn-c++.
55519         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55520         gl_MODULE_INDICATOR.
55522         Tests of module 'signal' in C++ mode.
55523         * tests/test-signal-c++.cc: New file.
55524         * modules/signal-tests (Files): Add it and tests/signature.h.
55525         (Depends-on): Add ansi-c++-opt.
55526         (Makefile.am): Arrange to compile and run test-signal-c++.
55527         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55528         gl_MODULE_INDICATOR.
55530         Tests of module 'search' in C++ mode.
55531         * tests/test-search-c++.cc: New file.
55532         * modules/search-tests (Files): Add it and tests/signature.h.
55533         (Depends-on): Add ansi-c++-opt.
55534         (Makefile.am): Arrange to compile and run test-search-c++.
55535         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55536         gl_MODULE_INDICATOR.
55538         Tests of module 'math' in C++ mode.
55539         * tests/test-math-c++.cc: New file.
55540         * modules/math-tests (Files): Add it and tests/signature.h.
55541         (Depends-on): Add ansi-c++-opt.
55542         (Makefile.am): Arrange to compile and run test-math-c++.
55543         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55545         Tests of module 'locale' in C++ mode.
55546         * tests/test-locale-c++.cc: New file.
55547         * modules/locale-tests (Files): Add it and tests/signature.h.
55548         (Depends-on): Add ansi-c++-opt.
55549         (Makefile.am): Arrange to compile and run test-locale-c++.
55550         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55551         gl_MODULE_INDICATOR.
55553         Tests of module 'langinfo' in C++ mode.
55554         * tests/test-langinfo-c++.cc: New file.
55555         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55556         (Depends-on): Add ansi-c++-opt.
55557         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55558         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55559         gl_MODULE_INDICATOR.
55561         Tests of module 'iconv-h' in C++ mode.
55562         * tests/test-iconv-h-c++.cc: New file.
55563         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55564         (Depends-on): Add ansi-c++-opt.
55565         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55567         Tests of module 'glob' in C++ mode.
55568         * tests/test-glob-c++.cc: New file.
55569         * modules/glob-tests (Files): Add it.
55570         (Depends-on): Add ansi-c++-opt.
55571         (Makefile.am): Arrange to compile and run test-glob-c++.
55573         Tests of module 'fcntl-h' in C++ mode.
55574         * tests/test-fcntl-h-c++.cc: New file.
55575         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55576         (Depends-on): Add ansi-c++-opt.
55577         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55578         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55579         gl_MODULE_INDICATOR.
55581         Tests of module 'dirent' in C++ mode.
55582         * tests/test-dirent-c++.cc: New file.
55583         * modules/dirent-tests (Files): Add it and tests/signature.h.
55584         (Depends-on): Add ansi-c++-opt.
55585         (Makefile.am): Arrange to compile and run test-dirent-c++.
55586         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55587         gl_MODULE_INDICATOR.
55589         New module 'ansi-c++-opt'.
55590         * modules/ansi-c++-opt: New file.
55591         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55593         Document C++ namespace mode.
55594         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55596         wctype: Avoid #define replacements in C++ mode.
55597         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55598         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55599         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55600         In C++, define a namespaced alias symbol.
55601         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55602         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55603         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55604         rule.
55606         wchar: Avoid #define replacements in C++ mode.
55607         * lib/wchar.in.h: Include c++defs.h.
55608         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55609         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55610         symbol.
55611         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55612         * modules/wchar (Depends-on): Add c++defs.
55613         (Makefile.am): Update wchar.h rule.
55615         unistd: Avoid #define replacements in C++ mode.
55616         * lib/unistd.in.h: Include c++defs.h.
55617         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55618         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55619         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55620         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55621         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55622         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55623         symbol.
55624         (environ): Update.
55625         * modules/unistd (Depends-on): Add c++defs.
55626         (Makefile.am): Update unistd.h rule.
55628         time: Avoid #define replacements in C++ mode.
55629         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55630         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55631         define a namespaced alias symbol.
55632         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55633         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55634         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55635         * modules/time (Depends-on): Add c++defs, warn-on-use.
55636         (Makefile.am): Update time.h rule.
55637         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55638         * modules/nanosleep (configure.ac): Likewise.
55639         * modules/strptime (configure.ac): Likewise.
55640         * modules/timegm (configure.ac): Likewise.
55642         sys_time: Avoid #define replacements in C++ mode.
55643         * lib/sys_time.in.h: Include c++defs.h.
55644         (gettimeofday): In C++, define a namespaced alias symbol.
55645         * modules/sys_time (Depends-on): Add c++defs.
55646         (Makefile.am): Update sys/time.h rule.
55648         sys_stat: Avoid #define replacements in C++ mode.
55649         * lib/sys_stat.in.h: Include c++defs.h.
55650         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55651         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55652         namespaced alias symbol.
55653         In C++, define a namespaced alias symbol.
55654         * modules/sys_stat (Depends-on): Add c++defs.
55655         (Makefile.am): Update sys/stat.h rule.
55657         sys_socket: Avoid #define replacements in C++ mode.
55658         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55659         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55660         definitions also when the system has a <sys/socket.h>.
55661         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55662         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55663         In C++, define a namespaced alias symbol.
55664         * modules/sys_socket (Depends-on): Add c++defs.
55665         (Makefile.am): Update sys/socket.h rule.
55667         sys_select: Avoid #define replacements in C++ mode.
55668         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55669         definitions also when the system has a <sys/select.h>.
55670         (select): In C++, define a namespaced alias symbol.
55671         * modules/sys_select (Depends-on): Add c++defs.
55672         (Makefile.am): Update sys/select.h rule.
55674         sys_ioctl: Avoid #define replacements in C++ mode.
55675         * lib/sys_ioctl.in.h: Include c++defs.h.
55676         (ioctl): In C++, define a namespaced alias symbol.
55677         * modules/sys_ioctl (Depends-on): Add c++defs.
55678         (Makefile.am): Update sys/ioctl.h rule.
55680         string: Avoid #define replacements in C++ mode.
55681         * lib/string.in.h: Include c++defs.h.
55682         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55683         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55684         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55685         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55686         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55687         * modules/string (Depends-on): Add c++defs.
55688         (Makefile.am): Update string.h rule.
55690         stdlib: Avoid #define replacements in C++ mode.
55691         * lib/stdlib.in.h: Include c++defs.h.
55692         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55693         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55694         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55695         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55696         symbol.
55697         * modules/stdlib (Depends-on): Add c++defs.
55698         (Makefile.am): Update stdlib.h rule.
55700         stdio: Avoid #define replacements in C++ mode.
55701         * lib/stdio.in.h: Include c++defs.h.
55702         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55703         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55704         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55705         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55706         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55707         namespaced alias symbol.
55708         * modules/stdio (Depends-on): Add c++defs.
55709         (Makefile.am): Update stdio.h rule.
55711         spawn: Avoid #define replacements in C++ mode.
55712         * lib/spawn.in.h: Include c++defs.h.
55713         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55714         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55715         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55716         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55717         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55718         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55719         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55720         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55721         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55722         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55723         In C++, define a namespaced alias symbol.
55724         * modules/spawn (Depends-on): Add c++defs.
55725         (Makefile.am): Update spawn.h rule.
55727         signal: Avoid #define replacements in C++ mode.
55728         * lib/signal.in.h: Include c++defs.h.
55729         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55730         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55731         namespaced alias symbol.
55732         * modules/signal (Depends-on): Add c++defs.
55733         (Makefile.am): Update signal.h rule.
55735         search: Avoid #define replacements in C++ mode.
55736         * lib/search.in.h: Include c++defs.h.
55737         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55738         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55739         symbol.
55740         * modules/search (Depends-on): Add c++defs.
55741         (Makefile.am): Update search.h rule.
55743         math: Avoid #define replacements in C++ mode.
55744         * lib/math.in.h: Include c++defs.h.
55745         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55746         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55747         trunc, truncl): In C++, define a namespaced alias symbol.
55748         * modules/math (Depends-on): Add c++defs.
55749         (Makefile.am): Update math.h rule.
55751         locale: Avoid #define replacements in C++ mode.
55752         * lib/locale.in.h: Include c++defs.h.
55753         (duplocale): In C++, define a namespaced alias symbol.
55754         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55755         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55756         * modules/locale (Depends-on): Add c++defs.
55757         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55759         langinfo: Avoid #define replacements in C++ mode.
55760         * lib/langinfo.in.h: Include c++defs.h.
55761         (nl_langinfo): In C++, define a namespaced alias symbol.
55762         * modules/langinfo (Depends-on): Add c++defs.
55763         (Makefile.am): Update langinfo.h rule.
55765         iconv-h: Avoid #define replacements in C++ mode.
55766         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55767         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55768         symbol.
55769         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55770         whenever iconv is present.
55771         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55772         (Makefile.am): Update iconv.h rule.
55774         glob: Avoid #define replacements in C++ mode.
55775         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55776         (_gl_glob_errfunc_fn): New type.
55777         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55778         symbol.
55779         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55780         (Makefile.am): Update glob.h rule.
55782         fcntl-h: Avoid #define replacements in C++ mode.
55783         * lib/fcntl.in.h: Include c++defs.h.
55784         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55785         * modules/fcntl-h (Depends-on): Add c++defs.
55786         (Makefile.am): Update fcntl.h rule.
55788         dirent: Avoid #define replacements in C++ mode.
55789         * lib/dirent.in.h: Include c++defs.h.
55790         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55791         namespaced alias symbol.
55792         (dirfd): Update declaration.
55793         * modules/dirent (Depends-on): Add c++defs.
55794         (Makefile.am): Update dirent.h rule.
55796         ctype: Make it usable in C++ code.
55797         * lib/ctype.in.h: Include c++defs.h.
55798         (isblank): Declare as extern "C".
55799         * modules/ctype (Depends-on): Add c++defs.
55800         (Makefile.am): Update ctype.h rule.
55802         New module 'c++defs'.
55803         * modules/c++defs: New file.
55804         * build-aux/c++defs.h: New file.
55805         Reported by John W. Eaton <jwe@gnu.org>.
55807 2010-03-07  Bruno Haible  <bruno@clisp.org>
55809         logb: Provide missing declaration for Cygwin.
55810         * lib/math.in.h (logb): New declaration.
55811         * m4/logb.m4: New file.
55812         * modules/logb (Files): Add m4/logb.m4.
55813         (Depends-on): Add math.
55814         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55815         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55817         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55818         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55820 2010-03-07  Bruno Haible  <bruno@clisp.org>
55822         Fix test-cond link error.
55823         * tests/test-cond.c: Include <stdio.h>.
55825 2010-03-07  Bruno Haible  <bruno@clisp.org>
55827         Fix test-dirent-safer link error.
55828         * modules/dirent-safer-tests (Makefile.am): Define
55829         test_dirent_safer_LDADD.
55831 2010-03-07  Bruno Haible  <bruno@clisp.org>
55833         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55834         among default module list.
55836 2010-03-07  Bruno Haible  <bruno@clisp.org>
55838         Fix link error on platforms with GNU libiconv.
55839         * modules/unistr/u8-strcoll-tests (Makefile): Define
55840         test_u8_strcoll_LDADD.
55841         * modules/unistr/u16-strcoll-tests (Makefile): Define
55842         test_u16_strcoll_LDADD.
55843         * modules/unistr/u32-strcoll-tests (Makefile): Define
55844         test_u32_strcoll_LDADD.
55846 2010-03-07  Bruno Haible  <bruno@clisp.org>
55848         Use POSIX declarations for socket functions.
55849         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55850         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55851         rpl_sendto): Change declaration to match POSIX.
55852         * lib/connect.c (rpl_connect): Likewise.
55853         * lib/accept.c (rpl_accept): Likewise.
55854         * lib/bind.c (rpl_bind): Likewise.
55855         * lib/getpeername.c (rpl_getpeername): Likewise.
55856         * lib/getsockname.c (rpl_getsockname): Likewise.
55857         * lib/recv.c (rpl_recv): Likewise.
55858         * lib/send.c (rpl_send): Likewise.
55859         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55860         * lib/sendto.c (rpl_sendto): Likewise.
55862 2010-03-06  Bruno Haible  <bruno@clisp.org>
55864         Clarify access, euidaccess, faccessat.
55865         * doc/posix-functions/faccessat.texi: Mention security problem under
55866         "Other problems", not "Portability problems".
55867         * doc/posix-functions/access.texi: Likewise. Mention a related security
55868         problem.
55869         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55870         * lib/euidaccess.c: Add comments about platforms.
55871         * lib/unistd.in.h (access, euidaccess): Add warnings.
55873 2010-03-07  Bruno Haible  <bruno@clisp.org>
55875         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55876         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55877         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55878         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55879         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55880         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55881         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55882         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55883         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55884         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55885         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55886         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55887         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55888         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55889         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55890         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55891         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55892         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55893         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55894         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55895         Likewise.
55896         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55897         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55898         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55899         Likewise.
55900         * tests/test-spawn.c (main): Make it work when
55901         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55903 2010-03-07  Bruno Haible  <bruno@clisp.org>
55905         Fix incorrect Makefile.am generation in German locale.
55906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55907         Execute sed command with character range in C locale.
55909 2010-03-06  Bruno Haible  <bruno@clisp.org>
55911         Tests for module 'iconv-h'.
55912         * modules/iconv-h-tests: New file.
55913         * tests/test-iconv-h.c: New file.
55915         New module 'iconv-h'.
55916         * modules/iconv-h: New file.
55917         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55918         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55919         (configure.ac): Remove gl_ICONV_H.
55920         (Makefile.am): Remove rule for iconv.h.
55922 2010-03-06  Bruno Haible  <bruno@clisp.org>
55924         More consistent naming of *.m4 files.
55925         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55926         * modules/wctype (Files): Update.
55928         More consistent naming of *.m4 files.
55929         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55930         * modules/wchar (Files): Update.
55932 2010-03-06  Jim Meyering  <meyering@redhat.com>
55934         euidaccess: relax license to LGPLv2+
55935         * modules/euidaccess (License): Relax to LGPLv2+.
55937 2010-03-06  Bruno Haible  <bruno@clisp.org>
55939         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55940         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55941         (Makefile.am): Augment lib_SOURCES instead.
55943 2010-03-04  Jim Meyering  <meyering@redhat.com>
55945         utime: remove obsolete module
55946         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55947         unnecessary for years, and has been marked as obsolete for 10 months.
55948         * modules/utime: Remove file.
55949         * lib/utime.c: Remove file.
55950         * m4/utime.m4: Remove file.
55951         * m4/utimes-null.m4: Remove file.
55952         * doc/posix-functions/utime.texi (utime): Remove reference to
55953         the module.  Move the sole "fixed by gnulib" item into the
55954         "problems not fixed by Gnulib" list.
55955         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55957 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55959         * modules/exit (License): Relax license to LGPLv2+.
55960         (Status): Mark as obsolete.
55961         * NEWS: Mention deprecated 'exit' module.
55962         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55963         of now obsolete 'exit'.
55965 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55967         fts-lgpl: remove unused module
55968         * modules/fts-lgpl: Remove.
55969         * MODULES.html.sh (func_all_modules): Adjust.
55970         * check-module (find_included_lib_files): Adjust.
55971         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55973 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55975         copy-acl: enhance Solaris ACL error handling
55976         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55977         * lib/set-mode-acl.c (qset_acl): Likewise.
55979 2010-03-02  Bruno Haible  <bruno@clisp.org>
55981         spawn: Don't override the system defined values on FreeBSD 8.
55982         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55983         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55984         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55985         if HAVE_POSIX_SPAWN is 1.
55986         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55988 2010-03-01  Bruno Haible  <bruno@clisp.org>
55990         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55991         regarding Automake.
55993 2010-02-25  Bruno Haible  <bruno@clisp.org>
55995         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55996         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55997         setting, not afterwards.
55998         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
56000 2010-02-24  Eric Blake  <eblake@redhat.com>
56002         bootstrap, git-version-gen: use timestamp
56003         * build-aux/git-version-gen (scriptversion): Force UTC.
56004         * build-aux/bootstrap (scriptversion): New variable.
56006         bootstrap: allow older git
56007         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
56008         older than 1.6.4.  Requested by the libvirt project.
56010 2010-02-23  Eric Blake  <eblake@redhat.com>
56012         warn-on-use: work with old autoconf
56013         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
56014         AS_VAR semantics of autoconf 2.60.
56015         Reported by Bruno Haible.
56017         bootstrap: improve some comments
56018         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
56019         clarification comments.
56021         gettimeofday: provide correct function
56022         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
56023         when replacement is declared, otherwise provide gettimeofday.
56024         Reported by Michael Goffioul.
56026 2010-02-23  Jim Meyering  <meyering@redhat.com>
56028         lib-ignore: relax license to "unlimited", not LGPLv2+
56029         * modules/lib-ignore (License): Relax to "unlimited".
56031 2010-02-23  Jim Meyering  <meyering@redhat.com>
56033         lib-ignore: relax license to LGPLv2+
56034         * modules/lib-ignore (License): Relax to LGPLv2+.
56036 2010-02-22  Eric Blake  <eblake@redhat.com>
56038         lseek: avoid bash 3.2 broken pipe bug
56039         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
56040         warning from bash 3.2.
56041         Reported by Ben Pfaff, with analysis from Bruno Haible.
56043         bootstrap: support non-FSF copyright holder
56044         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
56045         bootstrap.conf override of COPYRIGHT_HOLDER.
56046         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
56048         bootstrap: interoperate with gettext 0.14.1
56049         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
56051         bootstrap: allow for alternate submodule location
56052         * build-aux/bootstrap (gnulib_path): New variable; use instead of
56053         hardcoding submodule location.
56054         (gnulib_mk): Allow direct use of Makefile.am.
56056         bootstrap: use GNULIB_SRCDIR to reduce disk usage
56057         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
56058         rather than reconfiguring where the submodule points.
56060         gettimeofday: restore support for platforms that lack function
56061         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
56062         replacement if function is missing.
56063         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
56064         * modules/sys_time (Makefile.am): Substitute it.
56065         * lib/sys_time.in.h (gettimeofday): Check it.
56066         Reported by Michael Goffioul.
56068 2010-02-21  Bruno Haible  <bruno@clisp.org>
56070         * lib/stdio.in.h (obstack_printf): Fix typo.
56072 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
56074         vc-list-files: use bzr ls's -R option
56075         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
56076         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
56078 2010-02-21  Jim Meyering  <meyering@redhat.com>
56080         init.sh: fix EXEEXT shims to work also for names like test-prog
56081         * tests/init.sh: Re-exec a better shell, when needed.
56082         If the current shell lacks support for posix $(...), an init.sh-using
56083         test will now try to find a shell that supports that.  If EXEEXT is
56084         nonempty, we also require support for hyphen-in-alias-name and shell
56085         substitutions like ${var#glob}.  Failure to find such a shell results
56086         in a skipped test.
56088 2010-02-21  Bruno Haible  <bruno@clisp.org>
56090         Really work around "broken pipe" error message from bash 3.2.
56091         * gnulib-tool (func_reset_sigpipe): Remove function.
56092         (echo): In bash 3.2, define to a function that uses printf.
56093         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
56095 2010-02-20  Bruno Haible  <bruno@clisp.org>
56097         Restore support for automake 1.9.6 with autoconf 2.61.
56098         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
56099         Reported by James Youngman <jay@gnu.org>.
56101 2010-02-20  Bruno Haible  <bruno@clisp.org>
56103         Improve *printf warning condition.
56104         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
56105         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
56106         and the function is overridden due to SIGPIPE emulation.
56108 2010-02-20  Bruno Haible  <bruno@clisp.org>
56110         * lib/stdio.in.h: Tweak comments.
56112 2010-02-19  Bruno Haible  <bruno@clisp.org>
56114         Make it easier to find modules. New gnulib-tool option '--find'.
56115         * gnulib-tool: New option --find.
56116         (func_usage): Document it.
56117         (func_sanitize_modulelist): New function, extracted from
56118         func_all_modules.
56119         (func_all_modules): Invoke it.
56120         * doc/gnulib-tool.texi (Which modules?): New node.
56122 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
56124         * lib/sys_select.in.h: Provide select replacement even if
56125         sys/select.h exists on a system, for Interix.
56127 2010-02-18  Jim Meyering  <meyering@redhat.com>
56129         init.sh: don't use $(...) just yet
56130         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
56131         to accommodate e.g., Solaris' /bin/sh.
56133 2010-02-17  Bruno Haible  <bruno@clisp.org>
56135         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
56136         Reported by Ludovic Courtès <ludo@gnu.org>.
56138 2010-02-16  Simon Josefsson  <simon@josefsson.org>
56140         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
56141         linking with -lintl.
56143 2010-02-17  Simon Josefsson  <simon@josefsson.org>
56145         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
56146         if not provided by the system's netdb.h.  Reported by
56147         ludo@gnu.org (Ludovic Courtès).
56149 2010-02-15  Jim Meyering  <meyering@redhat.com>
56151         init.sh: improve portability and efficiency
56152         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
56153         "dummy" in a for loop.
56154         Use '!', not '^' to select the complement of a character set used
56155         in a "case" statement.
56156         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
56157         Suggestions from Eric Blake.
56159         init.sh: automatically accommodate programs with the .exe suffix
56160         Automatically arrange for an invocation of "prog" to execute the
56161         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
56162         may use the simpler "prog", yet still work when built on a system
56163         that requires specifying the added suffix.
56164         Do this by constructing a function named "prog" that invokes
56165         "prog.exe" for each .exe file in selected directories.
56166         * tests/init.sh (find_exe_basenames_): New function.
56167         (create_exe_shim_functions_): New function.
56168         (path_prepend_): Use it.
56170         maint.mk: mark syntax-check sc_*.m rules as .PHONY
56171         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
56172         "make -t syntax-check" doesn't create a ton of sc_*.m files.
56174 2010-02-14  Jim Meyering  <meyering@redhat.com>
56176         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
56177         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
56178         (sc_prohibit_hash_pjw_without_use): New rule.
56180         maint.mk: allow the default upload destination dir to be overridden
56181         * top/maint.mk (upload_dest_dir_): Define with a default that
56182         preserves the status quo.
56183         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
56184         Reported by Peter Simons.
56186         maint.mk: prohibit inclusion of "hash.h" without_use
56187         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
56189 2010-02-10  Jim Meyering  <meyering@redhat.com>
56191         maint.mk: prohibit inclusion of "ignore-value.h" without_use
56192         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
56194 2010-02-09  Eric Blake  <ebb9@byu.net>
56195         and Bruno Haible  <bruno@clisp.org>
56197         obstack-printf-posix: ensure declaration
56198         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
56199         extracted from gl_FUNC_OBSTACK_PRINTF.
56200         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
56201         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56202         Likewise.
56203         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
56204         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
56205         0.
56207 2010-02-08  Bruno Haible  <bruno@clisp.org>
56209         gnulib-tool: Fix typo in 2010-02-07 commit.
56210         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
56211         Reported by Eric Blake.
56213 2010-02-07  Bruno Haible  <bruno@clisp.org>
56215         gnulib-tool: Fix up caching patches.
56216         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
56217         option --no-cache. Use associative arrays when supported by the shell.
56218         (sed_comments): New variable.
56219         (modcache): Renamed from do_cache.
56220         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
56221         abbreviate unnecessarily.
56222         (have_associative): New variable.
56223         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
56224         way also for ksh and zsh.
56225         (func_init_sed_convert_to_cache_statements): New function, extracted
56226         from func_cache_lookup_module. Add support for associative arrays.
56227         Don't set the c_MODULE_cached variable here. Ignore all lines before
56228         the first field header. Remove only the final newline, not all trailing
56229         newlines. Support empty fields correctly. Limit the use of 'eval' to
56230         assignments.
56231         (func_get_description, func_get_status, func_get_notice,
56232         func_get_applicability, func_get_filelist, func_get_dependencies,
56233         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
56234         func_get_automake_snippet, func_get_include_directive,
56235         func_get_link_directive, func_get_license, func_get_maintainer):
56236         Update documentation. List the unoptimized code first. Add support for
56237         associative arrays. Limit the use of 'eval' to assignments.
56238         (func_get_applicability): Undo stylistic pessimisations.
56239         (func_get_automake_snippet, func_get_include_directive): Reduce code
56240         duplication.
56241         (func_modules_transitive_closure, func_modules_add_dummy,
56242         func_modules_notice, func_modules_to_filelist, func_add_file,
56243         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
56244         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
56245         func_create_testdir, func_create_megatestdir): Update documentation.
56247 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56249         * gnulib-tool (func_cache_lookup_module): Store the module name
56250         belonging to the cache variable; error out if two different
56251         module names map to the same cache variable name.
56253 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56255         gnulib-tool: Make caching optional.
56256         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
56257         Update matching short versions of --no-changelog.
56258         (func_usage): Update.
56259         (sed_extract_cache_prog): Renamed from ...
56260         (sed_extract_prog): ... this; revert to old extraction script.
56261         (func_get_description, func_get_status)
56262         (func_get_notice, func_get_applicability, func_get_filelist)
56263         (func_get_dependencies, func_get_autoconf_early_snippet)
56264         (func_get_autoconf_snippet, func_get_automake_snippet)
56265         (func_get_include_directive, func_get_link_directive)
56266         (func_get_license, func_get_maintainer): If $do_cache is false,
56267         use old, non-caching extraction scripts.
56268         Suggestion by Bruno Haible.
56270 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56272         gnulib-tool: cache module metainformation.
56273         * gnulib-tool (sed_extract_prog): Match newline before each
56274         header, and rewrite header to a shell variable suffix.
56275         (func_cache_var, func_cache_lookup_module): New functions,
56276         to turn a module name into a cache variable prefix, and to
56277         look up and cache module metainformation.
56278         (func_get_description, func_get_status)
56279         (func_get_notice, func_get_applicability, func_get_filelist)
56280         (func_get_dependencies, func_get_autoconf_early_snippet)
56281         (func_get_autoconf_snippet, func_get_automake_snippet)
56282         (func_get_include_directive, func_get_link_directive)
56283         (func_get_license, func_get_maintainer): Use
56284         func_cache_lookup_module.
56286 2010-02-07  Bruno Haible  <bruno@clisp.org>
56288         fnctl: Fix missing dependency.
56289         * modules/fcntl (Depends-on): Add getdtablesize.
56290         Reported by John W. Eaton <jwe@gnu.org>.
56292 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56294         Argp: fix recognition of short alias options.
56296         * lib/argp-parse.c (convert_options): Fix improper use of
56297         `|' between character values.
56298         * tests/test-argp.c (group1_option): New alias option
56299         --read (-r).
56300         (group1_parser): Special handling for 'r'.
56301         (test15): New test case.
56302         (test_fun): Add test15.
56303         * tests/test-argp-2.sh: Update expected --help and --usage
56304         outputs.
56306 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56308         * tests/test-argp.c: Fix indentation.
56310 2010-02-04  Eric Blake  <ebb9@byu.net>
56312         gettimeofday: expose type of second argument
56313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
56314         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
56315         * tests/test-gettimeofday.c: Use it to silence warning.
56316         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
56317         the issue.
56319 2010-02-03  Jim Meyering  <meyering@redhat.com>
56321         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
56322         * lib/regcomp.c (TYPE_SIGNED): Define.
56323         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
56325         regcomp.c: avoid a new -Wshadow warning
56326         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
56328 2010-02-01  Jim Meyering  <meyering@redhat.com>
56330         removing useless parentheses in cpp #define directives
56331         For motivation, see commit c0221df4, "define STREQ(a,b)
56332         consistently, removing useless parentheses"
56333         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56334         * lib/mountlist.c (MNT_IGNORE): Likewise.
56335         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56337 2010-02-01  Eric Blake  <ebb9@byu.net>
56339         sys_time: use link-warning
56340         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56341         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56342         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56343         * modules/sys_time (Depends-on): Add warn-on-use.
56344         (Makefile.am): Always build replacement.
56345         (configure.ac): Update substitutions.
56346         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56347         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56348         bother with SYS_TIME_H.
56349         * modules/gettimeofday (configure.ac): Declare indicator.
56350         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56351         in use.
56353         closein-tests: silence compiler warning
56354         * tests/test-closein.c (main): Ignore fread result.
56355         * modules/closein-tests (Depends-on): Add ignore-value.
56357         tests: silence warning about system return
56358         * tests/test-areadlink-with-size.c (main): Ignore system result.
56359         * tests/test-areadlink.c (main): Likewise.
56360         * tests/test-areadlinkat-with-size.c (main): Likewise.
56361         * tests/test-areadlinkat.c (main): Likewise.
56362         * tests/test-canonicalize-lgpl.c (main): Likewise.
56363         * tests/test-canonicalize.c (main): Likewise.
56364         * tests/test-chown.c (main): Likewise.
56365         * tests/test-fchownat.c (main): Likewise.
56366         * tests/test-fdutimensat.c (main): Likewise.
56367         * tests/test-fstatat.c (main): Likewise.
56368         * tests/test-futimens.c (main): Likewise.
56369         * tests/test-lchown.c (main): Likewise.
56370         * tests/test-link.c (main): Likewise.
56371         * tests/test-linkat.c (main): Likewise.
56372         * tests/test-lstat.c (main): Likewise.
56373         * tests/test-mkdir.c (main): Likewise.
56374         * tests/test-mkdirat.c (main): Likewise.
56375         * tests/test-mkfifo.c (main): Likewise.
56376         * tests/test-mkfifoat.c (main): Likewise.
56377         * tests/test-mknod.c (main): Likewise.
56378         * tests/test-readlink.c (main): Likewise.
56379         * tests/test-remove.c (main): Likewise.
56380         * tests/test-rename.c (main): Likewise.
56381         * tests/test-renameat.c (main): Likewise.
56382         * tests/test-rmdir.c (main): Likewise.
56383         * tests/test-symlink.c (main): Likewise.
56384         * tests/test-symlinkat.c (main): Likewise.
56385         * tests/test-unlink.c (main): Likewise.
56386         * tests/test-unlinkat.c (main): Likewise.
56387         * tests/test-utimens.c (main): Likewise.
56388         * tests/test-utimensat.c (main): Likewise.
56389         * modules/areadlink-tests (Depends-on): Add ignore-value.
56390         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56391         * modules/areadlinkat-tests (Depends-on): Likewise.
56392         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56393         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56394         * modules/canonicalize-tests (Depends-on): Likewise.
56395         * modules/chown-tests (Depends-on): Likewise.
56396         * modules/fdutimensat-tests (Depends-on): Likewise.
56397         * modules/futimens-tests (Depends-on): Likewise.
56398         * modules/lchown-tests (Depends-on): Likewise.
56399         * modules/link-tests (Depends-on): Likewise.
56400         * modules/linkat-tests (Depends-on): Likewise.
56401         * modules/lstat-tests (Depends-on): Likewise.
56402         * modules/mkdir-tests (Depends-on): Likewise.
56403         * modules/mkfifo-tests (Depends-on): Likewise.
56404         * modules/mkfifoat-tests (Depends-on): Likewise.
56405         * modules/mknod-tests (Depends-on): Likewise.
56406         * modules/openat-tests (Depends-on): Likewise.
56407         * modules/readlink-tests (Depends-on): Likewise.
56408         * modules/remove-tests (Depends-on): Likewise.
56409         * modules/rename-tests (Depends-on): Likewise.
56410         * modules/renameat-tests (Depends-on): Likewise.
56411         * modules/rmdir-tests (Depends-on): Likewise.
56412         * modules/symlink-tests (Depends-on): Likewise.
56413         * modules/symlinkat-tests (Depends-on): Likewise.
56414         * modules/unlink-tests (Depends-on): Likewise.
56415         * modules/utimens-tests (Depends-on): Likewise.
56416         * modules/utimensat-tests (Depends-on): Likewise.
56418 2010-01-31  Bruno Haible  <bruno@clisp.org>
56420         Perform the same test for many <math.h> functions.
56421         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56422         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56423         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56424         of gl_MATHFUNC.
56425         * modules/acos (configure.ac): Likewise.
56426         * modules/asin (configure.ac): Likewise.
56427         * modules/atan (configure.ac): Likewise.
56428         * modules/atan2 (configure.ac): Likewise.
56429         * modules/cbrt (configure.ac): Likewise.
56430         * modules/copysign (configure.ac): Likewise.
56431         * modules/cos (configure.ac): Likewise.
56432         * modules/cosh (configure.ac): Likewise.
56433         * modules/erf (configure.ac): Likewise.
56434         * modules/erfc (configure.ac): Likewise.
56435         * modules/exp (configure.ac): Likewise.
56436         * modules/fmod (configure.ac): Likewise.
56437         * modules/hypot (configure.ac): Likewise.
56438         * modules/j0 (configure.ac): Likewise.
56439         * modules/j1 (configure.ac): Likewise.
56440         * modules/jn (configure.ac): Likewise.
56441         * modules/lgamma (configure.ac): Likewise.
56442         * modules/log (configure.ac): Likewise.
56443         * modules/log10 (configure.ac): Likewise.
56444         * modules/log1p (configure.ac): Likewise.
56445         * modules/pow (configure.ac): Likewise.
56446         * modules/remainder (configure.ac): Likewise.
56447         * modules/sin (configure.ac): Likewise.
56448         * modules/sinh (configure.ac): Likewise.
56449         * modules/tan (configure.ac): Likewise.
56450         * modules/tanh (configure.ac): Likewise.
56451         * modules/y0 (configure.ac): Likewise.
56452         * modules/y1 (configure.ac): Likewise.
56453         * modules/yn (configure.ac): Likewise.
56454         Suggested by Paolo Bonzini.
56456 2010-01-31  Bruno Haible  <bruno@clisp.org>
56458         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56460 2010-01-31  Bruno Haible  <bruno@clisp.org>
56462         Work around getdelim() bug on FreeBSD 8.0.
56463         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56464         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56465         not work.
56466         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56467         is 1.
56468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56469         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56470         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56471         a non-zero size.
56472         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56474 2010-01-31  Bruno Haible  <bruno@clisp.org>
56476         Work around getline() bug on FreeBSD 8.0.
56477         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56478         and a non-zero size.
56479         * tests/test-getline.c (main): Likewise.
56480         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56481         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56483 2010-01-28  Eric Blake  <ebb9@byu.net>
56485         regex: fix build failure
56486         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56487         platforms.
56489 2010-01-28  Jim Meyering  <meyering@redhat.com>
56491         regex: do not ignore memory allocation failure
56492         * lib/regex_internal.c (create_cd_newstate): Detect
56493         re_node_set_init_copy failure.   Extracted from glibc commit
56494         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56496         regex: sync more white-space changes from libc
56497         * lib/regex_internal.c: White-space only changes.
56498         * lib/regexec.c: Likewise.
56500         regex: add many uses of __attribute_warn_unused_result__
56501         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56502         * lib/regexec.c: Likewise.
56503         Extracted from a messy glibc commit.
56505         regcomp.c: spelling and merge-artifact from glibc
56506         * lib/regcomp.c: Merge remainder of glibc's
56507         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56509         regcomp.c: sync white-space changes from glibc
56510         * lib/regcomp.c: Merge to accommodate white space
56511         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56513         regcomp.c: do not ignore internal return values
56514         * lib/regcomp.c: Do not ignore internal return values.
56515         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56516         but without its white-space changes and spelling fixes.
56518         regex_internal.h: define __attribute_warn_unused_result__
56519         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56521         maint: add a syntax-check rule to check for vulnerable Makefile.in
56522         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56524 2010-01-27  Jim Meyering  <meyering@redhat.com>
56526         ncftpput-ftp: clean up spaces
56527         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56528         Remove trailing blanks.
56530 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56532         * build-aux/git-version-gen: Fix copyright statement.
56533         * build-aux/gnupload: Likewise.
56534         * tests/test-arcfour.c: Likewise.
56535         * tests/test-arctwo.c: Likewise.
56536         * tests/test-count-one-bits.c: Likewise.
56537         * tests/test-crc.c: Likewise.
56538         * tests/test-des.c: Likewise.
56539         * tests/test-gc-arcfour.c: Likewise.
56540         * tests/test-gc-arctwo.c: Likewise.
56541         * tests/test-gc-des.c: Likewise.
56542         * tests/test-gc-hmac-md5.c: Likewise.
56543         * tests/test-gc-hmac-sha1.c: Likewise.
56544         * tests/test-gc-md2.c: Likewise.
56545         * tests/test-gc-md4.c: Likewise.
56546         * tests/test-gc-md5.c: Likewise.
56547         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56548         * tests/test-gc-rijndael.c: Likewise.
56549         * tests/test-gc-sha1.c: Likewise.
56550         * tests/test-gc.c: Likewise.
56551         * tests/test-gethostname.c: Likewise.
56552         * tests/test-gettimeofday.c: Likewise.
56553         * tests/test-hash.c: Likewise.
56554         * tests/test-hmac-md5.c: Likewise.
56555         * tests/test-hmac-sha1.c: Likewise.
56556         * tests/test-md2.c: Likewise.
56557         * tests/test-md4.c: Likewise.
56558         * tests/test-md5.c: Likewise.
56559         * tests/test-memchr.c: Likewise.
56560         * tests/test-memchr2.c: Likewise.
56561         * tests/test-memcmp.c: Likewise.
56562         * tests/test-memmem.c: Likewise.
56563         * tests/test-memrchr.c: Likewise.
56564         * tests/test-rawmemchr.c: Likewise.
56565         * tests/test-read-file.c: Likewise.
56566         * tests/test-rijndael.c: Likewise.
56567         * tests/test-sockets.c: Likewise.
56568         * tests/test-strchrnul.c: Likewise.
56569         * tests/test-strstr.c: Likewise.
56570         * tests/test-strtod.c: Likewise.
56571         * build-aux/ncftpput-ftp: Likewise.
56573 2010-01-26  Eric Blake  <ebb9@byu.net>
56575         ignore-value: update recommended header name
56576         * modules/ignore-value (Include): Only use <> for headers that
56577         exist in glibc.
56579 2010-01-26  Jim Meyering  <meyering@redhat.com>
56581         test-userspec.c: avoid compiler warnings
56582         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56583         and "initialization discards qualifiers..." warnings.
56584         Put the first "uid" in its own scope, and make char* members "const".
56586 2010-01-25  Bruno Haible  <bruno@clisp.org>
56588         gnulib-tool: Make warning diagnostics consistent.
56589         * gnulib-tool (func_warning): New function.
56590         Use it everywhere where gnulib-tool produces output to stderr and it is
56591         not a fatal error.
56593 2010-01-25  Bruno Haible  <bruno@clisp.org>
56595         Fix test dependencies.
56596         * modules/xstrtol-tests (Depends-on): Add inttypes.
56597         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56599 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56601         syntax-check: detect incorrect boolean macro values in config.h
56602         * modules/maintainer-makefile (configure.ac): Parameterize the location
56603         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56604         The logic is from Eric Blake and the location indicated by Jim Meyering.
56605         Note the more natural CONFIG_HEADER name is prohibited by automake
56606         for backwards compatibility reasons.
56607         * top/maint.mk (sc_Wundef_boolean): New rule.
56609 2010-01-25  Jim Meyering  <meyering@redhat.com>
56611         bootstrap: detect MacOS 10.6's shasum, too
56612         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56613         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56615 2010-01-23  Jim Meyering  <meyering@redhat.com>
56617         xstrtoll: new module
56618         * modules/xstrtoll: New file.
56619         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56620         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56621         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56622         ./configure fails if you use this module and lack "long long".
56623         * modules/xstrtoll-tests: New module.
56624         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56625         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56626         new init.sh-based test framework.
56628 2010-01-24  Bruno Haible  <bruno@clisp.org>
56630         Tests for module 'yn'.
56631         * modules/yn-tests: New file.
56632         * tests/test-yn.c: New file.
56634         Tests for module 'y1'.
56635         * modules/y1-tests: New file.
56636         * tests/test-y1.c: New file.
56638         Tests for module 'y0'.
56639         * modules/y0-tests: New file.
56640         * tests/test-y0.c: New file.
56642         Tests for module 'tanh'.
56643         * modules/tanh-tests: New file.
56644         * tests/test-tanh.c: New file.
56646         Tests for module 'tan'.
56647         * modules/tan-tests: New file.
56648         * tests/test-tan.c: New file.
56650         Tests for module 'sqrt'.
56651         * modules/sqrt-tests: New file.
56652         * tests/test-sqrt.c: New file.
56654         Tests for module 'sinh'.
56655         * modules/sinh-tests: New file.
56656         * tests/test-sinh.c: New file.
56658         Tests for module 'sin'.
56659         * modules/sin-tests: New file.
56660         * tests/test-sin.c: New file.
56662         Tests for module 'rint'.
56663         * modules/rint-tests: New file.
56664         * tests/test-rint.c: New file.
56666         Tests for module 'remainder'.
56667         * modules/remainder-tests: New file.
56668         * tests/test-remainder.c: New file.
56670         Tests for module 'pow'.
56671         * modules/pow-tests: New file.
56672         * tests/test-pow.c: New file.
56674         Tests for module 'nextafter'.
56675         * modules/nextafter-tests: New file.
56676         * tests/test-nextafter.c: New file.
56678         Tests for module 'modf'.
56679         * modules/modf-tests: New file.
56680         * tests/test-modf.c: New file.
56682         Tests for module 'logb'.
56683         * modules/logb-tests: New file.
56684         * tests/test-logb.c: New file.
56686         Tests for module 'log1p'.
56687         * modules/log1p-tests: New file.
56688         * tests/test-log1p.c: New file.
56690         Tests for module 'log10'.
56691         * modules/log10-tests: New file.
56692         * tests/test-log10.c: New file.
56694         Tests for module 'log'.
56695         * modules/log-tests: New file.
56696         * tests/test-log.c: New file.
56698         Tests for module 'lgamma'.
56699         * modules/lgamma-tests: New file.
56700         * tests/test-lgamma.c: New file.
56702         Tests for module 'ldexp'.
56703         * modules/ldexp-tests: New file.
56704         * tests/test-ldexp.c: New file.
56706         Tests for module 'jn'.
56707         * modules/jn-tests: New file.
56708         * tests/test-jn.c: New file.
56710         Tests for module 'j1'.
56711         * modules/j1-tests: New file.
56712         * tests/test-j1.c: New file.
56714         Tests for module 'j0'.
56715         * modules/j0-tests: New file.
56716         * tests/test-j0.c: New file.
56718         Tests for module 'hypot'.
56719         * modules/hypot-tests: New file.
56720         * tests/test-hypot.c: New file.
56722         Tests for module 'fmod'.
56723         * modules/fmod-tests: New file.
56724         * tests/test-fmod.c: New file.
56726         Tests for module 'fabs'.
56727         * modules/fabs-tests: New file.
56728         * tests/test-fabs.c: New file.
56730         Tests for module 'exp'.
56731         * modules/exp-tests: New file.
56732         * tests/test-exp.c: New file.
56734         Tests for module 'erfc'.
56735         * modules/erfc-tests: New file.
56736         * tests/test-erfc.c: New file.
56738         Tests for module 'erf'.
56739         * modules/erf-tests: New file.
56740         * tests/test-erf.c: New file.
56742         Tests for module 'cosh'.
56743         * modules/cosh-tests: New file.
56744         * tests/test-cosh.c: New file.
56746         Tests for module 'cos'.
56747         * modules/cos-tests: New file.
56748         * tests/test-cos.c: New file.
56750         Tests for module 'copysign'.
56751         * modules/copysign-tests: New file.
56752         * tests/test-copysign.c: New file.
56754         Tests for module 'cbrt'.
56755         * modules/cbrt-tests: New file.
56756         * tests/test-cbrt.c: New file.
56758         Tests for module 'atan2'.
56759         * modules/atan2-tests: New file.
56760         * tests/test-atan2.c: New file.
56762         Tests for module 'atan'.
56763         * modules/atan-tests: New file.
56764         * tests/test-atan.c: New file.
56766         Tests for module 'asin'.
56767         * modules/asin-tests: New file.
56768         * tests/test-asin.c: New file.
56770         Tests for module 'acos'.
56771         * modules/acos-tests: New file.
56772         * tests/test-acos.c: New file.
56774 2010-01-24  Bruno Haible  <bruno@clisp.org>
56776         Fix tests for common <math.h> functions.
56777         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56778         code snippet that references the function pointer, rather than merely
56779         calling the function. Substitute the FUNC_LIBM variable.
56780         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56781         * modules/acos (configure.ac): Likewise.
56782         * modules/asin (configure.ac): Likewise.
56783         * modules/atan (configure.ac): Likewise.
56784         * modules/atan2 (configure.ac): Likewise.
56785         * modules/cbrt (configure.ac): Likewise.
56786         * modules/copysign (configure.ac): Likewise.
56787         * modules/cos (configure.ac): Likewise.
56788         * modules/cosh (configure.ac): Likewise.
56789         * modules/erf (configure.ac): Likewise.
56790         * modules/erfc (configure.ac): Likewise.
56791         * modules/exp (configure.ac): Likewise.
56792         * modules/fabs (configure.ac): Likewise.
56793         * modules/fmod (configure.ac): Likewise.
56794         * modules/hypot (configure.ac): Likewise.
56795         * modules/j0 (configure.ac): Likewise.
56796         * modules/j1 (configure.ac): Likewise.
56797         * modules/jn (configure.ac): Likewise.
56798         * modules/ldexp (configure.ac): Likewise.
56799         * modules/lgamma (configure.ac): Likewise.
56800         * modules/log (configure.ac): Likewise.
56801         * modules/log10 (configure.ac): Likewise.
56802         * modules/log1p (configure.ac): Likewise.
56803         * modules/logb (configure.ac): Likewise.
56804         * modules/modf (configure.ac): Likewise.
56805         * modules/nextafter (configure.ac): Likewise.
56806         * modules/pow (configure.ac): Likewise.
56807         * modules/remainder (configure.ac): Likewise.
56808         * modules/rint (configure.ac): Likewise.
56809         * modules/sin (configure.ac): Likewise.
56810         * modules/sinh (configure.ac): Likewise.
56811         * modules/tan (configure.ac): Likewise.
56812         * modules/tanh (configure.ac): Likewise.
56813         * modules/y0 (configure.ac): Likewise.
56814         * modules/y1 (configure.ac): Likewise.
56815         * modules/yn (configure.ac): Likewise.
56817 2010-01-24  Bruno Haible  <bruno@clisp.org>
56819         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56820         * tests/test-acosl.c (x): New variable.
56821         (main): Store argument in x and fetch it from x.
56822         * tests/test-asinl.c (x): New variable.
56823         (main): Store argument in x and fetch it from x.
56824         * tests/test-atanl.c (x): New variable.
56825         (main): Store argument in x and fetch it from x.
56826         * tests/test-cosl.c (x): New variable.
56827         (main): Store argument in x and fetch it from x.
56828         * tests/test-expl.c (x): New variable.
56829         (main): Store argument in x and fetch it from x.
56830         * tests/test-logl.c (x): New variable.
56831         (main): Store argument in x and fetch it from x.
56832         * tests/test-sinl.c (x): New variable.
56833         (main): Store argument in x and fetch it from x.
56834         * tests/test-sqrtl.c (x): New variable.
56835         (main): Store argument in x and fetch it from x.
56836         * tests/test-tanl.c (x): New variable.
56837         (main): Store argument in x and fetch it from x.
56839 2010-01-24  Bruno Haible  <bruno@clisp.org>
56841         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56842         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56843         assignments to the initial TESTS_ENVIRONMENT.
56844         * doc/gnulib.texi (Unit test modules): Document it.
56845         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56846         TESTS_ENVIRONMENT.
56847         * modules/btowc-tests (Makefile.am): Likewise.
56848         * modules/c-stack-tests (Makefile.am): Likewise.
56849         * modules/c-strcase-tests (Makefile.am): Likewise.
56850         * modules/copy-file-tests (Makefile.am): Likewise.
56851         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56852         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56853         * modules/mbrtowc-tests (Makefile.am): Likewise.
56854         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56855         * modules/mbscasestr-tests (Makefile.am): Likewise.
56856         * modules/mbschr-tests (Makefile.am): Likewise.
56857         * modules/mbscspn-tests (Makefile.am): Likewise.
56858         * modules/mbsinit-tests (Makefile.am): Likewise.
56859         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56860         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56861         * modules/mbspbrk-tests (Makefile.am): Likewise.
56862         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56863         * modules/mbsrchr-tests (Makefile.am): Likewise.
56864         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56865         * modules/mbsspn-tests (Makefile.am): Likewise.
56866         * modules/mbsstr-tests (Makefile.am): Likewise.
56867         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56868         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56869         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56870         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56871         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56872         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56873         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56874         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56875         * modules/wcrtomb-tests (Makefile.am): Likewise.
56876         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56877         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56878         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56879         assignments from TESTS_ENVIRONMENT.
56880         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56881         augmentation.
56882         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56883         * modules/atexit-tests (Makefile.am): Likewise.
56884         * modules/binary-io-tests (Makefile.am): Likewise.
56885         * modules/closein-tests (Makefile.am): Likewise.
56886         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56887         * modules/exclude-tests (Makefile.am): Likewise.
56888         * modules/fflush-tests (Makefile.am): Likewise.
56889         * modules/fpending-tests (Makefile.am): Likewise.
56890         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56891         * modules/freadahead-tests (Makefile.am): Likewise.
56892         * modules/freadptr-tests (Makefile.am): Likewise.
56893         * modules/freadseek-tests (Makefile.am): Likewise.
56894         * modules/fseek-tests (Makefile.am): Likewise.
56895         * modules/fseeko-tests (Makefile.am): Likewise.
56896         * modules/ftell-tests (Makefile.am): Likewise.
56897         * modules/ftello-tests (Makefile.am): Likewise.
56898         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56899         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56900         * modules/lseek-tests (Makefile.am): Likewise.
56901         * modules/parse-duration-tests (Makefile.am): Likewise.
56902         * modules/perror-tests (Makefile.am): Likewise.
56903         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56904         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56905         * modules/pipe-tests (Makefile.am): Likewise.
56906         * modules/pread-tests (Makefile.am): Likewise.
56907         * modules/printf-posix-tests (Makefile.am): Likewise.
56908         * modules/select-tests (Makefile.am): Likewise.
56909         * modules/sigpipe-tests (Makefile.am): Likewise.
56910         * modules/tsearch-tests (Makefile.am): Likewise.
56911         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56912         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56913         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56914         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56915         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56916         * modules/version-etc-tests (Makefile.am): Likewise.
56917         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56918         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56919         * modules/xalloc-die-tests (Makefile.am): Likewise.
56920         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56921         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56922         * modules/xstrtol-tests (Makefile.am): Likewise.
56923         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56924         * modules/yesno-tests (Makefile.am): Likewise.
56925         Suggested by Jim Meyering.
56927 2010-01-24  Bruno Haible  <bruno@clisp.org>
56929         More documentation.
56930         * doc/gnulib.texi (Writing modules): New chapter.
56931         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56932         the new chapter.
56934 2010-01-24  Jim Meyering  <meyering@redhat.com>
56936         maint.mk: do not prepend "./" after filtering
56937         * top/maint.mk (_prepend_srcdir_prefix): New variable
56938         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56939         "./" when $(srcdir) is ".".
56941         define STREQ(a,b) consistently, removing useless parentheses
56942         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56943         since the only risk is that "a" or "b" contains an unparenthesized
56944         comma, but if either did that, STREQ would have 3 or more arguments.
56945         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56946         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56947         * lib/hash-triple.c (STREQ): Likewise.
56948         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56949         * lib/getugroups.c (STREQ): Likewise.
56951 2010-01-23  Jim Meyering  <meyering@redhat.com>
56953         maint.mk: fix syntax-check in a non-srcdir build directory
56954         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56955         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56957 2010-01-22  Jim Meyering  <meyering@redhat.com>
56959         userspec: add unit tests
56960         * tests/test-userspec.c: New file.
56961         * modules/userspec-tests: Likewise.
56963 2010-01-21  Jim Meyering  <meyering@redhat.com>
56965         maint.mk: handle source file names containing "." robustly
56966         * top/maint.mk (_dot_escaped_srcdir): Define.
56967         (VC_LIST): Use it in LHS of sed substitution.
56969 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56971         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56972         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56973         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56974         from a non-srcdir build.
56976 2010-01-20  Eric Blake  <ebb9@byu.net>
56978         warn-on-use: use instead of link-warning
56979         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56980         * modules/unistd (Depends-on, Makefile.am): Likewise.
56981         * modules/arpa_inet (Depends-on): Replace link-warning with
56982         warn-on-use.
56983         (Makefile.am): Update rules accordingly.
56984         * modules/ctype (Depends-on, Makefile.am): Likewise.
56985         * modules/dirent (Depends-on, Makefile.am): Likewise.
56986         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56987         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56988         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56989         * modules/locale (Depends-on, Makefile.am): Likewise.
56990         * modules/math (Depends-on, Makefile.am): Likewise.
56991         * modules/search (Depends-on, Makefile.am): Likewise.
56992         * modules/signal (Depends-on, Makefile.am): Likewise.
56993         * modules/spawn (Depends-on, Makefile.am): Likewise.
56994         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56995         * modules/string (Depends-on, Makefile.am): Likewise.
56996         * modules/strings (Depends-on, Makefile.am): Likewise.
56997         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56998         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56999         * modules/sys_select (Depends-on, Makefile.am): Likewise.
57000         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
57001         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
57002         * modules/sys_times (Depends-on, Makefile.am): Likewise.
57003         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
57004         * modules/wchar (Depends-on, Makefile.am): Likewise.
57005         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
57006         should be poisoned.
57007         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
57008         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
57009         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
57010         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57011         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
57012         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57013         * m4/math_h.m4 (gl_MATH_H): Likewise.
57014         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57015         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57016         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57017         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57018         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57019         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57020         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
57021         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
57022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
57023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57026         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57027         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
57028         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57029         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57030         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
57031         GL_LINK_WARNING.
57032         * lib/ctype.in.h: Likewise.
57033         * lib/dirent.in.h: Likewise.
57034         * lib/fcntl.in.h: Likewise.
57035         * lib/inttypes.in.h: Likewise.
57036         * lib/langinfo.in.h: Likewise.
57037         * lib/locale.in.h: Likewise.
57038         * lib/math.in.h: Likewise.
57039         * lib/search.in.h: Likewise.
57040         * lib/signal.in.h: Likewise.
57041         * lib/spawn.in.h: Likewise.
57042         * lib/stdio.in.h: Likewise.
57043         * lib/stdlib.in.h: Likewise.
57044         * lib/string.in.h: Likewise.
57045         * lib/strings.in.h: Likewise.
57046         * lib/sys_file.in.h: Likewise.
57047         * lib/sys_ioctl.in.h: Likewise.
57048         * lib/sys_select.in.h: Likewise.
57049         * lib/sys_socket.in.h: Likewise.
57050         * lib/sys_stat.in.h: Likewise.
57051         * lib/sys_times.in.h: Likewise.
57052         * lib/sys_utsname.in.h: Likewise.
57053         * lib/unistd.in.h: Likewise.
57054         * lib/wchar.in.h: Likewise.
57056 2010-01-20  Bruno Haible  <bruno@clisp.org>
57058         Avoid duplicate -lm.
57059         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
57060         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
57061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
57062         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
57063         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
57064         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
57065         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
57066         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
57067         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
57068         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
57069         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
57070         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
57071         Reported by Paolo Bonzini.
57073 2010-01-19  Bruno Haible  <bruno@clisp.org>
57075         langinfo, nl_langinfo: Relicense under LGPLv2+.
57076         * modules/langinfo (License): Change to LGPLv2+.
57077         * modules/nl_langinfo (License): Likewise.
57078         Patch by David Lutterkort <lutter@redhat.com>.
57080 2010-01-19  Bruno Haible  <bruno@clisp.org>
57082         Avoid compilation error with cc on OSF/1 5.1.
57083         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
57084         statement, not before.
57085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57087 2010-01-18  Bruno Haible  <bruno@clisp.org>
57089         Avoid a link error due to the __printf__ symbol.
57090         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
57091         and 2.6.x.
57092         (__format__, __printf__): Remove definitions.
57093         * lib/argp-fmtstream.h: Likewise.
57094         * lib/argp.h: Likewise.
57095         * lib/error.h: Likewise.
57096         * lib/vasnprintf.h: Likewise.
57097         * lib/xprintf.h: Likewise.
57098         * lib/xvasprintf.h: Likewise.
57099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57101 2010-01-18  Bruno Haible  <bruno@clisp.org>
57103         Tests for module 'tanl'.
57104         * modules/tanl-tests: New file.
57105         * tests/test-tanl.c: New file.
57107         Tests for module 'sqrtl'.
57108         * modules/sqrtl-tests: New file.
57109         * tests/test-sqrtl.c: New file.
57111         Tests for module 'sinl'.
57112         * modules/sinl-tests: New file.
57113         * tests/test-sinl.c: New file.
57115         Tests for module 'logl'.
57116         * modules/logl-tests: New file.
57117         * tests/test-logl.c: New file.
57119         Tests for module 'expl'.
57120         * modules/expl-tests: New file.
57121         * tests/test-expl.c: New file.
57123         Tests for module 'cosl'.
57124         * modules/cosl-tests: New file.
57125         * tests/test-cosl.c: New file.
57127         Tests for module 'atanl'.
57128         * modules/atanl-tests: New file.
57129         * tests/test-atanl.c: New file.
57131         Tests for module 'asinl'.
57132         * modules/asinl-tests: New file.
57133         * tests/test-asinl.c: New file.
57135         Tests for module 'acosl'.
57136         * modules/acosl-tests: New file.
57137         * tests/test-acosl.c: New file.
57139         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57140         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
57141         tanl): Use the standard gnulib idiom.
57142         * lib/cosl.c: Don't include trigl.c and sincosl.c.
57143         * lib/sinl.c: Likewise.
57144         * lib/tanl.c: Don't include trigl.c.
57145         (kernel_tanl): Make static.
57146         * lib/sincosl.c: Include trigl.h first.
57147         * lib/trigl.c: Likewise.
57148         * m4/acosl.m4: New file.
57149         * m4/asinl.m4: New file.
57150         * m4/atanl.m4: New file.
57151         * m4/cosl.m4: New file.
57152         * m4/expl.m4: New file.
57153         * m4/logl.m4: New file.
57154         * m4/sinl.m4: New file.
57155         * m4/sqrtl.m4: New file.
57156         * m4/tanl.m4: New file.
57157         * m4/mathl.m4: Remove file.
57158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
57159         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57160         Don't initialize GNULIB_MATHL.
57161         * modules/acosl: New file.
57162         * modules/asinl: New file.
57163         * modules/atanl: New file.
57164         * modules/cosl: New file.
57165         * modules/expl: New file.
57166         * modules/logl: New file.
57167         * modules/sinl: New file.
57168         * modules/sqrtl: New file.
57169         * modules/tanl: New file.
57170         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
57171         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
57172         substitute GNULIB_MATHL.
57173         * modules/mathl: Rewritten.
57174         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
57175         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
57176         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
57177         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
57178         * doc/posix-functions/expl.texi: Mention the 'expl' module.
57179         * doc/posix-functions/logl.texi: Mention the 'logl' module.
57180         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
57181         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
57182         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
57184 2010-01-18  Bruno Haible  <bruno@clisp.org>
57186         sqrt: Make gl_FUNC_SQRT requirable.
57187         * m4/sqrt.m4: New file.
57188         * modules/sqrt (Files): Add it.
57189         (configure.ac): Invoke gl_FUNC_SQRT.
57191 2010-01-18  Bruno Haible  <bruno@clisp.org>
57193         New modules for common <math.h> functions.
57194         * m4/mathfunc.m4: New file.
57195         * modules/acos: New file.
57196         * modules/asin: New file.
57197         * modules/atan: New file.
57198         * modules/atan2: New file.
57199         * modules/cbrt: New file.
57200         * modules/copysign: New file.
57201         * modules/cos: New file.
57202         * modules/cosh: New file.
57203         * modules/erf: New file.
57204         * modules/erfc: New file.
57205         * modules/exp: New file.
57206         * modules/fabs: New file.
57207         * modules/fmod: New file.
57208         * modules/hypot: New file.
57209         * modules/j0: New file.
57210         * modules/j1: New file.
57211         * modules/jn: New file.
57212         * modules/ldexp: New file.
57213         * modules/lgamma: New file.
57214         * modules/log: New file.
57215         * modules/log10: New file.
57216         * modules/log1p: New file.
57217         * modules/logb: New file.
57218         * modules/modf: New file.
57219         * modules/nextafter: New file.
57220         * modules/pow: New file.
57221         * modules/remainder: New file.
57222         * modules/rint: New file.
57223         * modules/sin: New file.
57224         * modules/sinh: New file.
57225         * modules/sqrt: New file.
57226         * modules/tan: New file.
57227         * modules/tanh: New file.
57228         * modules/y0: New file.
57229         * modules/y1: New file.
57230         * modules/yn: New file.
57231         * doc/posix-functions/acos.texi: Mention the 'acos' module.
57232         * doc/posix-functions/asin.texi: Mention the 'asin' module.
57233         * doc/posix-functions/atan.texi: Mention the 'atan' module.
57234         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
57235         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
57236         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
57237         * doc/posix-functions/cos.texi: Mention the 'cos' module.
57238         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
57239         * doc/posix-functions/erf.texi: Mention the 'erf' module.
57240         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
57241         * doc/posix-functions/exp.texi: Mention the 'exp' module.
57242         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
57243         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
57244         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
57245         * doc/posix-functions/j0.texi: Mention the 'j0' module.
57246         * doc/posix-functions/j1.texi: Mention the 'j1' module.
57247         * doc/posix-functions/jn.texi: Mention the 'jn' module.
57248         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
57249         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
57250         * doc/posix-functions/log.texi: Mention the 'log' module.
57251         * doc/posix-functions/log10.texi: Mention the 'log10' module.
57252         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
57253         * doc/posix-functions/logb.texi: Mention the 'logb' module.
57254         * doc/posix-functions/modf.texi: Mention the 'modf' module.
57255         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
57256         * doc/posix-functions/pow.texi: Mention the 'pow' module.
57257         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
57258         * doc/posix-functions/rint.texi: Mention the 'rint' module.
57259         * doc/posix-functions/sin.texi: Mention the 'sin' module.
57260         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
57261         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
57262         * doc/posix-functions/tan.texi: Mention the 'tan' module.
57263         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
57264         * doc/posix-functions/y0.texi: Mention the 'y0' module.
57265         * doc/posix-functions/y1.texi: Mention the 'y1' module.
57266         * doc/posix-functions/yn.texi: Mention the 'yn' module.
57268 2010-01-18  Jim Meyering  <meyering@redhat.com>
57270         ignore-value: relax license to LGPLv2+
57271         * modules/ignore-value (License): Relax to LGPLv2+.
57273         getdate: don't leak when TZ contains two or more '"'s
57274         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
57275         double quote in TZ after the first one.
57277         readtokens: do not leak internal token_lengths buffer
57278         * lib/readtokens.c (readtokens): Free the local, lengths,
57279         when the supplied "token_lengths" parameter is NULL.
57281 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57283         Fix a couple of missing LIBTHREAD link failures on AIX.
57284         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
57285         $(LIBTHREAD).
57286         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
57288         Link test-poll against INET_PTON_LIB.
57289         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
57290         for inet_pton on Solaris 10.
57292 2010-01-17  Bruno Haible  <bruno@clisp.org>
57294         unistdio/*-sprintf: Fix typo in module description.
57295         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
57296         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
57297         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
57298         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
57299         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
57300         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
57301         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
57302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57304 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57306         gnulib-tool: fix filelist for AIX, HP-UX ksh.
57307         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
57308         variables in shell case patterns, for AIX and HP-UX ksh.
57310         Split large sed scripts, for HP-UX sed.
57311         * modules/stdio: Split sed scripts around 50 sed commands,
57312         to avoid HP-UX limit of 99 commands, in the near future.
57313         * modules/string: Likewise.
57314         * modules/unistd: Likewise.
57316         gnulib-tool: avoid writing in the current directory.
57317         * gnulib-tool (func_emit_lib_Makefile_am)
57318         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
57319         not in the current directory, so concurrent gnulib-tool
57320         instances do not interfere.
57322 2010-01-16  Jim Meyering  <meyering@redhat.com>
57324         doc: update users.txt
57325         * users.txt: Add grep.
57326         (diffutils, gzip): Update URLs.
57328 2010-01-12  Bruno Haible  <bruno@clisp.org>
57330         posix_spawn: Avoid test failure on Cygwin.
57331         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57332         characters.
57333         Reported by Simon Josefsson.
57335 2010-01-12  Bruno Haible  <bruno@clisp.org>
57337         * tests/test-cond.c (main): When skipping the test, show the reason.
57339 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57341         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57343 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57345         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57346         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57348 2010-01-12  Eric Blake  <ebb9@byu.net>
57350         build: guarantee AS_VAR_IF
57351         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57352         (gl_AS_VAR_IF): Move...
57353         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57354         Reported by Simon Josefsson.
57356 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57358         * lib/stdio.in.h: Fix typo.
57360 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57362         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57363         libgpg-error.
57365 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57367         * tests/test-xalloc-die.sh: Use $EXEEXT.
57369 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57370             Bruno Haible  <bruno@clisp.org>
57372         getlogin, getlogin_r: Avoid test failure.
57373         * tests/test-getlogin.c: Include <stdio.h>.
57374         (main): Skip the test when the function fails because stdin is not a
57375         tty.
57376         * tests/test-getlogin_r.c: Include <stdio.h>.
57377         (main): Skip the test when the function fails because stdin is not a
57378         tty.
57380 2010-01-11  Eric Blake  <ebb9@byu.net>
57382         tests: avoid more large file warnings
57383         * tests/test-fflush.c: Avoid warning about ftell use.
57384         * tests/test-fseek.c: Avoid warning about fseek use.
57386 2010-01-10  Bruno Haible  <bruno@clisp.org>
57388         nproc: Work better on Linux when /proc and /sys are not mounted.
57389         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57390         as lower bound when, on glibc/Linux systems,
57391         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57392         Suggested by Pádraig Brady <P@draigbrady.com>.
57393         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57395         nproc: Refactor.
57396         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57397         extracted from num_processors.
57398         (num_processors): Call it.
57400 2010-01-11  Jim Meyering  <meyering@redhat.com>
57402         utimecmp: avoid new warning from upcoming gcc-4.5.0
57403         * lib/utimecmp.c (BILLION): Define using #define rather than an
57404         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57406 2010-01-11  Eric Blake  <ebb9@byu.net>
57408         math: add portability warnings for classification macros
57409         * modules/math (Depends-on): Add warn-on-use.
57410         (Makefile.am): Provide new substitutions.
57411         * m4/math_h.m4 (gl_MATH_H): Require inline.
57412         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57413         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57414         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57415         implement warnings.
57417         unistd: warn on use of environ without module
57418         * modules/unistd (Depends-on): Add warn-on-use.
57419         (Makefile.am): Provide new substitutions.
57420         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57421         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57423         stdio: warn on suspicious uses
57424         * modules/stdio (Depends-on): Add warn-on-use.
57425         (Makefile.am): Provide new substitutions.
57426         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57427         fseeko.
57428         * lib/stdio.in.h (gets): Always warn on use.
57429         (fseek, ftell): Adjust when warnings are issued, and honor
57430         _GL_NO_LARGE_FILES as a way to silence the warning.
57431         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57432         any warning about large file offsets.
57433         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57434         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57435         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57436         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57437         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57438         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57439         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57440         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57442         warn-on-use: new module
57443         * modules/warn-on-use: New file.
57444         * build-aux/warn-on-use.h: Likewise.
57445         * m4/warn-on-use.m4: Likewise.
57446         * MODULES.html.sh (Support for building): Mention it.
57448 2010-01-10  Bruno Haible  <bruno@clisp.org>
57450         Tests for module 'unistr/u32-strdup'.
57451         * modules/unistr/u32-strdup-tests: New file.
57452         * tests/unistr/test-u32-strdup.c: New file.
57454         Tests for module 'unistr/u16-strdup'.
57455         * modules/unistr/u16-strdup-tests: New file.
57456         * tests/unistr/test-u16-strdup.c: New file.
57458         Tests for module 'unistr/u8-strdup'.
57459         * modules/unistr/u8-strdup-tests: New file.
57460         * tests/unistr/test-u8-strdup.c: New file.
57461         * tests/unistr/test-strdup.h: New file.
57463         Tests for module 'unistr/u32-strncmp'.
57464         * modules/unistr/u32-strncmp-tests: New file.
57465         * tests/unistr/test-u32-strncmp.c: New file.
57467         Tests for module 'unistr/u16-strncmp'.
57468         * modules/unistr/u16-strncmp-tests: New file.
57469         * tests/unistr/test-u16-strncmp.c: New file.
57471         Tests for module 'unistr/u8-strncmp'.
57472         * modules/unistr/u8-strncmp-tests: New file.
57473         * tests/unistr/test-u8-strncmp.c: New file.
57474         * tests/unistr/test-strncmp.h: New file.
57476         Tests for module 'unistr/u32-strcoll'.
57477         * modules/unistr/u32-strcoll-tests: New file.
57478         * tests/unistr/test-u32-strcoll.c: New file.
57480         Tests for module 'unistr/u16-strcoll'.
57481         * modules/unistr/u16-strcoll-tests: New file.
57482         * tests/unistr/test-u16-strcoll.c: New file.
57484         Tests for module 'unistr/u8-strcoll'.
57485         * modules/unistr/u8-strcoll-tests: New file.
57486         * tests/unistr/test-u8-strcoll.c: New file.
57488         Tests for module 'unistr/u32-strcmp'.
57489         * modules/unistr/u32-strcmp-tests: New file.
57490         * tests/unistr/test-u32-strcmp.c: New file.
57491         * tests/unistr/test-u32-strcmp.h: New file.
57493         Tests for module 'unistr/u16-strcmp'.
57494         * modules/unistr/u16-strcmp-tests: New file.
57495         * tests/unistr/test-u16-strcmp.c: New file.
57496         * tests/unistr/test-u16-strcmp.h: New file.
57498         Tests for module 'unistr/u8-strcmp'.
57499         * modules/unistr/u8-strcmp-tests: New file.
57500         * tests/unistr/test-u8-strcmp.c: New file.
57501         * tests/unistr/test-u8-strcmp.h: New file.
57502         * tests/unistr/test-strcmp.h: New file.
57504         Tests for module 'unistr/u32-strncat'.
57505         * modules/unistr/u32-strncat-tests: New file.
57506         * tests/unistr/test-u32-strncat.c: New file.
57508         Tests for module 'unistr/u16-strncat'.
57509         * modules/unistr/u16-strncat-tests: New file.
57510         * tests/unistr/test-u16-strncat.c: New file.
57512         Tests for module 'unistr/u8-strncat'.
57513         * modules/unistr/u8-strncat-tests: New file.
57514         * tests/unistr/test-u8-strncat.c: New file.
57515         * tests/unistr/test-strncat.h: New file.
57517         Tests for module 'unistr/u32-strcat'.
57518         * modules/unistr/u32-strcat-tests: New file.
57519         * tests/unistr/test-u32-strcat.c: New file.
57521         Tests for module 'unistr/u16-strcat'.
57522         * modules/unistr/u16-strcat-tests: New file.
57523         * tests/unistr/test-u16-strcat.c: New file.
57525         Tests for module 'unistr/u8-strcat'.
57526         * modules/unistr/u8-strcat-tests: New file.
57527         * tests/unistr/test-u8-strcat.c: New file.
57528         * tests/unistr/test-strcat.h: New file.
57530         Tests for module 'unistr/u32-stpncpy'.
57531         * modules/unistr/u32-stpncpy-tests: New file.
57532         * tests/unistr/test-u32-stpncpy.c: New file.
57534         Tests for module 'unistr/u16-stpncpy'.
57535         * modules/unistr/u16-stpncpy-tests: New file.
57536         * tests/unistr/test-u16-stpncpy.c: New file.
57538         Tests for module 'unistr/u8-stpncpy'.
57539         * modules/unistr/u8-stpncpy-tests: New file.
57540         * tests/unistr/test-u8-stpncpy.c: New file.
57541         * tests/unistr/test-stpncpy.h: New file.
57543         Tests for module 'unistr/u32-strncpy'.
57544         * modules/unistr/u32-strncpy-tests: New file.
57545         * tests/unistr/test-u32-strncpy.c: New file.
57547         Tests for module 'unistr/u16-strncpy'.
57548         * modules/unistr/u16-strncpy-tests: New file.
57549         * tests/unistr/test-u16-strncpy.c: New file.
57551         Tests for module 'unistr/u8-strncpy'.
57552         * modules/unistr/u8-strncpy-tests: New file.
57553         * tests/unistr/test-u8-strncpy.c: New file.
57554         * tests/unistr/test-strncpy.h: New file.
57556         Tests for module 'unistr/u32-stpcpy'.
57557         * modules/unistr/u32-stpcpy-tests: New file.
57558         * tests/unistr/test-u32-stpcpy.c: New file.
57560         Tests for module 'unistr/u16-stpcpy'.
57561         * modules/unistr/u16-stpcpy-tests: New file.
57562         * tests/unistr/test-u16-stpcpy.c: New file.
57564         Tests for module 'unistr/u8-stpcpy'.
57565         * modules/unistr/u8-stpcpy-tests: New file.
57566         * tests/unistr/test-u8-stpcpy.c: New file.
57567         * tests/unistr/test-stpcpy.h: New file.
57569         Tests for module 'unistr/u32-strcpy'.
57570         * modules/unistr/u32-strcpy-tests: New file.
57571         * tests/unistr/test-u32-strcpy.c: New file.
57573         Tests for module 'unistr/u16-strcpy'.
57574         * modules/unistr/u16-strcpy-tests: New file.
57575         * tests/unistr/test-u16-strcpy.c: New file.
57577         Tests for module 'unistr/u8-strcpy'.
57578         * modules/unistr/u8-strcpy-tests: New file.
57579         * tests/unistr/test-u8-strcpy.c: New file.
57580         * tests/unistr/test-strcpy.h: New file.
57582         Tests for module 'unistr/u32-strnlen'.
57583         * modules/unistr/u32-strnlen-tests: New file.
57584         * tests/unistr/test-u32-strnlen.c: New file.
57586         Tests for module 'unistr/u16-strnlen'.
57587         * modules/unistr/u16-strnlen-tests: New file.
57588         * tests/unistr/test-u16-strnlen.c: New file.
57590         Tests for module 'unistr/u8-strnlen'.
57591         * modules/unistr/u8-strnlen-tests: New file.
57592         * tests/unistr/test-u8-strnlen.c: New file.
57593         * tests/unistr/test-strnlen.h: New file.
57595         Tests for module 'unistr/u32-strlen'.
57596         * modules/unistr/u32-strlen-tests: New file.
57597         * tests/unistr/test-u32-strlen.c: New file.
57599         Tests for module 'unistr/u16-strlen'.
57600         * modules/unistr/u16-strlen-tests: New file.
57601         * tests/unistr/test-u16-strlen.c: New file.
57603         Tests for module 'unistr/u8-strlen'.
57604         * modules/unistr/u8-strlen-tests: New file.
57605         * tests/unistr/test-u8-strlen.c: New file.
57607         Tests for module 'unistr/u32-prev'.
57608         * modules/unistr/u32-prev-tests: New file.
57609         * tests/unistr/test-u32-prev.c: New file.
57611         Tests for module 'unistr/u16-prev'.
57612         * modules/unistr/u16-prev-tests: New file.
57613         * tests/unistr/test-u16-prev.c: New file.
57615         Tests for module 'unistr/u8-prev'.
57616         * modules/unistr/u8-prev-tests: New file.
57617         * tests/unistr/test-u8-prev.c: New file.
57619         Tests for module 'unistr/u32-next'.
57620         * modules/unistr/u32-next-tests: New file.
57621         * tests/unistr/test-u32-next.c: New file.
57623         Tests for module 'unistr/u16-next'.
57624         * modules/unistr/u16-next-tests: New file.
57625         * tests/unistr/test-u16-next.c: New file.
57627         Tests for module 'unistr/u8-next'.
57628         * modules/unistr/u8-next-tests: New file.
57629         * tests/unistr/test-u8-next.c: New file.
57631         Tests for module 'unistr/u32-strmbtouc'.
57632         * modules/unistr/u32-strmbtouc-tests: New file.
57633         * tests/unistr/test-u32-strmbtouc.c: New file.
57635         Tests for module 'unistr/u16-strmbtouc'.
57636         * modules/unistr/u16-strmbtouc-tests: New file.
57637         * tests/unistr/test-u16-strmbtouc.c: New file.
57639         Tests for module 'unistr/u8-strmbtouc'.
57640         * modules/unistr/u8-strmbtouc-tests: New file.
57641         * tests/unistr/test-u8-strmbtouc.c: New file.
57643         Tests for module 'unistr/u32-strmblen'.
57644         * modules/unistr/u32-strmblen-tests: New file.
57645         * tests/unistr/test-u32-strmblen.c: New file.
57647         Tests for module 'unistr/u16-strmblen'.
57648         * modules/unistr/u16-strmblen-tests: New file.
57649         * tests/unistr/test-u16-strmblen.c: New file.
57651         Tests for module 'unistr/u8-strmblen'.
57652         * modules/unistr/u8-strmblen-tests: New file.
57653         * tests/unistr/test-u8-strmblen.c: New file.
57655         Tests for module 'unistr/u32-cpy-alloc'.
57656         * modules/unistr/u32-cpy-alloc-tests: New file.
57657         * tests/unistr/test-u32-cpy-alloc.c: New file.
57659         Tests for module 'unistr/u16-cpy-alloc'.
57660         * modules/unistr/u16-cpy-alloc-tests: New file.
57661         * tests/unistr/test-u16-cpy-alloc.c: New file.
57663         Tests for module 'unistr/u8-cpy-alloc'.
57664         * modules/unistr/u8-cpy-alloc-tests: New file.
57665         * tests/unistr/test-u8-cpy-alloc.c: New file.
57666         * tests/unistr/test-cpy-alloc.h: New file.
57668         Tests for module 'unistr/u32-mbsnlen'.
57669         * modules/unistr/u32-mbsnlen-tests: New file.
57670         * tests/unistr/test-u32-mbsnlen.c: New file.
57672         Tests for module 'unistr/u16-mbsnlen'.
57673         * modules/unistr/u16-mbsnlen-tests: New file.
57674         * tests/unistr/test-u16-mbsnlen.c: New file.
57676         Tests for module 'unistr/u8-mbsnlen'.
57677         * modules/unistr/u8-mbsnlen-tests: New file.
57678         * tests/unistr/test-u8-mbsnlen.c: New file.
57680         Tests for module 'unistr/u32-chr'.
57681         * modules/unistr/u32-chr-tests: New file.
57682         * tests/unistr/test-u32-chr.c: New file.
57684         Tests for module 'unistr/u16-chr'.
57685         * modules/unistr/u16-chr-tests: New file.
57686         * tests/unistr/test-u16-chr.c: New file.
57688         Tests for module 'unistr/u8-chr'.
57689         * modules/unistr/u8-chr-tests: New file.
57690         * tests/unistr/test-u8-chr.c: New file.
57691         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57693         Tests for module 'unistr/u32-cmp2'.
57694         * modules/unistr/u32-cmp2-tests: New file.
57695         * tests/unistr/test-u32-cmp2.c: New file.
57697         Tests for module 'unistr/u16-cmp2'.
57698         * modules/unistr/u16-cmp2-tests: New file.
57699         * tests/unistr/test-u16-cmp2.c: New file.
57701         Tests for module 'unistr/u8-cmp2'.
57702         * modules/unistr/u8-cmp2-tests: New file.
57703         * tests/unistr/test-u8-cmp2.c: New file.
57704         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57706         Tests for module 'unistr/u32-cmp'.
57707         * modules/unistr/u32-cmp-tests: New file.
57708         * tests/unistr/test-u32-cmp.c: New file.
57710         Tests for module 'unistr/u16-cmp'.
57711         * modules/unistr/u16-cmp-tests: New file.
57712         * tests/unistr/test-u16-cmp.c: New file.
57714         Tests for module 'unistr/u8-cmp'.
57715         * modules/unistr/u8-cmp-tests: New file.
57716         * tests/unistr/test-u8-cmp.c: New file.
57717         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57719         Tests for module 'unistr/u32-set'.
57720         * modules/unistr/u32-set-tests: New file.
57721         * tests/unistr/test-u32-set.c: New file.
57723         Tests for module 'unistr/u16-set'.
57724         * modules/unistr/u16-set-tests: New file.
57725         * tests/unistr/test-u16-set.c: New file.
57727         Tests for module 'unistr/u8-set'.
57728         * modules/unistr/u8-set-tests: New file.
57729         * tests/unistr/test-u8-set.c: New file.
57730         * tests/unistr/test-set.h: New file.
57732         Tests for module 'unistr/u32-move'.
57733         * modules/unistr/u32-move-tests: New file.
57734         * tests/unistr/test-u32-move.c: New file.
57736         Tests for module 'unistr/u16-move'.
57737         * modules/unistr/u16-move-tests: New file.
57738         * tests/unistr/test-u16-move.c: New file.
57740         Tests for module 'unistr/u8-move'.
57741         * modules/unistr/u8-move-tests: New file.
57742         * tests/unistr/test-u8-move.c: New file.
57743         * tests/unistr/test-move.h: New file.
57745         Tests for module 'unistr/u32-cpy'.
57746         * modules/unistr/u32-cpy-tests: New file.
57747         * tests/unistr/test-u32-cpy.c: New file.
57749         Tests for module 'unistr/u16-cpy'.
57750         * modules/unistr/u16-cpy-tests: New file.
57751         * tests/unistr/test-u16-cpy.c: New file.
57753         Tests for module 'unistr/u8-cpy'.
57754         * modules/unistr/u8-cpy-tests: New file.
57755         * tests/unistr/test-u8-cpy.c: New file.
57756         * tests/unistr/test-cpy.h: New file.
57758 2010-01-09  Bruno Haible  <bruno@clisp.org>
57760         Tests for module 'unistr/u32-uctomb'.
57761         * modules/unistr/u32-uctomb-tests: New file.
57762         * tests/unistr/test-u32-uctomb.c: New file.
57764         Tests for module 'unistr/u16-uctomb'.
57765         * modules/unistr/u16-uctomb-tests: New file.
57766         * tests/unistr/test-u16-uctomb.c: New file.
57768         Tests for module 'unistr/u8-uctomb'.
57769         * modules/unistr/u8-uctomb-tests: New file.
57770         * tests/unistr/test-u8-uctomb.c: New file.
57772         Tests for module 'unistr/u32-mbtoucr'.
57773         * modules/unistr/u32-mbtoucr-tests: New file.
57774         * tests/unistr/test-u32-mbtoucr.c: New file.
57776         Tests for module 'unistr/u16-mbtoucr'.
57777         * modules/unistr/u16-mbtoucr-tests: New file.
57778         * tests/unistr/test-u16-mbtoucr.c: New file.
57780         Tests for module 'unistr/u8-mbtoucr'.
57781         * modules/unistr/u8-mbtoucr-tests: New file.
57782         * tests/unistr/test-u8-mbtoucr.c: New file.
57784         Tests for module 'unistr/u32-mbtouc'.
57785         * modules/unistr/u32-mbtouc-tests: New file.
57786         * tests/unistr/test-u32-mbtouc.c: New file.
57788         Tests for module 'unistr/u16-mbtouc'.
57789         * modules/unistr/u16-mbtouc-tests: New file.
57790         * tests/unistr/test-u16-mbtouc.c: New file.
57792         Tests for module 'unistr/u8-mbtouc'.
57793         * modules/unistr/u8-mbtouc-tests: New file.
57794         * tests/unistr/test-u8-mbtouc.c: New file.
57796         Tests for module 'unistr/u32-mbtouc-unsafe'.
57797         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57798         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57799         * tests/unistr/test-u32-mbtouc.h: New file.
57801         Tests for module 'unistr/u16-mbtouc-unsafe'.
57802         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57803         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57804         * tests/unistr/test-u16-mbtouc.h: New file.
57806         Tests for module 'unistr/u8-mbtouc-unsafe'.
57807         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57808         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57809         * tests/unistr/test-u8-mbtouc.h: New file.
57811         Tests for module 'unistr/u32-mblen'.
57812         * modules/unistr/u32-mblen-tests: New file.
57813         * tests/unistr/test-u32-mblen.c: New file.
57815         Tests for module 'unistr/u16-mblen'.
57816         * modules/unistr/u16-mblen-tests: New file.
57817         * tests/unistr/test-u16-mblen.c: New file.
57819         Tests for module 'unistr/u8-mblen'.
57820         * modules/unistr/u8-mblen-tests: New file.
57821         * tests/unistr/test-u8-mblen.c: New file.
57823         Tests for module 'unistr/u32-to-u16'.
57824         * modules/unistr/u32-to-u16-tests: New file.
57825         * tests/unistr/test-u32-to-u16.c: New file.
57827         Tests for module 'unistr/u32-to-u8'.
57828         * modules/unistr/u32-to-u8-tests: New file.
57829         * tests/unistr/test-u32-to-u8.c: New file.
57831         Tests for module 'unistr/u16-to-u32'.
57832         * modules/unistr/u16-to-u32-tests: New file.
57833         * tests/unistr/test-u16-to-u32.c: New file.
57835         Tests for module 'unistr/u16-to-u8'.
57836         * modules/unistr/u16-to-u8-tests: New file.
57837         * tests/unistr/test-u16-to-u8.c: New file.
57839         Tests for module 'unistr/u8-to-u32'.
57840         * modules/unistr/u8-to-u32-tests: New file.
57841         * tests/unistr/test-u8-to-u32.c: New file.
57843         Tests for module 'unistr/u8-to-u16'.
57844         * modules/unistr/u8-to-u16-tests: New file.
57845         * tests/unistr/test-u8-to-u16.c: New file.
57847         Tests for module 'unistr/u32-check'.
57848         * modules/unistr/u32-check-tests: New file.
57849         * tests/unistr/test-u32-check.c: New file.
57851         Tests for module 'unistr/u16-check'.
57852         * modules/unistr/u16-check-tests: New file.
57853         * tests/unistr/test-u16-check.c: New file.
57855         Tests for module 'unistr/u8-check'.
57856         * modules/unistr/u8-check-tests: New file.
57857         * tests/unistr/test-u8-check.c: New file.
57859         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57860         (category_equals): New function.
57861         (main): Add more tests.
57862         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57864         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57866 2010-01-10  Bruno Haible  <bruno@clisp.org>
57868         unistr/u*-strcoll: Try harder to distinguish different strings.
57869         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57870         compare s1 and s2 to see if they are different.
57872 2010-01-10  Bruno Haible  <bruno@clisp.org>
57874         unistr/u*-stpncpy: Fix the return value.
57875         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57876         description of the return value consistent with stpncpy in glibc.
57877         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57878         written non-NUL unit.
57880 2010-01-10  Bruno Haible  <bruno@clisp.org>
57882         unistr/u*-next: Add missing dependencies.
57883         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57884         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57885         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57887 2010-01-10  Bruno Haible  <bruno@clisp.org>
57889         unistr/u8-mbsnlen: Fix return value for incomplete character.
57890         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57891         u8_mblen.
57892         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57893         Remove unistr/u8-mblen.
57894         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57895         u16_mblen.
57896         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57897         Remove unistr/u16-mblen.
57899 2010-01-10  Bruno Haible  <bruno@clisp.org>
57901         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57902         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57903         Reported by Brian Gough <bjg@gnu.org> and
57904         Chris Clayton <chris2553@googlemail.com> via
57905         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57907 2010-01-09  Bruno Haible  <bruno@clisp.org>
57909         unistr/u16-to-u32: Reject invalid input.
57910         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57911         u16_mbtouc.
57912         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57913         Remove unistr/u16-mbtouc.
57915         unistr/u16-to-u8: Reject invalid input.
57916         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57917         u16_mbtouc.
57918         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57919         Remove unistr/u16-mbtouc.
57921         unistr/u8-to-u32: Reject invalid input.
57922         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57923         u8_mbtouc.
57924         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57925         Remove unistr/u8-mbtouc.
57927         unistr/u8-to-u16: Reject invalid input.
57928         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57929         u8_mbtouc.
57930         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57931         Remove unistr/u8-mbtouc.
57933 2010-01-09  Bruno Haible  <bruno@clisp.org>
57935         Tests for module 'getlogin'.
57936         * modules/getlogin-tests: New file.
57937         * tests/test-getlogin.c: New file.
57939         New module 'getlogin'.
57940         * lib/unistd.in.h (getlogin): New declaration.
57941         * lib/getlogin.c: New file.
57942         * m4/getlogin.m4: New file.
57943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57944         HAVE_GETLOGIN.
57945         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57946         HAVE_GETLOGIN.
57947         * modules/getlogin: New file.
57948         * doc/posix-functions/getlogin.texi: Mention the new module.
57949         Reported by John W. Eaton <jwe@gnu.org>.
57951 2010-01-09  Bruno Haible  <bruno@clisp.org>
57953         getlogin_r: Support for native Windows.
57954         * lib/getlogin_r.c: Include <windows.h>
57955         (getlogin_r): Implement for native Windows.
57956         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57957         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57958         via John W. Eaton <jwe@gnu.org>.
57960 2010-01-09  Bruno Haible  <bruno@clisp.org>
57962         getlogin_r: Small fixes.
57963         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57964         succeeds.
57965         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57966         before testing whether getlogin_r is declared. No need to set
57967         HAVE_DECL_GETLOGIN_R to 1.
57968         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57970 2010-01-09  Bruno Haible  <bruno@clisp.org>
57972         * lib/unistd.in.h (getlogin_r): Add comment.
57974 2010-01-09  Bruno Haible  <bruno@clisp.org>
57976         Tests for module 'getlogin_r'.
57977         * modules/getlogin_r-tests: New file.
57978         * tests/test-getlogin_r.c: New file.
57980 2010-01-09  Jim Meyering  <meyering@redhat.com>
57982         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57983         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57984         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57986 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57988         * lib/dup2.c (rpl_dup2): Improve comment.
57990 2010-01-08  Eric Blake  <ebb9@byu.net>
57992         maint.mk: allow packages to add makefile @@ exceptions
57993         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57994         (sc_makefile_check): Rename...
57995         (sc_makefile_at_at_check): ...to this, and use hook.
57997         dup2: work around mingw bug
57998         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57999         Reported by Simon Josefsson.
58001 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
58003         glob: Fix C++ compilation.
58004         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
58005         C++.
58007 2010-01-07  Bruno Haible  <bruno@clisp.org>
58009         Fix indentation of wctype.in.h, broken since 2007-01-06.
58010         * lib/wctype.in.h: Fix indentation of preprocessor directives.
58012 2010-01-07  Bruno Haible  <bruno@clisp.org>
58014         mbslen: Avoid collision with system function.
58015         * lib/string.in.h [MirBSD]: Include <wchar.h>.
58016         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
58017         * m4/mbslen.m4: New file.
58018         * modules/mbslen (Files): Add it.
58019         (configure.ac): Invoke gl_MBSLEN.
58020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
58021         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
58022         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
58023         via Ian Beckwith <ianb@erislabs.net>.
58025 2010-01-07  Bruno Haible  <bruno@clisp.org>
58027         dirent: Document the last fix.
58028         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
58030 2010-01-07  Bruno Haible  <bruno@clisp.org>
58032         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
58033         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
58034         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
58035         va_list are defined.
58036         * doc/posix-headers/stdio.texi: Document the bug of missing types.
58037         Reported by Eric Blake.
58039 2010-01-07  Bruno Haible  <bruno@clisp.org>
58041         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
58042         * modules/xlist (Depends-on): Add 'list',
58043         * modules/xoset (Depends-on): Add 'oset'.
58044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58046 2010-01-07  Bruno Haible  <bruno@clisp.org>
58048         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
58049         * doc/posix-functions/strncasecmp.texi: Likewise.
58051 2010-01-07  Bruno Haible  <bruno@clisp.org>
58053         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
58055 2010-01-07  John W. Eaton  <jwe@octave.org>
58057         wctype: allow C++ use
58058         * lib/wctype.in.h: Add extern "C" block for C++.
58060 2010-01-06  Eric Blake  <ebb9@byu.net>
58062         maint.mk: detect incorrect GFDL usage
58063         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
58065 2010-01-06  Jim Meyering  <meyering@redhat.com>
58066         and Eric Blake  <ebb9@byu.net>
58068         maint.mk: ignore multi-line copyright in NEWS
58069         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
58071 2010-01-06  Eric Blake  <ebb9@byu.net>
58073         select: add missing dependency
58074         * modules/select-tests (Depends-on): Move sockets dependency...
58075         * modules/select (Depends-on): ...here.
58076         Reported by Ian Beckwith.
58078         doc: regenerate INSTALL
58079         * doc/INSTALL: Reflect recent autoconf update.
58080         * doc/INSTALL.ISO: Likewise.
58081         * doc/INSTALL.UTF-8: Likewise.
58083         pread: fix compilation on glibc
58084         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
58085         Reported by Ralf Wildenhues.
58087         dirent: fix test failure
58088         * lib/dirent.in.h (includes): Guarantee ino_t.
58089         Reported by Ralf Wildenhues.
58091 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
58093         linkat, renameat: avoid bad free
58094         * lib/at-func2.c (at_func2): Fix typo.
58095         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
58097 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58099         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
58100         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
58101         to avoid failure of symlink test later.
58103 2010-01-06  Eric Blake  <ebb9@byu.net>
58105         stdio, unistd: guarantee ssize_t
58106         * lib/unistd.in.h (includes): Ensure that types required by POSIX
58107         2008 are exposed when needed.
58108         * lib/stdio.in.h (includes): Likewise.
58109         Reported by Ralf Wildenhues.
58111 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
58113         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
58114         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
58115         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
58117 2010-01-06  Jim Meyering  <meyering@redhat.com>
58119         readtokens: this module *does* require xalloc.h
58120         It uses only functions that were omitted by the old syntax-check rule.
58121         * lib/readtokens.c: Include "xalloc.h" once again.
58122         * modules/readtokens (Depends-on): Add xalloc.
58123         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
58125 2010-01-05  Eric Blake  <ebb9@byu.net>
58127         maint: support 'make announcement' from a VPATH build
58128         * top/maint.mk (announcement): Look for correct NEWS file.
58130 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
58132         utimens (fdutimens): ignore a negative FD, per contract
58133         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
58134         when we have a valid file descriptor.  Otherwise, using a brand
58135         new glibc (with just-patched futimens that now fails with EBADF)
58136         would cause this function to fail with ENOSYS.
58137         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
58138         See also http://bugzilla.redhat.com/552320.
58140 2010-01-05  Eric Blake  <ebb9@byu.net>
58142         strcase: document what it provides
58143         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
58144         gnulib module.
58145         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
58146         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
58148 2010-01-05  Jim Meyering  <meyering@redhat.com>
58150         maint: remove useless inclusions of "xalloc.h"
58151         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
58152         * lib/readtokens.c: Likewise.
58153         * lib/same.c: Likewise.
58154         * modules/getloadavg (Depends-on): Remove xalloc.
58155         * modules/readtokens: Likewise.
58156         * modules/same: Likewise.
58158         maint.mk: include 4 more function names in alloca.h-checking regexp
58159         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
58160         regexp.  Before, we would give a false-positive (saying alloca.h
58161         is included unnecessarily) when the only uses involved omitted symbols.
58163         xalloc.h: use consistent formatting
58164         * lib/xalloc.h: Move declarations to start in the first column.
58166 2010-01-05  Eric Blake  <ebb9@byu.net>
58168         mkdir: avoid xalloc
58169         * lib/mkdir.c (includes): Drop unused header.
58170         Reported by John W. Eaton.
58172 2010-01-04  Jim Meyering  <meyering@redhat.com>
58174         nl_langinfo: avoid configure-time syntax error
58175         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
58176         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
58177         the empty string.  Don't let that provoke a shell syntax error.
58179         regcomp, regexec, fnmatch: avoid array bounds read error
58180         * lib/regcomp.c (build_equiv_class): From glibc:
58181         Use only the low 24 bits of a findidx return value as an index
58182         into the weights array.  Patch by Ulrich Drepper:
58183         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
58184         * lib/regexec.c (check_node_accept_bytes): Likewise.
58185         * lib/fnmatch_loop.c (FCT): Likewise.
58187         regcomp: skip collseq lookup when there are no rules
58188         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
58189         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
58191         regcomp: recognize ill-formed { } expressions
58192         * lib/regcomp.c (parse_dup_op): From glibc:
58193         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
58195         regcomp: fix typo in comment
58196         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
58197         s/satisfy/satisfies/.
58199         regcomp: sync from glibc: remove dead store
58200         * lib/regcomp.c (duplicate_node_closure): Remove useless
58201         search_duplicated_node call and dead store.
58203         regcomp: sync from glibc; always use nl_langinfo
58204         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
58205         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
58206         * modules/regex (Depends-on): Add nl_langinfo.
58208 2010-01-04  Eric Blake  <ebb9@byu.net>
58210         fdopendir: fix configure test
58211         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
58213 2010-01-01  Bruno Haible  <bruno@clisp.org>
58215         wchar: Remove unused configure check.
58216         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
58218 2010-01-01  Eric Blake  <ebb9@byu.net>
58220         headers: make check of system header explicit
58221         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
58222         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
58223         ourselves.
58224         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58227         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
58228         internals.
58229         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
58230         missing.
58231         Suggested by Bruno Haible.
58233 2010-01-01  Jim Meyering  <meyering@redhat.com>
58235         ChangeLog: tweak to eliminate unnecessary copyright line
58236         * ChangeLog: Remove a copyright line that was mistakenly updated
58237         by today's update-copyright run.  Reported by Eric Blake.
58239         test-update-copyright: don't let envvar setting cause test failure
58240         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58242 2010-01-01  Bruno Haible  <bruno@clisp.org>
58244         localename: Avoid gcc warning.
58245         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
58246         function if it is not used.
58248 2010-01-01  Jim Meyering  <meyering@redhat.com>
58250         update nearly all FSF copyright year lists to include 2010
58251         Use the same procedure as for 2009, outlined in
58252         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
58254         version-etc: set COPYRIGHT_YEAR to 2010
58255         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
58257 2009-12-31  Eric Blake  <ebb9@byu.net>
58259         doc: correct availability of cygwin 1.5.x getopt
58260         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
58261         variables.
58262         * doc/posix-functions/opterr.texi (opterr): Likewise.
58263         * doc/posix-functions/optind.texi (optind): Likewise.
58264         * doc/posix-functions/optopt.texi (optopt): Likewise.
58265         * doc/posix-functions/tzname.texi (tzname): Likewise.
58267         openat: update maintainer
58268         * modules/openat (Maintainer): Add myself.
58270         utimens: avoid shadowing warning
58271         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
58272         buffers into one, to avoid shadowing, as well as avoiding a
58273         redundant stat.
58274         Reported by Jim Meyering.
58276         test-dup2: avoid compiler warning
58277         * tests/test-dup2.c (is_inheritable): Only define if used.
58279 2010-01-01  Bruno Haible  <bruno@clisp.org>
58281         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
58282         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
58283         defined, use wctomb instead of wcrtomb.
58285 2010-01-01  Bruno Haible  <bruno@clisp.org>
58287         iconv: Reject native Solaris iconv.
58288         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
58289         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
58291 2009-12-31  Bruno Haible  <bruno@clisp.org>
58293         * tests/test-signal.c (main): Remove test of 'SIG'.
58295 2009-12-31  Bruno Haible  <bruno@clisp.org>
58297         spawn: Fix incomplete fix.
58298         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58299         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58300         warnings for GNULIB_POSIXCHECK again.
58301         Reported by Eric Blake.
58303 2009-12-31  Bruno Haible  <bruno@clisp.org>
58305         Avoid namespace pollution on glibc systems.
58306         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
58307         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
58308         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
58309         glibc systems.
58311 2009-12-31  Bruno Haible  <bruno@clisp.org>
58313         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
58314         (gl_REPLACE_WCHAR_H): Turn into a no-op.
58315         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
58316         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
58317         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
58318         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
58319         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
58321 2009-12-31  Bruno Haible  <bruno@clisp.org>
58323         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
58324         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
58325         afterwards.
58327 2009-12-31  Bruno Haible  <bruno@clisp.org>
58329         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58330         SYS_UTSNAME_H.
58332 2009-12-31  Bruno Haible  <bruno@clisp.org>
58334         spawn: Fix misapplied patch.
58335         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58336         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58337         warnings for GNULIB_POSIXCHECK.
58339 2009-12-31  Bruno Haible  <bruno@clisp.org>
58341         times: Update after sys_times changed.
58342         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58343         * modules/times (Files): Add it.
58344         (configure.ac): Invoke gl_FUNC_TIMES.
58346 2009-12-31  Bruno Haible  <bruno@clisp.org>
58348         Use AC_C_INLINE where necessary.
58349         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58350         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58351         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58352         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58353         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58354         * m4/mbiter.m4 (gl_MBITER): Likewise.
58355         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58356         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58357         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58358         * modules/u64 (configure.ac): Likewise.
58360 2009-12-31  Bruno Haible  <bruno@clisp.org>
58362         Use AC_C_INLINE instead of module 'inline' where possible.
58363         * modules/inline (Description): Clarify purpose.
58364         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58365         * modules/count-one-bits (Depends-on): Remove inline.
58366         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58367         * modules/openat (Depends-on): Remove inline.
58368         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58369         instead of depending on module 'inline'.
58370         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58371         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58372         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58373         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58374         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58375         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58376         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58377         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58378         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58379         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58380         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58381         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58382         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58383         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58384         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58385         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58386         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58387         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58388         Likewise.
58389         * modules/unictype/property-ascii-hex-digit (Depends-on,
58390         configure.ac): Likewise.
58391         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58392         configure.ac): Likewise.
58393         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58394         configure.ac): Likewise.
58395         * modules/unictype/property-bidi-block-separator (Depends-on,
58396         configure.ac): Likewise.
58397         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58398         configure.ac): Likewise.
58399         * modules/unictype/property-bidi-common-separator (Depends-on,
58400         configure.ac): Likewise.
58401         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58402         Likewise.
58403         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58404         configure.ac): Likewise.
58405         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58406         configure.ac): Likewise.
58407         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58408         configure.ac): Likewise.
58409         * modules/unictype/property-bidi-european-digit (Depends-on,
58410         configure.ac): Likewise.
58411         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58412         configure.ac): Likewise.
58413         * modules/unictype/property-bidi-left-to-right (Depends-on,
58414         configure.ac): Likewise.
58415         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58416         configure.ac): Likewise.
58417         * modules/unictype/property-bidi-other-neutral (Depends-on,
58418         configure.ac): Likewise.
58419         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58420         Likewise.
58421         * modules/unictype/property-bidi-segment-separator (Depends-on,
58422         configure.ac): Likewise.
58423         * modules/unictype/property-bidi-whitespace (Depends-on,
58424         configure.ac): Likewise.
58425         * modules/unictype/property-combining (Depends-on, configure.ac):
58426         Likewise.
58427         * modules/unictype/property-composite (Depends-on, configure.ac):
58428         Likewise.
58429         * modules/unictype/property-currency-symbol (Depends-on,
58430         configure.ac): Likewise.
58431         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58432         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58433         Likewise.
58434         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58435         configure.ac): Likewise.
58436         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58437         Likewise.
58438         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58439         Likewise.
58440         * modules/unictype/property-extender (Depends-on, configure.ac):
58441         Likewise.
58442         * modules/unictype/property-format-control (Depends-on, configure.ac):
58443         Likewise.
58444         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58445         Likewise.
58446         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58447         Likewise.
58448         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58449         Likewise.
58450         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58451         Likewise.
58452         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58453         Likewise.
58454         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58455         Likewise.
58456         * modules/unictype/property-id-start (Depends-on, configure.ac):
58457         Likewise.
58458         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58459         Likewise.
58460         * modules/unictype/property-ids-binary-operator (Depends-on,
58461         configure.ac): Likewise.
58462         * modules/unictype/property-ids-trinary-operator (Depends-on,
58463         configure.ac): Likewise.
58464         * modules/unictype/property-ignorable-control (Depends-on,
58465         configure.ac): Likewise.
58466         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58467         Likewise.
58468         * modules/unictype/property-join-control (Depends-on, configure.ac):
58469         Likewise.
58470         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58471         Likewise.
58472         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58473         Likewise.
58474         * modules/unictype/property-logical-order-exception (Depends-on,
58475         configure.ac): Likewise.
58476         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58477         Likewise.
58478         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58479         * modules/unictype/property-non-break (Depends-on, configure.ac):
58480         Likewise.
58481         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58482         Likewise.
58483         * modules/unictype/property-numeric (Depends-on, configure.ac):
58484         Likewise.
58485         * modules/unictype/property-other-alphabetic (Depends-on,
58486         configure.ac): Likewise.
58487         * modules/unictype/property-other-default-ignorable-code-point
58488         (Depends-on, configure.ac): Likewise.
58489         * modules/unictype/property-other-grapheme-extend (Depends-on,
58490         configure.ac): Likewise.
58491         * modules/unictype/property-other-id-continue (Depends-on,
58492         configure.ac): Likewise.
58493         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58494         Likewise.
58495         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58496         Likewise.
58497         * modules/unictype/property-other-math (Depends-on, configure.ac):
58498         Likewise.
58499         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58500         Likewise.
58501         * modules/unictype/property-paired-punctuation (Depends-on,
58502         configure.ac): Likewise.
58503         * modules/unictype/property-paragraph-separator (Depends-on,
58504         configure.ac): Likewise.
58505         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58506         Likewise.
58507         * modules/unictype/property-pattern-white-space (Depends-on,
58508         configure.ac): Likewise.
58509         * modules/unictype/property-private-use (Depends-on, configure.ac):
58510         Likewise.
58511         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58512         Likewise.
58513         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58514         Likewise.
58515         * modules/unictype/property-radical (Depends-on, configure.ac):
58516         Likewise.
58517         * modules/unictype/property-sentence-terminal (Depends-on,
58518         configure.ac): Likewise.
58519         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58520         Likewise.
58521         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58522         * modules/unictype/property-terminal-punctuation (Depends-on,
58523         configure.ac): Likewise.
58524         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58525         Likewise.
58526         * modules/unictype/property-unassigned-code-value (Depends-on,
58527         configure.ac): Likewise.
58528         * modules/unictype/property-unified-ideograph (Depends-on,
58529         configure.ac): Likewise.
58530         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58531         Likewise.
58532         * modules/unictype/property-variation-selector (Depends-on,
58533         configure.ac): Likewise.
58534         * modules/unictype/property-white-space (Depends-on, configure.ac):
58535         Likewise.
58536         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58537         Likewise.
58538         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58539         Likewise.
58540         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58541         Likewise.
58542         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58543         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58544         Likewise.
58546 2009-12-31  Bruno Haible  <bruno@clisp.org>
58548         Remove unnecessary AC_C_INLINE invocation.
58549         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58550         since 2009-08-21.
58552 2009-12-31  Jim Meyering  <meyering@redhat.com>
58554         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58555         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58556         With this change, we can all remove the gpg_key_ID = ... definition
58557         from our respective cfg.mk files.
58559         maint.mk: create announcement template in ~/, not in /tmp
58560         * top/maint.mk (emit_upload_commands): Adjust.
58561         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58562         Remove temporary file, .ci-msg.
58564 2009-12-31  Eric Blake  <ebb9@byu.net>
58566         link-warning: always build headers with link warnings
58567         * modules/arpa_inet (Makefile.am): Always build replacement
58568         header.
58569         * modules/ctype (Makefile.am): Likewise.
58570         * modules/dirent (Makefile.am): Likewise.
58571         * modules/inttypes (Makefile.am): Likewise.
58572         * modules/langinfo (Makefile.am): Likewise.
58573         * modules/locale (Makefile.am): Likewise.
58574         * modules/spawn (Makefile.am): Likewise.
58575         * modules/sys_file (Makefile.am): Likewise.
58576         * modules/sys_ioctl (Makefile.am): Likewise.
58577         * modules/sys_select (Makefile.am): Likewise.
58578         * modules/sys_socket (Makefile.am): Likewise.
58579         * modules/sys_times (Makefile.am): Likewise.
58580         * modules/sys_utsname (Makefile.am): Likewise.
58581         * modules/sys_wait (Makefile.am): Likewise.
58582         * modules/wchar (Makefile.am): Likewise.
58583         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58584         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58585         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58586         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58587         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58588         Likewise.
58589         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58590         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58591         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58592         Likewise.
58593         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58594         Likewise.
58595         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58597         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58598         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58599         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58600         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58601         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58602         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58603         (gl_WCHAR_H_DEFAULTS): Likewise.
58605 2009-12-31  Eric Blake  <ebb9@byu.net>
58607         signal, spawn: use link warnings
58608         * lib/signal.in.h (sigset_t): Make unconditional.
58609         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58610         (sigpending, sigprocmask, sigaction): Add link warnings.
58611         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58612         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58613         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58614         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58615         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58616         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58617         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58618         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58619         (posix_spawn_file_actions_destroy)
58620         (posix_spawn_file_actions_addopen)
58621         (posix_spawn_file_actions_addclose)
58622         (posix_spawn_file_actions_adddup2): Likewise.
58623         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58624         * tests/test-signal.c (main): Enhance test.
58626         spawn: improve wrapper support
58627         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58628         (gl_SPAWN_H_DEFAULTS): New defaults.
58629         * modules/spawn (Makefile.am): Substitute them.
58630         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58631         Only declare if missing or broken.
58633         sys_times, sys_utsname: use include_next
58634         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58635         header.
58636         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58638         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58639         * modules/sys_times (Depends-on): Add include_next.
58640         (Makefile.am): Substitute additional values.
58641         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58642         * lib/sys_times.in.h (includes): Include native header, if
58643         available.
58644         * lib/sys_utsname.in.h (includes): Likewise.
58645         * tests/test-sys_times.c (main): Enhance test.
58647         fdutimensat: revert prior patch
58648         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58649         utimens.h.
58650         Reported by Bruno Haible.
58652 2009-12-30  Eric Blake  <ebb9@byu.net>
58654         sys_wait: drop link-warning dependency
58655         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58656         link-warning efforts.
58657         * lib/sys_wait.in.h: Likewise.
58659         fdutimensat: remove bogus dependency
58660         * modules/fdutimensat (Depends-on): Drop inline.
58662         unistd: fix typo
58663         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58665 2009-12-30  Bruno Haible  <bruno@clisp.org>
58667         Fix compilation error with Solaris cc.
58668         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58669         * lib/unicase/u16-is-invariant.c: Likewise.
58670         * lib/unicase/u32-is-invariant.c: Likewise.
58671         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58673 2009-12-30  Bruno Haible  <bruno@clisp.org>
58675         Fix test crash.
58676         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58677         locales.
58678         Reported by Simon Josefsson <simon@josefsson.org>.
58680 2009-12-30  Bruno Haible  <bruno@clisp.org>
58682         Fix compilation error on most platforms.
58683         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58684         Reported by Simon Josefsson <simon@josefsson.org>
58685         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58687 2009-12-30  Eric Blake  <ebb9@byu.net>
58689         futimens, utimensat: work around ntfs-3g bug
58690         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58691         a ctime bug is present, and expand workaround to cover ntfs-3g.
58692         * lib/utimens.c (fdutimens, lutimens): Likewise.
58693         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58694         (validate_timespec): Adjust return value.
58695         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58696         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58697         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58699 2009-12-29  Eric Blake  <ebb9@byu.net>
58701         link-warning: make usage consistent
58702         * modules/ctype (Depends-on): Add link-warning.
58703         (Makefile.am): Update rules accordingly.
58704         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58705         * modules/locale (Depends-on, Makefile.am): Likewise.
58706         * modules/sys_file (Makefile.am): Likewise.
58707         * modules/getopt-posix (Makefile.am): Delete unused link warning
58708         efforts.
58709         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58710         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58711         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58712         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58714         stdio: remove unused variables
58715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58716         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58717         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58719         tests: test more substitute headers
58720         * modules/ctype-tests: New file.
58721         * modules/dirent-tests: Likewise.
58722         * modules/spawn-tests: Likewise.
58723         * modules/sys_file-tests: Likewise.
58724         * modules/sys_ioctl-tests: Likewise.
58725         * modules/sys_wait-tests: Likewise.
58726         * tests/test-ctype.c: Likewise.
58727         * tests/test-dirent.c: Likewise.
58728         * tests/test-spawn.c: Likewise.
58729         * tests/test-sys_file.c: Likewise.
58730         * tests/test-sys_ioctl.c: Likewise.
58731         * tests/test-sys_wait.c: Likewise.
58732         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58733         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58734         whether or not flock is in use.
58736         tests: remove License section from module
58737         * modules/arpa_inet-tests: Remove unneeded section.
58738         * modules/byteswap-tests: Likewise.
58739         * modules/ceilf-tests: Likewise.
58740         * modules/ceill-tests: Likewise.
58741         * modules/crypto/des-tests: Likewise.
58742         * modules/crypto/gc-arcfour-tests: Likewise.
58743         * modules/crypto/gc-arctwo-tests: Likewise.
58744         * modules/crypto/gc-des-tests: Likewise.
58745         * modules/crypto/gc-hmac-md5-tests: Likewise.
58746         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58747         * modules/crypto/gc-md2-tests: Likewise.
58748         * modules/crypto/gc-md4-tests: Likewise.
58749         * modules/crypto/gc-md5-tests: Likewise.
58750         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58751         * modules/crypto/gc-rijndael-tests: Likewise.
58752         * modules/crypto/gc-sha1-tests: Likewise.
58753         * modules/crypto/gc-tests: Likewise.
58754         * modules/crypto/md2-tests: Likewise.
58755         * modules/crypto/md4-tests: Likewise.
58756         * modules/fcntl-h-tests: Likewise.
58757         * modules/floorf-tests: Likewise.
58758         * modules/floorl-tests: Likewise.
58759         * modules/frexp-nolibm-tests: Likewise.
58760         * modules/frexp-tests: Likewise.
58761         * modules/frexpl-nolibm-tests: Likewise.
58762         * modules/frexpl-tests: Likewise.
58763         * modules/getaddrinfo-tests: Likewise.
58764         * modules/inttypes-tests: Likewise.
58765         * modules/isfinite-tests: Likewise.
58766         * modules/isinf-tests: Likewise.
58767         * modules/ldexpl-tests: Likewise.
58768         * modules/locale-tests: Likewise.
58769         * modules/math-tests: Likewise.
58770         * modules/netdb-tests: Likewise.
58771         * modules/netinet_in-tests: Likewise.
58772         * modules/printf-frexp-tests: Likewise.
58773         * modules/printf-frexpl-tests: Likewise.
58774         * modules/priv-set-tests: Likewise.
58775         * modules/random_r-tests: Likewise.
58776         * modules/round-tests: Likewise.
58777         * modules/roundf-tests: Likewise.
58778         * modules/roundl-tests: Likewise.
58779         * modules/search-tests: Likewise.
58780         * modules/select-tests: Likewise.
58781         * modules/signal-tests: Likewise.
58782         * modules/stdbool-tests: Likewise.
58783         * modules/stddef-tests: Likewise.
58784         * modules/stdint-tests: Likewise.
58785         * modules/stdio-tests: Likewise.
58786         * modules/stdlib-tests: Likewise.
58787         * modules/string-tests: Likewise.
58788         * modules/strings-tests: Likewise.
58789         * modules/sys_select-tests: Likewise.
58790         * modules/sys_socket-tests: Likewise.
58791         * modules/sys_stat-tests: Likewise.
58792         * modules/sys_time-tests: Likewise.
58793         * modules/sys_utsname-tests: Likewise.
58794         * modules/sysexits-tests: Likewise.
58795         * modules/time-tests: Likewise.
58796         * modules/trunc-tests: Likewise.
58797         * modules/truncf-tests: Likewise.
58798         * modules/truncl-tests: Likewise.
58799         * modules/tsearch-tests: Likewise.
58800         * modules/unistd-tests: Likewise.
58801         * modules/wchar-tests: Likewise.
58802         * modules/wctype-tests: Likewise.
58804         tests: fix license on several tests
58805         * tests/test-des.c: Update to GPLv3+.
58806         * tests/test-flock.c: Likewise.
58807         * tests/test-fsync.c: Likewise.
58808         * tests/test-futimens.h: Likewise.
58809         * tests/test-gc-arcfour.c: Likewise.
58810         * tests/test-gc-arctwo.c: Likewise.
58811         * tests/test-gc-des.c: Likewise.
58812         * tests/test-gc-hmac-md5.c: Likewise.
58813         * tests/test-gc-hmac-sha1.c: Likewise.
58814         * tests/test-gc-md2.c: Likewise.
58815         * tests/test-gc-md4.c: Likewise.
58816         * tests/test-gc-md5.c: Likewise.
58817         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58818         * tests/test-gc-rijndael.c: Likewise.
58819         * tests/test-gc-sha1.c: Likewise.
58820         * tests/test-gc.c: Likewise.
58821         * tests/test-getcwd.c: Likewise.
58822         * tests/test-link.c: Likewise.
58823         * tests/test-link.h: Likewise.
58824         * tests/test-lutimens.h: Likewise.
58825         * tests/test-md2.c: Likewise.
58826         * tests/test-md4.c: Likewise.
58827         * tests/test-mkdir.h: Likewise.
58828         * tests/test-rename.c: Likewise.
58829         * tests/test-rename.h: Likewise.
58830         * tests/test-safe-alloc.c: Likewise.
58831         * tests/test-utimens-common.h: Likewise.
58832         * tests/test-utimens.h: Likewise.
58834         maint: sync license texts
58835         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58836         * doc/gpl-3.0.texi: Revert copyright year update.
58837         * doc/lgpl-3.0.texi: Likewise.
58839 2009-12-29  Jim Meyering  <meyering@redhat.com>
58841         update nearly all FSF copyright year lists to include 2009
58842         The files named by the following are exempted:
58843             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58844               test -f "$dst" && { echo "$dst"; continue; }
58845               test -d "$dst" || continue
58846               echo "$dst"/$(basename "$src")
58847             done > exempt
58848             git ls-files tests/unictype >> exempt
58849         In the remaining files, convert to all-interval notation if
58850         - there is already at least one year interval like 2000-2003
58851         - the file is maintained by me
58852         - the file is in lib/uni*/, where that style already prevails
58853         Otherwise, use update-copyright's default.
58855 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58856         and Eric Blake  <ebb9@byu.net>
58858         tests: don't require debug system() to pass
58859         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58860         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58861         * tests/test-unlink.h (test_unlink_func): Likewise.
58862         * tests/test-fstatat.c (main): ...into callers.
58863         * tests/test-lstat.c (main): Likewise.
58864         * tests/test-rmdir.c (main): Likewise.
58865         * tests/test-unlink.c (main): Likewise.
58866         * tests/test-unlinkat.c (main): Likewise.
58867         * tests/test-areadlink-with-size.c (main): Don't require a
58868         debug-only system call to pass, aiding cross-testing to mingw.
58869         * tests/test-areadlink.c (main): Likewise.
58870         * tests/test-areadlinkat-with-size.c (main): Likewise.
58871         * tests/test-areadlinkat.c (main): Likewise.
58872         * tests/test-canonicalize-lgpl.c (main): Likewise.
58873         * tests/test-canonicalize.c (main): Likewise.
58874         * tests/test-chown.c (main): Likewise.
58875         * tests/test-fchownat.c (main): Likewise.
58876         * tests/test-lchown.c (main): Likewise.
58877         * tests/test-fdutimensat.c (main): Likewise.
58878         * tests/test-futimens.c (main): Likewise.
58879         * tests/test-link.c (main): Likewise.
58880         * tests/test-linkat.c (main): Likewise.
58881         * tests/test-mkdir.c (main): Likewise.
58882         * tests/test-mkdirat.c (main): Likewise.
58883         * tests/test-mkfifo.c (main): Likewise.
58884         * tests/test-mkfifoat.c (main): Likewise.
58885         * tests/test-mknod.c (main): Likewise.
58886         * tests/test-readlink.c (main): Likewise.
58887         * tests/test-remove.c (main): Likewise.
58888         * tests/test-rename.c (main): Likewise.
58889         * tests/test-renameat.c (main): Likewise.
58890         * tests/test-symlink.c (main): Likewise.
58891         * tests/test-symlinkat.c (main): Likewise.
58892         * tests/test-utimens.c (main): Likewise.
58893         * tests/test-utimensat.c (main): Likewise.
58895 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58897         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58898         on $(UNUSED_PARAMETER_H) to avoid build failure.
58900 2009-12-28  Jim Meyering  <meyering@redhat.com>
58902         update-copyright: you may specify a max. line length other than 72
58903         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58905         maint: use consistent FSF copyright line syntax
58906         * lib/posixtm.c: Add missing comma in FSF copyright line.
58907         * lib/posixtm.h: Likewise.
58908         * lib/getugroups.c: Add missing ", Inc.".
58910         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58911         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58912         FSF copyright line.  Remove trailing blanks.
58914 2009-12-28  Eric Blake  <ebb9@byu.net>
58916         test-dup2: reduce dependencies
58917         * modules/cloexec (Configure.ac): Set witness.
58918         * modules/dup2-tests (Depends-on): Drop cloexec.
58919         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58920         not present.
58921         Suggested by Bruno Haible.
58923 2009-12-26  Bruno Haible  <bruno@clisp.org>
58925         Remove an unneeded dependency.
58926         * modules/fseterr (Depends-on): Remove dup2.
58928 2009-12-26  Eric Blake  <ebb9@byu.net>
58930         tests: use macros.h in more places
58931         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58932         (ASSERT_STREAM): Provide default of stderr.
58933         * tests/test-dirent-safer.c: Include macros.h, using alternate
58934         stream for assertions.
58935         * tests/test-dup-safer.c: Likewise.
58936         * tests/test-freopen-safer.c: Likewise.
58937         * tests/test-getopt.c: Likewise.
58938         * tests/test-openat-safer.c: Likewise.
58939         * tests/test-pipe.c: Likewise.
58940         * tests/test-popen-safer.c: Likewise.
58941         * modules/dirent-safer-tests (Files): Include macros.h.
58942         * modules/unistd-safer-tests (Files): Likewise.
58943         * modules/freopen-safer-tests (Files): Likewise.
58944         * modules/getopt-posix-tests (Files): Likewise.
58945         * modules/openat-safer-tests (Files): Likewise.
58946         * modules/pipe-tests (Files): Likewise.
58948 2009-12-26  Bruno Haible  <bruno@clisp.org>
58950         javacomp-script: Portability fix.
58951         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58952         that it also works on Solaris.
58954 2009-12-26  Bruno Haible  <bruno@clisp.org>
58956         localename: Fix storage allocation of gl_locale_name_thread's result.
58957         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58958         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58959         all platforms that have 'uselocale'.
58960         (gl_locale_name_thread_unsafe): New function, extracted from
58961         gl_locale_name_thread.
58962         (gl_locale_name_thread): Call struniq on all platforms that have
58963         'uselocale'.
58964         * tests/test-localename.c (test_locale_name_thread): Check that the
58965         resulting strings are permanently allocated.
58966         * modules/localename-tests (Depends-on): Add strdup.
58968 2009-12-26  Bruno Haible  <bruno@clisp.org>
58970         * tests/test-localename.c (categories): Fill in the strings.
58972 2009-12-26  Jim Meyering  <meyering@redhat.com>
58974         isdir: complete the removal of m4/isdir.m4
58975         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58977         isdir: clean up, since at least grep still uses it
58978         * lib/isdir.c: Include "isdir.h".
58979         (S_ISDIR): Remove now-unneeded definition.
58980         * modules/isdir (Files): Add lib/isdir.h.
58981         * lib/isdir.h: New file, with declaration.
58982         * m4/isdir.m4: Remove file -- unneeded.
58984 2009-12-25  Bruno Haible  <bruno@clisp.org>
58986         selinux-h: Make generated .h files standalone.
58987         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58988         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58989         * lib/se-selinux.in.h: Likewise.
58990         * modules/selinux-h (Depends-on): Add unused-parameter.
58991         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58992         selinux/selinux.h and selinux/context.h.
58993         Suggested by Eric Blake.
58995 2009-12-25  Bruno Haible  <bruno@clisp.org>
58997         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58998         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58999         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
59000         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
59001         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
59003 2009-12-24  Bruno Haible  <bruno@clisp.org>
59005         openat: Fix warning.
59006         * lib/openat-proc.c: Include <unistd.h>.
59008 2009-12-24  Bruno Haible  <bruno@clisp.org>
59010         New module 'unused-parameter'.
59011         * build-aux/unused-parameter.h: New file, extracted from earlier
59012         gnulib-common.m4.
59013         * modules/unused-parameter: New file.
59014         * lib/unistr.h: Include unused-parameter.h.
59015         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
59016         _GL_UNUSED.
59017         * modules/unistr/base (Depends-on): Add unused-parameter.
59019 2009-12-24  Bruno Haible  <bruno@clisp.org>
59021         Add missing dependencies to 'extensions' module.
59022         * m4/extensions.m4: Add comment.
59023         * modules/accept4 (Depends-on): Add extensions.
59024         * modules/dup3 (Depends-on): Likewise.
59025         * modules/fcntl (Depends-on): Likewise.
59026         * modules/futimens (Depends-on): Likewise.
59027         * modules/mknod (Depends-on): Likewise.
59028         * modules/pipe2 (Depends-on): Likewise.
59029         * modules/stat-time (Depends-on): Likewise.
59030         * modules/strcasestr-simple (Depends-on): Likewise.
59031         * modules/strsignal (Depends-on): Likewise.
59032         * modules/utimensat (Depends-on): Likewise.
59033         * modules/localcharset (Depends-on): Likewise. Needed because of
59034         gl_FCNTL_O_FLAGS.
59035         * modules/wcrtomb (Depends-on): Likewise. Needed because of
59036         AC_TYPE_MBSTATE_T.
59037         * modules/wcsnrtombs (Depends-on): Likewise.
59038         * modules/wcsrtombs (Depends-on): Likewise.
59040 2009-12-24  Bruno Haible  <bruno@clisp.org>
59042         binary-io: Avoid gcc warning due to SET_BINARY.
59043         * lib/binary-io.h (SET_BINARY): Cast the result to void.
59044         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
59046 2009-12-24  Bruno Haible  <bruno@clisp.org>
59048         Avoid future namespace pollution on glibc systems.
59049         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
59050         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
59051         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
59052         glibc systems.
59054 2009-12-24  Bruno Haible  <bruno@clisp.org>
59056         Refactor common macros used in tests.
59057         * tests/macros.h: New file.
59058         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
59059         and/or <stdlib.h>, if appropriate.
59060         (ASSERT, SIZEOF): Remove macros.
59061         * tests/test-areadlink-with-size.c: Likewise.
59062         * tests/test-areadlinkat.c: Likewise.
59063         * tests/test-areadlinkat-with-size.c: Likewise.
59064         * tests/test-argmatch.c: Likewise.
59065         * tests/test-argv-iter.c: Likewise.
59066         * tests/test-array-mergesort.c: Likewise.
59067         * tests/test-array_list.c: Likewise.
59068         * tests/test-array_oset.c: Likewise.
59069         * tests/test-avltree_list.c: Likewise.
59070         * tests/test-avltree_oset.c: Likewise.
59071         * tests/test-avltreehash_list.c: Likewise.
59072         * tests/test-base64.c: Likewise.
59073         * tests/test-binary-io.c: Likewise.
59074         * tests/test-bitrotate.c: Likewise.
59075         * tests/test-btowc.c: Likewise.
59076         * tests/test-byteswap.c: Likewise.
59077         * tests/test-c-ctype.c: Likewise.
59078         * tests/test-c-stack.c: Likewise.
59079         * tests/test-c-strcasecmp.c: Likewise.
59080         * tests/test-c-strcasestr.c: Likewise.
59081         * tests/test-c-strncasecmp.c: Likewise.
59082         * tests/test-c-strstr.c: Likewise.
59083         * tests/test-canonicalize-lgpl.c: Likewise.
59084         * tests/test-canonicalize.c: Likewise.
59085         * tests/test-carray_list.c: Likewise.
59086         * tests/test-ceilf1.c: Likewise.
59087         * tests/test-ceilf2.c: Likewise.
59088         * tests/test-ceill.c: Likewise.
59089         * tests/test-chown.c: Likewise.
59090         * tests/test-cloexec.c: Likewise.
59091         * tests/test-copy-acl.c: Likewise.
59092         * tests/test-copy-file.c: Likewise.
59093         * tests/test-count-one-bits.c: Likewise.
59094         * tests/test-dprintf-posix.c: Likewise.
59095         * tests/test-dup2.c: Likewise.
59096         * tests/test-dup3.c: Likewise.
59097         * tests/test-duplocale.c: Likewise.
59098         * tests/test-fbufmode.c: Likewise.
59099         * tests/test-fchdir.c: Likewise.
59100         * tests/test-fchownat.c: Likewise.
59101         * tests/test-fcntl-safer.c: Likewise.
59102         * tests/test-fcntl.c: Likewise.
59103         * tests/test-fdopendir.c: Likewise.
59104         * tests/test-fdutimensat.c: Likewise.
59105         * tests/test-fflush2.c: Likewise.
59106         * tests/test-file-has-acl.c: Likewise.
59107         * tests/test-filevercmp.c: Likewise.
59108         * tests/test-flock.c: Likewise.
59109         * tests/test-floorf1.c: Likewise.
59110         * tests/test-floorf2.c: Likewise.
59111         * tests/test-floorl.c: Likewise.
59112         * tests/test-fnmatch.c: Likewise.
59113         * tests/test-fopen.h: Likewise.
59114         * tests/test-fpending.c: Likewise.
59115         * tests/test-fprintf-posix.c: Likewise.
59116         * tests/test-fpurge.c: Likewise.
59117         * tests/test-freadable.c: Likewise.
59118         * tests/test-freadahead.c: Likewise.
59119         * tests/test-freading.c: Likewise.
59120         * tests/test-freadptr.c: Likewise.
59121         * tests/test-freadptr2.c: Likewise.
59122         * tests/test-freadseek.c: Likewise.
59123         * tests/test-freopen.c: Likewise.
59124         * tests/test-frexp.c: Likewise.
59125         * tests/test-frexpl.c: Likewise.
59126         * tests/test-fseek.c: Likewise.
59127         * tests/test-fseeko.c: Likewise.
59128         * tests/test-fstatat.c: Likewise.
59129         * tests/test-fstrcmp.c: Likewise.
59130         * tests/test-fsync.c: Likewise.
59131         * tests/test-ftell.c: Likewise.
59132         * tests/test-ftello.c: Likewise.
59133         * tests/test-func.c: Likewise.
59134         * tests/test-futimens.c: Likewise.
59135         * tests/test-fwritable.c: Likewise.
59136         * tests/test-fwriting.c: Likewise.
59137         * tests/test-getcwd.c: Likewise.
59138         * tests/test-getdate.c: Likewise.
59139         * tests/test-getdelim.c: Likewise.
59140         * tests/test-getdtablesize.c: Likewise.
59141         * tests/test-getgroups.c: Likewise.
59142         * tests/test-getline.c: Likewise.
59143         * tests/test-getndelim2.c: Likewise.
59144         * tests/test-glob.c: Likewise.
59145         * tests/test-hash.c: Likewise.
59146         * tests/test-i-ring.c: Likewise.
59147         * tests/test-iconv-utf.c: Likewise.
59148         * tests/test-iconv.c: Likewise.
59149         * tests/test-idpriv-drop.c: Likewise.
59150         * tests/test-idpriv-droptemp.c: Likewise.
59151         * tests/test-inet_ntop.c: Likewise.
59152         * tests/test-inet_pton.c: Likewise.
59153         * tests/test-isblank.c: Likewise.
59154         * tests/test-isfinite.c: Likewise.
59155         * tests/test-isinf.c: Likewise.
59156         * tests/test-isnan.c: Likewise.
59157         * tests/test-isnand.h: Likewise.
59158         * tests/test-isnanf.h: Likewise.
59159         * tests/test-isnanl.h: Likewise.
59160         * tests/test-lchown.c: Likewise.
59161         * tests/test-ldexpl.c: Likewise.
59162         * tests/test-link.c: Likewise.
59163         * tests/test-linkat.c: Likewise.
59164         * tests/test-linked_list.c: Likewise.
59165         * tests/test-linkedhash_list.c: Likewise.
59166         * tests/test-localename.c: Likewise.
59167         * tests/test-lseek.c: Likewise.
59168         * tests/test-lstat.c: Likewise.
59169         * tests/test-mbmemcasecmp.c: Likewise.
59170         * tests/test-mbmemcasecoll.c: Likewise.
59171         * tests/test-mbrtowc.c: Likewise.
59172         * tests/test-mbscasecmp.c: Likewise.
59173         * tests/test-mbscasestr1.c: Likewise.
59174         * tests/test-mbscasestr2.c: Likewise.
59175         * tests/test-mbscasestr3.c: Likewise.
59176         * tests/test-mbscasestr4.c: Likewise.
59177         * tests/test-mbschr.c: Likewise.
59178         * tests/test-mbscspn.c: Likewise.
59179         * tests/test-mbsinit.c: Likewise.
59180         * tests/test-mbsncasecmp.c: Likewise.
59181         * tests/test-mbsnrtowcs.c: Likewise.
59182         * tests/test-mbspbrk.c: Likewise.
59183         * tests/test-mbspcasecmp.c: Likewise.
59184         * tests/test-mbsrchr.c: Likewise.
59185         * tests/test-mbsrtowcs.c: Likewise.
59186         * tests/test-mbsspn.c: Likewise.
59187         * tests/test-mbsstr1.c: Likewise.
59188         * tests/test-mbsstr2.c: Likewise.
59189         * tests/test-mbsstr3.c: Likewise.
59190         * tests/test-memchr.c: Likewise.
59191         * tests/test-memchr2.c: Likewise.
59192         * tests/test-memcmp.c: Likewise.
59193         * tests/test-memmem.c: Likewise.
59194         * tests/test-memrchr.c: Likewise.
59195         * tests/test-mkdir.c: Likewise.
59196         * tests/test-mkdirat.c: Likewise.
59197         * tests/test-mkfifo.c: Likewise.
59198         * tests/test-mkfifoat.c: Likewise.
59199         * tests/test-mknod.c: Likewise.
59200         * tests/test-nanosleep.c: Likewise.
59201         * tests/test-nl_langinfo.c: Likewise.
59202         * tests/test-obstack-printf.c: Likewise.
59203         * tests/test-open.c: Likewise.
59204         * tests/test-openat.c: Likewise.
59205         * tests/test-pipe-filter-gi1.c: Likewise.
59206         * tests/test-pipe-filter-gi2-main.c: Likewise.
59207         * tests/test-pipe-filter-ii1.c: Likewise.
59208         * tests/test-pipe-filter-ii2-main.c: Likewise.
59209         * tests/test-pipe2.c: Likewise.
59210         * tests/test-popen.h: Likewise.
59211         * tests/test-posixtm.c: Likewise.
59212         * tests/test-pread.c: Likewise.
59213         * tests/test-printf-frexp.c: Likewise.
59214         * tests/test-printf-frexpl.c: Likewise.
59215         * tests/test-printf-posix.c: Likewise.
59216         * tests/test-priv-set.c: Likewise.
59217         * tests/test-quotearg.c: Likewise.
59218         * tests/test-random_r.c: Likewise.
59219         * tests/test-rawmemchr.c: Likewise.
59220         * tests/test-rbtree_list.c: Likewise.
59221         * tests/test-rbtree_oset.c: Likewise.
59222         * tests/test-rbtreehash_list.c: Likewise.
59223         * tests/test-readlink.c: Likewise.
59224         * tests/test-remove.c: Likewise.
59225         * tests/test-rename.c: Likewise.
59226         * tests/test-renameat.c: Likewise.
59227         * tests/test-rmdir.c: Likewise.
59228         * tests/test-round1.c: Likewise.
59229         * tests/test-roundf1.c: Likewise.
59230         * tests/test-roundl.c: Likewise.
59231         * tests/test-safe-alloc.c: Likewise.
59232         * tests/test-sameacls.c: Likewise.
59233         * tests/test-set-mode-acl.c: Likewise.
59234         * tests/test-setenv.c: Likewise.
59235         * tests/test-sigaction.c: Likewise.
59236         * tests/test-signbit.c: Likewise.
59237         * tests/test-sleep.c: Likewise.
59238         * tests/test-snprintf-posix.c: Likewise.
59239         * tests/test-snprintf.c: Likewise.
59240         * tests/test-sprintf-posix.c: Likewise.
59241         * tests/test-stat-time.c: Likewise.
59242         * tests/test-stat.c: Likewise.
59243         * tests/test-strcasestr.c: Likewise.
59244         * tests/test-strchrnul.c: Likewise.
59245         * tests/test-strerror.c: Likewise.
59246         * tests/test-striconv.c: Likewise.
59247         * tests/test-striconveh.c: Likewise.
59248         * tests/test-striconveha.c: Likewise.
59249         * tests/test-strsignal.c: Likewise.
59250         * tests/test-strstr.c: Likewise.
59251         * tests/test-strtod.c: Likewise.
59252         * tests/test-strverscmp.c: Likewise.
59253         * tests/test-symlink.c: Likewise.
59254         * tests/test-symlinkat.c: Likewise.
59255         * tests/test-trunc1.c: Likewise.
59256         * tests/test-trunc2.c: Likewise.
59257         * tests/test-truncf1.c: Likewise.
59258         * tests/test-truncf2.c: Likewise.
59259         * tests/test-truncl.c: Likewise.
59260         * tests/test-uname.c: Likewise.
59261         * tests/test-unlink.c: Likewise.
59262         * tests/test-unlinkat.c: Likewise.
59263         * tests/test-unsetenv.c: Likewise.
59264         * tests/test-usleep.c: Likewise.
59265         * tests/test-utimens.c: Likewise.
59266         * tests/test-utimensat.c: Likewise.
59267         * tests/test-vasnprintf-posix.c: Likewise.
59268         * tests/test-vasnprintf-posix2.c: Likewise.
59269         * tests/test-vasnprintf.c: Likewise.
59270         * tests/test-vasprintf-posix.c: Likewise.
59271         * tests/test-vasprintf.c: Likewise.
59272         * tests/test-vdprintf-posix.c: Likewise.
59273         * tests/test-vfprintf-posix.c: Likewise.
59274         * tests/test-vprintf-posix.c: Likewise.
59275         * tests/test-vsnprintf-posix.c: Likewise.
59276         * tests/test-vsnprintf.c: Likewise.
59277         * tests/test-vsprintf-posix.c: Likewise.
59278         * tests/test-wcrtomb.c: Likewise.
59279         * tests/test-wcsnrtombs.c: Likewise.
59280         * tests/test-wcsrtombs.c: Likewise.
59281         * tests/test-wctype.c: Likewise.
59282         * tests/test-wcwidth.c: Likewise.
59283         * tests/test-xfprintf-posix.c: Likewise.
59284         * tests/test-xmemdup0.c: Likewise.
59285         * tests/test-xprintf-posix.c: Likewise.
59286         * tests/test-xvasprintf.c: Likewise.
59287         * tests/unicase/test-locale-language.c: Likewise.
59288         * tests/unicase/test-mapping-part1.h: Likewise.
59289         * tests/unicase/test-predicate-part1.h: Likewise.
59290         * tests/unicase/test-u8-casecmp.c: Likewise.
59291         * tests/unicase/test-u8-casecoll.c: Likewise.
59292         * tests/unicase/test-u8-casefold.c: Likewise.
59293         * tests/unicase/test-u8-is-cased.c: Likewise.
59294         * tests/unicase/test-u8-is-casefolded.c: Likewise.
59295         * tests/unicase/test-u8-is-lowercase.c: Likewise.
59296         * tests/unicase/test-u8-is-titlecase.c: Likewise.
59297         * tests/unicase/test-u8-is-uppercase.c: Likewise.
59298         * tests/unicase/test-u8-tolower.c: Likewise.
59299         * tests/unicase/test-u8-totitle.c: Likewise.
59300         * tests/unicase/test-u8-toupper.c: Likewise.
59301         * tests/unicase/test-u16-casecmp.c: Likewise.
59302         * tests/unicase/test-u16-casecoll.c: Likewise.
59303         * tests/unicase/test-u16-casefold.c: Likewise.
59304         * tests/unicase/test-u16-is-cased.c: Likewise.
59305         * tests/unicase/test-u16-is-casefolded.c: Likewise.
59306         * tests/unicase/test-u16-is-lowercase.c: Likewise.
59307         * tests/unicase/test-u16-is-titlecase.c: Likewise.
59308         * tests/unicase/test-u16-is-uppercase.c: Likewise.
59309         * tests/unicase/test-u16-tolower.c: Likewise.
59310         * tests/unicase/test-u16-totitle.c: Likewise.
59311         * tests/unicase/test-u16-toupper.c: Likewise.
59312         * tests/unicase/test-u32-casecmp.c: Likewise.
59313         * tests/unicase/test-u32-casecoll.c: Likewise.
59314         * tests/unicase/test-u32-casefold.c: Likewise.
59315         * tests/unicase/test-u32-is-cased.c: Likewise.
59316         * tests/unicase/test-u32-is-casefolded.c: Likewise.
59317         * tests/unicase/test-u32-is-lowercase.c: Likewise.
59318         * tests/unicase/test-u32-is-titlecase.c: Likewise.
59319         * tests/unicase/test-u32-is-uppercase.c: Likewise.
59320         * tests/unicase/test-u32-tolower.c: Likewise.
59321         * tests/unicase/test-u32-totitle.c: Likewise.
59322         * tests/unicase/test-u32-toupper.c: Likewise.
59323         * tests/unicase/test-ulc-casecmp.c: Likewise.
59324         * tests/unicase/test-ulc-casecoll.c: Likewise.
59325         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59326         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59327         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59328         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59329         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59330         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59331         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59332         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59333         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59334         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59335         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59336         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59337         * tests/unictype/test-bidi_byname.c: Likewise.
59338         * tests/unictype/test-bidi_name.c: Likewise.
59339         * tests/unictype/test-bidi_of.c: Likewise.
59340         * tests/unictype/test-bidi_test.c: Likewise.
59341         * tests/unictype/test-block_list.c: Likewise.
59342         * tests/unictype/test-block_of.c: Likewise.
59343         * tests/unictype/test-block_test.c: Likewise.
59344         * tests/unictype/test-categ_and.c: Likewise.
59345         * tests/unictype/test-categ_and_not.c: Likewise.
59346         * tests/unictype/test-categ_byname.c: Likewise.
59347         * tests/unictype/test-categ_name.c: Likewise.
59348         * tests/unictype/test-categ_none.c: Likewise.
59349         * tests/unictype/test-categ_of.c: Likewise.
59350         * tests/unictype/test-categ_or.c: Likewise.
59351         * tests/unictype/test-categ_test_withtable.c: Likewise.
59352         * tests/unictype/test-combining.c: Likewise.
59353         * tests/unictype/test-decdigit.c: Likewise.
59354         * tests/unictype/test-digit.c: Likewise.
59355         * tests/unictype/test-mirror.c: Likewise.
59356         * tests/unictype/test-numeric.c: Likewise.
59357         * tests/unictype/test-pr_byname.c: Likewise.
59358         * tests/unictype/test-pr_test.c: Likewise.
59359         * tests/unictype/test-predicate-part1.h: Likewise.
59360         * tests/unictype/test-scripts.c: Likewise.
59361         * tests/unictype/test-sy_c_ident.c: Likewise.
59362         * tests/unictype/test-sy_java_ident.c: Likewise.
59363         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59364         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59365         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59366         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59367         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59368         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59369         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59370         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59371         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59372         * tests/uninorm/test-compat-decomposition.c: Likewise.
59373         * tests/uninorm/test-composition.c: Likewise.
59374         * tests/uninorm/test-decomposing-form.c: Likewise.
59375         * tests/uninorm/test-decomposition.c: Likewise.
59376         * tests/uninorm/test-u8-nfc.c: Likewise.
59377         * tests/uninorm/test-u8-nfd.c: Likewise.
59378         * tests/uninorm/test-u8-nfkc.c: Likewise.
59379         * tests/uninorm/test-u8-nfkd.c: Likewise.
59380         * tests/uninorm/test-u8-normcmp.c: Likewise.
59381         * tests/uninorm/test-u8-normcoll.c: Likewise.
59382         * tests/uninorm/test-u16-nfc.c: Likewise.
59383         * tests/uninorm/test-u16-nfd.c: Likewise.
59384         * tests/uninorm/test-u16-nfkc.c: Likewise.
59385         * tests/uninorm/test-u16-nfkd.c: Likewise.
59386         * tests/uninorm/test-u16-normcmp.c: Likewise.
59387         * tests/uninorm/test-u16-normcoll.c: Likewise.
59388         * tests/uninorm/test-u32-nfc.c: Likewise.
59389         * tests/uninorm/test-u32-nfd.c: Likewise.
59390         * tests/uninorm/test-u32-nfkc.c: Likewise.
59391         * tests/uninorm/test-u32-nfkd.c: Likewise.
59392         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59393         * tests/uninorm/test-u32-normcmp.c: Likewise.
59394         * tests/uninorm/test-u32-normcoll.c: Likewise.
59395         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59396         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59397         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59398         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59399         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59400         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59401         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59402         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59403         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59404         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59405         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59406         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59407         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59408         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59409         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59410         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59411         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59412         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59413         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59414         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59415         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59416         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59417         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59418         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59419         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59420         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59421         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59422         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59423         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59424         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59425         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59426         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59427         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59428         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59429         * tests/uniwidth/test-u8-width.c: Likewise.
59430         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59431         * tests/uniwidth/test-u16-width.c: Likewise.
59432         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59433         * tests/uniwidth/test-u32-width.c: Likewise.
59434         * tests/uniwidth/test-uc_width.c: Likewise.
59435         * tests/uniwidth/test-uc_width2.c: Likewise.
59436         * modules/acl-tests (Files): Add tests/macros.h.
59437         * modules/areadlink-tests (Files): Likewise.
59438         * modules/areadlink-with-size-tests (Files): Likewise.
59439         * modules/areadlinkat-tests (Files): Likewise.
59440         * modules/areadlinkat-with-size-tests (Files): Likewise.
59441         * modules/argmatch-tests (Files): Likewise.
59442         * modules/argv-iter-tests (Files): Likewise.
59443         * modules/array-list-tests (Files): Likewise.
59444         * modules/array-mergesort-tests (Files): Likewise.
59445         * modules/array-oset-tests (Files): Likewise.
59446         * modules/avltree-list-tests (Files): Likewise.
59447         * modules/avltree-oset-tests (Files): Likewise.
59448         * modules/avltreehash-list-tests (Files): Likewise.
59449         * modules/base64-tests (Files): Likewise.
59450         * modules/binary-io-tests (Files): Likewise.
59451         * modules/bitrotate-tests (Files): Likewise.
59452         * modules/btowc-tests (Files): Likewise.
59453         * modules/byteswap-tests (Files): Likewise.
59454         * modules/c-ctype-tests (Files): Likewise.
59455         * modules/c-stack-tests (Files): Likewise.
59456         * modules/c-strcase-tests (Files): Likewise.
59457         * modules/c-strcasestr-tests (Files): Likewise.
59458         * modules/c-strstr-tests (Files): Likewise.
59459         * modules/canonicalize-lgpl-tests (Files): Likewise.
59460         * modules/canonicalize-tests (Files): Likewise.
59461         * modules/carray-list-tests (Files): Likewise.
59462         * modules/ceilf-tests (Files): Likewise.
59463         * modules/ceill-tests (Files): Likewise.
59464         * modules/chown-tests (Files): Likewise.
59465         * modules/cloexec-tests (Files): Likewise.
59466         * modules/copy-file-tests (Files): Likewise.
59467         * modules/count-one-bits-tests (Files): Likewise.
59468         * modules/dprintf-posix-tests (Files): Likewise.
59469         * modules/dup2-tests (Files): Likewise.
59470         * modules/dup3-tests (Files): Likewise.
59471         * modules/duplocale-tests (Files): Likewise.
59472         * modules/fbufmode-tests (Files): Likewise.
59473         * modules/fchdir-tests (Files): Likewise.
59474         * modules/fcntl-safer-tests (Files): Likewise.
59475         * modules/fcntl-tests (Files): Likewise.
59476         * modules/fdopendir-tests (Files): Likewise.
59477         * modules/fdutimensat-tests (Files): Likewise.
59478         * modules/fflush-tests (Files): Likewise.
59479         * modules/filevercmp-tests (Files): Likewise.
59480         * modules/flock-tests (Files): Likewise.
59481         * modules/floorf-tests (Files): Likewise.
59482         * modules/floorl-tests (Files): Likewise.
59483         * modules/fnmatch-tests (Files): Likewise.
59484         * modules/fopen-safer-tests (Files): Likewise.
59485         * modules/fopen-tests (Files): Likewise.
59486         * modules/fpending-tests (Files): Likewise.
59487         * modules/fprintf-posix-tests (Files): Likewise.
59488         * modules/fpurge-tests (Files): Likewise.
59489         * modules/freadable-tests (Files): Likewise.
59490         * modules/freadahead-tests (Files): Likewise.
59491         * modules/freading-tests (Files): Likewise.
59492         * modules/freadptr-tests (Files): Likewise.
59493         * modules/freadseek-tests (Files): Likewise.
59494         * modules/freopen-tests (Files): Likewise.
59495         * modules/frexp-nolibm-tests (Files): Likewise.
59496         * modules/frexp-tests (Files): Likewise.
59497         * modules/frexpl-nolibm-tests (Files): Likewise.
59498         * modules/frexpl-tests (Files): Likewise.
59499         * modules/fseek-tests (Files): Likewise.
59500         * modules/fseeko-tests (Files): Likewise.
59501         * modules/fstrcmp-tests (Files): Likewise.
59502         * modules/fsync-tests (Files): Likewise.
59503         * modules/ftell-tests (Files): Likewise.
59504         * modules/ftello-tests (Files): Likewise.
59505         * modules/func-tests (Files): Likewise.
59506         * modules/futimens-tests (Files): Likewise.
59507         * modules/fwritable-tests (Files): Likewise.
59508         * modules/fwriting-tests (Files): Likewise.
59509         * modules/getcwd-tests (Files): Likewise.
59510         * modules/getdate-tests (Files): Likewise.
59511         * modules/getdelim-tests (Files): Likewise.
59512         * modules/getdtablesize-tests (Files): Likewise.
59513         * modules/getgroups-tests (Files): Likewise.
59514         * modules/getline-tests (Files): Likewise.
59515         * modules/getndelim2-tests (Files): Likewise.
59516         * modules/glob-tests (Files): Likewise.
59517         * modules/hash-tests (Files): Likewise.
59518         * modules/i-ring-tests (Files): Likewise.
59519         * modules/iconv-tests (Files): Likewise.
59520         * modules/iconv_open-utf-tests (Files): Likewise.
59521         * modules/idpriv-drop-tests (Files): Likewise.
59522         * modules/idpriv-droptemp-tests (Files): Likewise.
59523         * modules/inet_ntop-tests (Files): Likewise.
59524         * modules/inet_pton-tests (Files): Likewise.
59525         * modules/isblank-tests (Files): Likewise.
59526         * modules/isfinite-tests (Files): Likewise.
59527         * modules/isinf-tests (Files): Likewise.
59528         * modules/isnan-tests (Files): Likewise.
59529         * modules/isnand-nolibm-tests (Files): Likewise.
59530         * modules/isnand-tests (Files): Likewise.
59531         * modules/isnanf-nolibm-tests (Files): Likewise.
59532         * modules/isnanf-tests (Files): Likewise.
59533         * modules/isnanl-nolibm-tests (Files): Likewise.
59534         * modules/isnanl-tests (Files): Likewise.
59535         * modules/lchown-tests (Files): Likewise.
59536         * modules/ldexpl-tests (Files): Likewise.
59537         * modules/link-tests (Files): Likewise.
59538         * modules/linkat-tests (Files): Likewise.
59539         * modules/linked-list-tests (Files): Likewise.
59540         * modules/linkedhash-list-tests (Files): Likewise.
59541         * modules/localename-tests (Files): Likewise.
59542         * modules/lseek-tests (Files): Likewise.
59543         * modules/lstat-tests (Files): Likewise.
59544         * modules/mbmemcasecmp-tests (Files): Likewise.
59545         * modules/mbmemcasecoll-tests (Files): Likewise.
59546         * modules/mbrtowc-tests (Files): Likewise.
59547         * modules/mbscasecmp-tests (Files): Likewise.
59548         * modules/mbscasestr-tests (Files): Likewise.
59549         * modules/mbschr-tests (Files): Likewise.
59550         * modules/mbscspn-tests (Files): Likewise.
59551         * modules/mbsinit-tests (Files): Likewise.
59552         * modules/mbsncasecmp-tests (Files): Likewise.
59553         * modules/mbsnrtowcs-tests (Files): Likewise.
59554         * modules/mbspbrk-tests (Files): Likewise.
59555         * modules/mbspcasecmp-tests (Files): Likewise.
59556         * modules/mbsrchr-tests (Files): Likewise.
59557         * modules/mbsrtowcs-tests (Files): Likewise.
59558         * modules/mbsspn-tests (Files): Likewise.
59559         * modules/mbsstr-tests (Files): Likewise.
59560         * modules/memchr-tests (Files): Likewise.
59561         * modules/memchr2-tests (Files): Likewise.
59562         * modules/memcmp-tests (Files): Likewise.
59563         * modules/memmem-tests (Files): Likewise.
59564         * modules/memrchr-tests (Files): Likewise.
59565         * modules/mkdir-tests (Files): Likewise.
59566         * modules/mkfifo-tests (Files): Likewise.
59567         * modules/mkfifoat-tests (Files): Likewise.
59568         * modules/mknod-tests (Files): Likewise.
59569         * modules/nanosleep-tests (Files): Likewise.
59570         * modules/nl_langinfo-tests (Files): Likewise.
59571         * modules/obstack-printf-tests (Files): Likewise.
59572         * modules/open-tests (Files): Likewise.
59573         * modules/openat-tests (Files): Likewise.
59574         * modules/pipe-filter-gi-tests (Files): Likewise.
59575         * modules/pipe-filter-ii-tests (Files): Likewise.
59576         * modules/pipe2-tests (Files): Likewise.
59577         * modules/popen-safer-tests (Files): Likewise.
59578         * modules/popen-tests (Files): Likewise.
59579         * modules/posixtm-tests (Files): Likewise.
59580         * modules/pread-tests (Files): Likewise.
59581         * modules/printf-frexp-tests (Files): Likewise.
59582         * modules/printf-frexpl-tests (Files): Likewise.
59583         * modules/printf-posix-tests (Files): Likewise.
59584         * modules/priv-set-tests (Files): Likewise.
59585         * modules/quotearg-tests (Files): Likewise.
59586         * modules/random_r-tests (Files): Likewise.
59587         * modules/rawmemchr-tests (Files): Likewise.
59588         * modules/rbtree-list-tests (Files): Likewise.
59589         * modules/rbtree-oset-tests (Files): Likewise.
59590         * modules/rbtreehash-list-tests (Files): Likewise.
59591         * modules/readlink-tests (Files): Likewise.
59592         * modules/remove-tests (Files): Likewise.
59593         * modules/rename-tests (Files): Likewise.
59594         * modules/renameat-tests (Files): Likewise.
59595         * modules/rmdir-tests (Files): Likewise.
59596         * modules/round-tests (Files): Likewise.
59597         * modules/roundf-tests (Files): Likewise.
59598         * modules/roundl-tests (Files): Likewise.
59599         * modules/safe-alloc-tests (Files): Likewise.
59600         * modules/setenv-tests (Files): Likewise.
59601         * modules/sigaction-tests (Files): Likewise.
59602         * modules/signbit-tests (Files): Likewise.
59603         * modules/sleep-tests (Files): Likewise.
59604         * modules/snprintf-posix-tests (Files): Likewise.
59605         * modules/snprintf-tests (Files): Likewise.
59606         * modules/sprintf-posix-tests (Files): Likewise.
59607         * modules/stat-tests (Files): Likewise.
59608         * modules/stat-time-tests (Files): Likewise.
59609         * modules/strcasestr-tests (Files): Likewise.
59610         * modules/strchrnul-tests (Files): Likewise.
59611         * modules/strerror-tests (Files): Likewise.
59612         * modules/striconv-tests (Files): Likewise.
59613         * modules/striconveh-tests (Files): Likewise.
59614         * modules/striconveha-tests (Files): Likewise.
59615         * modules/strsignal-tests (Files): Likewise.
59616         * modules/strstr-tests (Files): Likewise.
59617         * modules/strtod-tests (Files): Likewise.
59618         * modules/strverscmp-tests (Files): Likewise.
59619         * modules/symlink-tests (Files): Likewise.
59620         * modules/symlinkat-tests (Files): Likewise.
59621         * modules/trunc-tests (Files): Likewise.
59622         * modules/truncf-tests (Files): Likewise.
59623         * modules/truncl-tests (Files): Likewise.
59624         * modules/uname-tests (Files): Likewise.
59625         * modules/unicase/cased-tests (Files): Likewise.
59626         * modules/unicase/ignorable-tests (Files): Likewise.
59627         * modules/unicase/locale-language-tests (Files): Likewise.
59628         * modules/unicase/tolower-tests (Files): Likewise.
59629         * modules/unicase/totitle-tests (Files): Likewise.
59630         * modules/unicase/toupper-tests (Files): Likewise.
59631         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59632         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59633         * modules/unicase/u8-casefold-tests (Files): Likewise.
59634         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59635         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59636         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59637         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59638         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59639         * modules/unicase/u8-tolower-tests (Files): Likewise.
59640         * modules/unicase/u8-totitle-tests (Files): Likewise.
59641         * modules/unicase/u8-toupper-tests (Files): Likewise.
59642         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59643         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59644         * modules/unicase/u16-casefold-tests (Files): Likewise.
59645         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59646         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59647         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59648         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59649         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59650         * modules/unicase/u16-tolower-tests (Files): Likewise.
59651         * modules/unicase/u16-totitle-tests (Files): Likewise.
59652         * modules/unicase/u16-toupper-tests (Files): Likewise.
59653         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59654         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59655         * modules/unicase/u32-casefold-tests (Files): Likewise.
59656         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59657         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59658         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59659         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59660         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59661         * modules/unicase/u32-tolower-tests (Files): Likewise.
59662         * modules/unicase/u32-totitle-tests (Files): Likewise.
59663         * modules/unicase/u32-toupper-tests (Files): Likewise.
59664         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59665         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59666         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59667         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59668         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59669         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59670         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59671         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59672         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59673         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59674         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59675         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59676         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59677         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59678         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59679         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59680         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59681         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59682         * modules/unictype/block-list-tests (Files): Likewise.
59683         * modules/unictype/block-of-tests (Files): Likewise.
59684         * modules/unictype/block-test-tests (Files): Likewise.
59685         * modules/unictype/category-C-tests (Files): Likewise.
59686         * modules/unictype/category-Cc-tests (Files): Likewise.
59687         * modules/unictype/category-Cf-tests (Files): Likewise.
59688         * modules/unictype/category-Cn-tests (Files): Likewise.
59689         * modules/unictype/category-Co-tests (Files): Likewise.
59690         * modules/unictype/category-Cs-tests (Files): Likewise.
59691         * modules/unictype/category-L-tests (Files): Likewise.
59692         * modules/unictype/category-Ll-tests (Files): Likewise.
59693         * modules/unictype/category-Lm-tests (Files): Likewise.
59694         * modules/unictype/category-Lo-tests (Files): Likewise.
59695         * modules/unictype/category-Lt-tests (Files): Likewise.
59696         * modules/unictype/category-Lu-tests (Files): Likewise.
59697         * modules/unictype/category-M-tests (Files): Likewise.
59698         * modules/unictype/category-Mc-tests (Files): Likewise.
59699         * modules/unictype/category-Me-tests (Files): Likewise.
59700         * modules/unictype/category-Mn-tests (Files): Likewise.
59701         * modules/unictype/category-N-tests (Files): Likewise.
59702         * modules/unictype/category-Nd-tests (Files): Likewise.
59703         * modules/unictype/category-Nl-tests (Files): Likewise.
59704         * modules/unictype/category-No-tests (Files): Likewise.
59705         * modules/unictype/category-P-tests (Files): Likewise.
59706         * modules/unictype/category-Pc-tests (Files): Likewise.
59707         * modules/unictype/category-Pd-tests (Files): Likewise.
59708         * modules/unictype/category-Pe-tests (Files): Likewise.
59709         * modules/unictype/category-Pf-tests (Files): Likewise.
59710         * modules/unictype/category-Pi-tests (Files): Likewise.
59711         * modules/unictype/category-Po-tests (Files): Likewise.
59712         * modules/unictype/category-Ps-tests (Files): Likewise.
59713         * modules/unictype/category-S-tests (Files): Likewise.
59714         * modules/unictype/category-Sc-tests (Files): Likewise.
59715         * modules/unictype/category-Sk-tests (Files): Likewise.
59716         * modules/unictype/category-Sm-tests (Files): Likewise.
59717         * modules/unictype/category-So-tests (Files): Likewise.
59718         * modules/unictype/category-Z-tests (Files): Likewise.
59719         * modules/unictype/category-Zl-tests (Files): Likewise.
59720         * modules/unictype/category-Zp-tests (Files): Likewise.
59721         * modules/unictype/category-Zs-tests (Files): Likewise.
59722         * modules/unictype/category-and-not-tests (Files): Likewise.
59723         * modules/unictype/category-and-tests (Files): Likewise.
59724         * modules/unictype/category-byname-tests (Files): Likewise.
59725         * modules/unictype/category-name-tests (Files): Likewise.
59726         * modules/unictype/category-none-tests (Files): Likewise.
59727         * modules/unictype/category-of-tests (Files): Likewise.
59728         * modules/unictype/category-or-tests (Files): Likewise.
59729         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59730         * modules/unictype/combining-class-tests (Files): Likewise.
59731         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59732         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59733         * modules/unictype/ctype-blank-tests (Files): Likewise.
59734         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59735         * modules/unictype/ctype-digit-tests (Files): Likewise.
59736         * modules/unictype/ctype-graph-tests (Files): Likewise.
59737         * modules/unictype/ctype-lower-tests (Files): Likewise.
59738         * modules/unictype/ctype-print-tests (Files): Likewise.
59739         * modules/unictype/ctype-punct-tests (Files): Likewise.
59740         * modules/unictype/ctype-space-tests (Files): Likewise.
59741         * modules/unictype/ctype-upper-tests (Files): Likewise.
59742         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59743         * modules/unictype/decimal-digit-tests (Files): Likewise.
59744         * modules/unictype/digit-tests (Files): Likewise.
59745         * modules/unictype/mirror-tests (Files): Likewise.
59746         * modules/unictype/numeric-tests (Files): Likewise.
59747         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59748         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59749         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59750         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59751         Likewise.
59752         * modules/unictype/property-bidi-block-separator-tests (Files):
59753         Likewise.
59754         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59755         Likewise.
59756         * modules/unictype/property-bidi-common-separator-tests (Files):
59757         Likewise.
59758         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59759         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59760         Likewise.
59761         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59762         Likewise.
59763         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59764         Likewise.
59765         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59766         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59767         Likewise.
59768         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59769         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59770         Likewise.
59771         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59772         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59773         * modules/unictype/property-bidi-segment-separator-tests (Files):
59774         Likewise.
59775         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59776         * modules/unictype/property-byname-tests (Files): Likewise.
59777         * modules/unictype/property-combining-tests (Files): Likewise.
59778         * modules/unictype/property-composite-tests (Files): Likewise.
59779         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59780         * modules/unictype/property-dash-tests (Files): Likewise.
59781         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59782         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59783         Likewise.
59784         * modules/unictype/property-deprecated-tests (Files): Likewise.
59785         * modules/unictype/property-diacritic-tests (Files): Likewise.
59786         * modules/unictype/property-extender-tests (Files): Likewise.
59787         * modules/unictype/property-format-control-tests (Files): Likewise.
59788         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59789         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59790         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59791         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59792         * modules/unictype/property-hyphen-tests (Files): Likewise.
59793         * modules/unictype/property-id-continue-tests (Files): Likewise.
59794         * modules/unictype/property-id-start-tests (Files): Likewise.
59795         * modules/unictype/property-ideographic-tests (Files): Likewise.
59796         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59797         * modules/unictype/property-ids-trinary-operator-tests (Files):
59798         Likewise.
59799         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59800         * modules/unictype/property-iso-control-tests (Files): Likewise.
59801         * modules/unictype/property-join-control-tests (Files): Likewise.
59802         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59803         * modules/unictype/property-line-separator-tests (Files): Likewise.
59804         * modules/unictype/property-logical-order-exception-tests (Files):
59805         Likewise.
59806         * modules/unictype/property-lowercase-tests (Files): Likewise.
59807         * modules/unictype/property-math-tests (Files): Likewise.
59808         * modules/unictype/property-non-break-tests (Files): Likewise.
59809         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59810         * modules/unictype/property-numeric-tests (Files): Likewise.
59811         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59812         * modules/unictype/property-other-default-ignorable-code-point-tests
59813         (Files): Likewise.
59814         * modules/unictype/property-other-grapheme-extend-tests (Files):
59815         Likewise.
59816         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59817         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59818         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59819         * modules/unictype/property-other-math-tests (Files): Likewise.
59820         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59821         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59822         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59823         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59824         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59825         * modules/unictype/property-private-use-tests (Files): Likewise.
59826         * modules/unictype/property-punctuation-tests (Files): Likewise.
59827         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59828         * modules/unictype/property-radical-tests (Files): Likewise.
59829         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59830         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59831         * modules/unictype/property-space-tests (Files): Likewise.
59832         * modules/unictype/property-terminal-punctuation-tests (Files):
59833         Likewise.
59834         * modules/unictype/property-test-tests (Files): Likewise.
59835         * modules/unictype/property-titlecase-tests (Files): Likewise.
59836         * modules/unictype/property-unassigned-code-value-tests (Files):
59837         Likewise.
59838         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59839         * modules/unictype/property-uppercase-tests (Files): Likewise.
59840         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59841         * modules/unictype/property-white-space-tests (Files): Likewise.
59842         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59843         * modules/unictype/property-xid-start-tests (Files): Likewise.
59844         * modules/unictype/property-zero-width-tests (Files): Likewise.
59845         * modules/unictype/scripts-tests (Files): Likewise.
59846         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59847         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59848         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59849         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59850         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59851         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59852         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59853         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59854         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59855         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59856         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59857         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59858         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59859         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59860         * modules/uninorm/composition-tests (Files): Likewise.
59861         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59862         * modules/uninorm/decomposition-tests (Files): Likewise.
59863         * modules/uninorm/filter-tests (Files): Likewise.
59864         * modules/uninorm/nfc-tests (Files): Likewise.
59865         * modules/uninorm/nfd-tests (Files): Likewise.
59866         * modules/uninorm/nfkc-tests (Files): Likewise.
59867         * modules/uninorm/nfkd-tests (Files): Likewise.
59868         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59869         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59870         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59871         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59872         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59873         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59874         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59875         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59876         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59877         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59878         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59879         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59880         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59881         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59882         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59883         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59884         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59885         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59886         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59887         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59888         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59889         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59890         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59891         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59892         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59893         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59894         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59895         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59896         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59897         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59898         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59899         * modules/uniwidth/u8-width-tests (Files): Likewise.
59900         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59901         * modules/uniwidth/u16-width-tests (Files): Likewise.
59902         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59903         * modules/uniwidth/u32-width-tests (Files): Likewise.
59904         * modules/uniwidth/width-tests (Files): Likewise.
59905         * modules/unlink-tests (Files): Likewise.
59906         * modules/unsetenv-tests (Files): Likewise.
59907         * modules/usleep-tests (Files): Likewise.
59908         * modules/utimens-tests (Files): Likewise.
59909         * modules/utimensat-tests (Files): Likewise.
59910         * modules/vasnprintf-posix-tests (Files): Likewise.
59911         * modules/vasnprintf-tests (Files): Likewise.
59912         * modules/vasprintf-posix-tests (Files): Likewise.
59913         * modules/vasprintf-tests (Files): Likewise.
59914         * modules/vdprintf-posix-tests (Files): Likewise.
59915         * modules/vfprintf-posix-tests (Files): Likewise.
59916         * modules/vprintf-posix-tests (Files): Likewise.
59917         * modules/vsnprintf-posix-tests (Files): Likewise.
59918         * modules/vsnprintf-tests (Files): Likewise.
59919         * modules/vsprintf-posix-tests (Files): Likewise.
59920         * modules/wcrtomb-tests (Files): Likewise.
59921         * modules/wcsnrtombs-tests (Files): Likewise.
59922         * modules/wcsrtombs-tests (Files): Likewise.
59923         * modules/wctype-tests (Files): Likewise.
59924         * modules/wcwidth-tests (Files): Likewise.
59925         * modules/xmemdup0-tests (Files): Likewise.
59926         * modules/xprintf-posix-tests (Files): Likewise.
59927         * modules/xvasprintf-tests (Files): Likewise.
59929 2009-12-24  Eric Blake  <ebb9@byu.net>
59931         test-nanosleep: fix typo
59932         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59933         patch.
59934         Reported by Bruno Haible.
59936 2009-12-24  Bruno Haible  <bruno@clisp.org>
59938         Reduce namespace pollution on glibc systems.
59939         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59940         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59941         systems.
59942         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59943         <getopt.h> on glibc systems.
59944         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59945         systems.
59946         * lib/fcntl.c: Include <unistd.h> here instead.
59948 2009-12-24  Bruno Haible  <bruno@clisp.org>
59950         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59952 2009-12-24  Eric Blake  <ebb9@byu.net>
59954         tests: add signature checks
59955         * tests/signature.h (SIGNATURE_CHECK): New file.
59956         * modules/atexit-tests (Files): Use it.
59957         * modules/btowc-tests (Files): Likewise.
59958         * modules/canonicalize-lgpl-tests (Files): Likewise.
59959         * modules/ceilf-tests (Files): Likewise.
59960         * modules/ceill-tests (Files): Likewise.
59961         * modules/chown-tests (Files): Likewise.
59962         * modules/dprintf-posix-tests (Files): Likewise.
59963         * modules/dup2-tests (Files): Likewise.
59964         * modules/dup3-tests (Files): Likewise.
59965         * modules/duplocale-tests (Files): Likewise.
59966         * modules/fchdir-tests (Files): Likewise.
59967         * modules/fcntl-tests (Files): Likewise.
59968         * modules/fdopendir-tests (Files): Likewise.
59969         * modules/fflush-tests (Files): Likewise.
59970         * modules/flock-tests (Files): Likewise.
59971         * modules/floorf-tests (Files): Likewise.
59972         * modules/floorl-tests (Files): Likewise.
59973         * modules/fnmatch-tests (Files): Likewise.
59974         * modules/fopen-tests (Files): Likewise.
59975         * modules/fprintf-posix-tests (Files): Likewise.
59976         * modules/freopen-tests (Files): Likewise.
59977         * modules/frexp-nolibm-tests (Files): Likewise.
59978         * modules/frexp-tests (Files): Likewise.
59979         * modules/frexpl-nolibm-tests (Files): Likewise.
59980         * modules/frexpl-tests (Files): Likewise.
59981         * modules/fseek-tests (Files): Likewise.
59982         * modules/fseeko-tests (Files): Likewise.
59983         * modules/fsync-tests (Files): Likewise.
59984         * modules/ftell-tests (Files): Likewise.
59985         * modules/ftello-tests (Files): Likewise.
59986         * modules/futimens-tests (Files): Likewise.
59987         * modules/getaddrinfo-tests (Files): Likewise.
59988         * modules/getcwd-tests (Files): Likewise.
59989         * modules/getdelim-tests (Files): Likewise.
59990         * modules/getdtablesize-tests (Files): Likewise.
59991         * modules/getgroups-tests (Files): Likewise.
59992         * modules/gethostname-tests (Files): Likewise.
59993         * modules/getline-tests (Files): Likewise.
59994         * modules/getopt-posix-tests (Files): Likewise.
59995         * modules/gettimeofday-tests (Files): Likewise.
59996         * modules/glob-tests (Files): Likewise.
59997         * modules/iconv-tests (Files): Likewise.
59998         * modules/inet_ntop-tests (Files): Likewise.
59999         * modules/inet_pton-tests (Files): Likewise.
60000         * modules/isblank-tests (Files): Likewise.
60001         * modules/lchown-tests (Files): Likewise.
60002         * modules/ldexpl-tests (Files): Likewise.
60003         * modules/link-tests (Files): Likewise.
60004         * modules/linkat-tests (Files): Likewise.
60005         * modules/lseek-tests (Files): Likewise.
60006         * modules/lstat-tests (Files): Likewise.
60007         * modules/mbrtowc-tests (Files): Likewise.
60008         * modules/mbsinit-tests (Files): Likewise.
60009         * modules/mbsnrtowcs-tests (Files): Likewise.
60010         * modules/mbsrtowcs-tests (Files): Likewise.
60011         * modules/memchr-tests (Files): Likewise.
60012         * modules/memcmp-tests (Files): Likewise.
60013         * modules/memmem-tests (Files): Likewise.
60014         * modules/memrchr-tests (Files): Likewise.
60015         * modules/mkdir-tests (Files): Likewise.
60016         * modules/mkfifo-tests (Files): Likewise.
60017         * modules/mkfifoat-tests (Files): Likewise.
60018         * modules/mknod-tests (Files): Likewise.
60019         * modules/nanosleep-tests (Files): Likewise.
60020         * modules/nl_langinfo-tests (Files): Likewise.
60021         * modules/obstack-printf-tests (Files): Likewise.
60022         * modules/open-tests (Files): Likewise.
60023         * modules/openat-tests (Files): Likewise.
60024         * modules/perror-tests (Files): Likewise.
60025         * modules/pipe2-tests (Files): Likewise.
60026         * modules/poll-tests (Files): Likewise.
60027         * modules/popen-tests (Files): Likewise.
60028         * modules/posix_spawn-tests (Files): Likewise.
60029         * modules/posix_spawnp-tests (Files): Likewise.
60030         * modules/pread-tests (Files): Likewise.
60031         * modules/printf-posix-tests (Files): Likewise.
60032         * modules/pty-tests (Files): Likewise.
60033         * modules/random_r-tests (Files): Likewise.
60034         * modules/rawmemchr-tests (Files): Likewise.
60035         * modules/readlink-tests (Files): Likewise.
60036         * modules/remove-tests (Files): Likewise.
60037         * modules/rename-tests (Files): Likewise.
60038         * modules/renameat-tests (Files): Likewise.
60039         * modules/rmdir-tests (Files): Likewise.
60040         * modules/round-tests (Files): Likewise.
60041         * modules/roundf-tests (Files): Likewise.
60042         * modules/roundl-tests (Files): Likewise.
60043         * modules/select-tests (Files): Likewise.
60044         * modules/setenv-tests (Files): Likewise.
60045         * modules/sigaction-tests (Files): Likewise.
60046         * modules/sleep-tests (Files): Likewise.
60047         * modules/snprintf-posix-tests (Files): Likewise.
60048         * modules/snprintf-tests (Files): Likewise.
60049         * modules/sprintf-posix-tests (Files): Likewise.
60050         * modules/stat-tests (Files): Likewise.
60051         * modules/strcasestr-tests (Files): Likewise.
60052         * modules/strchrnul-tests (Files): Likewise.
60053         * modules/strerror-tests (Files): Likewise.
60054         * modules/strsignal-tests (Files): Likewise.
60055         * modules/strstr-tests (Files): Likewise.
60056         * modules/strtod-tests (Files): Likewise.
60057         * modules/strverscmp-tests (Files): Likewise.
60058         * modules/symlink-tests (Files): Likewise.
60059         * modules/symlinkat-tests (Files): Likewise.
60060         * modules/times-tests (Files): Likewise.
60061         * modules/trunc-tests (Files): Likewise.
60062         * modules/truncf-tests (Files): Likewise.
60063         * modules/truncl-tests (Files): Likewise.
60064         * modules/tsearch-tests (Files): Likewise.
60065         * modules/uname-tests (Files): Likewise.
60066         * modules/unlink-tests (Files): Likewise.
60067         * modules/unsetenv-tests (Files): Likewise.
60068         * modules/usleep-tests (Files): Likewise.
60069         * modules/utimensat-tests (Files): Likewise.
60070         * modules/vasprintf-tests (Files): Likewise.
60071         * modules/vdprintf-posix-tests (Files): Likewise.
60072         * modules/vfprintf-posix-tests (Files): Likewise.
60073         * modules/vprintf-posix-tests (Files): Likewise.
60074         * modules/vsnprintf-posix-tests (Files): Likewise.
60075         * modules/vsnprintf-tests (Files): Likewise.
60076         * modules/vsprintf-posix-tests (Files): Likewise.
60077         * modules/wcrtomb-tests (Files): Likewise.
60078         * modules/wcsnrtombs-tests (Files): Likewise.
60079         * modules/wcsrtombs-tests (Files): Likewise.
60080         * modules/wcwidth-tests (Files): Likewise.
60081         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
60082         * tests/test-isinf.c (isinf): Likewise.
60083         * tests/test-isnan.c (isnan): Likewise.
60084         * tests/test-signbit.c (signbit): Likewise.
60085         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
60086         declaration, either as macro or with correct signature.
60087         (select): Ensure function under test is declared with correct
60088         signature in correct header.
60089         * tests/test-atexit.c (atexit): Likewise.
60090         * tests/test-btowc.c (btowc): Likewise.
60091         * tests/test-canonicalize-lgpl.c (realpath)
60092         (canonicalize_file_name): Likewise.
60093         * tests/test-ceilf1.c (ceilf): Likewise.
60094         * tests/test-ceill.c (ceill): Likewise.
60095         * tests/test-chown.c (chown): Likewise.
60096         * tests/test-dprintf-posix.c (dprintf): Likewise.
60097         * tests/test-dup2.c (dup2): Likewise.
60098         * tests/test-dup3.c (dup3): Likewise.
60099         * tests/test-duplocale.c (duplocale): Likewise.
60100         * tests/test-fchdir.c (fchdir): Likewise.
60101         * tests/test-fchownat.c (fchownat): Likewise.
60102         * tests/test-fcntl.c (fcntl): Likewise.
60103         * tests/test-fdopendir.c (fdopendir): Likewise.
60104         * tests/test-fflush.c (fflush): Likewise.
60105         * tests/test-flock.c (flock): Likewise.
60106         * tests/test-floorf1.c (floorf): Likewise.
60107         * tests/test-floorl.c (floorl): Likewise.
60108         * tests/test-fnmatch.c (fnmatch): Likewise.
60109         * tests/test-fopen.c (fopen): Likewise.
60110         * tests/test-fprintf-posix.c (fprintf): Likewise.
60111         * tests/test-freopen.c (freopen): Likewise.
60112         * tests/test-frexp.c (frexp): Likewise.
60113         * tests/test-frexpl.c (frexpl): Likewise.
60114         * tests/test-fseek.c (fseek): Likewise.
60115         * tests/test-fseeko.c (fseeko): Likewise.
60116         * tests/test-fstatat.c (fstatat): Likewise.
60117         * tests/test-fsync.c (fsync): Likewise.
60118         * tests/test-ftell.c (ftell): Likewise.
60119         * tests/test-ftello.c (ftello): Likewise.
60120         * tests/test-futimens.c (futimens): Likewise.
60121         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
60122         (gai_strerror): Likewise.
60123         * tests/test-getcwd.c (getcwd): Likewise.
60124         * tests/test-getdelim.c (getdelim): Likewise.
60125         * tests/test-getdtablesize.c (getdtablesize): Likewise.
60126         * tests/test-getgroups.c (getgroups): Likewise.
60127         * tests/test-gethostname.c (gethostname): Likewise.
60128         * tests/test-getline.c (getline): Likewise.
60129         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
60130         Likewise.
60131         * tests/test-gettimeofday.c (gettimeofday): Likewise.
60132         * tests/test-glob.c (glob, globfree): Likewise.
60133         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
60134         * tests/test-inet_ntop.c (inet_ntop): Likewise.
60135         * tests/test-inet_pton.c (inet_pton): Likewise.
60136         * tests/test-isblank.c (isblank): Likewise.
60137         * tests/test-lchown.c (lchown): Likewise.
60138         * tests/test-ldexpl.c (ldexpl): Likewise.
60139         * tests/test-link.c (link): Likewise.
60140         * tests/test-linkat.c (linkat): Likewise.
60141         * tests/test-lseek.c (lseek): Likewise.
60142         * tests/test-lstat.c (lstat): Likewise.
60143         * tests/test-mbrtowc.c (mbrtowc): Likewise.
60144         * tests/test-mbsinit.c (mbsinit): Likewise.
60145         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
60146         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
60147         * tests/test-memchr.c (memchr): Likewise.
60148         * tests/test-memcmp.c (memcmp): Likewise.
60149         * tests/test-memmem.c (memmem): Likewise.
60150         * tests/test-memrchr.c (memrchr): Likewise.
60151         * tests/test-mkdir.c (mkdir): Likewise.
60152         * tests/test-mkdirat.c (mkdirat): Likewise.
60153         * tests/test-mkfifo.c (mkfifo): Likewise.
60154         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
60155         * tests/test-mknod.c (mknod): Likewise.
60156         * tests/test-nanosleep.c (nanosleep): Likewise.
60157         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
60158         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
60159         Likewise.
60160         * tests/test-open.c (open): Likewise.
60161         * tests/test-openat.c (openat): Likewise.
60162         * tests/test-perror.c (perror): Likewise.
60163         * tests/test-pipe2.c (pipe2): Likewise.
60164         * tests/test-poll.c (poll): Likewise.
60165         * tests/test-popen.c (popen, pclose): Likewise.
60166         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
60167         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
60168         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
60169         (posix_spawn_file_actions_destroy)
60170         (posix_spawn_file_actions_addclose)
60171         (posix_spawn_file_actions_addopen)
60172         (posix_spawn_file_actions_adddup2): Likewise.
60173         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
60174         * tests/test-pread.c (pread): Likewise.
60175         * tests/test-printf-posix.c (printf): Likewise.
60176         * tests/test-pty.c (openpty, forkpty): Likewise.
60177         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
60178         (random_r): Likewise.
60179         * tests/test-rawmemchr.c (rawmemchr): Likewise.
60180         * tests/test-readlink.c (readlink): Likewise.
60181         * tests/test-remove.c (remove): Likewise.
60182         * tests/test-rename.c (rename): Likewise.
60183         * tests/test-renameat.c (renameat): Likewise.
60184         * tests/test-rmdir.c (rmdir): Likewise.
60185         * tests/test-round1.c (round): Likewise.
60186         * tests/test-roundf1.c (roundf): Likewise.
60187         * tests/test-roundl.c (roundl): Likewise.
60188         * tests/test-setenv.c (setenv): Likewise.
60189         * tests/test-sigaction.c (sigaction): Likewise.
60190         * tests/test-sleep.c (sleep): Likewise.
60191         * tests/test-snprintf.c (snprintf): Likewise.
60192         * tests/test-sprintf-posix.c (sprintf): Likewise.
60193         * tests/test-stat.c (stat): Likewise.
60194         * tests/test-stpncpy.c (stpncpy): Likewise.
60195         * tests/test-strcasestr.c (strcasestr): Likewise.
60196         * tests/test-strchrnul.c (strchrnul): Likewise.
60197         * tests/test-strerror.c (strerror): Likewise.
60198         * tests/test-strsignal.c (strsignal): Likewise.
60199         * tests/test-strstr.c (strstr): Likewise.
60200         * tests/test-strtod.c (strtod): Likewise.
60201         * tests/test-strverscmp.c (strverscmp): Likewise.
60202         * tests/test-symlink.c (symlink): Likewise.
60203         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
60204         * tests/test-times.c (times): Likewise.
60205         * tests/test-trunc1.c (trunc): Likewise.
60206         * tests/test-truncf1.c (truncf): Likewise.
60207         * tests/test-truncl.c (truncl): Likewise.
60208         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
60209         Likewise.
60210         * tests/test-uname.c (uname): Likewise.
60211         * tests/test-unlink.c (unlink): Likewise.
60212         * tests/test-unlinkat.c (unlinkat): Likewise.
60213         * tests/test-unsetenv.c (unsetenv): Likewise.
60214         * tests/test-usleep.c (usleep): Likewise.
60215         * tests/test-utimensat.c (utimensat): Likewise.
60216         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
60217         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
60218         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
60219         * tests/test-vprintf-posix.c (vprintf): Likewise.
60220         * tests/test-vsnprintf.c (vsnprintf): Likewise.
60221         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
60222         * tests/test-wcrtomb.c (wcrtomb): Likewise.
60223         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
60224         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
60225         * tests/test-wcwidth.c (wcwidth): Likewise.
60227         build: pull in conditional headers during GNULIB_POSIXCHECK
60228         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
60229         definitions from any conditionally-included headers.
60230         * lib/stdlib.in.h (includes): Likewise.
60231         * lib/unistd.in.h (includes): Likewise.
60233 2009-12-24  Bruno Haible  <bruno@clisp.org>
60235         * tests/test-argv-iter.c: Include header file being tested immediately
60236         after config.h.
60237         * tests/test-base64.c: Likewise.
60238         * tests/test-flock.c: Likewise.
60239         * tests/test-fsync.c: Likewise.
60240         * tests/test-getdate.c: Likewise.
60241         * tests/test-getndelim2.c: Likewise.
60242         * tests/test-isfinite.c: Likewise.
60243         * tests/test-isinf.c: Likewise.
60244         * tests/test-strerror.c: Likewise.
60245         * tests/test-strsignal.c: Likewise.
60247 2009-12-23  Eric Blake  <ebb9@byu.net>
60249         unistd: work around cygwin bug
60250         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
60251         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
60252         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60254 2009-12-23  Bruno Haible  <bruno@clisp.org>
60256         localename: More tests.
60257         * tests/test-localename.c (SIZEOF): New macro.
60258         (categories): New variable.
60259         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
60260         test_locale_name_default): Add test w.r.t. thread locale.
60261         (test_locale_name_thread): New function.
60262         (main): Invoke it.
60264         localename: Make aware of thread locale.
60265         * lib/localename.h (gl_locale_name_thread): New declaration.
60266         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
60267         behaviour with respect to thread locale.
60268         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
60269         <langinfo.h>, glthread/lock.h.
60270         (SIZE_BITS): New macro.
60271         (string_hash): New function.
60272         (struct hash_node): New type.
60273         (HASH_TABLE_SIZE): New macro.
60274         (struniq_hash_table, struniq_lock): New variables.
60275         (struniq): New function.
60276         (gl_locale_name_thread): New function.
60277         (gl_locale_name): Invoke it.
60278         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
60279         * modules/localename (Depends-on): Add lock.
60280         Reported by Mike Gran <spk121@yahoo.com>.
60282 2009-12-23  Eric Blake  <ebb9@byu.net>
60284         va-args: new module
60285         * modules/va-args: New file.
60286         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
60287         * MODULES.html.sh (Core language properties): Mention it.
60289         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
60290         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
60291         named alias for __attribute__((__unused__)).
60292         * lib/chown.c: Update client.
60293         * lib/fchmodat.c: Likewise.
60294         * lib/fts.c: Likewise.
60295         * lib/getdate.y: Likewise.
60296         * lib/getgroups.c: Likewise.
60297         * lib/getopt.c: Likewise.
60298         * lib/getugroups.c: Likewise.
60299         * lib/mkdir.c: Likewise.
60300         * lib/mkfifo.c: Likewise.
60301         * lib/mkfifoat.c: Likewise.
60302         * lib/mknod.c: Likewise.
60303         * lib/mknodat.c: Likewise.
60304         * lib/readlink.c: Likewise.
60305         * lib/se-context.in.h: Likewise.
60306         * lib/se-selinux.in.h: Likewise.
60307         * lib/sockets.c: Likewise.
60308         * lib/symlink.c: Likewise.
60309         * lib/symlinkat.c: Likewise.
60310         * lib/unicodeio.c: Likewise.
60311         * lib/unistr.h: Likewise.
60312         * tests/test-areadlink.c: Likewise.
60313         * tests/test-areadlinkat.c: Likewise.
60314         * tests/test-filenamecat.c: Likewise.
60315         * tests/test-fseeko.c: Likewise.
60316         * tests/test-ftello.c: Likewise.
60317         * tests/test-getdate.c: Likewise.
60318         * tests/test-getgroups.c: Likewise.
60319         * tests/test-gethostname.c: Likewise.
60320         * tests/test-quotearg.c: Likewise.
60321         * tests/test-version-etc.c: Likewise.
60322         * tests/test-xalloc-die.c: Likewise.
60323         * tests/test-xfprintf-posix.c: Likewise.
60324         * tests/test-xprintf-posix.c: Likewise.
60325         * tests/test-xvasprintf.c: Likewise.
60327         tests: avoid compiler warnings
60328         * tests/test-fcntl.c (main): Delete unused parameters.
60329         * tests/test-freopen-safer.c (main): Likewise.
60330         * tests/test-xalloc-die.c (main): Mark unused parameters.
60331         * tests/test-fseeko.c (main): Likewise.
60332         * tests/test-ftello.c (main): Likewise.
60333         * tests/test-nanosleep.c (main): Avoid declaration warning.
60334         * tests/test-sleep.c (main): Likewise.
60335         * tests/test-unsetenv.c (main): Silence warning about string
60336         literal.
60337         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60339 2009-12-23  Bruno Haible  <bruno@clisp.org>
60341         * tests/test-localename.c (test_locale_name): New function, extracted
60342         from main. Also test mixed situations.
60343         (test_locale_name_posix, test_locale_name_environ,
60344         test_locale_name_default): New functions.
60345         (main): Invoke them all.
60346         * modules/localename-tests (configure.ac): Test for newlocale.
60348 2009-12-23  Bruno Haible  <bruno@clisp.org>
60350         unistd: Ensure getcwd gets declared before being overridden.
60351         * lib/unistd.in.h: Conditionally include <io.h>.
60353 2009-12-22  Bruno Haible  <bruno@clisp.org>
60355         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60356         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60357         (gl_WCHAR_H): Invoke it.
60358         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60359         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60360         Reported by Karl Berry <karl@freefriends.org>.
60362 2009-12-22  Eric Blake  <ebb9@byu.net>
60364         math, unistd: avoid redundant includes
60365         * lib/math.in.h (isnan): No need to re-include <math.h>.
60366         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60368         getsubopt: work around cygwin bug
60369         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60370         avoid conflicting with system getsubopt.
60371         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60372         bug.
60374         getopt: synchronize from glibc
60375         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60376         parameter order.  Adjust all callers.
60377         (_getopt_internal_r, main): Adjust quoting in error messages.
60378         Drop considerations for outdated POSIX 1003.2 error message.
60379         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60380         callers.
60381         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60383         test-getopt: test stderr behavior
60384         * modules/getopt-posix-tests (Depends-on): Add dup2.
60385         * tests/test-getopt.c (ASSERT): Avoid stderr.
60386         (main): Move stderr to a temporary file.
60387         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60388         Instead, add parameter to inform caller if output occurred.
60389         (test_getopt): Adjust all existing tests to expect silence, and
60390         add new tests of leading ":".
60391         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60392         glibc shortcomings with leading "-:" or "+:" in optstring.
60393         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60394         Likewise.
60395         * doc/posix-functions/getopt.texi (getopt): Likewise.
60397         test-getopt: enhance test
60398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60399         supports optind=0.
60400         * tests/test-getopt.c (OPTIND_MIN): Move...
60401         * tests/test-getopt.h (OPTIND_MIN): ...here.
60402         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60403         Require that optind=0 works, since modern BSD supports it in
60404         addition to optreset, and since coreutils expects it.
60405         (test_getopt_long_only): New test.
60406         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60407         glibc shortcomings with 'W;', and enforcement of optind=0.
60408         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60409         Likewise.
60411 2009-12-21  Bruno Haible  <bruno@clisp.org>
60413         localename: Improvements for MacOS X and Cygwin.
60414         * lib/localename.h (gl_locale_name_environ): New declaration.
60415         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60416         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60417         (gl_locale_name_posix): Invoke it.
60418         (gl_locale_name_default): Add comments. Use Windows native API also on
60419         Cygwin.
60421 2009-12-21  Bruno Haible  <bruno@clisp.org>
60423         Update list of Win32 locale ids.
60424         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60425         (LANG_SAMI): Renamed from LANG_SAAMI.
60426         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60427         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60428         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60429         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60430         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60431         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60432         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60433         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60434         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60435         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60436         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60437         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60438         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60439         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60440         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60441         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60442         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60443         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60444         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60445         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60446         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60447         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60448         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60449         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60450         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60451         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60452         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60453         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60454         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60455         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60456         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60457         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60458         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60459         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60460         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60461         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60462         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60463         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60464         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60465         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60466         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60467         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60468         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60469         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60470         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60471         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60472         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60473         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60474         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60475         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60476         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60477         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60478         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60479         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60480         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60481         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60482         Add more languages and countries for Sami, Sorbian. Add more countries
60483         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60484         for Pashto. Change country for Syriac, Tswana.
60486 2009-12-21  Eric Blake  <ebb9@byu.net>
60488         test-utimens: avoid spurious failure
60489         * tests/test-chown.h (nap): Factor...
60490         * tests/nap.h: ...into new file.
60491         * tests/test-lchown.h (nap): Avoid duplication.
60492         * tests/test-utimens-common.h (nap): Use shared implementation,
60493         necessary on file systems with 1-second resolution.
60494         * modules/chown-tests (Files): Include new file.
60495         * modules/fdutimensat-tests (Files): Likewise.
60496         * modules/futimens-tests (Files): Likewise.
60497         * modules/lchown-tests (Files): Likewise.
60498         * modules/openat-tests (Files): Likewise.
60499         * modules/utimens-tests (Files): Likewise.
60500         * modules/utimensat-tests (Files): Likewise.
60502 2009-12-19  Eric Blake  <ebb9@byu.net>
60504         futimens, utimensat: work around Linux bug
60505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60506         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60507         * lib/utimensat.c (rpl_utimensat): Work around it.
60508         * lib/futimens.c (rpl_futimens): Adjust comment.
60510         utimens: work around Linux ctime bug
60511         * lib/utimens.c (detect_ctime_bug): New helper function.
60512         (update_timespec): Differentiate between workaround needed for
60513         this bug vs. what is needed for systems that lack utimensat.
60514         (fdutimens, lutimens): Work around bug.
60516         utimens: check for ctime update
60517         * tests/test-utimens-common.h (check_ctime): Define.
60518         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60519         * tests/test-futimens.h (test_futimens): Likewise.
60520         * tests/test-lutimens.h (test_lutimens): Likewise.
60521         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60522         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60524 2009-12-19  Bruno Haible  <bruno@clisp.org>
60526         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60527         * tests/test-dprintf-posix2.sh: New file.
60528         * tests/test-dprintf-posix2.c: New file.
60529         * modules/dprintf-posix-tests (Files): Add them.
60530         (configure.ac): Check for getrlimit and setrlimit.
60531         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60533 2009-12-19  Bruno Haible  <bruno@clisp.org>
60535         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60536         * tests/test-fprintf-posix3.sh: New file.
60537         * tests/test-fprintf-posix3.c: New file.
60538         * modules/fprintf-posix-tests (Files): Add them.
60539         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60541 2009-12-19  Eric Blake  <ebb9@byu.net>
60543         dirfd: fix prototype
60544         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60545         * lib/dirfd.c (dirfd): Likewise.
60547         canonicalize: reduce memory usage
60548         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60549         allocation to size.
60550         Reported by Solar Designer <solar@openwall.com>.
60552 2009-12-19  Bruno Haible  <bruno@clisp.org>
60554         New module attribute 'Applicability'.
60555         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60556         * gnulib-tool: New option --extract-applicability.
60557         (func_usage): Document it.
60558         (sed_extract_prog): Recognize it.
60559         (func_get_applicability): New function.
60560         (func_import): Generalize handling of 'link-warning' module.
60561         * modules/link-warning (Applicability): New section.
60562         * modules/arg-nonnull (Applicability): New section.
60563         Repoted by Simon Josefsson <simon@josefsson.org>.
60565 2009-12-19  Bruno Haible  <bruno@clisp.org>
60567         fflush: tweak
60568         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60569         * lib/fseeko.c (rpl_fseeko): Likewise.
60571 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60573         * lib/gl_list.h: Fix typo in comment.
60575 2009-12-16  Eric Blake  <ebb9@byu.net>
60577         fcntl: use to simplify other modules
60578         * modules/cloexec (Depends-on): Add fcntl.
60579         * modules/fchdir (Depends-on): Likewise.
60580         * modules/fd-safer-flag (Depends-on): Likewise.
60581         * modules/unistd-safer (Depends-on): Likewise.
60582         * modules/dup3 (configure.ac): Set module indicator.
60583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60584         missing.
60585         * lib/fchdir.c (_gl_register_dup): Fix comment.
60586         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60587         * lib/dup-safer.c (dup_safer): Likewise.
60588         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60589         * lib/dup3.c (dup3): Likewise.
60590         * tests/test-fchdir.c (main): Enhance test.
60591         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60593         fcntl: port portions of fcntl to mingw
60594         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60595         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60596         replacement for mingw.
60597         * modules/fcntl (Description): Update.
60598         (Depends-on): Add dup2.
60599         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60600         * modules/fcntl-h (Makefile.am): Substitute it.
60601         * lib/fcntl.in.h (fcntl): Update declaration.
60602         (F_DUPFD, F_GETFD): New macros, when needed.
60603         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60604         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60605         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60606         we now guarantee.
60608         fcntl: work around cygwin bug in F_DUPFD
60609         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60610         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60611         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60612         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60613         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60615         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60616         * modules/fcntl (Files): List new files.
60617         (configure.ac): Run a test.
60618         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60619         * lib/fcntl.c (rpl_fcntl): Likewise.
60620         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60621         (gl_FCNTL_H): Always replace fcntl.h.
60622         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60623         * lib/fcntl.in.h (fcntl): Declare replacement.
60624         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60625         needed, plus a witness.
60626         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60627         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60628         * tests/test-fcntl.c: New file.
60629         * modules/fcntl-tests: Likewise.
60631         binary-io: avoid potential compilation warning
60632         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60633         directives.
60635         fflush: avoid compilation error on NetBSD
60636         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60637         between off_t and fpos_t, since the latter is sometimes a struct.
60638         * lib/fseeko.c (rpl_fseeko): Likewise.
60639         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60641 2009-12-15  Eric Blake  <ebb9@byu.net>
60643         fcntl-h, stdio, sys_ioctl: fix declarations
60644         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60645         function must not take arguments.
60646         * lib/sys_ioctl.in.h (ioctl): Likewise.
60647         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60648         (open): Add a link warning.
60650 2009-12-15  Jim Meyering  <meyering@redhat.com>
60652         areadlink, areadlink-with-size: relax license to LGPLv2+
60653         * modules/areadlink (License): Relax to LGPLv2+.
60654         * modules/areadlink-with-size (License): Likewise.
60656 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60657             Bruno Haible  <bruno@clisp.org>
60659         *printf: Fix memory leak.
60660         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60661         * lib/vfprintf.c (vfprintf): Likewise.
60662         * lib/dprintf.c (dprintf): Likewise.
60663         * lib/vdprintf.c (vdprintf): Likewise.
60665 2009-12-14  Eric Blake  <ebb9@byu.net>
60667         accept4: adjust module dependencies
60668         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60670         utimens: one more try at avoiding compiler warning
60671         * lib/utimens.c (lutimens): Lower scope of result.
60673 2009-12-13  Bruno Haible  <bruno@clisp.org>
60675         Move the malloc checking from module 'list' to new module 'xlist'.
60676         * modules/xlist: New file.
60677         * lib/gl_xlist.h: New file.
60678         * lib/gl_xlist.c: New file.
60679         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60680         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60681         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60682         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60683         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60684         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60685         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60686         gl_sortedlist_nx_add): New declarations.
60687         (struct gl_list_implementation): Rename and change methods accordingly.
60688         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60689         (gl_list_nx_create): Renamed from gl_list_create.
60690         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60691         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60692         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60693         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60694         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60695         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60696         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60697         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60698         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60699         gl_list_create_empty.
60700         (gl_list_nx_create): Renamed from gl_list_create.
60701         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60702         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60703         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60704         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60705         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60706         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60707         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60708         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60709         * lib/gl_array_list.c: Don't include xalloc.h.
60710         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60711         NULL upon out-of-memory.
60712         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60713         out-of-memory.
60714         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60715         Change return type to 'int'.
60716         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60717         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60718         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60719         upon out-of-memory.
60720         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60721         upon out-of-memory.
60722         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60723         upon out-of-memory.
60724         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60725         upon out-of-memory.
60726         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60727         out-of-memory.
60728         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60729         Update.
60730         (gl_array_list_implementation): Update.
60731         * lib/gl_carray_list.c: Don't include xalloc.h.
60732         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60733         Return NULL upon out-of-memory.
60734         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60735         out-of-memory.
60736         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60737         Change return type to 'int'.
60738         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60739         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60740         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60741         upon out-of-memory.
60742         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60743         upon out-of-memory.
60744         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60745         out-of-memory.
60746         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60747         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60748         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60749         Update.
60750         (gl_carray_list_implementation): Update.
60751         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60752         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60753         gl_linked_create_empty. Return NULL upon out-of-memory.
60754         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60755         out-of-memory.
60756         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60757         Change return type to 'int'. Return -1 upon out-of-memory.
60758         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60759         out-of-memory.
60760         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60761         upon out-of-memory.
60762         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60763         upon out-of-memory.
60764         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60765         NULL upon out-of-memory.
60766         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60767         upon out-of-memory.
60768         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60769         out-of-memory.
60770         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60771         Update.
60772         * lib/gl_linked_list.c: Don't include xalloc.h.
60773         (gl_linked_list_implementation): Update.
60774         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60775         (add_to_bucket): Change return type to 'int'.
60776         (gl_linkedhash_list_implementation): Update.
60777         * lib/gl_anytree_list1.h (free_subtree): New function.
60778         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60779         gl_tree_create_empty. Return NULL upon out-of-memory.
60780         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60781         Change return type to 'int'. Return -1 upon out-of-memory.
60782         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60783         out-of-memory.
60784         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60785         (gl_tree_remove_node): New function, moved here from
60786         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60787         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60788         Update.
60789         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60790         malloc, not xmalloc. Return NULL upon out-of-memory.
60791         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60792         out-of-memory.
60793         (gl_tree_remove_node_from_tree): New function, extracted from
60794         gl_tree_remove_node.
60795         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60796         upon out-of-memory.
60797         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60798         out-of-memory.
60799         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60800         upon out-of-memory.
60801         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60802         upon out-of-memory.
60803         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60804         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60805         not xmalloc. Return NULL upon out-of-memory.
60806         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60807         out-of-memory.
60808         (gl_tree_remove_node_from_tree): New function, extracted from
60809         gl_tree_remove_node.
60810         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60811         upon out-of-memory.
60812         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60813         out-of-memory.
60814         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60815         upon out-of-memory.
60816         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60817         upon out-of-memory.
60818         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60819         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60820         gl_anytree_list1.h before gl_anyavltree_list2.h.
60821         (gl_avltree_list_implementation): Update.
60822         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60823         gl_anytree_list1.h before gl_anyavltree_list2.h.
60824         (gl_rbtree_list_implementation): Update.
60825         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60826         Change return type to 'int'. Return -1 upon out-of-memory. Use
60827         __builtin_expect.
60828         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60829         (gl_avltreehash_list_implementation): Update.
60830         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60831         (gl_rbtreehash_list_implementation): Update.
60832         * modules/array-list (Depends-on): Remove xalloc.
60833         * modules/carray-list (Depends-on): Likewise.
60834         * modules/linked-list (Depends-on): Likewise.
60835         * modules/linkedhash-list (Depends-on): Likewise.
60836         * modules/avltree-list (Depends-on): Likewise.
60837         * modules/rbtree-list (Depends-on): Likewise.
60838         * modules/avltreehash-list (Depends-on): Likewise.
60839         * modules/rbtreehash-list (Depends-on): Likewise.
60841         * modules/xsublist: New file.
60842         * lib/gl_xsublist.h: New file.
60843         * lib/gl_xsublist.c: New file.
60844         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60845         (gl_sublist_nx_create): New declaration.
60846         * lib/gl_sublist.c: Don't include xalloc.h.
60847         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60848         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60849         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60850         Change return type to 'int'. Return -1 upon out-of-memory.
60851         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60852         upon out-of-memory.
60853         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60854         NULL upon out-of-memory.
60855         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60856         upon out-of-memory.
60857         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60858         NULL upon out-of-memory.
60859         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60860         NULL upon out-of-memory.
60861         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60862         upon out-of-memory.
60863         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60864         (gl_sublist_list_implementation): Update.
60865         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60866         upon out-of-memory.
60867         * modules/sublist (Depends-on): Remove xalloc.
60869         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60870         * tests/test-carray_list.c: Likewise.
60871         * tests/test-linked_list.c: Likewise.
60872         * tests/test-linkedhash_list.c: Likewise.
60873         * tests/test-avltree_list.c: Likewise.
60874         * tests/test-rbtree_list.c: Likewise.
60875         * tests/test-avltreehash_list.c: Likewise.
60876         * tests/test-rbtreehash_list.c: Likewise.
60877         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60878         * modules/carray-list-tests (Makefile.am): Likewise.
60879         * modules/linked-list-tests (Makefile.am): Likewise.
60880         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60881         * modules/avltree-list-tests (Makefile.am): Likewise.
60882         * modules/rbtree-list-tests (Makefile.am): Likewise.
60883         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60884         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60886         * NEWS: Mention the changes.
60888         * lib/clean-temp.c: Include gl_xlist.h.
60889         * modules/clean-temp (Depends-on): Add xlist.
60891         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60892         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60894         * tests/test-array_oset.c: Include gl_xlist.h.
60895         * modules/array-oset-tests (Depends-on): Add xlist.
60897         Reported by José E. Marchesi <jemarch@gnu.org>.
60899 2009-12-13  Bruno Haible  <bruno@clisp.org>
60901         Move the malloc checking from module 'oset' to new module 'xoset'.
60902         * modules/xoset: New file.
60903         * lib/gl_xoset.h: New file.
60904         * lib/gl_xoset.c: New file.
60905         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60906         declarations.
60907         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60908         (struct gl_oset_implementation): Rename and change methods accordingly.
60909         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60910         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60911         'int'. Mark as __warn_unused_result__.
60912         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60913         gl_oset_create_empty.
60914         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60915         'int'.
60916         * lib/gl_array_oset.c: Don't include xalloc.h.
60917         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60918         malloc, not xmalloc.
60919         (grow): Change return type to 'int'. Don't call xalloc_die.
60920         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60921         to 'int'.
60922         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60923         'int'.
60924         (gl_array_oset_implementation): Update.
60925         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60926         gl_tree_create_empty.
60927         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60928         'int'.
60929         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60930         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60931         xmalloc.
60932         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60933         not xmalloc.
60934         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60935         xmalloc.
60936         (gl_avltree_oset_implementation): Update.
60937         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60938         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60939         xmalloc.
60940         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60941         not xmalloc.
60942         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60943         xmalloc.
60944         (gl_rbtree_oset_implementation): Update.
60945         * modules/array-oset (Depends-on): Remove xalloc.
60946         * modules/avltree-oset (Depends-on): Likewise.
60947         * modules/rbtree-oset (Depends-on): Likewise.
60948         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60949         * tests/test-avltree_oset.c: Likewise.
60950         * tests/test-rbtree_oset.c: Likewise.
60951         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60952         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60953         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60954         * NEWS: Mention the change.
60956 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60958         maint.mk: allow a project to override release-prep commands
60959         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60960         commands into a new rule.
60961         (release-prep): New rule.
60962         (release-prep-hook): New overridable variable.
60964 2009-12-13  Bruno Haible  <bruno@clisp.org>
60966         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60968 2009-12-13  Jim Meyering  <meyering@redhat.com>
60970         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60971         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60973 2009-12-12  Bruno Haible  <bruno@clisp.org>
60975         duplocale: Tweak.
60976         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60978 2009-12-12  Karl Berry  <karl@gnu.org>
60980         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60982 2009-12-12  Bruno Haible  <bruno@clisp.org>
60984         * m4/po.m4: Undo incorrect untabification.
60986 2009-12-12  Bruno Haible  <bruno@clisp.org>
60988         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60989         * modules/c-strtod (Depends-on): Add locale.
60990         * modules/c-strtold (Depends-on): Likewise.
60992 2009-12-12  Bruno Haible  <bruno@clisp.org>
60994         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60996 2009-12-11  Eric Blake  <ebb9@byu.net>
60998         setenv: relax requirement in light of POSIX ruling
60999         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
61000         not NULL.
61001         * tests/test-setenv.c (main): Relax test.
61002         * tests/test-unsetenv.c (main): Likewise.
61003         * doc/posix-functions/setenv.texi (setenv): Document this.
61004         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61006 2009-12-11  Bruno Haible  <bruno@clisp.org>
61008         New module 'fd-safer-flag'.
61009         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
61010         * lib/dup-safer.c (dup_safer_flag): Remove function.
61011         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
61012         * lib/fd-safer.c (fd_safer_flag): Remove function.
61013         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
61014         * modules/cloexec (configure.ac): Drop indicator macro.
61015         * modules/fd-safer-flag: New file.
61016         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
61017         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
61018         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
61020 2009-12-11  Bruno Haible  <bruno@clisp.org>
61022         Tests for module 'nl_langinfo'.
61023         * modules/nl_langinfo-tests: New file.
61024         * tests/test-nl_langinfo.sh: New file.
61025         * tests/test-nl_langinfo.c: New file.
61027         New module 'nl_langinfo'.
61028         * lib/nl_langinfo.c: New file.
61029         * m4/nl_langinfo.m4: New file.
61030         * modules/nl_langinfo: New file.
61031         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
61033 2009-12-11  Bruno Haible  <bruno@clisp.org>
61035         Tests for module 'langinfo'.
61036         * modules/langinfo-tests: New file.
61037         * tests/test-langinfo.c: New file.
61039         New module 'langinfo'.
61040         * lib/langinfo.in.h: New file.
61041         * m4/langinfo_h.m4: New file.
61042         * modules/langinfo: New file.
61043         * doc/posix-headers/langinfo.texi: Mention the new module.
61045 2009-12-11  Bruno Haible  <bruno@clisp.org>
61047         * lib/config.charset: Untabify.
61049 2009-12-11  Bruno Haible  <bruno@clisp.org>
61051         * modules/unistd-safer (configure.ac): Drop indicator macro.
61053 2009-12-11  Bruno Haible  <bruno@clisp.org>
61055         Move pipe2-safer code to its own file.
61056         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
61057         * lib/pipe-safer.c (pipe2_safer): Remove function.
61058         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
61059         (Makefile.am): Add it to lib_SOURCES.
61061 2009-12-10  Bruno Haible  <bruno@clisp.org>
61063         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
61065 2009-12-10  Bruno Haible  <bruno@clisp.org>
61067         Declare which arguments expect non-NULL values, for GCC and clang.
61068         * build-aux/arg-nonnull.h: New file.
61069         * modules/arg-nonnull: New file.
61070         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
61071         (inet_ntop, inet_pton): Use it.
61072         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
61073         (closedir, dirfd, opendir, scandir, alphasort): Use it.
61074         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
61075         (open, openat): Use it.
61076         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
61077         (fnmatch): Use it.
61078         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
61079         (getopt, getopt_long, getopt_long_only): Use it.
61080         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
61081         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
61082         Use it.
61083         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
61084         (iconv_open): Use it.
61085         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
61086         (strtoimax, strtoumax): Use it.
61087         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
61088         (duplocale): Use it.
61089         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
61090         (frexp, frexpl): Use it.
61091         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
61092         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
61093         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
61094         (tsearch, tfind, tdelete, twalk): Use it.
61095         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
61096         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
61097         sigpending): Use it.
61098         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
61099         (posix_spawn, posix_spawnp, posix_spawnattr_init,
61100         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
61101         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
61102         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
61103         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
61104         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
61105         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
61106         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
61107         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
61108         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
61109         Use it.
61110         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
61111         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
61112         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
61113         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
61114         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
61115         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
61116         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
61117         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
61118         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
61119         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
61120         strtoull, unsetenv): Use it.
61121         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
61122         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
61123         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
61124         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
61125         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
61126         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
61127         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
61128         (strcasecmp, strncasecmp): Use it.
61129         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
61130         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
61131         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
61132         rpl_setsockopt): Use it.
61133         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
61134         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
61135         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
61136         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
61137         (gettimeofday): Use it.
61138         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
61139         (times): Use it.
61140         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
61141         (uname): Use it.
61142         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
61143         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
61144         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
61145         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
61146         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
61147         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
61148         unlinkat, write): Use it.
61149         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
61150         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
61151         * lib/argv-iter.h: Include arg-nonnull.h.
61152         (_ATTRIBUTE_NONNULL_): Remove macro.
61153         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
61154         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
61155         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
61156         optimization.
61157         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
61158         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
61159         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
61160         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
61161         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
61162         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
61163         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
61164         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
61165         * modules/arpa_inet (Depends-on): Add arg-nonnull.
61166         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
61167         * modules/dirent (Depends-on): Add arg-nonnull.
61168         (Makefile.am): Insert arg-nonnull.h into dirent.h.
61169         * modules/fcntl-h (Depends-on): Add arg-nonnull.
61170         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
61171         * modules/fnmatch (Depends-on): Add arg-nonnull.
61172         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
61173         * modules/getopt-posix (Depends-on): Add arg-nonnull.
61174         (Makefile.am): Insert arg-nonnull.h into getopt.h.
61175         * modules/glob (Depends-on): Add arg-nonnull.
61176         (Makefile.am): Insert arg-nonnull.h into glob.h.
61177         * modules/iconv_open (Depends-on): Add arg-nonnull.
61178         (Makefile.am): Insert arg-nonnull.h into iconv.h.
61179         * modules/inttypes (Depends-on): Add arg-nonnull.
61180         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
61181         * modules/locale (Depends-on): Add arg-nonnull.
61182         (Makefile.am): Insert arg-nonnull.h into locale.h.
61183         * modules/math (Depends-on): Add arg-nonnull.
61184         (Makefile.am): Insert arg-nonnull.h into math.h.
61185         * modules/netdb (Depends-on): Add arg-nonnull.
61186         (Makefile.am): Insert arg-nonnull.h into netdb.h.
61187         * modules/search (Depends-on): Add arg-nonnull.
61188         (Makefile.am): Insert arg-nonnull.h into search.h.
61189         * modules/signal (Depends-on): Add arg-nonnull.
61190         (Makefile.am): Insert arg-nonnull.h into signal.h.
61191         * modules/spawn (Depends-on): Add arg-nonnull.
61192         (Makefile.am): Insert arg-nonnull.h into spawn.h.
61193         * modules/stdio (Depends-on): Add arg-nonnull.
61194         (Makefile.am): Insert arg-nonnull.h into stdio.h.
61195         * modules/stdlib (Depends-on): Add arg-nonnull.
61196         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
61197         * modules/string (Depends-on): Add arg-nonnull.
61198         (Makefile.am): Insert arg-nonnull.h into string.h.
61199         * modules/strings (Depends-on): Add arg-nonnull.
61200         (Makefile.am): Insert arg-nonnull.h into strings.h.
61201         * modules/sys_socket (Depends-on): Add arg-nonnull.
61202         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
61203         * modules/sys_stat (Depends-on): Add arg-nonnull.
61204         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
61205         * modules/sys_time (Depends-on): Add arg-nonnull.
61206         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
61207         * modules/sys_times (Depends-on): Add arg-nonnull.
61208         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
61209         * modules/sys_utsname (Depends-on): Add arg-nonnull.
61210         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
61211         * modules/time (Depends-on): Add arg-nonnull.
61212         (Makefile.am): Insert arg-nonnull.h into time.h.
61213         * modules/unistd (Depends-on): Add arg-nonnull.
61214         (Makefile.am): Insert arg-nonnull.h into unistd.h.
61215         * modules/wchar (Depends-on): Add arg-nonnull.
61216         (Makefile.am): Insert arg-nonnull.h into wchar.h.
61217         * modules/argv-iter (Depends-on): Add arg-nonnull.
61218         * tests/test-canonicalize.c (null_ptr): New function.
61219         (main): Use it.
61220         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
61221         (main): Use it.
61222         * tests/test-memmem.c (null_ptr): New function.
61223         (main): Use it.
61224         Reported by Jim Meyering.
61226 2009-12-10  Bruno Haible  <bruno@clisp.org>
61228         Use spaces for indentation, not tabs.
61229         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
61230         * m4/*.m4: Untabify.
61231         * build-aux/*.h: Untabify.
61232         * tests/**/*.[hc]: Untabify.
61233         * README: New section "Indent with spaces, not TABs", based on
61234         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
61235         * NEWS: Mention the change.
61237 2009-12-10  Bruno Haible  <bruno@clisp.org>
61239         pty test: Fix link error.
61240         * modules/pty-tests (Makefile.am): Add the default LDADD value to
61241         test_pty_LDADD.
61243 2009-12-07  Simon Josefsson  <simon@josefsson.org>
61245         * modules/pty: New file.
61246         * modules/pty-tests: New file.
61247         * m4/pty.m4: New file.
61248         * tests/test-pty.c: New file.
61249         * doc/glibc-headers/pty.texi: Modified.
61250         * doc/glibc-functions/forkpty.texi: Modified.
61251         * doc/glibc-functions/openpty.texi: Modified.
61253 2009-12-10  Bruno Haible  <bruno@clisp.org>
61255         Avoid syntax error in C++ mode.
61256         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
61258 2009-12-10  Bruno Haible  <bruno@clisp.org>
61260         Use sed with option -e.
61261         * gnulib-tool (func_version, func_emit_copyright_notice,
61262         func_emit_initmacro_end, func_import, func_create_testdir): Pass
61263         option -e to sed.
61264         * modules/link-warning (Makefile.am): Likewise.
61266 2009-12-10  Jim Meyering  <meyering@redhat.com>
61268         mgetgroups: do not write bytes beyond end of malloc'd buffer
61269         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
61270         username, we call getgroups with a one-element-shorter buffer,
61271         but still told it the length was original, max_n_groups.
61273 2009-12-09  Eric Blake  <ebb9@byu.net>
61275         cloexec: relax license
61276         * modules/cloexec (Maintainer): Add myself.
61277         (License): Use LGPL, not GPL.
61279         link-warning: optimize generation
61280         * modules/link-warning (Makefile.am): Reduce process usage.
61282 2009-12-09  Bruno Haible  <bruno@clisp.org>
61284         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
61285         workaround was added on 2009-11-17.
61287 2009-12-09  Jim Meyering  <meyering@redhat.com>
61288             Bruno Haible  <bruno@clisp.org>
61290         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
61291         * modules/link-warning (Makefile.am): Make the comment-removing sed
61292         command more robust in the face of bootstrap-prepended comment lines.
61294 2009-12-09  Bruno Haible  <bruno@clisp.org>
61296         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
61297         most one group.
61299 2009-12-09  Simon Josefsson  <simon@josefsson.org>
61300             Bruno Haible  <bruno@clisp.org>
61302         * build-aux/link-warning.h: Add copyright notice.
61303         * modules/link-warning (Makefile.am): Generate link-warning.h from
61304         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
61305         * NEWS: Mention change in link-warning module.
61306         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
61307         * modules/dirent (Makefile.am): Add dependency to dirent.h.
61308         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
61309         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
61310         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
61311         * modules/math (Makefile.am): Add dependency to math.h.
61312         * modules/search (Makefile.am): Add dependency to search.h.
61313         * modules/signal (Makefile.am): Add dependency to signal.h.
61314         * modules/spawn (Makefile.am): Add dependency to spawn.h.
61315         * modules/stdio (Makefile.am): Add dependency to stdio.h.
61316         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
61317         * modules/string (Makefile.am): Add dependency to string.h.
61318         * modules/strings (Makefile.am): Add dependency to strings.h.
61319         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
61320         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
61321         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
61322         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
61323         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
61324         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
61325         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61326         * modules/unistd (Makefile.am): Add dependency to unistd.h.
61327         * modules/wchar (Makefile.am): Add dependency to wchar.h.
61329 2009-12-09  Bruno Haible  <bruno@clisp.org>
61331         fchdir: Optimize away rpl_fstat when possible.
61332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61333         REPLACE_OPEN_DIRECTORY.
61334         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61336 2009-12-09  Bruno Haible  <bruno@clisp.org>
61338         * lib/fchdir.c: Update comment.
61340 2009-12-09  Bruno Haible  <bruno@clisp.org>
61342         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61344 2009-12-08  Eric Blake  <ebb9@byu.net>
61346         fchdir: avoid memory leak on re-registration.
61347         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61349 2009-12-08  Jim Meyering  <meyering@redhat.com>
61351         init.sh: avoid Solaris 10 /bin/sh portability problem
61352         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61353         sourced script:
61354           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61355           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61356           bar
61357         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61358         and two tests used that idiom.
61359         * tests/init.sh: Update suggested usage comments.
61360         (path_prepend_): New function, to be used in place
61361         of the --src-path=DIR option.
61362         (setup_): Move PATH-prepending code into path_prepend_.
61363         * tests/test-pread.sh: Adapt to new usage.
61364         * tests/test-xalloc-die.sh: Likewise.
61366 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61368         * doc/gnulib.texi (Glibc pty.h): Add.
61369         * doc/glibc-functions/forkpty.texi: Add.
61370         * doc/glibc-functions/openpty.texi: Add.
61371         Suggested by Bruno Haible.
61373 2009-12-08  Eric Blake  <ebb9@byu.net>
61375         fchdir: fix logic bugs
61376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61377         * tests/test-fchdir.c (main): Enhance test.
61378         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61379         is in use.
61381         dup2: fix logic bugs
61382         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61383         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61384         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61385         exists.
61386         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61388 2009-12-07  Eric Blake  <ebb9@byu.net>
61390         unlink: fix m4 detection
61391         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61393         unistd-safer: add unit test
61394         * modules/unistd-safer-tests: New file.
61395         * tests/test-dup-safer.c: Likewise.
61396         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61397         * tests/test-dup2.c (setmode): Likewise.
61398         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61400         cloexec: preserve text vs. binary across dup_cloexec
61401         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61402         mode.
61403         * modules/dup2-tests (Depends-on): Add binary-io.
61404         * modules/cloexec-tests (Depends-on): Likewise.
61405         * tests/test-dup2.c (setmode, is_mode): New helpers.
61406         (main): Add tests that translation mode is preserved.
61407         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61408         Reported by Bruno Haible.
61410         mgetgroups: reduce duplicate listings
61411         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61412         resulting array.
61413         * tests/test-chown.h (test_chown): Simplify client.
61414         * tests/test-lchown.h (test_lchown): Likewise.
61416 2009-12-06  Bruno Haible  <bruno@clisp.org>
61418         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61419         value.
61421 2009-12-06  Bruno Haible  <bruno@clisp.org>
61423         * lib/progname.c: Include stdio.h, stdlib.h.
61424         (set_program_name): Reject a NULL argument.
61426 2009-12-05  Eric Blake  <ebb9@byu.net>
61428         pipe2-safer: new module
61429         * modules/pipe2-safer: New file.
61430         * lib/unistd-safer.h (pipe2_safer): New prototype.
61431         * lib/unistd--.h (pipe2): New wrapper.
61432         * lib/pipe-safer.c (pipe2_safer): New function.
61433         * modules/pipe (Depends-on): Add pipe2-safer.
61434         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61436         stdlib-safer: preserve cloexec flag for mkostemp[s]
61437         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61438         fd_safer_flag.
61440         unistd-safer: allow preservation of cloexec status via flag
61441         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61442         prototypes.
61443         * lib/dup-safer.c (dup_safer_flag): New function.
61444         * lib/fd-safer.c (fd_safer_flag): Likewise.
61445         * modules/cloexec (configure.ac): Set witness.
61447         test-dup2: enhance test
61448         * modules/dup2-tests (Depends-on): Add cloexec.
61449         * tests/test-dup2.c (main): Enhance test.
61451         cloexec: add dup_cloexec
61452         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61453         header and comments.
61454         * lib/cloexec.c (set_cloexec_flag): Add comments.
61455         (dup_cloexec): New function, with mingw implementation borrowed
61456         from...
61457         * lib/w32spawn.h (dup_noinherit): ...here.
61458         * modules/execute (Depends-on): Add cloexec.
61459         * modules/pipe (Depends-on): Likewise.
61460         * modules/cloexec (Depends-on): Add dup2.
61461         * modules/cloexec-tests (Files): New file.
61462         * tests/test-cloexec.c: Likewise.
61464         test-xalloc-die: fix test for mingw
61465         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61466         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61467         directory and .exe suffix off argv[0] output.
61469         test-fseeko: fix test for mingw
61470         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61471         than undefining fseek, so test will pass on mingw.
61473 2009-12-05  Bruno Haible  <bruno@clisp.org>
61475         * lib/progname.h (set_program_name): Clarify specification.
61476         * lib/progname.c (set_program_name): Likewise.
61477         Reported by Jim Meyering.
61479 2009-12-05  Jim Meyering  <meyering@redhat.com>
61481         maint.mk: backslash-escape parens in default regexp
61482         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61483         backslash-escape the literal parentheses.
61485         maint.mk: news-date-check: use grep -E
61486         * top/maint.mk (today): Define a Make variable, not a...
61487         (news-date-check): ...shell variable.
61488         (news-date-regexp): Use the Make variable.
61489         Use grep's -E option.  Change the failing diagnostic to mention
61490         the variable, $(news-date-regexp).
61492 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61494         maintainer-makefile: allow customization of NEWS entry format
61495         * top/maint.mk (news-date-regexp): New overridable variable.
61496         (news-date-check): Use it.
61498 2009-12-04  Eric Blake  <ebb9@byu.net>
61500         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61501         * lib/mgetgroups.h (xgetgroups): New prototype.
61502         * lib/mgetgroups.c (xgetgroups): New wrapper.
61503         (mgetgroups): Handle ENOSYS.
61504         * modules/mgetgroups (Depends-on): Add realloc.
61505         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61507         mgetgroups: avoid argument promotion issues with -1
61508         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61509         for invalid gid_t.
61510         * tests/test-chown.h (getegid, test_chown): Likewise.
61511         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61513 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61515         exclude: Fix header file problems.
61516         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61518 2009-12-01  Jim Meyering  <meyering@redhat.com>
61520         fts: fts_open: do not let an empty string cause immediate failure
61521         This is required in support of GNU rm, for which the command
61522         "rm A '' B" must process and remove both A and B, in spite of
61523         the empty string argument.
61524         * lib/fts.c (fts_open): Do not let the presence of an empty string
61525         cause fts_open to fail immediately.  Most fts-using tools must be
61526         able to process all arguments, in order, and can be expected to
61527         diagnose such arguments themselves.
61529 2009-11-30  Eric Blake  <ebb9@byu.net>
61531         utimens: fix compilation error
61532         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61533         Declare variable at right scope.
61535 2009-11-29  Jim Meyering  <meyering@redhat.com>
61537         bootstrap: handle perl-5.11's changed --version output
61538         * build-aux/bootstrap (get_version): Handle perl separately,
61539         since perl-5.11's --version output is different.
61541 2009-11-28  Jim Meyering  <meyering@redhat.com>
61543         userspec: depend on the inttostr module, too
61544         * modules/userspec (Depends-on): Add inttostr.
61546         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61547         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61548         number of MAXUID when it evaluates to (uid_t) -1.
61549         Likewise for group ID.  Reported by Matt McCutchen in
61550         <http://savannah.gnu.org/bugs/?28113>
61552         userspec: reformat to use spaces, not TABs
61553         * lib/userspec.c: Expand TABs to spaces.
61554         Add Emacs' "indent-tabs-mode: nil" hint.
61556 2009-11-27  Eric Blake  <ebb9@byu.net>
61558         getopt-gnu: flush out another BSD bug
61559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61560         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61561         flush out BSD bug.
61562         * tests/test-getopt.h (test_getopt): End lists with NULL.
61563         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61564         (test_getopt_long_posix): Enhance test.
61565         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61566         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61567         getopt-gnu.
61568         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61569         Likewise.
61571 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61573         * modules/idpriv-droptemp-tests (Notice): Fix text.
61575 2009-11-27  Jim Meyering  <meyering@redhat.com>
61577         test-xalloc-die: avoid spurious failure due to libtool argv difference
61578         In a libtool-enabled project, this test would fail due to a difference
61579         in the emitted program name, e.g.,
61580         -test-xalloc-die: memory exhausted
61581         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61582         Use program to avoid that.
61583         * modules/xalloc-die-tests (Depends-on): Add progname.
61584         * tests/test-xalloc-die.c: Include progname.h".
61585         (program_name): Remove decl.
61586         (main): Call set_program_name.
61587         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61589 2009-11-26  Richard Jones  <rjones@redhat.com>
61591         w32sock: leave win32 error in place.
61592         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61594 2009-11-26  Eric Blake  <ebb9@byu.net>
61596         init.sh: suggest to use skip_ and fail_ functions in comments
61597         * tests/init.sh: Add a sentence.
61599 2009-11-25  Bruno Haible  <bruno@clisp.org>
61601         init.sh: add documentation in comments
61602         * tests/init.sh: Add some developer and user documentation.
61604 2009-11-26  Jim Meyering  <meyering@redhat.com>
61606         init.sh: accommodate even those who specify bogus srcdir manually
61607         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61608         configure-time tests to be sanitized, so that there is no need to
61609         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61610         (with no double quotes) suffices.  However, since tests may be
61611         invoked manually, and since you may explicitly set srcdir to the
61612         name of a directory containing spaces, do quote its uses here.
61613         * tests/test-pread.sh: Likewise.
61614         Suggested by Bruno Haible.
61616         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61617         * tests/test-pread.sh: Write no data into the pipe, because
61618         test-pread actually reads none.  This avoids a diagnostic,
61619         "bash: echo: write error: Broken pipe", that arises in the unusual
61620         event something is ignoring SIGPIPE, and might be interpreted
61621         as some sort of failure.  Reported by Bruno Haible.
61623 2009-11-25  Jim Meyering  <meyering@redhat.com>
61625         test-pread: cover failure with ESPIPE and EINVAL
61626         * tests/test-pread.c (main): Test for failure, too.
61627         * tests/test-pread.sh: Invoke with stdin on a pipe.
61628         Suggested by Eric Blake.
61630         pread: improvement and fix
61631         * modules/pread (Depends-on): Depend on lseek, for portability to
61632         e.g., mingw.  Suggested by Eric Blake.
61633         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61635         unistd.in.h: correct declaration of pread
61636         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61637         Reported by Richard W.M. Jones.
61639         test-pread.sh: distribute the test script
61640         * modules/pread-tests (Files): Include test-pread.sh.
61642         test-pread.sh: clean up
61643         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61644         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61645         That is unnecessary, since it's always ".".
61646         Suggestion from Eric Blake.
61648         test-pread.sh: make executable
61649         * tests/test-pread.sh: Set executable bit.
61650         Reported by Eric Blake.
61652         correct typo in test-pread.sh
61653         * tests/test-pread.sh: Add #! line.
61655         test pread
61656         * tests/test-pread.c: New file.
61657         * tests/test-pread.sh: Likewise.
61658         * modules/pread-tests: Likewise.
61660         pread: new module
61661         * modules/pread: New file.
61662         * lib/unistd.in.h (pread): Define/declare.
61663         * lib/pread.c (pread): New file.
61664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61665         * modules/unistd (Makefile.am): Substitute witnesses.
61666         * doc/posix-functions/pread.texi (pread): Update.
61667         * MODULES.html.sh: Add pread.
61669 2009-11-25  Jim Meyering  <meyering@redhat.com>
61671         tests/init.sh: new file to be used via most *.sh tests
61672         * tests/init.sh: New file.
61674 2009-11-25  Eric Blake  <ebb9@byu.net>
61676         utimens: work around older Linux failure with symlinks
61677         * lib/utimens.c (lutimensat_works_really): New variable.
61678         (fdutimens, lutimens): Use it to manage kernels that support
61679         nanosecond times on files, but not on symlinks.
61680         Reported by Ondřej Vašík.
61682         utimes: fix configure grammar
61683         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61685 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61687         regex: Fix fastmap for multibyte character ranges.
61688         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61689         characters when a multibyte character range is included.
61691 2009-11-22  Andy Wingo  <wingo@pobox.com>
61693         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61694         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61696 2009-11-24  Bruno Haible  <bruno@clisp.org>
61698         doc: Most *_l functions exist in MacOS X 10.5.
61699         * doc/posix-functions/duplocale.texi: Update platforms list.
61700         * doc/posix-functions/freelocale.texi: Likewise.
61701         * doc/posix-functions/newlocale.texi: Likewise.
61702         * doc/posix-functions/uselocale.texi: Likewise.
61703         * doc/posix-functions/isalnum_l.texi: Likewise.
61704         * doc/posix-functions/isalpha_l.texi: Likewise.
61705         * doc/posix-functions/isblank_l.texi: Likewise.
61706         * doc/posix-functions/iscntrl_l.texi: Likewise.
61707         * doc/posix-functions/isdigit_l.texi: Likewise.
61708         * doc/posix-functions/isgraph_l.texi: Likewise.
61709         * doc/posix-functions/islower_l.texi: Likewise.
61710         * doc/posix-functions/isprint_l.texi: Likewise.
61711         * doc/posix-functions/ispunct_l.texi: Likewise.
61712         * doc/posix-functions/isspace_l.texi: Likewise.
61713         * doc/posix-functions/isupper_l.texi: Likewise.
61714         * doc/posix-functions/iswalnum_l.texi: Likewise.
61715         * doc/posix-functions/iswalpha_l.texi: Likewise.
61716         * doc/posix-functions/iswblank_l.texi: Likewise.
61717         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61718         * doc/posix-functions/iswctype_l.texi: Likewise.
61719         * doc/posix-functions/iswdigit_l.texi: Likewise.
61720         * doc/posix-functions/iswgraph_l.texi: Likewise.
61721         * doc/posix-functions/iswlower_l.texi: Likewise.
61722         * doc/posix-functions/iswprint_l.texi: Likewise.
61723         * doc/posix-functions/iswpunct_l.texi: Likewise.
61724         * doc/posix-functions/iswspace_l.texi: Likewise.
61725         * doc/posix-functions/iswupper_l.texi: Likewise.
61726         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61727         * doc/posix-functions/isxdigit_l.texi: Likewise.
61728         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61729         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61730         * doc/posix-functions/strcoll_l.texi: Likewise.
61731         * doc/posix-functions/strfmon_l.texi: Likewise.
61732         * doc/posix-functions/strftime_l.texi: Likewise.
61733         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61734         * doc/posix-functions/strxfrm_l.texi: Likewise.
61735         * doc/posix-functions/tolower_l.texi: Likewise.
61736         * doc/posix-functions/toupper_l.texi: Likewise.
61737         * doc/posix-functions/towctrans_l.texi: Likewise.
61738         * doc/posix-functions/towlower_l.texi: Likewise.
61739         * doc/posix-functions/towupper_l.texi: Likewise.
61740         * doc/posix-functions/wcscoll_l.texi: Likewise.
61741         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61742         * doc/posix-functions/wctrans_l.texi: Likewise.
61743         * doc/posix-functions/wctype_l.texi: Likewise.
61744         * doc/glibc-functions/strptime_l.texi: Likewise.
61745         * doc/glibc-functions/strtod_l.texi: Likewise.
61746         * doc/glibc-functions/strtof_l.texi: Likewise.
61747         * doc/glibc-functions/strtol_l.texi: Likewise.
61748         * doc/glibc-functions/strtold_l.texi: Likewise.
61749         * doc/glibc-functions/strtoll_l.texi: Likewise.
61750         * doc/glibc-functions/strtoul_l.texi: Likewise.
61751         * doc/glibc-functions/strtoull_l.texi: Likewise.
61752         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61753         * doc/glibc-functions/wcstod_l.texi: Likewise.
61754         * doc/glibc-functions/wcstof_l.texi: Likewise.
61755         * doc/glibc-functions/wcstol_l.texi: Likewise.
61756         * doc/glibc-functions/wcstold_l.texi: Likewise.
61757         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61758         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61759         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61761 2009-11-24  Bruno Haible  <bruno@clisp.org>
61763         duplocale: Fix logic bug.
61764         * lib/duplocale.c: Don't include <langinfo.h>.
61765         (_NL_LOCALE_NAME): Remove macro.
61766         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61767         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61769 2009-11-23  Jim Meyering  <meyering@redhat.com>
61771         test-update-copyright: don't hard-code /usr/bin/perl
61772         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61773         perl to print the current year.  Gilles Espinasse reported that
61774         the replaced use of perl was hard-coded as /usr/bin/perl.
61776 2009-11-23  Bruno Haible  <bruno@clisp.org>
61778         duplocale: Add support for glibc 2.3.x.
61779         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61781 2009-11-22  Bruno Haible  <bruno@clisp.org>
61783         vasnprintf: Tiny optimization.
61784         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61785         MacOS X.
61787 2009-11-22  Bruno Haible  <bruno@clisp.org>
61789         Tests for module 'duplocale'.
61790         * modules/duplocale-tests: New file.
61791         * tests/test-duplocale.c: New file.
61793         New module 'duplocale'.
61794         * m4/duplocale.m4: New file.
61795         * lib/locale.in.h (duplocale): New declaration.
61796         * lib/duplocale.c: New file.
61797         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61798         gl_LOCALE_H_DEFAULTS): New macros.
61799         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61800         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61801         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61802         REPLACE_DUPLOCALE.
61803         * modules/duplocale: New file.
61804         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61806 2009-11-22  Bruno Haible  <bruno@clisp.org>
61808         * modules/locale-tests (configure.ac): Test for newlocale function.
61809         * tests/test-locale.c: When the system has extended locale functions,
61810         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61812         locale: Make locale_t available when possible.
61813         * lib/locale.in.h: Include <xlocale.h> when it exists.
61814         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61815         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61816         * modules/locale (Depends-on): Add extensions.
61817         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61818         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61820 2009-11-22  Bruno Haible  <bruno@clisp.org>
61822         Add comments.
61823         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61824         invocation.
61825         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61826         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61827         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61829 2009-11-22  Bruno Haible  <bruno@clisp.org>
61831         error: account for the possibility of freopen (stdout).
61832         * lib/error.c: Include <unistd.h>.
61833         (flush_stdout): New function, extracted from error and error_at_line.
61834         Determine stdout's fd dynamically.
61835         (error, error_at_line): Invoke flush_stdout.
61836         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61837         * modules/error (Depends-on): Add unistd.
61839 2009-11-22  Bruno Haible  <bruno@clisp.org>
61841         diffseq: Add comment.
61842         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61844 2009-11-22  Jim Meyering  <meyering@redhat.com>
61846         c-stack: avoid defining an unused static function
61847         * lib/c-stack.c (find_stack_direction): Do not define this function
61848         when it will not be used.
61850         diffseq: avoid spurious gcc warnings
61851         * lib/diffseq.h (IF_LINT2): Define.
61852         (compareseq): Use it to initialize two members of "part".
61853         This avoids two used-uninitialized warnings.
61855 2009-11-21  Jim Meyering  <meyering@redhat.com>
61857         c-stack: avoid "ignoring return value of `write'" warning
61858         * lib/c-stack.c: Include "ignore-value.h".
61859         (die): Explicitly ignore each write return value.
61860         * modules/c-stack (Depends-on): Add ignore-value.
61862 2009-11-21  Bruno Haible  <bruno@clisp.org>
61864         diffseq: reduce scope of variable 'best'.
61865         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61866         variable, earlier used for two different purposes.
61868 2009-11-21  Jim Meyering  <meyering@redhat.com>
61870         diffseq: remove useless assignment to "best"
61871         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61872         assignment.  At that point "best" is already guaranteed to be zero.
61874 2009-11-20  Eric Blake  <ebb9@byu.net>
61876         build: mention ftp redirector in release announcements
61877         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61878         values that used to come from cfg.mk; mention FTP redirect URL.
61879         * build-aux/announce-gen: Mention the mirror list.
61880         Suggested by Karl Berry.
61882         nanosleep: improve port to mingw
61883         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61885         LIB_NANOSLEEP, but only when needed.
61886         * modules/select (Link): Document LIBSOCKET.
61887         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61888         enough.
61890         nanosleep: work around cygwin bug
61891         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61892         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61893         bug.
61894         (getnow): Delete, not needed.
61895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61896         LIB_CLOCK_GETTIME.
61897         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61898         clock-time, gettime.
61899         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61900         bug.
61901         * modules/nanosleep-tests: New test.
61902         * tests/test-nanosleep.c: New file.
61904         sleep: work around cygwin bug
61905         * lib/sleep.c (rpl_sleep): Work around the bug.
61906         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61907         (gl_PREREQ_SLEEP): Delete unused macro.
61908         * modules/sleep (Depends-on): Add verify.
61909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61910         * modules/unistd (Makefile.am): Substitute witness.
61911         * lib/unistd.in.h (sleep): Update prototype.
61912         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61913         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61914         * modules/sleep-tests (Depends-on): Check for alarm.
61916 2009-11-20  Jim Meyering  <meyering@redhat.com>
61918         maint.mk: improve sc_prohibit_magic_number_exit
61919         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61920         so it does not match uses like System.exit(1).
61921         Add comments showing how to correct all offenders.
61923 2009-11-19  Eric Blake  <ebb9@byu.net>
61925         xalloc-die-tests: add missing library
61926         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61928         test-xvasprintf: silence compiler warnings
61929         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61930         empty string from gcc.
61932 2009-11-19  Jim Meyering  <meyering@redhat.com>
61934         xfreopen: new module, from coreutils
61935         * modules/xfreopen: New module.
61936         * lib/xfreopen.c: New file.
61937         * lib/xfreopen.h: New file.
61938         * MODULES.html.sh (File stream based Input/Output"): Add it.
61940 2009-11-19  Eric Blake  <ebb9@byu.net>
61942         manywarnings: depend on warnings
61943         * modules/manywarnings (Depends-on): Add warnings.
61945         build: avoid compiler warnings
61946         * lib/select.c (rpl_select): Delete unused variable.
61947         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61949 2009-11-18  Eric Blake  <ebb9@byu.net>
61951         tests: avoid false negative with --with-packager
61952         * tests/test-version-etc.sh: Discard packager information.
61953         * tests/test-argp-version-etc-1.sh: Likewise.
61954         Reported by Mike Frysinger.
61956         utimens: fix regression on Solaris
61957         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61958         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61959         can only change fd timestamps via futimesat.  Instead, use an
61960         additional witness macro to avoid BSD bug.
61961         Reported by Jim Meyering.
61963 2009-11-17  Eric Blake  <ebb9@byu.net>
61965         usleep: use it to simplify tests
61966         * modules/stat-time-tests (Depends-on): Add usleep.
61967         (configure.ac): Drop usleep check.
61968         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61969         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61970         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61971         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61972         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61973         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61974         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61975         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61976         Likewise.
61977         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61978         * tests/test-lchown.h (nap): Likewise.
61979         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61980         * tests/test-stat-time.c (nap): Likewise.
61981         * tests/test-utimens-common.h (nap): Update comments.
61983         usleep: new module
61984         * modules/usleep: New file.
61985         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61986         * lib/usleep.c (usleep): Likewise.
61987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61988         * modules/unistd (Makefile.am): Substitute witnesses.
61989         * lib/unistd.in.h (usleep): Add declaration.
61990         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61991         * MODULES.html.sh (Date and time): Likewise.
61992         * modules/usleep-tests (Depends-on): New test.
61993         * tests/test-usleep.c: New file.
61995         chown: work around OpenBSD bug
61996         * lib/chown.c (rpl_chown): Work around the bug.
61997         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61998         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61999         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
62000         * modules/chown (Depends-on): Add stdbool.
62001         * modules/lchown (Depends-on): Likewise.
62002         * doc/posix-functions/chown.texi (chown): Document the bug.
62003         * doc/posix-functions/lchown.texi (lchown): Likewise.
62004         * tests/test-lchown.h (test_chown): Relax test.
62006         mkstemp: avoid conflict with C++ keyword template
62007         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
62008         * lib/mkostemp.c (mkostemp): Likewise.
62009         * lib/mkostemps.c (mkostemps): Likewise.
62010         * lib/mkstemp.c (mkstemp): Likewise.
62011         * lib/mkstemps.c (mkstemps): Likewise.
62013         xalloc-die-tests: optimize
62014         * tests/test-xalloc-die.sh: Reduce number of processes.
62016 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62018         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
62019         patch from ludo@gnu.org (Ludovic Courtès).
62021 2009-11-17  Jim Meyering  <meyering@redhat.com>
62023         version-etc: use proper license string
62024         * modules/version-etc (License): Use LGPL, not LGPLv3+.
62025         * modules/version-etc-fsf: Likewise.
62027 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62029         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
62030         printed to stdout.  Deal with EOL differences.
62032 2009-11-17  Eric Blake  <ebb9@byu.net>
62034         unsetenv: work around Solaris bug
62035         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
62036         * lib/unsetenv.c (rpl_unsetenv): Work around it.
62037         Reported by Jim Meyering.
62039         vasnprintf: avoid compiler warnings
62040         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
62041         variables.
62042         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
62044 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62046         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
62047         settings since xalloc-die is no longer the self test,
62048         xalloc-die.sh is.
62050 2009-11-17  Jim Meyering  <meyering@redhat.com>
62052         test-xalloc-die.sh: make the code agree with the commit log
62053         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
62054         at the end, just in case you happen to have a test-xalloc-die
62055         program in some other PATH directory.
62057         test-xalloc-die.sh: fix a portability bug
62058         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
62059         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
62060         Otherwise, argv[0] (as often seen in diagnostics) would be too
62061         system-dependent, sometimes with, and sometimes without the leading "./".
62063         version-etc-fsf: relax license to LGPLv3+
62064         * modules/version-etc-fsf (License): Relax license.
62066 2009-11-16  Eric Blake  <ebb9@byu.net>
62068         xalloc-die-tests: avoid printing null pointer
62069         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
62070         shell script.
62071         * tests/test-xalloc-die.c (program_name): Declare.
62072         * tests/test-xalloc-die.sh (tmpfiles): New file.
62074         setenv, unsetenv: work around various bugs
62075         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
62076         (setenv) [HAVE_SETENV]: Work around bugs.
62077         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
62078         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
62079         for bugs.
62080         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
62081         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
62082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
62083         * modules/stdlib (Makefile.am): Update substitutions.
62084         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
62085         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
62086         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
62087         * modules/setenv-tests: New test.
62088         * modules/unsetenv-tests: Likewise.
62089         * tests/test-setenv.c: New file.
62090         * tests/test-unsetenv.c: Likewise.
62092 2009-11-16  Jim Meyering  <meyering@redhat.com>
62094         version-etc: relax license to LGPLv3+
62095         * modules/version-etc (License): Relax license.
62097         better AC_REQUIRE expanded-before-required-warning avoidance
62098         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
62099         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
62100         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
62101         which is no longer needed.
62103 2009-11-16  Eric Blake  <ebb9@byu.net>
62105         test-freading: clean up temporary file
62106         * tests/test-freading.c (main): Remove file on success, and use
62107         ASSERT more liberally.
62108         Reported by Jim Meyering.
62110 2009-11-16  Jim Meyering  <meyering@redhat.com>
62112         avoid new AC_REQUIRE expanded-before-required warnings
62113         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
62114         merely using it.
62115         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
62116         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
62118 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62120         * tests/test-xalloc-die.c: New file.
62121         * modules/xalloc-die-tests: New file.
62122         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
62123         XFAIL_TESTS so it can be appended by modules.
62125 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62127         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
62128         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
62130 2009-11-14  Eric Blake  <ebb9@byu.net>
62132         fnmatch: avoid compiler warning
62133         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
62134         to silence compiler warning about mismatch signedness in ?:.
62135         Reported by Robert Millan.
62137         intprops: add double-inclusion guard
62138         * lib/intprops.h: Allow idempotent includes.
62139         Suggested by Bruce Korb.
62141         openat: detect Solaris fchownat bug
62142         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
62143         penalizing glibc chownat when only lchownat is broken.
62144         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
62145         trailing slash bugs.
62146         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
62147         * modules/openat-tests (Files): Include more files.
62148         (Depends-on): Add mgetgroups, sleep, stat-time.
62149         (configure.ac): Add additional checks.
62150         (Makefile.am): Build new test.
62151         * tests/test-fchownat.c: New file.
62153         lchown: detect Solaris and FreeBSD bug
62154         * lib/lchown.c (rpl_lchown): Work around bug.
62155         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
62156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62157         * modules/unistd (Makefile.am): Populate it.
62158         * lib/unistd.in.h (lchown): Update declaration.
62159         * doc/posix-functions/lchown.texi (lchown): Document the bug.
62160         * modules/lchown-tests: New file.
62161         * tests/test-lchown.h (test_lchown): Likewise.
62162         * tests/test-lchown.c (main): Likewise.
62164         chown: detect Solaris and FreeBSD bug
62165         * lib/chown.c (rpl_chown): Work around bug.
62166         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
62167         (gl_PREREQ_CHOWN): Delete.
62168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62169         * modules/unistd (Makefile.am): Populate it.
62170         * lib/unistd.in.h (chown): Update declaration.
62171         * lib/lchown.c (chown): Update client.
62172         * modules/lchown (Depends-on): Add lstat.
62173         * doc/posix-functions/chown.texi (chown): Document the bug.
62174         * doc/posix-functions/getgroups.texi (getgroups): Document
62175         getgroups pitfall.
62176         * modules/chown-tests: New file.
62177         * tests/test-chown.h (test_chown): Likewise.
62178         * tests/test-chown.c (main): Likewise.
62180 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
62182         gnulib-tool: correctly detect absence of m4 directories
62183         * gnulib-tool: Avoid extra newline on data passed to wc -l.
62185 2009-11-14  Jim Meyering  <meyering@redhat.com>
62187         maint.mk: Prohibit inclusion of "xalloc.h" without use.
62188         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62190 2009-11-14  John W. Eaton  <jwe@gnu.org>
62192         strftime.h: wrap function declaration in extern "C" block
62193         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
62195 2009-11-13  Eric Blake  <ebb9@byu.net>
62197         getgroups: avoid compiler warning
62198         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
62200         getgroups: work around FreeBSD bug
62201         * lib/getgroups.c (rpl_getgroups): Work around the bug.
62202         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
62203         * doc/posix-functions/getgroups.texi (getgroups): Document it.
62204         * tests/test-getgroups.c (main): Fix buffer overrun.
62206         getgroups: avoid compilation failure
62207         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
62208         * modules/getgroups (Depends-on): Add stdint.
62210 2009-11-13  Jim Meyering  <meyering@redhat.com>
62212         test-getgroups: avoid compilation failure
62213         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
62215 2009-11-13  Eric Blake  <ebb9@byu.net>
62217         mgetgroups: new module, taken from coreutils
62218         * modules/mgetgroups: New file.
62219         * lib/mgetgroups.h: Likewise.
62220         * lib/mgetgroups.c (mgetgroups): Likewise.
62221         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
62222         * MODULES.html.sh (Users and groups): Mention it.
62224         getgroups: don't expose GETGROUPS_T to user
62225         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
62226         an element at a time if GETGROUPS_T is wrong size.
62227         * lib/getugroups.h (getugroups): Change signature.
62228         * lib/unistd.in.h (getgroups): Likewise.
62229         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
62230         signature needs fixing.
62231         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
62232         AC_TYPE_GETGROUPS.
62233         * modules/group-member (Depends-on): Add getgroups.
62234         * lib/group-member.c (group_info, get_group_info): Use gid_t.
62235         (group_member): Rely on getgroups replacement.
62236         * lib/getugroups.c (getugroups): Use gid_t.
62237         * tests/test-getgroups.c (main): Likewise.
62238         * NEWS: Mention the signature change.
62239         * doc/posix-functions/getgroups.texi (getgroups): Mention the
62240         problem with signature.
62241         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
62242         GETGROUPS_T is still useful for setgroups.
62244         getgroups, getugroups: provide stubs for mingw
62245         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
62246         * lib/getugroups.c (getugroups): Likewise.
62247         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
62248         function.  Modernize replacement scheme.
62249         (gl_PREREQ_GETGROUPS): Delete.
62250         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
62251         * modules/getgroups (configure.ac): Declare witness.
62252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62253         * modules/unistd (Depends-on): Substitute witness.
62254         * lib/unistd.in.h (getgroups): Declare replacement.
62256         getgroups: avoid calling exit
62257         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
62258         drop xalloc.
62259         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
62260         dependencies.
62261         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
62262         exiting, in the rare case of malloc failure.
62264         getgroups: fix logic error
62265         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
62266         has more than 20 groups.
62267         * modules/getgroups-tests: New test.
62268         * tests/test-getgroups.c: New file.
62270 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62272         * tests/test-base64.c: Improve.
62274 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62276         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
62277         Blake <ebb9@byu.net>.
62279 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62281         * tests/test-xvasprintf.c: Add %s%s related checks.
62283 2009-11-12  Eric Blake  <ebb9@byu.net>
62285         version-etc: match standards.texi style
62286         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
62287         and use <> only for URLs.
62289 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
62291         fts: do not fail on a submount during traversal
62292         * lib/fts.c (fts_build): Read the stat info again after opening
62293         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
62294         Original report at http://bugzilla.redhat.com/501848.
62296 2009-11-12  Jim Meyering  <meyering@redhat.com>
62298         bootstrap: sync from coreutils
62299         * build-aux/bootstrap (bootstrap_epilogue): New function.
62300         Use git_modules_config in one more place.  This make bootstrap's
62301         --gnulib-srcdir option more useful for testing.
62303         bootstrap: generalize autoheader check
62304         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
62305         AC_CONFIG_HEADERS.
62307 2009-11-11  Eric Blake  <ebb9@byu.net>
62309         mkfifoat: use new modules for Solaris and BSD bugs
62310         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
62311         * lib/mkfifoat.c (mknodat): Split...
62312         * lib/mknodat.c (mknodat): ...into new file.
62313         * modules/mkfifoat (Files): Ship new file.
62314         (Depends-on): Add mkfifo, mknod.
62315         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
62316         (Depends-on): Add symlink.
62317         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
62318         redundant with test_mkfifo.h.
62319         (do_mkfifoat, do_mknodat): New helpers.
62321         mknod: new module
62322         * modules/mknod: New file.
62323         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
62324         * lib/mknod.c (mknod): Likewise.
62325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62326         defaults.
62327         * modules/sys_stat (Makefile.am): Substitute them.
62328         * lib/sys_stat.in.h (mknod): Declare replacement.
62329         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62330         Document it.
62331         * doc/posix-functions/mknod.texi (mknod): Likewise.
62332         * modules/mknod-tests: New test.
62333         * tests/test-mknod.c: Likewise.
62335         mkfifo: new module
62336         * modules/mkfifo: New file.
62337         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62338         * lib/mkfifo.c (mkfifo): Likewise.
62339         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62340         defaults.
62341         * modules/sys_stat (Makefile.am): Substitute them.
62342         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62343         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62344         Document it.
62345         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62346         * modules/mkfifo-tests: New test.
62347         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62348         from test-mkfifoat.c.
62349         * tests/test-mkfifo.c: New file.
62351         readlink: detect FreeBSD bug
62352         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62353         slash on symlink.
62354         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62355         * tests/test-readlink.h (test_readlink): Enhance test.
62357         symlink: detect FreeBSD bug
62358         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62359         slash on symlink.
62360         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62361         * tests/test-symlink.h (test_symlink): Enhance test.
62363 2009-11-10  Eric Blake  <ebb9@byu.net>
62365         link: detect FreeBSD bug
62366         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62367         symlink.
62368         * doc/posix-functions/link.texi (link): Document the bug.
62369         * tests/test-link.h (test_link): Enhance test.
62370         * tests/test-linkat.c (main): Update caller.
62372         unlink, remove: detect FreeBSD bug
62373         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62374         slash on symlink.
62375         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62376         * doc/posix-functions/remove.texi (remove): Likewise.
62377         * tests/test-unlink.h (test_unlink): Enhance test.
62378         * tests/test-remove.c (main): Likewise.
62380 2009-11-09  Eric Blake  <ebb9@byu.net>
62382         rename: detect FreeBSD bug
62383         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62384         slash on symlink.
62385         * modules/renameat-tests (Depends-on): Add filenamecat.
62386         * tests/test-rename.h (test_rename): Allow one more errno.
62387         * tests/test-renameat.c (main): Likewise.
62388         * doc/posix-functions/rename.texi (rename): Document the bug.
62390         open: detect FreeBSD bug
62391         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62392         symlink.
62393         * doc/posix-functions/open.texi (open): Document the bug.
62394         * doc/posix-functions/utimes.texi (utimes): Likewise.
62395         * tests/test-open.h (test_open): Add parameters, and test symlink
62396         handling.
62397         * tests/test-open.c (main): Adjust caller.
62398         * tests/test-fcntl-safer.c (main): Likewise.
62399         * modules/open-tests (Depends-on): Add stdbool, symlink.
62400         * modules/fcntl-safer-tests (Depends-on): Likewise.
62401         * tests/test-openat.c (main): Add test-open tests.
62403         stat: detect FreeBSD bug
62404         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62405         symlink.
62406         * doc/posix-functions/stat.texi (stat): Document the bug.
62407         * tests/test-stat.h (test_stat_func): Add argument.
62408         * tests/test-stat.c (main): Adjust caller.
62409         * tests/test-fstatat.c (main): Likewise.
62410         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62411         Reported by Jim Meyering.
62413 2009-11-09  James Youngman  <jay@gnu.org>
62415         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62416         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62418 2009-11-08  Jim Meyering  <meyering@redhat.com>
62420         utimens: remove invalid futimesat call
62421         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62422         It used the file descriptor of the target file as the DIR_FD
62423         parameter and NULL as the file name.  That caused failure with
62424         errno == EFAULT on FreeBSD-8.0-rc2
62426 2009-11-07  Eric Blake  <ebb9@byu.net>
62428         fflush, freadseek: use fseeko, not fseek
62429         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62430         (clear_ungetc_buffer): Avoid potential problems on large files.
62431         * lib/freadseek.c (freadseek): Likewise.
62432         * modules/freadseek (Depends-on): Add fseeko.
62433         * modules/fseek (configure.ac): Set a witness.
62434         * tests/test-fflush.c (main): Use fseeko.
62435         * tests/test-fpurge.c (fseek): Disable link warning.
62436         * tests/test-freadable.c (fseek): Likewise.
62437         * tests/test-freading.c (fseek): Likewise.
62438         * tests/test-fseeko.c (fseek): Likewise.
62439         * tests/test-ftell.c (fseek): Likewise.
62440         * tests/test-ftello.c (fseek): Likewise.
62441         * tests/test-fwritable.c (fseek): Likewise.
62442         * tests/test-fwriting.c (fseek): Likewise.
62444 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62446         * modules/memchr (Depends-on): Drop getpagesize dependency.
62448 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62450         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62451         Reported by Ludovic Courtès.
62452         * build-aux/pmccabe2html: Improve example usage.
62453         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62455 2009-11-06  Jim Meyering  <meyering@redhat.com>
62457         do-release-commit-and-tag: New module.
62458         Automate the release-commit and tag process.
62459         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62460         * modules/do-release-commit-and-tag: New file.
62461         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62463 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62465         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62466         because test-select.c uses inet_pton.
62468 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62470         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62471         GETADDRINFO_LIB.  Bump serial number.
62472         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62473         Suggested by Eric Blake <ebb9@byu.net>.
62475 2009-11-05  Eric Blake  <ebb9@byu.net>
62477         strtod: detect darwin bug
62478         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62479         Reported by Leo Davis.
62481         freopen-safer: new module
62482         * modules/freopen-safer: New module.
62483         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62484         * lib/freopen-safer.c (freopen_safer): New file.
62485         * lib/stdio-safer.h (freopen_safer): New declaration.
62486         * lib/stdio--.h (freopen): New override.
62487         * MODULES.html.sh (File stream based Input/Output): Mention it.
62488         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62489         freopen-safer module.
62490         * doc/posix-functions/stderr.texi (stderr): Likewise.
62491         * doc/posix-functions/stdin.texi (stdin): Likewise.
62492         * doc/posix-functions/stdout.texi (stdout): Likewise.
62493         * modules/freopen-safer-tests: New test.
62494         * tests/test-reopen-safer.c: New file.
62496 2009-11-05  Jim Meyering  <meyering@redhat.com>
62498         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62499         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62501 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62503         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62505 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62507         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62509 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62511         Fix link error.
62512         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62513         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62515 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62517         * tests/test-func.c: Also test value of __func__.
62519 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62521         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62522         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62524 2009-11-05  Bruno Haible  <bruno@clisp.org>
62526         Fix link error.
62527         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62528         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62529         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62531 2009-11-05  Bruno Haible  <bruno@clisp.org>
62533         Tests for module 'inet_pton'.
62534         * modules/inet_pton-tests: New file.
62535         * tests/test-inet_pton.c: New file.
62537 2009-11-05  Bruno Haible  <bruno@clisp.org>
62539         Tests for module 'inet_ntop'.
62540         * modules/inet_ntop-tests: New file.
62541         * tests/test-inet_ntop.c: New file.
62543 2009-11-04  Eric Blake  <ebb9@byu.net>
62545         stdlib-safer: wrap all mkstemp variants
62546         * modules/mkostemp (configure.ac): Set witness.
62547         * modules/mkostemps (configure.ac): Likewise.
62548         * modules/mkstemps (configure.ac): Likewise.
62549         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62550         (mkstemps_safer): Wrap more functions.
62551         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62552         wrapping.
62553         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62554         (mkstemps_safer): Implement the wrappers.
62556         mkstemps, mkostemps: new modules
62557         * modules/mkostemps: New module.
62558         * modules/mkstemps: Likewise.
62559         * lib/mkostemps.c (mkostemps): New file.
62560         * lib/mkstemps.c (mkstemps): Likewise.
62561         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62562         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62564         * modules/stdlib (Makefile.am): Substitute them.
62565         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62566         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62567         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62568         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62569         * MODULES.html.sh (File system functions): Mention them.
62571         tempname: resync from glibc
62572         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62573         same values for __GT_FILE as glibc.  Abort even when assertions
62574         are disabled.
62575         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62576         match its value otherwise.  Allow idempotent inclusion.
62577         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62578         * lib/mkostemp.c (mkostemp): Likewise.
62579         * lib/mkstemp.c (mkstemp): Likewise.
62580         * lib/tmpfile.c (tmpfile): Likewise.
62581         * NEWS: Document this.
62583         utimens: fix use of futimens on older Linux
62584         * lib/utimens.c (fdutimens): Use updated, rather than original,
62585         timespec to avoid bug in older Linux kernel.
62586         Reported by Simon Josefsson.
62588 2009-11-04  Bruno Haible  <bruno@clisp.org>
62590         Make num_processors more flexible and consistent.
62591         * lib/nproc.h (enum nproc_query): New type.
62592         (num_processors): Add a 'query' argument.
62593         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62594         (num_processors): Add a 'query' argument. Test the value of the
62595         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62596         mingw, count the number of CPUs available for the current process.
62597         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62598         Check for sched_getaffinity and sched_getaffinity_np.
62599         * modules/nproc (Depends-on): Add c-ctype, extensions.
62600         * NEWS: Mention the change.
62602 2009-11-03  Bruno Haible  <bruno@clisp.org>
62604         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62606 2009-11-03  Jim Meyering  <meyering@redhat.com>
62608         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62609         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62610         if it is defined.
62612 2009-11-02  Eric Blake  <ebb9@byu.net>
62614         mktime, timegm: share common declaration
62615         * lib/mktime-internal.h: New file.
62616         * lib/mktime.c: Use it rather than open-coding a declaration.
62617         * lib/timegm.c: Likewise.
62618         * modules/mktime (Files): Ship it.
62619         * modules/timegm (Files): Likewise.
62620         Suggested by Bruno Haible.
62622         test-update-copyright: update test to match script changes
62623         * tests/test-update-copyright.sh: Avoid hard-coding perl
62624         location.  Don't update *.bak created by earlier runs.
62626 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62627             Simon Josefsson  <simon@josefsson.org>
62628             Bruno Haible  <bruno@clisp.org>
62630         Fix link error on Solaris 8.
62631         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62632         also in libnsl. Define also INET_PTON_LIB.
62633         * modules/inet_pton (Link): New section.
62635 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62636             Bruno Haible  <bruno@clisp.org>
62638         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62639         * modules/inet_ntop (Link): New section.
62640         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62642 2009-11-02  Eric Blake  <ebb9@byu.net>
62644         maint: avoid compiler warnings in m4 macros
62645         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62646         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62648 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62650         * m4/pmccabe2html.m4: Remove file.
62651         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62652         function.  Change maintainer.
62653         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62654         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62655         Courtès).
62657 2009-10-31  Eric Blake  <ebb9@byu.net>
62659         fseeko: fix m4 regression
62660         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62661         regression from 2009-10-27.
62662         Reported by Ralf Wildenhues.
62664 2009-10-31  Jim Meyering  <meyering@redhat.com>
62666         inttostr: aesthetics and improved (compile-time) safety
62667         Define inttype_is_signed rather than inttype_is_unsigned,
62668         since the sole use is via "#if inttype_is_signed".
62669         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62670         inttype_is_unsigned.
62671         * lib/offtostr.c (inttype_is_signed): Likewise.
62672         * lib/uinttostr.c (inttype_is_signed): Likewise.
62673         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62674         * lib/inttostr.c (inttostr): Use verify to cross-check the
62675         inttype_is_signed value and the signedness of the actual type.
62676         * modules/inttostr (Depends-on): Add verify.
62678 2009-10-30  Eric Blake  <ebb9@byu.net>
62680         build: avoid compiler warnings
62681         * lib/fchmodat.c (lchmod): Mark unused variables.
62682         * lib/getopt.c (_getopt_initialize): Likewise.
62683         * lib/mktime.c (__mktime_internal): Provide prototype.
62684         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62685         older gcc that do not understand #pragma GCC diagnostic.
62686         * lib/uinttostr.c (inttype_is_unsigned): Define.
62687         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62689 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62691         stat: fix compilation on AIX
62692         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62693         only see struct stat64.
62695 2009-10-30  Eric Blake  <ebb9@byu.net>
62697         exclude: make more robust
62698         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62699         rather than masking a coding bug.
62700         Suggested by Bruno Haible.
62702 2009-10-30  Jim Meyering  <meyering@redhat.com>
62704         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62705         Rather than putting #!/usr/bin/perl on the first line,
62706         start with a variant of what's recommended by "man perlrun" that
62707         invokes the first "perl" program from your shell's search path.
62708         * build-aux/gitlog-to-changelog: Replace #!... as above.
62709         Add a "Local Variables" perl mode setting.
62710         Prompted by a patch from Ludovic Courtès.
62711         Improved by Eric Blake.
62712         * build-aux/useless-if-before-free: Likewise.
62713         * build-aux/announce-gen: Likewise.
62714         * build-aux/update-copyright: Likewise.
62716 2009-10-29  Eric Blake  <ebb9@byu.net>
62718         filenamecat-lgpl: adjust clients
62719         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62720         filenamecat.
62721         * modules/renameat (Depends-on): Likewise.
62723         filenamecat: split into filenamecat-lgpl
62724         * modules/filenamecat-lgpl: New module.
62725         * modules/filenamecat (Files): Move library-safe files into
62726         filenamecat-lgpl.
62727         (Depends-on): Add filenamecat-lgpl.
62728         (configure.ac): Declare witness.
62729         * lib/filenamecat.h (file_name_concat): Only declare when using
62730         GPL module.
62731         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62732         Move...
62733         * lib/filenamecat-lgpl.c: ...into new file.
62734         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62735         (gl_FILE_NAME_CONCAT): Use it.
62736         * MODULES.html.sh (File system functions): Mention new module.
62738         argp: avoid memory leak
62739         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62740         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62741         base_name, since the latter malloc()s and can call exit().
62742         Leak introduced 2006-07-03.
62744         dirname-lgpl: adjust clients that don't need full dirname
62745         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62746         * modules/filenamecat (Depends-on): Likewise.
62747         * modules/linkat (Depends-on): Likewise.
62748         * modules/mkancesdirs (Depends-on): Likewise.
62749         * modules/mkdir (Depends-on): Likewise.
62750         * modules/openat (Depends-on): Likewise.
62751         * modules/savewd (Depends-on): Likewise.
62752         * modules/rename (Depends-on): Likewise.
62753         (License): Relax license.
62754         * modules/mkdir-tests (Depends-on): Drop progname.
62755         (Makefile.am): Delete unneeded LDADD.
62756         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62758         dirname: split into dirname-lgpl
62759         * modules/dirname-lgpl: New module.
62760         * modules/dirname (Files): Move library-safe files into
62761         dirname-lgpl.
62762         (Depends-on): Add dirname-lgpl.
62763         (configure.ac): Declare witness.
62764         * modules/double-slash-root (License): Relax license.
62765         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62766         module.
62767         * lib/dirname.c (dir_len, mdir_name): Move...
62768         * lib/dirname-lgpl.c: ...into new file.
62769         * lib/basename.c (last_component, base_len): Move...
62770         * lib/basename-lgpl.c: ...into new file.
62771         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62772         (gl_DIRNAME): Use it.
62773         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62774         Mention new module.
62775         * modules/dirname-tests (Depends-on): Add progname.
62776         * tests/test-dirname.c (program_name): Delete.
62778         mkdir: make safe for libraries
62779         * modules/mkdir (Depends-on): Drop xalloc.
62780         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62781         exit.
62783         tests: avoid some compiler warnings
62784         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62785         literals.
62786         * tests/test-memchr.c (main): Avoid type mismatch.
62787         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62788         * tests/test-base64.c (main): Likewise.
62789         * tests/test-getdelim.c (main): Likewise.
62790         * tests/test-gethostname.c (main): Likewise.
62791         * tests/test-getline.c (main): Likewise.
62792         * tests/test-netinet_in.c (main): Likewise.
62793         * tests/test-select.c (open_server_socket, main): Likewise.
62794         * tests/test-select-stdin.c (main): Likewise.
62795         * tests/test-sockets.c (main): Likewise.
62796         * tests/test-strsignal.c (main): Likewise.
62797         * tests/test-sys_select.c (main): Likewise.
62798         * tests/test-sys_socket.c (main): Likewise.
62799         * tests/test-u64.c (main): Likewise.
62800         * tests/test-xfprintf-posix.c (main): Likewise.
62801         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62803         sockets: avoid compiler warning
62804         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62806         maint: detect usage(1) and other suspicious exits
62807         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62809 2009-10-29  Jim Meyering  <meyering@redhat.com>
62811         timespec: long-to-int truncation could make timespec_cmp malfunction
62812         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62813         a multiple of 2^32 nanoseconds as no difference.
62815 2009-10-28  Jim Meyering  <meyering@redhat.com>
62817         fprintftime: wrap macro code argument in "do {...} while(0)"
62818         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62819         cpy macro must be a statement that can be followed by a semicolon.
62820         Now that the else clause contains a comment and is hence longer
62821         than one line, I require curly braces.  That in turn requires
62822         that we wrap this code block in the standard do...while(0).
62824         fprintftime: remove stray semicolon from previous change
62825         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62827         fprintftime: avoid a warning about ignored fwrite return value
62828         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62829         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62830         that is unsafe.
62831         * modules/fprintftime (Depends-on): Add ignore-value.
62833         exclude: avoid an unwarranted warning
62834         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62836 2009-10-27  Eric Blake  <ebb9@byu.net>
62838         fseek: avoid compilation failure when fflush is replaced
62839         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62840         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62841         module is in use.
62842         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62843         module is not in use; since REPLACE_FSEEK worked otherwise.
62844         (GNULIB_FTELLO): Likewise for ftell.
62845         Reported by Ian Beckwith and others.
62847 2009-10-27  Bruno Haible  <bruno@clisp.org>
62849         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62850         Reported by Jim Meyering.
62852 2009-10-27  Jim Meyering  <jim@meyering.net>
62853             Bruno Haible  <bruno@clisp.org>
62855         Avoid warning despite dropping the return value of fwrite.
62856         * lib/unicodeio.c: Include ignore-value.h.
62857         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62858         * modules/unicodeio (Depends-on): Add ignore-value.
62860 2009-10-26  Eric Blake  <ebb9@byu.net>
62862         areadlinkat: fix fallback path
62863         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62864         pointer and zero.
62866 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62868         Use a better IO block size for modern systems
62869         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62870         * lib/md2.c: Likewise.
62871         * lib/md4.c: Likewise.
62872         * lib/md5.c: Likewise.
62873         * lib/sha1.c: Likewise.
62874         * lib/sha256.c: Likewise.
62875         * lib/sha512.c: Likewise.
62877 2009-10-22  Eric Blake  <ebb9@byu.net>
62879         tests: avoid several compiler warnings
62880         * tests/test-getcwd.c (main): Avoid buffer underflow.
62881         * tests/test-getdate.c (main): String literals are not safe with
62882         putenv, so use setenv.  Declare unused argument.
62883         * modules/getdate-tests (Depends-on): Add setenv.
62884         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62885         problems with string literals in char *.
62886         * tests/test-hash.c (main): Avoid shadowing declaration.
62887         (insert_new): Treat string literals as char const *.
62888         * tests/test-getopt.h (test_getopt): Likewise.
62889         (getopt_loop): Alter types to minimize casting elsewhere.
62890         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62891         (test_getopt_long_posix): Likewise.
62892         (do_getopt_long): Add wrapper to minimize casting.
62893         * tests/test-atexit.c (clear_temp_file): Use void.
62894         * tests/test-areadlink-with-size.c (main): Declare unused
62895         arguments.
62896         * tests/test-areadlink.c (main): Likewise.
62897         * tests/test-areadlinkat-with-size.c (main): Likewise.
62898         * tests/test-areadlinkat.c (main): Likewise.
62899         * tests/test-canonicalize-lgpl.c (main): Likewise.
62900         * tests/test-canonicalize.c (main): Likewise.
62901         * tests/test-dirent-safer.c (main): Likewise.
62902         * tests/test-dirname.c (main): Likewise.
62903         * tests/test-dup2.c (main): Likewise.
62904         * tests/test-fchdir.c (main): Likewise.
62905         * tests/test-fcntl-h.c (main): Likewise.
62906         * tests/test-fcntl-safer.c (main): Likewise.
62907         * tests/test-fdopendir.c (main): Likewise.
62908         * tests/test-fdutimensat.c (main): Likewise.
62909         * tests/test-fflush.c (main): Likewise.
62910         * tests/test-filenamecat.c (main): Likewise.
62911         * tests/test-filevercmp.c (main): Likewise.
62912         * tests/test-fopen-safer.c (main): Likewise.
62913         * tests/test-fopen.c (main): Likewise.
62914         * tests/test-fpending.c (main): Likewise.
62915         * tests/test-fpurge.c (main): Likewise.
62916         * tests/test-freading.c (main): Likewise.
62917         * tests/test-fstatat.c (main): Likewise.
62918         * tests/test-fsync.c (main): Likewise.
62919         * tests/test-futimens.c (main): Likewise.
62920         * tests/test-getndelim2.c (main): Likewise.
62921         * tests/test-gettimeofday.c (main): Likewise.
62922         * tests/test-getopt.c (main): Likewise.
62923         * tests/test-i-ring.c (main): Likewise.
62924         * tests/test-inttypes.c (main): Likewise.
62925         * tests/test-link.c (main): Likewise.
62926         * tests/test-lstat.c (main): Likewise.
62927         * tests/test-math.c (main): Likewise.
62928         * tests/test-md5.c (main): Likewise.
62929         * tests/test-memchr2.c (main): Likewise.
62930         * tests/test-memrchr.c (main): Likewise.
62931         * tests/test-mkdir.c (main): Likewise.
62932         * tests/test-mkdirat.c (main): Likewise.
62933         * tests/test-mkfifoat.c (main): Likewise.
62934         * tests/test-open.c (main): Likewise.
62935         * tests/test-openat-safer.c (main): Likewise.
62936         * tests/test-openat.c (main): Likewise.
62937         * tests/test-quotearg.c (main): Likewise.
62938         * tests/test-rawmemchr.c (main): Likewise.
62939         * tests/test-readlink.c (main): Likewise.
62940         * tests/test-remove.c (main): Likewise.
62941         * tests/test-rename.c (main): Likewise.
62942         * tests/test-renameat.c (main): Likewise.
62943         * tests/test-rmdir.c (main): Likewise.
62944         * tests/test-sha1.c (main): Likewise.
62945         * tests/test-signal.c (main): Likewise.
62946         * tests/test-sigaction.c (main): Likewise.
62947         * tests/test-stat.c (main): Likewise.
62948         * tests/test-stat-time.c (main): Likewise.
62949         * tests/test-stddef.c (main): Likewise.
62950         * tests/test-stdint.c (main): Likewise.
62951         * tests/test-stdio.c (main): Likewise.
62952         * tests/test-stdlib.c (main): Likewise.
62953         * tests/test-strchrnul.c (main): Likewise.
62954         * tests/test-strerror.c (main): Likewise.
62955         * tests/test-string.c (main): Likewise.
62956         * tests/test-strtod.c (main): Likewise.
62957         * tests/test-strverscmp.c (main): Likewise.
62958         * tests/test-symlink.c (main): Likewise.
62959         * tests/test-symlinkat.c (main): Likewise.
62960         * tests/test-sys_stat.c (main): Likewise.
62961         * tests/test-sys_time.c (main): Likewise.
62962         * tests/test-time.c (main): Likewise.
62963         * tests/test-unistd.c (main): Likewise.
62964         * tests/test-unlink.c (main): Likewise.
62965         * tests/test-unlinkat.c (main): Likewise.
62966         * tests/test-utimens.c (main): Likewise.
62967         * tests/test-utimensat.c (main): Likewise.
62968         * tests/test-version-etc.c (main): Likewise.
62969         * tests/test-wchar.c (main): Likewise.
62970         * tests/test-wctype.c (main): Likewise.
62971         * tests/test-xprintf-posix.c (main): Likewise.
62972         * tests/test-posixtm.c (main): Likewise.
62973         (STREQ): Delete unused macro.
62974         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62975         shadowed variables.
62976         * tests/test-memchr.c (main): Likewise.
62978 2009-10-21  Eric Blake  <ebb9@byu.net>
62980         areadlinkat: avoid failure on older glibc
62981         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62982         rather than mis-comparing 0 against FUNC_RESULT of char*.
62984 2009-10-21  Bruno Haible  <bruno@clisp.org>
62986         * modules/stpncpy (License): Relicense under LGPLv2+.
62987         Reported by David Lutterkort <lutter@redhat.com>.
62989 2009-10-20  Eric Blake  <ebb9@byu.net>
62991         utimensat: work around Solaris 9 bug
62992         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62993         has trailing slash bugs.
62994         * tests/test-lutimens.h (test_lutimens): Enhance test.
62995         * tests/test-utimens.h (test_utimens): Likewise.
62996         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62997         * doc/posix-functions/utimes.texi (utimes): Likewise.
62998         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62999         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
63000         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
63001         * doc/posix-functions/futimens.texi (futimens): Likewise.
63003         fdutimensat: new module
63004         * modules/fdutimensat: New file.
63005         * lib/fdutimensat.c (fdutimensat): Likewise.
63006         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
63007         * MODULES.html.sh (File system functions): Mention module.
63008         * modules/fdutimensat-tests: New test.
63009         * tests/test-fdutimensat.c: Likewise.
63011         doc: regenerate INSTALL
63012         * doc/INSTALL: Reflect recent autoconf update.
63013         * doc/INSTALL.ISO: Likewise.
63014         * doc/INSTALL.UTF-8: Likewise.
63016 2009-10-20  Pádraig Brady  <P@draigBrady.com>
63018         acl: warn if ACL support is not detected
63019         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
63021 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
63023         * lib/nproc.h: Add extern "C" block for C++.
63025 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
63026             Bruno Haible  <bruno@clisp.org>
63028         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
63029         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
63030         * doc/posix-functions/isalpha.texi: Likewise.
63031         * doc/posix-functions/isblank.texi: Likewise.
63032         * doc/posix-functions/iscntrl.texi: Likewise.
63033         * doc/posix-functions/isdigit.texi: Likewise.
63034         * doc/posix-functions/isgraph.texi: Likewise.
63035         * doc/posix-functions/islower.texi: Likewise.
63036         * doc/posix-functions/isprint.texi: Likewise.
63037         * doc/posix-functions/ispunct.texi: Likewise.
63038         * doc/posix-functions/isspace.texi: Likewise.
63039         * doc/posix-functions/isupper.texi: Likewise.
63040         * doc/posix-functions/isxdigit.texi: Likewise.
63042 2009-10-18  Bruno Haible  <bruno@clisp.org>
63044         Tests for module 'isblank'.
63045         * modules/isblank-tests: New file.
63046         * tests/test-isblank.c: New file.
63048         New module 'isblank'.
63049         * lib/isblank.c: New file.
63050         * m4/isblank.m4: New file.
63051         * modules/isblank: New file.
63052         * doc/posix-functions/isblank.texi: Mention the new module.
63054 2009-10-18  Bruno Haible  <bruno@clisp.org>
63056         New module 'ctype'.
63057         * lib/ctype.in.h: New file.
63058         * m4/ctype.m4: New file.
63059         * modules/ctype: New file.
63060         * doc/posix-headers/ctype.texi: Mention the new module.
63062 2009-10-18  Jim Meyering  <meyering@redhat.com>
63064         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
63065         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
63066         right after its initialization, rather than farther down.
63067         Keeping these in close proximity makes it easier to ensure
63068         that each such variable is initialized.  E.g.,
63070             LIB_CLOCK_GETTIME=
63071             AC_SUBST([LIB_CLOCK_GETTIME])
63073         This change also increments these serial numbers.
63074         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
63075         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63078 2009-10-18  Bruno Haible  <bruno@clisp.org>
63080         Don't let environment variables perturb build.
63081         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
63082         (gl_PREREQ_GETHRXTIME): ... not here.
63084 2009-10-18  Bruno Haible  <bruno@clisp.org>
63086         Avoid symlink attack in localcharset module.
63087         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
63088         (O_NOFOLLOW): Define fallback.
63089         (get_charset_aliases): Don't open the file if it is a symbolic link.
63090         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
63091         gl_FCNTL_H.
63092         (gl_FCNTL_H): Require it.
63093         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
63094         * modules/localcharset (Files): Add m4/fcntl_h.m4.
63095         Reported by Fergal Glynn <fglynn@veracode.com>.
63097 2009-10-18  Bruno Haible  <bruno@clisp.org>
63099         Implement nproc for mingw.
63100         * lib/nproc.c: Include <windows.h>
63101         (num_processors): On native Windows platforms, try GetSystemInfo.
63103 2009-10-18  Bruno Haible  <bruno@clisp.org>
63105         Implement nproc for IRIX.
63106         * lib/nproc.c: Include <sys/sysmp.h>.
63107         (num_processors): On IRIX systems, try sysmp.
63108         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
63110 2009-10-18  Bruno Haible  <bruno@clisp.org>
63112         Implement nproc for HP-UX.
63113         * lib/nproc.c: Include <sys/pstat.h>
63114         (num_processors): On HP-UX systems, try pstat_getdynamic.
63115         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
63116         pstat_getdynamic.
63118 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
63119             Bruno Haible  <bruno@clisp.org>
63121         Implement nproc for NetBSD, OpenBSD.
63122         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
63123         (ARRAY_SIZE): New macro.
63124         (num_processors): On BSD systems, try sysctl of HW_NCPU.
63125         * m4/nproc.m4: New file.
63126         * modules/nproc (Files): Add m4/nproc.m4.
63127         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
63128         (Makefile.am): Instead, augment lib_SOURCES.
63130 2009-10-18  Bruno Haible  <bruno@clisp.org>
63132         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
63133         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
63134         sys/param.h.
63136 2009-10-16  Eric Blake  <ebb9@byu.net>
63138         utimensat: new module
63139         * modules/utimensat: New file.
63140         * lib/utimensat.c (utimensat): Likewise.
63141         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63142         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
63143         so we can work around Linux bugs.
63144         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63145         * modules/sys_stat (Makefile.am): Substitute them.
63146         * lib/sys_stat.in.h (utimensat): Declare it.
63147         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63148         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63149         * modules/utimensat-tests: New test.
63150         * tests/test-utimensat.c: Likewise.
63152         utimens: let lutimens work on non-symlinks
63153         * lib/utimens.c (lutimens): Fall back to utimens rather than
63154         failing with ENOSYS, when file is not a symlink.
63155         (utimens): Reduce redirection.
63156         * tests/test-lutimens.h (test_lutimens): Update test to cover
63157         non-symlinks.
63158         * tests/test-utimens.h (test_utimens): Update test to cover
63159         symlinks.
63160         * tests/test-utimens.c (main): Update caller.
63162         utimens: cache whether utimensat syscall works
63163         * lib/utimens.c (utimensat_works_really): New cache variable.
63164         (fdutimens, lutimens): Use it to avoid failing syscall.
63166         test-stat-time, test-utimens: improve portability
63167         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
63168         ext4 on alpha, and for cygwin.
63169         * tests/test-utimens-common.h: New file.
63170         (nap): Factor delays into single function.
63171         * tests/test-lutimens.h (test_lutimens): Use new header.
63172         * tests/test-futimens.h (test_futimens): Likewise.
63173         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
63174         timestamps to occur from same machine, as was done previously for
63175         test_utimens.
63176         * modules/utimens-tests (Files): Ship new file.
63177         * modules/futimens-tests (Files): Likewise.
63178         Reported in part by Jim Meyering.
63180         sys_stat: sort replacement declarations
63181         * lib/sys_stat.in.h: Sort declarations.
63182         * lib/futimens.c (futimens): Fix typo.
63184 2009-10-15  Jim Meyering  <meyering@redhat.com>
63186         don't let environment settings perturb build
63187         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
63188         could cause a configure-time and/or build-time malfunction.
63189         Typically, a configure-time function-in-library test is performed
63190         via code like this:
63192           LIB_VAR=
63193           AC_SUBST([LIB_VAR])
63194           prefix_saved_LIBS=$LIBS
63195             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
63196                        [test "$ac_cv_search_FUNC" = "none required" ||
63197                         LIB_VAR=$ac_cv_search_FUNC])
63198           LIBS=$prefix_saved_LIBS
63200         However, in each of the files affected by this change, the LIB_VAR=
63201         initialization was omitted.  Thus, when set in the environment, its
63202         value would propagate into generated Makefiles when FUNC is not found
63203         in LIB_NAME.
63204         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
63205         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63208 2009-10-14  Eric Blake  <ebb9@byu.net>
63210         fchdir: avoid infinite recursion in mingw
63211         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
63212         recursing.
63214         test-stat-time: port to mingw
63215         * tests/test-stat-time.c (force_unlink): Return a value.
63216         (test_ctime) [W32]: Fix compilation error.
63217         (nap): Don't call usleep with too large an argument.  Use
63218         force_unlink.
63219         * doc/pastposix-functions/usleep.texi (usleep): Document the
63220         portability issue.
63222 2009-10-13  Jim Meyering  <meyering@redhat.com>
63224         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
63225         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
63226         * modules/pipe-filter-ii: Likewise.
63227         * modules/sys_socket-tests: Likewise.
63228         * modules/tsearch-tests: Likewise.
63229         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
63230         (check): Depend on it.
63232 2009-10-12  Eric Blake  <ebb9@byu.net>
63234         utimens-tests: port to NFS file systems
63235         * tests/test-utimens.h (test_utimens): Refactor utimecmp
63236         comparisons to avoid spurious failures from timestamp drift
63237         between NFS machines.
63239 2009-10-12  Eric Blake  <ebb9@byu.net>
63241         stat-time-tests: minor cleanups
63242         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
63243         * tests/test-stat-time.c (nap): Separate assignment from call.
63244         Suggested by Paolo Bonzini and Bruno Haible.
63246         sys_stat: guarantee struct timespec
63247         * lib/sys_stat.in.h (includes): Always include <time.h>
63248         * modules/sys_stat (Depends-on): Add time.
63249         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
63250         mode_t permission values.
63251         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
63252         get at subsecond timestamps.
63254 2009-10-10  Eric Blake  <ebb9@byu.net>
63256         futimens: new module
63257         * modules/futimens: New file.
63258         * lib/futimens.c (futimens): Likewise.
63259         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
63260         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
63261         we can work around Linux bugs.
63262         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63263         * modules/sys_stat (Makefile.am): Substitute them.
63264         * lib/sys_stat.in.h (futimens): Declare it.
63265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63266         * doc/posix-functions/futimens.texi (futimens): Likewise.
63267         * modules/futimens-tests: New test.
63268         * tests/test-futimens.c: Likewise.
63270         utimens: introduce fdutimens
63271         * lib/utimens.h (fdutimens): New prototype.
63272         * lib/utimens.c (gl_futimens): Move guts...
63273         (fdutimens): ...to new interface.
63274         * tests/test-utimens.c (do_fdutimens): Use it.
63276         utimens: add UTIME_NOW and UTIME_OMIT support
63277         * lib/utimens.c (validate_timespec, update_timespec): New helper
63278         functions.
63279         (gl_futimens, lutimens): Use them.
63280         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
63281         stdbool, sys_stat.
63282         (Link): Mention resulting library dependency.
63283         * modules/utimecmp (Link): Likewise.
63284         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
63285         (Makefile.am): Pick up library dependency.
63286         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
63287         definition.
63288         * tests/test-sys_stat.c: Test the definitions.
63289         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
63290         * NEWS: Document library dependency.
63292         utimecmp: support symlink timestamps
63293         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
63294         hashing when possible.  Use pathconf when available.
63295         (SYSCALL_RESOLUTION): Recognize tighter resolution.
63296         * modules/utimecmp (Depends-on): Add lstat.
63298         utimens: add lutimens interface
63299         * lib/utimens.c (lutimens): New function.
63300         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
63301         * lib/utimens.h (lutimens): Declare new interface.
63302         * tests/test-utimens.c (main): Enhance test.
63303         * tests/test-lutimens.h (test_lutimens): New file.
63304         * modules/utimens-tests (Files): Distribute it.
63305         (Depends-on): Add symlink.
63306         (configure.ac): Check for usleep.
63308         utimens: validate futimens usage
63309         * lib/utimens.c (gl_futimens): Require valid fd up front, using
63310         fewer syscalls on failure later on.  Avoid compiler warning on
63311         mingw.
63312         * modules/utimens (Depends-on): Add dup2.
63314         utimens: add test
63315         * modules/utimens-tests: New test.
63316         * tests/test-utimens.h: New file.
63317         * tests/test-futimens.h: Likewise.
63318         * tests/test-utimens.c: Likewise.
63320         doc: mention timestamp portability issues
63321         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
63322         instead.
63323         * doc/posix-functions/utime.texi (utime): Likewise.
63324         * doc/posix-functions/utimes.texi (utimes): Likewise.
63325         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
63326         instead.
63327         * doc/posix-functions/futimens.texi (futimens): Mention utimens
63328         module.
63329         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63330         Mention weakness with symlink timestamps.
63331         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63332         to utimensat/futimens instead.
63333         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63335         test-dup2: enhance test
63336         * tests/test-dup2.c (main): Also check AT_FDCWD.
63338         test-stat-time: avoid more spurious failures
63339         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63340         xfs; and avoid race if the two timestamps cross quantization edge.
63342         relocatable: prefer 'file system' over 'filesystem'
63343         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63344         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63345         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63346         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63347         * lib/relocatable.c (compute_curr_prefix): Likewise.
63349 2009-10-10  Jim Meyering  <meyering@redhat.com>
63351         stat-time-tests: check for the usleep function
63352         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63354 2009-10-10  Bruno Haible  <bruno@clisp.org>
63356         * modules/xnanosleep: Put the Link section after the Include section.
63358 2009-10-09  Eric Blake  <ebb9@byu.net>
63360         dup2: work around FreeBSD 6.1 bug
63361         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63362         * doc/posix-functions/dup2.texi (dup2): Document it.
63363         Reported by Nelson H. F. Beebe and Jim Meyering.
63365         test-stat-time: port to buggy NFS clients
63366         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63367         (test_ctime): Also skip test if mtime and ctime are skewed.
63369         maint: prefer 'file system' over 'filesystem'
63370         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63371         * doc/posix-functions/lstat.texi (lstat): Likewise.
63372         * lib/file-has-acl.c (file_has_acl): Likewise.
63373         * lib/fwriteerror.c [TEST]: Likewise.
63374         * tests/test-areadlink.h (test_areadlink): Likewise.
63375         * tests/test-areadlinkat-with-size.c (main): Likewise.
63376         * tests/test-areadlinkat.c (main): Likewise.
63377         * tests/test-canonicalize-lgpl.c (main): Likewise.
63378         * tests/test-canonicalize.c (main): Likewise.
63379         * tests/test-fstatat.c (main): Likewise.
63380         * tests/test-linkat.c (main): Likewise.
63381         * tests/test-lstat.h (test_lstat_func): Likewise.
63382         * tests/test-mkdir.h (test_mkdir): Likewise.
63383         * tests/test-readlink.h (test_readlink): Likewise.
63384         * tests/test-remove.c (main): Likewise.
63385         * tests/test-rename.h (test_rename): Likewise.
63386         * tests/test-renameat.c (main): Likewise.
63387         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63388         * tests/test-symlink.h (test_symlink): Likewise.
63389         * tests/test-symlinkat.c (main): Likewise.
63390         * tests/test-unlink.h (test_unlink_func): Likewise.
63391         * tests/test-unlinkat.c (main): Likewise.
63393         maint: make realtime library usage explicit
63394         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63395         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63396         * modules/settime (Link): Likewise.
63397         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63399         test-stat-time: speed up execution
63400         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63401         warning on mingw.
63402         (nap): New helper function.
63403         (prepare_test): Use it to reduce sleep time.
63404         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63405         execution.
63406         * modules/stat-time-tests (configure.ac): Check for usleep.
63408 2009-10-09  Jim Meyering  <meyering@redhat.com>
63410         selinux-h: always use getfilecon wrappers
63411         * lib/getfilecon.c: New file.
63412         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63413         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63414         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63415         (fgetfilecon): Provide a stub.
63416         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63417         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63418         file unconditionally.
63419         When <selinux/selinux.h> is found, arrange to use wrappers.
63420         * modules/selinux-h (Files): Add getfilecon.c.
63421         (Makefile.am): Substitute include-next-related bits
63422         into the now-always-generated selinux/selinux.h file.
63423         * doc/glibc-functions/lgetfilecon.texi: New file.
63424         * doc/glibc-functions/fgetfilecon.texi: New file.
63425         * doc/glibc-functions/getfilecon.texi: New file.
63426         * doc/glibc-functions/getfilecon-desc.texi: New file.
63427         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63428         which to pull in the new files.
63429         * MODULES.html.sh (Misc): Add selinux-h.
63431 2009-10-08  Jim Meyering  <meyering@redhat.com>
63433         unistd: fix comment typo
63434         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63436 2009-10-08  Eric Blake  <ebb9@byu.net>
63438         areadlink: use SIZE_MAX consistently
63439         * modules/areadlink (Depends-on): Add stdint.
63440         * modules/areadlink-with-size (Depends-on): Likewise.
63441         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63442         gives NULL; drop sys/types, since unistd gives size_t; and add
63443         stdint for SIZE_MAX.
63444         (SIZE_MAX): Rely on headers.
63445         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63446         and add stdint.
63447         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63448         (SIZE_MAX): Likewise.
63449         (INITIAL_BUF_SIZE): Turn into enum.
63450         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63452 2009-10-08  Jim Meyering  <meyering@redhat.com>
63454         areadlinkat: avoid compilation failure
63455         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63456         Fix typo in comment.
63458 2009-10-07  Eric Blake  <ebb9@byu.net>
63460         areadlinkat-with-size: new module
63461         * modules/areadlinkat-with-size: New module.
63462         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63463         * lib/areadlink.h (areadlinkat): Declare it.
63464         * MODULES.html.sh (File system functions): Mention it.
63465         * modules/areadlinkat-with-size-tests: New test.
63466         * tests/test-areadlinkat-with-size.c: New file.
63468         xreadlinkat: new module
63469         * modules/xreadlinkat: New module.
63470         * lib/xreadlinkat.c (xreadlinkat): New file.
63471         * lib/xreadlink.h (xreadlinkat): Declare it.
63472         * MODULES.html.sh (File system functions): Mention it.
63474         areadlinkat: new module
63475         * lib/at-func.c (FUNC_FAIL): New define.
63476         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63477         * modules/areadlinkat: New module.
63478         * lib/linkat.c (areadlinkat): Move...
63479         * lib/areadlinkat.c (areadlinkat): ...to new file.
63480         * lib/areadlink.h (areadlinkat): Declare it.
63481         * modules/linkat (Depends-on): Add areadlinkat.
63482         * MODULES.html.sh (File system functions): Mention it.
63483         * modules/areadlinkat-tests: New test.
63484         * tests/test-areadlinkat.c: New file.
63486         areadlink, areadlink-with-size: add tests
63487         * modules/areadlink-tests: New test.
63488         * modules/areadlink-with-size-tests: Likewise.
63489         * tests/test-areadlink.h: New file.
63490         * tests/test-areadlink.c: Likewise.
63491         * tests/test-areadlink-with-size.c: Likewise.
63493         maint: minor cleanups
63494         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63495         _UNUSED_PARAMETER_ instead.
63496         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63497         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63498         * modules/linkat-tests (Files): Distribute test-link.h.
63500         openat, utimens: whitespace cleanup
63501         * lib/openat.c: Prefer space throughout, rather than mix of 8
63502         spaces vs. tabs.
63503         * lib/at-func.c: Likewise.
63504         * lib/utimens.c: Likewise.
63506         openat: avoid using wrong fd
63507         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63508         working directory chooses same fd.
63509         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63511         mkdir, mkdirat: fix cygwin 1.5.x bug
63512         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63513         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63514         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63515         bug.
63516         (gl_PREREQ_MKDIR): Delete unused macro.
63517         * modules/mkdir (Files): Track file rename.
63518         (configure.ac): Update macro name.
63519         * modules/openat (Depends-on): Add mkdir.
63520         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63522         mkdir, mkdirat: add tests
63523         * modules/mkdir-tests: New test.
63524         * tests/test-mkdir.h: New file.
63525         * tests/test-mkdir.c: Likewise.
63526         * tests/test-mkdirat.c: Likewise.
63527         * modules/openat-tests (Files): Add new files.
63528         (Makefile.am): Run new test.
63530 2009-10-06  Eric Blake  <ebb9@byu.net>
63532         doc: tweak *at function documentation
63533         * doc/posix-functions/faccessat.texi (faccessat): Mention
63534         known issue with replacement.
63535         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63536         * doc/posix-functions/linkat.texi (linkat): Likewise.
63537         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63538         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63539         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63540         * doc/posix-functions/renameat.texi (renameat): Likewise.
63541         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63543         openat: fix GNU/Hurd bug in unlinkat
63544         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63545         broken.
63546         * doc/posix-functions/unlink.texi (unlink): Document this.
63547         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63549         fdopendir: fix GNU/Hurd bug
63550         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63551         allowing non-directory fds.
63552         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63553         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63554         * modules/dirent (Makefile.am): Substitute it.
63555         * lib/dirent.in.h (fdopendir): Declare replacement.
63556         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63557         * tests/test-fdopendir.c (main): Test something other than
63558         /dev/null, since on Hurd that behaves like a directory.
63560         test-symlink: port to GNU/Hurd
63561         * tests/test-symlink.h (test_symlink): Relax expected errno.
63563         doc: tweak more cygwin information
63564         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63565         now compatible with glibc.
63566         * doc/posix-functions/getopt.texi (getopt): Likewise.
63568         getopt-gnu: add another test
63569         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63570         guarantee behavior relied on by m4.
63571         * tests/test-getopt.c (main): Use it.
63572         * modules/getopt-posix-tests (Depends-on): Add setenv.
63573         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63575         getopt: fix compilation on darwin
63576         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63577         include.
63578         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63579         Reported by Ludovic Courtès.
63581 2009-10-06  Bruno Haible  <bruno@clisp.org>
63583         * modules/size_max (Description): Discourage its use.
63584         Reported by Simon Josefsson.
63586 2009-10-06  Jim Meyering  <meyering@redhat.com>
63588         linkat: avoid compilation failure
63589         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63591 2009-10-05  Eric Blake  <ebb9@byu.net>
63593         linkat: support Linux 2.6.17
63594         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63595         linkat on Linux, but allow cache variable override.
63596         * lib/linkat.c (rpl_linkat): Define override.
63597         * modules/linkat (Depends-on): Add symlinkat.
63598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63599         * modules/unistd (Makefile.am): Substitute it.
63600         * lib/unistd.in.h (linkat): Declare replacement.
63601         Reported by Pádraig Brady.
63603         quotearg: port test to systems with C.UTF-8 locale
63604         * tests/test-quotearg.c (struct result_strings): Add another
63605         member, differentiating between C.ASCII and C.UTF-8 handling.
63606         (compare_strings): Add parameter.
63607         (main): Adjust all callers.
63609         getopt: avoid clash with FreeBSD _getopt_internal
63610         * lib/getopt.in.h (_getopt_internal): Override the name.
63611         * lib/getopt_int.h (includes): Pick up any overrides.
63612         Reported by Reuben Thomas.
63614         hash: allow C89 compilation
63615         * lib/hash.c (check_tuning): Move declaration before statement.
63616         Reported by Reuben Thomas.
63618 2009-10-05  Karl Berry  <karl@gnu.org>
63620         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63622 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63623             Bruno Haible  <bruno@clisp.org>
63625         * lib/uname.c (uname): Use a table-driven algorithm to compute
63626         Windows NT versions.
63628 2009-10-04  Bruno Haible  <bruno@clisp.org>
63630         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63631         program_invocation_short_name.
63632         * modules/progname (configure.ac): Test for presence of
63633         program_invocation_short_name.
63634         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63636 2009-10-04  Bruno Haible  <bruno@clisp.org>
63638         * lib/progname.c (set_program_name): Fix comment.
63639         Reported by Jim Meyering.
63641 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63642             Bruno Haible  <bruno@clisp.org>
63644         * lib/uname.c: Include <string.h>.
63645         (uname): Do only one call to GetVersionEx in the common case.
63647 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63648             Bruno Haible  <bruno@clisp.org>
63650         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63651         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63652         (uname): Add support for Windows CE and various non-x86 CPU types.
63654 2009-10-03  Bruno Haible  <bruno@clisp.org>
63656         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63657         invocation to tests/configure.ac.
63658         Reported by Ian Beckwith <ianb@erislabs.net>.
63660 2009-10-02  Eric Blake  <ebb9@byu.net>
63662         fchdir: avoid compiler warning
63663         * lib/fchdir.c (canonicalize_file_name)
63664         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63666         test-open: support mingw errno values
63667         * tests/test-open.h (test_open): Relax test.
63668         * tests/test-fopen.h (test_fopen): Likewise.
63669         * tests/test-openat-safer.c (main): Likewise.
63671         open: fix opening directory on mingw
63672         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63674         test-open: on GNU/Hurd, /dev/null is a directory
63675         * tests/test-fopen.h (main): Rename...
63676         (test_fopen): ...to this.  Use a guaranteed non-directory when
63677         confirming open behavior on trailing slash.
63678         * tests/test-openat-safer.c (main): Likewise.
63679         * tests/test-open.h (main): Likewise....
63680         (test_open): ...to this.
63681         * tests/test-fopen.c (main): Adjust caller.
63682         * tests/test-fopen-safer.c (main): Likewise.
63683         * tests/test-open.c (main): Likewise.
63684         * tests/test-fcntl-safer.c (main): Likewise.
63685         Reported by Samuel Thibault.
63687         rename, fchdir: don't ignore chdir failure
63688         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63689         * lib/rename.c (rpl_rename) [W32]: Likewise.
63690         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63691         an empty destination directory if source cannot be renamed,
63692         although there is still possibility for failure.
63693         * doc/posix-functions/rename.texi (rename): Document the race.
63694         Reported by Jim Meyering.
63696         maint: cleanup whitespace in recent commits
63697         * lib/rename.c (rpl_rename): Remove tabs.
63698         * tests/test-link.h (test_link): Likewise.
63699         * lib/fchdir.c (get_name): Likewise.
63700         Reported by Jim Meyering.
63702 2009-10-02  Ben Pfaff  <blp@gnu.org>
63704         relocatable-prog-wrapper: Add missing dependency on
63705         double-slash-root.
63706         * modules/relocatable-prog-wrapper: Add dependency.
63707         Reported by Ian Beckwith <ianb@erislabs.net>.
63709 2009-10-02  Eric Blake  <ebb9@byu.net>
63711         renameat: fix Solaris bugs
63712         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63713         needed fixing.
63714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63715         * modules/stdio (Makefile.am): Substitute it.
63716         * lib/stdio.in.h (renameat): Declare replacement.
63717         * lib/renameat.c (rpl_renameat): Implement fix.
63719         renameat: new module
63720         * modules/renameat: New file.
63721         * lib/renameat.c (renameat): Likewise.
63722         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63724         * modules/stdio (Makefile.am): Substitute them.
63725         * lib/stdio.in.h (renameat): Declare it.
63726         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63727         * doc/posix-functions/renameat.texi (renameat): Likewise.
63728         * modules/renameat-tests: New test.
63729         * tests/test-renameat.c: Likewise.
63731         rename: fix mingw bugs
63732         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63733         directory overwrite bugs.
63735         rename: fix another cygwin 1.5 bug
63736         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63737         checks.
63738         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63739         unnecessary cygwin workarounds.  Also work around bug with moving
63740         full directory onto an empty one.
63741         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63743         rename-dest-slash: merge into rename module
63744         * modules/rename-dest-slash (Status): Mark obsolete.
63745         (Depends-on): Add rename.
63746         (Files): Let rename do it all.
63747         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63748         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63749         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63750         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63751         * lib/rename.c (rpl_rename): Update comments.
63753         rename: fix cygwin 1.5.x bugs
63754         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63755         * lib/rename.c (rpl_rename): Work around them.
63756         * modules/rename (Depends-on): Add same-inode.
63758         rename: fix Solaris 10 bug
63759         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63760         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63761         was the only bug.
63763         rename: fix Solaris 9 bug
63764         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63765         on non-directory.  Avoid calling exit.
63766         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63767         strdup.
63768         * modules/rename-tests (Depends-on): Drop lstat.
63769         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63770         (gl_PREREQ_RENAME): Delete unused macro.
63772         rename-dest-slash: fix NetBSD bug
63773         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63774         links.
63775         * modules/rename-dest-slash (Depends-on): Add same-inode.
63777         rename-tests: new test, exposes several platform bugs
63778         * modules/rename-tests: New file.
63779         * tests/test-rename.h: Likewise.
63780         * tests/test-rename.c: Likewise.
63781         * doc/posix-functions/rename.texi (rename): Improve documentation,
63782         including bugs that will eventually be fixed in gnulib.
63784 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63786         * lib/uname.c: Include <stdlib.h>
63787         (uname): Assume version info is available.
63789 2009-10-02  Jim Meyering  <meyering@redhat.com>
63791         gnu-web-doc-update: correct --help output
63792         * build-aux/gnu-web-doc-update: Make --help output relevant.
63794         gnu-web-doc-update: add standard options
63795         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63797         gnu-web-doc-update: New module.
63798         Use this script to automatically update the on-line web documentation
63799         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63800         * modules/gnu-web-doc-update: New file, from coreutils.
63801         * build-aux/gnu-web-doc-update: New script.
63803 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63805         link: LoadLibrary is not needed.
63806         * lib/link.c: Use GetModuleHandle.
63808 2009-10-01  Eric Blake  <ebb9@byu.net>
63810         getopt: bump serial number
63811         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63812         change.
63814         tests: tighten link, rmdir, and remove tests
63815         * tests/test-link.h (includes): No need to use <config.h> here.
63816         Clean up if directory hard link was created, otherwise test for
63817         trailing '.'.
63818         * tests/test-linkat.c (main): Simplify.
63819         * tests/test-remove.c (main): Enhance test for trailing '.'.
63820         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63822 2009-10-01  Jim Meyering  <meyering@redhat.com>
63824         maint.mk: requiring "make major" was annoying, for a "minor" release.
63825         What is intended is "stable", to contrast with alpha and beta,
63826         so require "make stable", not "make major".
63827         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63828         (get_tool_versions): Likewise.
63829         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63831 2009-09-30  Ben Pfaff  <blp@gnu.org>
63833         Fix broken build of replacement for Windows tmpfile().
63834         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63835         flags argument added along with the 'mkostemp' module.
63837 2009-09-28  Bruno Haible  <bruno@clisp.org>
63839         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63840         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63841         to 'remove_elt'.
63842         (gl_list_remove): Update.
63843         * lib/gl_list.c (gl_list_remove): Update.
63844         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63845         to 'remove_elt'.
63846         (gl_oset_remove): Update.
63847         * lib/gl_list.c (gl_oset_remove): Update.
63848         Reported by Eric Blake.
63850 2009-09-28  Eric Blake  <ebb9@byu.net>
63852         doc: mention yet more cygwin 1.7 status
63853         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63854         cygwin.
63855         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63856         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63858         argp: fix test failure
63859         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63860         that are not upper-case.  Pass correct range to tolower.
63862 2009-09-27  Jim Meyering  <meyering@redhat.com>
63864         test-yesno: work around sparc-dash here-document infelicity
63865         Without this change, the literal \177 byte in a here document
63866         would make dash 0.5.5.1-3 access uninitialized memory.
63867         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63868         Instead, use a marker, "@", and filter through tr to create the desired
63869         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63871 2009-09-27  Bruno Haible  <bruno@clisp.org>
63873         Disable untested support for new flavours of ACLs on AIX.
63874         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63875         progress.
63876         * lib/set-mode-acl.c (qset_acl): Likewise.
63878 2008-12-07  Bruno Haible  <bruno@clisp.org>
63880         Add support for new flavours of ACLs on AIX. (Untested.)
63881         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63882         (file_has_acl): Add support for newer AIX.
63883         * lib/set-mode-acl.c (qset_acl): Likewise.
63884         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63885         Rainer Tammer <tammer@tammer.net>.
63887 2009-09-26  Eric Blake  <ebb9@byu.net>
63889         argp: fix compilation of getopt
63890         * lib/getopt.in.h (includes): Use different guard than glibc.
63891         Reported by Sergey Poznyakoff.
63893         doc: mention more cygwin 1.7 status
63894         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63895         bug.
63896         * doc/posix-functions/execl.texi (execl): Likewise.
63897         * doc/posix-functions/execle.texi (execle): Likewise.
63898         * doc/posix-functions/execlp.texi (execlp): Likewise.
63899         * doc/posix-functions/execv.texi (execv): Likewise.
63900         * doc/posix-functions/execve.texi (execve): Likewise.
63901         * doc/posix-functions/execvp.texi (execvp): Likewise.
63902         * doc/glibc-functions/canonicalize_file_name.texi
63903         (canonicalize_file_name): Cygwin 1.7 now provides this.
63904         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63905         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63906         on AT_SYMLINK_NOFOLLOW.
63908 2009-09-24  Eric Blake  <ebb9@byu.net>
63910         test-linkat: make test more robust
63911         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63913         getopt: fix inclusion guards for cygwin
63914         * modules/getopt-posix (Depends-on): Add include-next.
63915         (Makefile.am): Substitute more items in replacement header.
63916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63917         <getopt.h>.
63918         * lib/getopt.in.h (includes): Use split inclusion guard, and
63919         prefer <getopt.h> over include <unistd.h> when one is present.
63920         (option): Also override name of 'struct option'.
63922         same-inode: revert prior change; it is not yet ready
63923         * NEWS: Undo mention of this change.
63924         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63925         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63926         * lib/cycle-check.c (cycle_check): Likewise.
63927         * lib/same.c (same_name): Likewise.
63928         * lib/at-func2.c (at_func2): Likewise.
63930 2009-09-23  Eric Blake  <ebb9@byu.net>
63932         linkat: new module
63933         * modules/linkat: New file.
63934         * lib/at-func2.c (at_func2): Likewise.
63935         * lib/linkat.c (linkat): Likewise.
63936         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63937         * lib/openat-priv.h (at_func2): Add declaration.
63938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63939         * modules/unistd (Makefile.am): Substitute them.
63940         * lib/unistd.in.h (linkat): Declare it.
63941         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63942         * doc/posix-functions/linkat.texi (linkat): Likewise.
63943         * doc/posix-functions/link.texi (link): Tweak wording.
63944         * tests/test-link.c (main): Move guts...
63945         * tests/test-link.h (test_link): ...into new file.
63946         * modules/linkat-tests: New test.
63947         * tests/test-linkat.c: Likewise.
63948         * modules/link-tests (Files): Ship new file.
63949         (Depends-on): Add stdbool.
63951         dirname: add library-safe mdir_name
63952         * lib/dirname.h (mdir_name): New prototype.
63953         * lib/dirname.c (dir_name): Move guts...
63954         (mdir_name): ...to new function that avoids xalloc_die.
63956         fchdir: another mingw fix
63957         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63958         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63959         on mingw (where it has not yet been ported), and make it optional
63960         elsewhere.
63961         (_gl_register_fd): Use it.
63963         same-inode: make SAME_INODE tri-state, to port to mingw
63964         * NEWS: Mention this change.
63965         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63966         st_ino always being 0.
63967         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63968         * lib/cycle-check.c (cycle_check): Likewise.
63969         * lib/same.c (same_name): Likewise.
63971         lstat: avoid mingw compilation error
63972         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63973         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63974         lstat ourselves.
63975         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63976         was adequate.
63977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63978         the checks for lstat.
63979         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63981         link: fix test failure on Solaris 9
63982         * lib/link.c (rpl_link): Don't assume link will catch bogus
63983         trailing slash on source.
63985         test-symlinkat: enhance test
63986         * tests/test-readlink.c (main): Move guts...
63987         * tests/test-readlink.h (test_readlink): ...into new file.
63988         * tests/test-symlink.c (main): Move guts...
63989         * tests/test-symlink.h (test_symlink): ...into new file.
63990         * tests/test-symlinkat.c (main): Use new files for further
63991         coverage.
63992         (do_symlink, do_readlink): New helper functions.
63993         * modules/symlink-tests (Files): Ship new file.
63994         (Depends-on): Add stdbool.
63995         * modules/readlink-tests (Files): Ship new file.
63996         (Depends-on): Add stdbool.
63997         * modules/symlinkat-tests (Files): Use new files.
63999 2009-09-23  Eric Blake  <ebb9@byu.net>
64001         readlink: document portability issue with symlink length
64002         * doc/posix-functions/lstat.texi (lstat): Mention that some file
64003         systems have bogus st_size on symlinks, and mention the
64004         areadlink-with-size module.
64005         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
64006         * doc/posix-functions/readlink.texi (readlink): Mention the
64007         areadlink module, and ERANGE failure.
64008         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64009         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
64011         readlink: fix Solaris 9 bug with trailing slash
64012         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
64013         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
64014         * doc/posix-functions/readlink.texi (readlink): Document this.
64015         * modules/readlink-tests: New test.
64016         * tests/test-readlink.c: Likewise.
64018         readlink: fix cygwin 1.5.x bug with return type
64019         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
64020         * lib/unistd.in.h (readlink): Use ssize_t.
64021         * lib/readlink.c (readlink): Likewise.
64022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64023         * modules/unistd (Makefile.am): Substitute it.
64024         * lib/unistd.in.h (readlink): Declare replacement.
64025         * doc/posix-functions/readlink.texi (readlink): Document this.
64027         symlink: use throughout gnulib
64028         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
64029         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
64030         symlink is not used.
64031         * modules/symlinkat (Depends-on): Add symlink.
64032         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64033         * modules/canonicalize-tests (Depends-on): Likewise.
64034         * modules/lstat-tests (Depends-on): Likewise.
64035         * modules/openat-tests (Depends-on): Likewise.
64036         * modules/remove-tests (Depends-on): Likewise.
64037         * modules/rmdir-tests (Depends-on): Likewise.
64038         * modules/unlink-tests (Depends-on): Likewise.
64039         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
64040         * tests/test-canonicalize.c (symlink): Likewise.
64041         * tests/test-fstatat.c (symlink): Likewise.
64042         * tests/test-lstat.c (symlink): Likewise.
64043         * tests/test-remove.c (symlink): Likewise.
64044         * tests/test-rmdir.c (symlink): Likewise.
64045         * tests/test-unlink.c (symlink): Likewise.
64046         * tests/test-unlinkat.c (symlink): Likewise.
64048         symlink: new module, for Solaris 9 bug
64049         * modules/symlink: New file.
64050         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
64051         * lib/symlink.c: Likewise.
64052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
64053         * modules/unistd (Makefile.am): Substitute them.
64054         * lib/unistd.in.h (symlink): Declare replacement.
64055         * MODULES.html.sh (File system functions): Mention it.
64056         * doc/posix-functions/symlink.texi (symlink): Likewise.
64057         * modules/symlink-tests: New test.
64058         * tests/test-symlink.c: Likewise.
64060 2009-09-23  Bruno Haible  <bruno@clisp.org>
64062         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
64063         when needed.
64064         Test case: gnulib-tool --import --with-tests atexit inttypes.
64065         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
64067 2009-09-23  Bruno Haible  <bruno@clisp.org>
64069         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
64070         subcommand, not in a subshell.
64072 2009-09-22  Eric Blake  <ebb9@byu.net>
64074         unistd: sort replacement declarations
64075         * lib/unistd.in.h: Sort declarations.
64077         open, openat: minor optimization
64078         * lib/open.c (open): If open succeeded, len is non-zero.
64079         * lib/openat.c (rpl_openat): Likewise.
64081         link-follow: ensure correct result
64082         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
64083         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
64084         distinguish between possible failures.
64086 2009-09-21  Eric Blake  <ebb9@byu.net>
64088         fts: avoid compiler warning
64089         * lib/fts.c (dirent_inode_sort_may_be_useful)
64090         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
64092 2009-09-19  Bruno Haible  <bruno@clisp.org>
64094         * lib/progreloc.c (canonicalize_file_name): New declaration.
64096 2009-09-19  Eric Blake  <ebb9@byu.net>
64098         link: fix quoting
64099         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
64101         openat: fix openat bugs on Solaris 9
64102         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
64103         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
64104         * modules/openat (Depends-on): Add open.
64105         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
64106         * modules/fcntl-h (Makefile.am): Substitute it.
64107         * lib/fcntl.in.h (openat): Declare replacement.
64108         * doc/posix-functions/openat.texi (openat): Document this.
64110         openat: move fstatat and unlinkat into correct files
64111         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
64112         compiled.
64113         * lib/openat.c (fstatat, unlinkat): Move...
64114         * lib/fstatat.c (fstatat): ...into correct files.
64115         * lib/unlinkat.c (unlinkat): Likewise.
64117         openat: fix unlinkat bugs on Solaris 9
64118         * lib/unlinkat.c (unlinkat): New file.
64119         * modules/openat (Depends-on): Add unlink.
64120         (Files): Distribute it.
64121         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
64122         trailing slash behavior is broken.
64123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64124         * modules/unistd (Makefile.am): Substitute it.
64125         * lib/unistd.in.h (unlinkat): Declare replacement.
64126         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
64128         openat: fix fstatat bugs on Solaris 9
64129         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
64130         stat.
64131         * doc/posix-functions/fstatat.texi (fstatat): Document this.
64133         test-unlinkat: enhance test, to expose Solaris 9 bug
64134         * tests/test-unlink.c (main): Factor guts...
64135         * tests/test-unlink.h (test_rmdir_func): ...into new file.
64136         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
64137         * tests/test-rmdir.c (main): Adjust caller.
64138         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
64139         (unlinker): New helper function.
64140         (rmdirat): Enhance check.
64141         * modules/rmdir-tests (Depends-on): Add stdbool.
64142         * modules/unlink-tests (Depends-on): Likewise.
64143         (Files): Add test-unlink.h.
64144         * modules/openat-tests (Files): Likewise.
64145         (Depends-on): Add unlinkdir.
64147         test-fstatat: new test, to expose Solaris 9 bugs
64148         * tests/test-stat.c (main): Factor guts...
64149         * tests/test-stat.h (test_stat_func): ...into new file.
64150         * tests/test-lstat.c (main): Factor guts...
64151         * tests/test-lstat.h (test_lstat_func): ...into new file.
64152         * tests/test-fstatat.c: New file.
64153         * modules/stat-tests (Files): Add test-stat.h.
64154         * modules/lstat-tests (Files): Add test-lstat.h.
64155         (Depends-on): Add stdbool.
64156         * modules/openat-tests (Depends-on): Add pathmax.
64157         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
64158         (Makefile.am): Run new test.
64160         remove: new module, for mingw and Solaris 9 bugs
64161         * modules/remove: New file.
64162         * lib/remove.c: Likewise.
64163         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
64164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
64165         * modules/stdio (Makefile.am): Use them.
64166         * lib/stdio.in.h (remove): Declare replacement.
64167         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64168         * doc/posix-functions/remove.texi (remove): Likewise.
64169         * modules/remove-tests: New test.
64170         * tests/test-remove.c: Likewise.
64172         unlink: new module, for Solaris 9 bug
64173         * modules/unlink: New file.
64174         * lib/unlink.c: Likewise.
64175         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
64176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64177         * modules/unistd (Makefile.am): Use them.
64178         * lib/unistd.in.h (stat): Declare replacement.
64179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64180         * doc/posix-functions/unlink.texi (unlink): Likewise.
64181         * modules/unlink-tests: New test.
64182         * tests/test-unlink.c: Likewise.
64184         lstat: fix Solaris 9 bug
64185         * lib/lstat.c (lstat): Also check for trailing slash on
64186         non-symlink, non-directories.  Use stat module to simplify logic.
64187         * doc/posix-functions/lstat.texi (lstat): Document it.
64188         * modules/lstat-tests (Depends-on): Add errno, same-inode.
64189         (configure.ac): Check for symlink.
64190         * tests/test-lstat.c (main): Add more tests.
64192         stat: add as dependency to other modules
64193         * modules/chown (Depends-on): Add stat.
64194         * modules/euidaccess (Depends-on): Likewise.
64195         * modules/fchdir (Depends-on): Likewise.
64196         * modules/isdir (Depends-on): Likewise.
64197         * modules/link (Depends-on): Likewise.
64198         * modules/lstat (Depends-on): Likewise.
64199         * modules/mkdir-p (Depends-on): Likewise.
64200         * modules/modechange (Depends-on): Likewise.
64201         * modules/open (Depends-on): Likewise.
64202         * modules/readlink (Depends-on): Likewise.
64203         * modules/same (Depends-on): Likewise.
64205         stat: fix Solaris 9 bug
64206         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
64207         slash.
64208         * lib/stat.c (rpl_stat): Work around it.
64209         * doc/posix-functions/stat.texi (stat): Update documentation.
64211         stat: new module, for mingw bug
64212         * modules/stat: New file.
64213         * lib/stat.c: Likewise.
64214         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
64215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64216         * modules/sys_stat (Makefile.am): Use them.
64217         * lib/sys_stat.in.h (stat): Declare replacement.
64218         * lib/openat.c (fstatat): Deal with lstat and stat being function
64219         macros.
64220         * modules/openat (Depends-on): Add inline.
64221         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64222         * doc/posix-functions/stat.texi (stat): Likewise.
64223         * modules/stat-tests: New test.
64224         * tests/test-stat.c: Likewise.
64226 2009-09-19  Jim Meyering  <meyering@redhat.com>
64228         syntax-check: detect unnecessary inclusion of canonicalize.h
64229         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
64231 2009-09-19  Eric Blake  <ebb9@byu.net>
64233         canonicalize-lgpl: adjust clients to use correct header
64234         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64235         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
64236         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
64237         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
64238         * lib/progreloc.c (includes): Likewise.
64240 2009-09-19  Jim Meyering  <meyering@redhat.com>
64242         test-posixtm.c: correct a comment
64243         * tests/test-posixtm.c: Correct first-line comment.
64244         Spotted by Eric Blake.
64246 2009-09-16  Jim Meyering  <meyering@redhat.com>
64248         posixtm-tests: make T const-correct; add a test case
64249         * tests/test-posixtm.c (T): Declare const.
64250         Add a test for -(2^31+1).
64251         Remove useless can-succeed-only-in-2002 test.
64253         posixtm-tests: adjust the sole failing test
64254         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
64255         expected output matches what mktime now produces.  Cross-checked via
64256         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
64258         posixtm: move #ifdef'd tests into a new module
64259         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
64260         * tests/test-posixtm.c: ... this new file.
64261         * modules/posixtm-tests: New module.
64263 2009-09-19  Eric Blake  <ebb9@byu.net>
64265         openat: simplify use of at-func.c
64266         * lib/at-func.c (includes): Include prerequisites here, to
64267         simplify requirements on client files.
64268         * lib/openat-priv.h: Add double-inclusion guard.
64269         * lib/faccessat.c (includes): Simplify.
64270         * lib/fchmodat.c (includes): Likewise.
64271         * lib/fchownat.c (includes): Likewise.
64272         * lib/mkdirat.c (includes): Likewise.
64273         * lib/mkfifoat.c (includes): Likewise.
64274         * lib/symlinkat.c (includes): Likewise.
64276         openat: allow return of fd 0
64277         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
64278         * modules/save-cwd (Depends-on): Replace fcntl-safer with
64279         unistd-safer.
64280         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
64281         <fcntl.h>; this module does not leak fds.
64282         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
64283         must be allowed to return 0, leaving openat_safer to add the
64284         safety.
64285         (openat_permissive): Avoid writing to just-opened fd 2 if
64286         restoring the current directory fails.
64287         * lib/openat-die.c (openat_restore_fail): Add comment.
64288         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
64289         (save_cwd): Guarantee safe fd, but without use of open_safer.
64290         * tests/test-openat.c: New test.
64291         * modules/openat-tests (Files, Makefile.am): Distribute and build
64292         new file.
64294         relocatable-prog-wrapper: fix build
64295         * modules/relocatable-prog-wrapper (Files): Update name of
64296         canonicalize m4 file, broken on 2009-09-17.
64297         Reported by emad hajjar <aleppos@hotmail.com>.
64299 2009-09-19  Bruno Haible  <bruno@clisp.org>
64301         * lib/safe-alloc.h: Use the standard header with GPL copyright.
64302         * lib/safe-alloc.c: Likewise.
64303         Reported by Ian Beckwith <ianb@erislabs.net>.
64305 2009-09-18  Bruno Haible  <bruno@clisp.org>
64307         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
64308         Reported by <erobles@sensacd.com.mx>.
64310 2009-09-17  Eric Blake  <ebb9@byu.net>
64312         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
64313         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
64314         slashes when checking if last component is missing.
64315         * tests/test-canonicalize.c (main): Test this.
64317         canonicalize, canonicalize-lgpl: honor // if distinct from /
64318         * modules/canonicalize (Files): Add double-slash-root.m4.
64319         * modules/canonicalize-lgpl (Files): Likewise.
64320         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64321         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
64322         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
64323         fallback definition.
64324         (canonicalize_filename_mode): Use it to protect //.
64325         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
64326         (__realpath): Likewise.
64327         * tests/test-canonicalize.c (main): Test this.
64328         * tests/test-canonicalize-lgpl.c (main): Likewise.
64329         * modules/canonicalize-tests (Depends-on): Add same-inode.
64330         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64332         canonicalize-lgpl: fix glibc bug with trailing slash
64333         * m4/canonicalize-lgpl.m4: Move contents...
64334         * m4/canonicalize.m4: ...here.
64335         (gl_CANONICALIZE_LGPL): Factor realpath check...
64336         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64337         glibc 2.3.5 bug, fixed 2005-04-27.
64338         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64339         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64340         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64341         * modules/canonicalize-lgpl (Files): Manage file rename.
64342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64343         * modules/stdlib (Makefile.am): Substitute witness.
64344         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64345         is needed.
64346         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64347         replacement is required.
64348         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64349         * doc/glibc-functions/canonicalize_file_name.texi
64350         (canonicalize_file_name): Document this.
64351         * doc/posix-functions/realpath.texi (realpath): Likewise.
64353         canonicalize-lgpl: reject non-directory with trailing slash
64354         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64355         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64356         catches failures in glibc 2.3.5.
64357         * tests/test-canonicalize.c (main): Likewise.
64359         canonicalize-lgpl: use native realpath if it works
64360         * lib/canonicalize-lgpl.c (realpath): Guard with
64361         FUNC_REALPATH_WORKS.
64362         * lib/stdlib.in.h (realpath): Make declaration optional based on
64363         HAVE_REALPATH.
64364         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64365         native realpath works.
64366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64367         * modules/stdlib (Makefile.am): Substitute witness.
64369         canonicalize, canonicalize-lgpl: use <stdlib.h>
64370         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64371         (Include): Mention <stdlib.h>.
64372         (configure.ac): Mention functions we provide.
64373         * modules/canonicalize (configure.ac): Likewise.
64374         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64375         realpath if canonicalize_file_name is missing.
64376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64377         * modules/stdlib (Makefile.am): Substitute witnesses.
64378         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64379         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64380         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64381         * NEWS: Document this.
64382         * doc/glibc-functions/canonicalize_file_name.texi
64383         (canonicalize_file_name): Likewise.
64384         * doc/posix-functions/realpath.texi (realpath): Likewise.
64385         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64387         test-canonicalize: consolidate into single C program
64388         * tests/test-canonicalize.sh: Delete; move setup into...
64389         * tests/test-canonicalize.c (main): ...the program, making it
64390         easier to run in debugger.  Add some tests.
64391         * modules/canonicalize-tests (Files): Remove unused file.
64392         (Depends-on): Add progname.
64393         (configure.ac, Makefile.am): Simplify.
64395         test-canonicalize-lgpl: consolidate into single C program
64396         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64397         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64398         easier to run in debugger.  Add some tests.
64399         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64400         (configure.ac, Makefile.am): Simplify.
64402         canonicalize: avoid resolvepath
64403         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64404         unnecessary checks.
64405         * lib/canonicalize.c (includes): Simplify.
64406         (canonicalize_file_name): Drop resolvepath implementation.
64407         * modules/canonicalize (Depends-on): Drop filenamecat.
64409         canonicalize: don't lose errno
64410         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64411         over calls to free.
64413         canonicalize: simplify errno handling
64414         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64415         assignment.
64417         canonicalize, canonicalize-lgpl: update module dependencies
64418         * modules/canonicalize (Depends-on): Add extensions, lstat,
64419         pathmax, stdlib.
64420         (Files): Drop pathmax.h.
64421         (configure.ac): Adjust macro name.
64422         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64423         lstat, stdlib, sys_stat.
64424         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64425         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64426         extensions.
64427         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64428         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64429         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64430         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64431         declaration, if available.
64432         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64433         we can rely on the readlink module.
64434         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64435         (includes): Use <unistd.h> unconditionally.
64437 2009-09-17  Eric Blake  <ebb9@byu.net>
64439         maint: make Include sections of modules consistent
64440         * modules/alloca: Use only header name; no need to list #include.
64441         * modules/alloca-opt: Likewise.
64442         * modules/arpa_inet: Likewise.
64443         * modules/canon-host: Likewise.
64444         * modules/configmake: Likewise.
64445         * modules/dirent: Likewise.
64446         * modules/eealloc: Likewise.
64447         * modules/environ: Likewise.
64448         * modules/fchdir: Likewise.
64449         * modules/fcntl: Likewise.
64450         * modules/fcntl-h: Likewise.
64451         * modules/gethrxtime: Likewise.
64452         * modules/gettime: Likewise.
64453         * modules/ignore-value: Likewise.
64454         * modules/inet_ntop: Likewise.
64455         * modules/inet_pton: Likewise.
64456         * modules/inttypes: Likewise.
64457         * modules/isnand-nolibm: Likewise.
64458         * modules/isnanf-nolibm: Likewise.
64459         * modules/mbchar: Likewise.
64460         * modules/mbfile: Likewise.
64461         * modules/mbiter: Likewise.
64462         * modules/mbuiter: Likewise.
64463         * modules/netdb: Likewise.
64464         * modules/netinet_in: Likewise.
64465         * modules/nproc: Likewise.
64466         * modules/pagealign_alloc: Likewise.
64467         * modules/poll: Likewise.
64468         * modules/printf-frexp: Likewise.
64469         * modules/pthread: Likewise.
64470         * modules/putenv: Likewise.
64471         * modules/random_r: Likewise.
64472         * modules/relocatable-prog: Likewise.
64473         * modules/search: Likewise.
64474         * modules/select: Likewise.
64475         * modules/selinux-h: Likewise.
64476         * modules/settime: Likewise.
64477         * modules/signal: Likewise.
64478         * modules/size_max: Likewise.
64479         * modules/socklen: Likewise.
64480         * modules/ssize_t: Likewise.
64481         * modules/stdarg: Likewise.
64482         * modules/stdbool: Likewise.
64483         * modules/stddef: Likewise.
64484         * modules/stdint: Likewise.
64485         * modules/stdio: Likewise.
64486         * modules/stdlib: Likewise.
64487         * modules/string: Likewise.
64488         * modules/strings: Likewise.
64489         * modules/sys_file: Likewise.
64490         * modules/sys_ioctl: Likewise.
64491         * modules/sys_select: Likewise.
64492         * modules/sys_socket: Likewise.
64493         * modules/sys_stat: Likewise.
64494         * modules/sys_time: Likewise.
64495         * modules/sys_times: Likewise.
64496         * modules/sys_utsname: Likewise.
64497         * modules/sys_wait: Likewise.
64498         * modules/sysexits: Likewise.
64499         * modules/time: Likewise.
64500         * modules/times: Likewise.
64501         * modules/tmpfile: Likewise.
64502         * modules/trim: Likewise.
64503         * modules/unistd: Likewise.
64504         * modules/wchar: Likewise.
64505         * modules/wctype: Likewise.
64507 2009-09-17  Bruno Haible  <bruno@clisp.org>
64509         Make getdate.y compile on QNX and NetBSD 5 / i386.
64510         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64511         TIME_T_FITS_IN_LONG_INT.
64512         * lib/getdate.y (long_time_t): New type.
64513         (relative_time): Change type of 'seconds' field to long_time_t.
64514         (get_date): Update types of local variables. Check against overflow
64515         during conversion from long_time_t to time_t.
64516         Reported by Matt Kraai <kraai@ftbfs.org>
64517         and Hasso Tepper <hasso@netbsd.org>.
64519 2009-09-17  Bruno Haible  <bruno@clisp.org>
64521         * modules/COPYING: Update copyright years.
64522         * modules/README: Likeiwse.
64523         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64524         Reported by Ian Beckwith <ianb@erislabs.net>.
64526 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64528         * users.txt: Update references for gnuit package.
64530 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64532         * m4/getdelim.m4: Fix typo in copyright line.
64534 2009-09-17  Bruno Haible  <bruno@clisp.org>
64536         * lib/atoll.c: Use the standard header with GPL copyright.
64537         * lib/argz.in.h: Likewise.
64538         * lib/glob.c: Likewise.
64539         * lib/glob-libc.h: Likewise.
64540         * lib/random_r.c: Likewise.
64541         * lib/siglist.h: Likewise.
64542         * lib/strsignal.c: Likewise.
64543         Reported by Ian Beckwith <ianb@erislabs.net>.
64545 2009-09-17  Eric Blake  <ebb9@byu.net>
64547         rmdir: ensure correct dependency order
64548         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64550 2009-09-17  Bruno Haible  <bruno@clisp.org>
64552         Disable assertion that fails on NetBSD 5 / i386.
64553         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64554         Reported by Sam Steingold <sds@gnu.org>
64555         and Hasso Tepper <hasso@netbsd.org>.
64557 2009-09-16  Eric Blake  <ebb9@byu.net>
64559         unlinkdir: port to mingw
64560         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64561         on which no one can unlink a directory.
64563         stdlib: sort witness names
64564         * modules/stdlib (Makefile.am): Sort replacements.
64565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64566         * lib/stdlib.in.h: Likewise.
64568         parse-duration-tests: avoid link failure
64569         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64570         LIBINTL.
64571         Reported by Tom G. Christensen.
64573         openat-tests: ensure unlinkat behaves like rmdir
64574         * tests/test-rmdir.c (main): Factor guts...
64575         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64576         * modules/rmdir-tests (Files): Ship new file.
64577         * modules/openat-tests: New test.
64578         * tests/test-unlinkat.c: Likewise.
64580         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64581         * modules/rmdir-errno (Status, Notice): Now obsolete.
64583         rmdir: work around cygwin 1.5.x and mingw bugs
64584         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64585         * lib/rmdir.c (rmdir): Work around it.
64586         * modules/rmdir (Status, Notice): No longer obsolete.
64587         (Files): Add dos.m4.
64588         (Depends-on): Add unistd.
64589         (configure.ac): Set witnesses.
64590         (License): Relax to LGPLv2+.
64591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64592         * modules/unistd (Makefile.am): Substitute witnesses.
64593         * lib/unistd.in.h (rmdir): Declare replacement.
64594         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64595         * modules/rmdir-tests: New tests.
64596         * tests/test-rmdir.c: Likewise.
64598 2009-09-15  Eric Blake  <ebb9@byu.net>
64600         fchdir: improve use of replacement functions
64601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64603         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64604         REPLACE_CLOSEDIR.
64605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64606         * modules/sys_stat (Makefile.am): Substitute correct witness.
64607         * modules/dirent (Makefile.am): Likewise.
64608         * modules/unistd (Makefile.am): Likewise.
64609         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64610         * lib/unistd.in.h (dup): Likewise.
64611         * lib/sys_stat.in.h (fstat): Likewise.
64613         maint: ignore gnulib-tool temp files
64614         * .gitignore: Ignore files created during gnulib-tool --test.
64616 2009-09-13  Jim Meyering  <meyering@redhat.com>
64618         posixtm: don't reject a time that specify "60" as the number of seconds
64619         * lib/posixtm.c (posixtime): The code to reject invalid dates
64620         would also reject a time specified with the .60 suffix.
64621         But POSIX allows that, in order to accommodate leap seconds.
64622         So don't reject it.
64623         (main): Adjust tests accordingly.
64624         * modules/posixtm (Depends-on): Add stpcpy.
64626 2009-09-11  Jim Meyering  <meyering@redhat.com>
64628         announce-gen: include [$release_type] in emitted Subject:
64629         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64630         e.g., [stable] in the emitted Subject: line.
64632 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64634         Remove obsolete macros from several modules.
64635         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64636         obsolete Autoconf macros with their modern counterparts.
64637         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64638         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64640         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64641         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64642         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64644         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64645         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64646         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64647         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64648         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64649         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64650         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64651         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64652         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64653         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64654         * m4/time_r.m4 (gl_TIME_R): Likewise.
64655         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64656         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64657         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64659         Fix copyright header in build-aux scripts.
64660         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64661         recommendation.
64662         * build-aux/ncftpput-ftp: Likewise.
64663         * build-aux/update-copyright: Likewise.
64665 2009-09-09  Eric Blake  <ebb9@byu.net>
64667         test-link: allow Linux choice of errno
64668         * tests/test-link.c (main): Relax test for alternate error.
64670         strndup: fix improper m4 caching
64671         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64672         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64673         (gl_PREREQ_STRNDUP): Delete.
64674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64675         * modules/string (Makefile.am): Substitute it.
64676         * lib/string.in.h (strndup): Modernize prototype.
64678         getcwd: port to mingw
64679         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64680         different from the POSIX assumptions made throughout the getcwd
64681         module; fortunately, the mingw getcwd does not need replacement.
64682         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64683         * modules/getcwd-tests: New test.
64684         * tests/test-getcwd.c: Likewise.
64686         link: fix platform bugs
64687         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64688         * lib/link.c (link): Work around them.  Fix related mingw bug.
64689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64690         * modules/unistd (Makefile.am): Substitute it.
64691         * lib/unistd.in.h (link): Declare replacement.
64692         * doc/posix-functions/link.texi (link): Document this.
64693         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64695         test-link: consolidate into single C program, test more cases
64696         * tests/test-link.sh: Delete.
64697         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64698         at least Cygwin and Solaris.
64699         * modules/link-tests (Files): Remove unused file.
64700         (Depends-on): Add errno, sys_stat.
64701         (Makefile.am): Simplify.
64703 2009-09-08  Bruno Haible  <bruno@clisp.org>
64705         Work around towlower, towupper bug on mingw.
64706         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64707         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64708         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64709         * doc/posix-functions/towupper.texi: Likewise.
64710         Reported by Eric Blake.
64712 2009-09-08  Jim Meyering  <meyering@redhat.com>
64714         build: don't try to run autoheader if we don't use it
64715         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64716         is not used in configure.ac.
64718 2009-09-08  Eric Blake  <ebb9@byu.net>
64720         euidaccess: fix compilation error
64721         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64723         rawmemchr: relax license
64724         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64725         okay.
64726         Reported by Jim Meyering.
64728         mkfifoat: new module
64729         * modules/mkfifoat: New file.
64730         * lib/mkfifoat.c: Likewise.
64731         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64733         * modules/sys_stat (Makefile.am): Use them.
64734         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64735         * MODULES.html.sh (File system functions): Mention module.
64736         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64737         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64738         * modules/mkfifoat-tests: New test.
64739         * tests/test-mkfifoat.c: Likewise.
64741         strchrnul: relax license
64742         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64743         okay.
64744         Reported by Jim Meyering.
64746 2009-09-08  Eric Blake  <ebb9@byu.net>
64748         fstatat: fix compilation on Solaris
64749         * lib/fstatat.c (includes): Add fcntl.h.
64750         Reported by Pádraig Brady.
64752 2009-09-07  Eric Blake  <ebb9@byu.net>
64754         rename: modernize replacement
64755         * modules/rename (Depends-on): Add stdio.
64756         (configure.ac): Declare witness.
64757         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64758         stdio take care of replacement.
64759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64760         * modules/stdio (Makefile.am): Substitute them.
64761         * lib/stdio.in.h (rename): Declare replacement.
64762         * lib/rename.c (includes): Allow cross-compilation to non-windows
64763         machines.
64764         * doc/posix-functions/rename.texi (rename): Improve
64765         documentation.
64767         stdio: sort witness names
64768         * modules/stdio (Makefile.am): Sort replacements.
64769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64770         * lib/stdio.in.h: Likewise.
64772         getcwd: minor cleanups
64773         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64774         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64776         openat: provide more convenience names
64777         * modules/faccessat (configure.ac): Add C witness.
64778         * lib/unistd.in.h (readlinkat): Fix typo.
64779         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64780         convenience wrappers.
64781         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64782         wrappers in syntax checks.
64784 2009-09-06  Eric Blake  <ebb9@byu.net>
64786         doc: fix comments in recent patches
64787         * lib/faccessat.c: Mention correct function.
64788         * lib/fchmodat.c: Likewise.
64789         * lib/fchownat.c: Likewise.
64790         * lib/symlinkat.c: Likewise.
64791         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64792         constants.
64794         faccessat, symlinkat: continue cleanup of previous patch
64795         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64796         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64797         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64799         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64800         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64801         set.
64803 2009-09-06  Bruno Haible  <bruno@clisp.org>
64805         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64806         (fstatat): Declare if GNULIB_FSTATAT is set.
64807         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64808         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64809         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64810         * modules/fcntl-h (Files): Remove m4/openat.m4.
64811         * modules/sys_stat (Files): Remove m4/openat.m4.
64812         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64813         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64814         * modules/unistd (Files): Remove m4/openat.m4.
64815         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64816         GNULIB_OPENAT.
64817         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64818         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64820         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64821         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64822         gl_OPENAT_DEFAULTS.
64823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64824         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64825         Don't require gl_OPENAT_DEFAULTS.
64826         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64827         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64828         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64829         (gl_OPENAT_DEFAULTS): Remove macro.
64831 2009-09-06  Bruno Haible  <bruno@clisp.org>
64833         * modules/openat (configure.ac): Remove unneeded witness.
64835 2009-09-06  Bruno Haible  <bruno@clisp.org>
64837         Set errno to ENOSYS when a function is entirely unsupported.
64838         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64839         EOPNOTSUPP.
64840         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64841         * modules/chown (Depends-on): Remove errno.
64843 2009-09-06  Bruno Haible  <bruno@clisp.org>
64845         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64847 2009-09-06  Bruno Haible  <bruno@clisp.org>
64849         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64851 2009-09-06  Ben Pfaff  <blp@gnu.org>
64852             Bruno Haible  <bruno@clisp.org>
64854         Work around a glibc bug in strtok_r.
64855         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64856         Undefine if UNDEFINE_STRTOK_R is set.
64857         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64859         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64860         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64861         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64862         UNDEFINE_STRTOK_R.
64863         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64865 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64867         exclude: minor fix
64868         * lib/exclude.c: Include wctype.h
64870 2009-09-06  Akim Demaille  <demaille@gostai.com>
64872         bootstrap: improve error message
64873         * build-aux/bootstrap (find_tool): Upon failure, report the list
64874         of candidates.
64875         Honor the initial value of the envvar.
64877 2009-09-05  Eric Blake  <ebb9@byu.net>
64879         symlinkat: new module
64880         * modules/symlinkat: New file.
64881         * lib/symlinkat.c: Likewise.
64882         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64884         * modules/unistd (Makefile.am): Use them.
64885         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64886         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64887         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64888         * MODULES.html.sh (File system functions): Mention module.
64889         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64890         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64891         * modules/symlinkat-tests: New test.
64892         * tests/test-symlinkat.c: Likewise.
64894         test-openat-safer: add more checks
64895         * tests/test-openat-safer.c (main): Check more code paths.
64897 2009-09-05  Jim Meyering  <meyering@redhat.com>
64899         syntax-check: detect unnecessary inclusion of openat.h
64900         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64902 2009-09-05  Bruno Haible  <bruno@clisp.org>
64904         Support towlower, towupper.
64905         * doc/posix-functions/towlower.texi: Mention module wctype.
64906         * doc/posix-functions/towupper.texi: Likewise.
64907         * lib/wctype.in.h (towlower, towupper): New functions.
64908         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64909         (ASSERT): New macro.
64910         (e): New variable.
64911         (main): Test also towlower, towupper. Test WEOF argument.
64912         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64914 2009-09-05  Bruno Haible  <bruno@clisp.org>
64916         Fix conversion behaviour when the input is invalid.
64917         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64918         mark occurring in first pass of indirect conversion.
64919         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64920         input.
64921         Found by clang's static analyzer.
64923 2009-09-05  Bruno Haible  <bruno@clisp.org>
64925         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64926         where direct conversion is possible.
64928 2009-09-04  Eric Blake  <ebb9@byu.net>
64930         openat: fail with ENOENT on empty name
64931         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64932         buffer.
64934         link-follow: fix logic bug in prior patch
64935         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64936         reversed sense of yes and no in prior patch.  Avoid confusing
64937         compilation failure with desired semantics.
64939         link-follow: accommodate mingw and cross-compilation
64940         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64941         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64942         cross-compilation results to -1, to make linkat easier to
64943         implement when cross-compiling.  Trivially support mingw.
64944         * modules/link-follow (configure.ac): Call new name.
64945         * NEWS: Mention this.
64947 2009-09-03  Eric Blake  <ebb9@byu.net>
64949         faccessat: compile replacement
64950         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64951         needed.
64953         fts: fix compilation error
64954         * lib/fts.c (includes): Re-add "openat.h", for
64955         openat_needs_fchdir.
64957         faccessat: new module
64958         * modules/faccessat: New file.
64959         * lib/faccessat.c: Likewise.
64960         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64962         * modules/unistd (Makefile.am): Use it.
64963         * lib/unistd.in.h (faccessat): Declare it.
64964         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64965         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64966         * MODULES.html.sh (File system functions): Mention it.
64967         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64968         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64970         euidaccess: prefer POSIX over non-standard implementation
64971         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64972         * lib/euidaccess.c (euidaccess): Use it if available.
64974         openat: make template easier to use
64975         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64976         AT_FUNC_F2 to be undefined.
64977         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64978         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64979         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64980         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64981         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64982         Likewise.
64983         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64984         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64985         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64986         Likewise.
64988         openat: declare in POSIX headers
64989         * NEWS: Mention this.
64990         * modules/openat (configure.ac): Declare witnesses.
64991         (Depends-on): Add fcntl-h, sys_stat, unistd.
64992         (Include): Mention correct headers.
64993         * modules/fcntl-h (Depends-on): Add link-warning.
64994         (Files): Add openat.m4.
64995         (Makefile.am): Substitute witnesses.
64996         * modules/sys_stat (Files, Makefile.am): Likewise.
64997         * modules/unistd (Files, Makefile.am): Likewise.
64998         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64999         (gl_OPENAT_DEFAULTS): New macro.
65000         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
65001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
65002         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
65003         (SYS_STAT_H): Remove unused variable.
65004         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
65005         * lib/fcntl--.h (includes): Remove unneeded header.
65006         * lib/openat-safer.c (includes): Likewise.
65007         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
65008         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
65009         appropriate headers.
65010         (__OPENAT_PREFIX): Delete.
65011         * lib/fcntl.in.h (openat): Provide declaration.
65012         (AT_FDCWD): Fix Solaris bug.
65013         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
65014         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
65015         * lib/fchmodat.c (includes):  Adjust to find declaration.
65016         * lib/fchownat.c (includes): Likewise.
65017         * lib/mkdirat.c (includes): Likewise.
65018         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
65019         still visible.
65021 2009-09-02  Eric Blake  <ebb9@byu.net>
65023         errno: use consistently
65024         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
65025         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
65026         * lib/canonicalize.c (ELOOP): Likewise.
65027         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
65028         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
65029         * lib/lchown.c (EOPNOTSUPP): Likewise.
65030         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
65031         * lib/savewd.c (ESTALE): Likewise.
65032         * lib/settime.c (ENOSYS): Likewise.
65033         * lib/utimens.c (ENOSYS): Likewise.
65034         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
65035         * lib/chdir-safer.c (ELOOP): Likewise.
65036         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
65037         * modules/c-stack (Depends-on): Add errno.
65038         * modules/canonicalize (Depends-on): Likewise.
65039         * modules/chdir-safer (Depends-on): Likewise.
65040         * modules/fdopendir (Depends-on): Likewise.
65041         * modules/inet_ntop (Depends-on): Likewise.
65042         * modules/inet_pton (Depends-on): Likewise.
65043         * modules/lchown (Depends-on): Likewise.
65044         * modules/openat (Depends-on): Likewise.
65045         * modules/savewd (Depends-on): Likewise.
65046         * modules/settime (Depends-on): Likewise.
65047         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
65049         fts: avoid leaking fds
65050         * modules/fts (Depends-on): Add cloexec.
65051         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
65052         flag.
65054         fts: make directory fds more robust
65055         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
65056         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
65058         backupfile, chdir-long, fts, savedir: make safer
65059         * lib/backupfile.c (includes): Use "dirent--.h", since
65060         numbered_backup can write to stderr during readdir.
65061         * lib/savedir.c (includes): Likewise.
65062         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
65063         emulation can write to stderr on failure.
65064         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
65065         * lib/getcwd.c: Document why opendir_safer is unused.
65066         * lib/glob.c: Likewise.
65067         * lib/scandir.c: Likewise.
65068         * lib/openat-proc.c: Likewise, for open_safer.
65069         * modules/backupfile (Depends-on): Add dirent-safer.
65070         * modules/savedir (Depends-on): Likewise.
65071         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
65072         * modules/chdir-long (Depends-on): Add openat-safer.
65074         openat-safer: new module
65075         * modules/openat-safer: New file.
65076         * lib/openat-safer.c: Likewise.
65077         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
65078         * lib/fcntl-safer.h (openat_safer): Declare.
65079         * lib/fcntl--.h (openat): Override.
65080         * MODULES.html.sh (File descriptor based I/O): Mention it.
65081         * lib/openat.h: Add double-inclusion guards.
65082         * lib/openat.c (includes): Only include "fcntl-safer.h", not
65083         "fcntl--.h", so we can implement openat.
65084         * modules/openat-safer-tests: New test.
65085         * tests/test-openat-safer.c: New file.
65087         dirent-safer: new module
65088         * modules/dirent-safer: New file.
65089         * lib/dirent--.h: Likewise.
65090         * lib/dirent-safer.h: Likewise.
65091         * lib/opendir-safer.c: Likewise.
65092         * m4/dirent-safer.m4: Likewise.
65093         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
65094         * modules/dirent-safer-tests: New test.
65095         * tests/test-dirent-safer.c: New file.
65096         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
65098         fdopendir: optimize on mingw
65099         * lib/unistd.in.h (_gl_directory_name): New prototype.
65100         * lib/fchdir.c (_gl_directory_name): Implement it.
65101         (fchdir): Use it to simplify implementation.
65102         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
65103         fchdir, when available, to avoid calling [f]chdir().
65105         fdopendir: split into its own module
65106         * lib/openat.c (fdopendir): Move...
65107         * lib/fdopendir.c: ...into new file.
65108         * modules/fdopendir: New module.
65109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
65110         * modules/openat (Depends-on): Add fdopendir.
65111         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
65112         fdopendir here.
65113         * modules/savedir (Depends-on): Only need fdopendir, not full
65114         openat.
65115         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
65116         * lib/openat.h (fdopendir): Drop prototype.
65117         * lib/dirent.in.h (fdopendir): Provide prototype.
65118         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
65119         * modules/dirent (Makefile.am): Substitute them.
65120         * MODULES.html.sh (File system functions): Mention it.
65121         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
65122         * modules/fdopendir-tests: New file.
65123         * tests/test-fdopendir.c: Likewise.
65125         fchdir: use more consistent macro convention
65126         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
65127         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
65128         REPLACE_FCHDIR, rather than relying on config.h macros.
65129         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
65130         inside a single make-time REPLACE_FCHDIR block, rather than using
65131         the config.h FCHDIR_REPLACEMENT.
65132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
65133         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
65134         Manage fstat replacement.
65135         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
65136         REPLACE_FCHDIR.
65137         * modules/sys_stat (Files): Add m4/unistd_h.m4.
65138         (Makefile.am): Substitute REPLACE_FCHDIR.
65139         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
65140         FCHDIR_REPLACEMENT.
65141         * lib/dup-safer.c (dup_safer): Likewise.
65142         * lib/dup2.c (rpl_dup2): Likewise.
65143         * lib/dup3.c (rpl_dup3): Likewise.
65144         * lib/open.c (rpl_open): Likewise.
65146         fchdir: simplify error handling, and support dup3
65147         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
65148         stdbool, malloc-posix, realloc-posix.
65149         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
65150         (ensure_dirs_slot): Return false on allocation failure.
65151         (rpl_dup2): Delete.
65152         (_gl_register_dup): New function.
65153         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
65154         (_gl_register_fd): Close fd on allocation failure.
65155         * lib/fcntl.in.h (_gl_register_fd): Update signature.
65156         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
65157         prototype.
65158         (rpl_dup2_fchdir): Delete prototype.
65159         * lib/open.c (open): Update caller.
65160         * lib/dup2.c (dup2): Track fchdir metadata.
65161         * lib/dup3.c (dup3): Likewise.
65162         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
65163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
65165 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65167         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
65168         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
65169         don't pass arguments to AC_OUTPUT.
65171 2009-09-02  Bruno Haible  <bruno@clisp.org>
65173         * modules/mkdtemp (License): Relicense under LGPLv2+.
65174         Reported by Paolo Bonzini.
65176 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65178         Replace uses of obsolete autoconf macros in Jim's modules.
65179         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
65180         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
65181         can evoke a warning from autoconf when run with -Wobsolete
65182         enabled.  They were declared obsolete for good reasons (see
65183         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
65184         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
65185         should not continue using the deprecated macros.
65186         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
65187         obsolete Autoconf macros with modern counterparts.
65188         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65189         * m4/dos.m4 (gl_AC_DOS): Likewise.
65190         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
65191         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
65192         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
65193         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
65194         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
65195         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
65196         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
65197         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
65198         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65199         Likewise.
65200         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
65201         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65202         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
65203         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
65204         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65205         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65207 2009-09-01  Eric Blake  <ebb9@byu.net>
65209         fchdir: fix off-by-one bug in previous patch
65210         * lib/fchdir.c (rpl_fstat): Use correct bounds.
65211         (_gl_unregister_fd): Delete useless if.
65213 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
65215         maint.mk: sort the list of syntax-check rules
65216         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
65217         easier to get a sense of progress when the rules are run sequentially
65218         and take a long time.
65220 2009-09-01  Simon Josefsson  <simon@josefsson.org>
65222         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
65223         * modules/netinet_in: Likewise.
65224         * modules/sys_file: Likewise.
65225         * modules/sys_ioctl: Likewise.
65226         * modules/sys_select: Likewise.
65227         * modules/sys_socket: Likewise.
65228         * modules/sys_stat: Likewise.
65229         * modules/sys_time: Likewise.
65230         * modules/sys_times: Likewise.
65231         * modules/sys_utsname: Likewise.
65232         * modules/sys_wait: Likewise.
65234 2009-09-01  Jim Meyering  <meyering@redhat.com>
65236         fts: help ensure that return values are not ignored
65237         * lib/fts_.h (__GNUC_PREREQ): Define.
65238         (__attribute_warn_unused_result__): Define.
65239         (fts_children, fts_close, fts_open, fts_read): Declare with
65240         __attribute_warn_unused_result__.
65242         fts: fts_close now fails also when closing a dir file descriptor fails
65243         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
65244         and propagate to caller, along with errno.
65246         announce-gen: correct formatting in --help output
65247         * build-aux/announce-gen (usage): Move the one-line description in
65248         --help output "up", to where it belongs, just after Usage:.
65250 2009-08-31  Eric Blake  <ebb9@byu.net>
65252         fchdir: port to mingw
65253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
65254         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
65255         opened, then use a substitute.
65256         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
65257         replacement.
65258         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
65259         (_gl_register_fd): No need to check stat if open already filters
65260         all directories.
65261         (fchdir): Fix error condition to match POSIX.
65262         * modules/fchdir (Depends-on): Add sys_stat.
65263         * doc/posix-functions/open.texi (open): Document the limitation.
65264         * modules/fchdir-tests: New file.
65265         * tests/test-fchdir.c: Likewise.
65267         canonicalize: allow cross-testing from cygwin to mingw
65268         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
65269         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
65270         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
65271         Likewise.
65272         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
65273         target does not support symlinks.
65274         * tests/test-canonicalize-lgpl.sh: Likewise.
65276         chown: avoid compilation warning on mingw
65277         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
65278         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
65279         mingw.
65280         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65281         * modules/chown (Depends-on): Add errno.
65283 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65285         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
65286         command.
65288 2009-08-31  Jim Meyering  <meyering@redhat.com>
65290         canonicalize: remove useless initialization
65291         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
65292         initialization of local, "end".
65294 2009-08-30  Bruno Haible  <bruno@clisp.org>
65296         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
65297         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
65298         ENOSYS.
65300 2009-08-30  Bruno Haible  <bruno@clisp.org>
65302         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
65303         /usr/xpg4/bin/tr when it exists.
65304         * tests/test-pipe-filter-gi1.sh: Likewise.
65306 2009-08-30  Bruno Haible  <bruno@clisp.org>
65308         Work around deficient /usr/bin/id program on Solaris.
65309         * tests/test-file-has-acl.sh (ID): New variable.
65310         * tests/test-set-mode-acl.sh (ID): Likewise.
65311         * tests/test-copy-acl.sh (ID): Likewise.
65312         * tests/test-copy-file.sh (ID): Likewise.
65314 2009-08-30  Bruno Haible  <bruno@clisp.org>
65316         New module 'xstriconveh'.
65317         * lib/xstriconveh.h: New file.
65318         * lib/xstriconveh.c: New file.
65319         * modules/xstriconveh: New file.
65321 2009-08-30  Bruno Haible  <bruno@clisp.org>
65323         Make it easier to use mem_cd_iconveh.
65324         * lib/striconveh.h (iconveh_t): New type.
65325         (iconveh_open, iconveh_close): New declarations.
65326         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65327         with a single 'const iconveh_t *' argument.
65328         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
65329         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65330         with a single 'const iconveh_t *' argument.
65331         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65332         * tests/test-striconveh.c (main): Update.
65333         * NEWS: Mention the change.
65335 2009-08-30  Bruno Haible  <bruno@clisp.org>
65337         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65338         problem.
65340 2009-08-30  Bruno Haible  <bruno@clisp.org>
65342         Work around iconv_open problem on Solaris.
65343         * lib/iconv_open-solaris.gperf: New file.
65344         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65345         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65346         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65347         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65348         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65349         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65351 2009-08-29  Jim Meyering  <meyering@redhat.com>
65353         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65354         * top/maint.mk (cvs-check): Remove target; it was just an alias
65355         to the better-named vc-diff-check.
65356         (maintainer-distcheck): Remove rule.  It was used only from
65357         the (alpha/beta/major) target, and all of its commands but one
65358         were coreutils-specific.
65359         (vc-dist): Remove rule.
65360         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65361         Run vc-diff-check, not vc-dist.
65362         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65364 2009-08-27  Bruno Haible  <bruno@clisp.org>
65366         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65367         of 0.
65369 2009-08-27  Bruno Haible  <bruno@clisp.org>
65371         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65372         compilers.
65373         * doc/func.texi: Document the SunPRO C bug.
65375 2009-08-27  Bruno Haible  <bruno@clisp.org>
65377         Fix link error on Solaris.
65378         * tests/test-parse-duration.c (xstrdup): Remove function.
65380 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65382         ignore-value: handle pointer types, too
65383         * lib/ignore-value.h (__attribute__): Remove definition.
65384         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65385         of a more concise and more-often effective "(void) i" statement.
65386         (ignore_ptr): New function to suppress warnings from functions that
65387         return pointers, and to make it explicit that one function doesn't
65388         handle all cases.
65390 2009-08-25  Bruno Haible  <bruno@clisp.org>
65392         dup2: work around a Linux bug.
65393         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65394         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65395         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65396         Reported by Simon Josefsson.
65398 2009-08-25  Jim Meyering  <meyering@redhat.com>
65400         libguestfs uses gnulib
65401         * users.txt: Add libguestfs.
65403 2009-08-24  Eric Blake  <ebb9@byu.net>
65405         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65406         * lib/pipe2.c (includes): Add binary-io.h.
65407         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65409 2009-08-24  Bruno Haible  <bruno@clisp.org>
65411         Tolerate declared but missing accept4 syscall.
65412         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65413         available.
65414         * lib/sys_socket.in.h (accept4): If the function is already present,
65415         override it.
65416         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65417         * modules/accept4 (Makefile.am): Compile accept4.c always.
65418         Reported by Paolo Bonzini and Eric Blake.
65420 2009-08-23  Bruno Haible  <bruno@clisp.org>
65422         New module 'accept4'.
65423         * lib/sys_socket.in.h (accept4): New declaration.
65424         * lib/accept4.c: New file.
65425         * m4/accept4.m4: New file.
65426         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65427         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65428         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65429         HAVE_ACCEPT4.
65430         * modules/accept4: New file.
65431         * doc/glibc-functions/accept4.texi: Mention the new module.
65433 2009-08-24  Jim Meyering  <meyering@redhat.com>
65435         progname: also set global program_invocation_name, when possible
65436         Before this change, a libtool-enabled program that calls glibc's
65437         error function would report the program name as
65438         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65439         * modules/progname (configure.ac): Check for a declaration of
65440         program_invocation_name.
65441         * lib/progname.c:  Include <errno.h>.
65442         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65443         Set program_invocation_name.
65445 2009-08-23  Bruno Haible  <bruno@clisp.org>
65447         * lib/dup3.c: Include <string.h>.
65449 2009-08-23  Bruno Haible  <bruno@clisp.org>
65451         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65452         * lib/pipe2.c (pipe2): Likewise.
65453         Suggested by Eric Blake.
65455 2009-08-23  Bruno Haible  <bruno@clisp.org>
65457         Tolerate declared but missing dup3 syscall.
65458         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65459         * lib/unistd.in.h (dup3): If the function is already present,
65460         override it.
65461         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65462         * modules/dup3 (Makefile.am): Compile dup3.c always.
65463         Reported by Paolo Bonzini.
65465 2009-08-23  Bruno Haible  <bruno@clisp.org>
65467         Tolerate declared but missing pipe2 syscall.
65468         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65469         available.
65470         * lib/unistd.in.h (pipe2): If the function is already present,
65471         override it.
65472         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65473         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65474         Reported by Paolo Bonzini.
65476 2009-08-23  Bruno Haible  <bruno@clisp.org>
65478         * lib/pipe2.c (pipe2): Move #ifs inside function.
65480 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65482         quotearg: document limitations of quote_these_too
65483         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65484         those limitations are created.
65485         * lib/quotearg.h (set_char_quoting): Document that digits and
65486         letters that are special after backslash are not permitted.
65487         (quotearg_char): Cross-reference set_char_quoting documentation.
65489 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65491         quotearg: implement custom_quoting_style
65492         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65493         right_quote fields.
65494         (set_custom_quoting): New public function.
65495         (quotearg_buffer_restyled): Add left_quote and right_quote
65496         arguments, handle them very much like locale quoting, and update
65497         all uses.
65498         (quotearg_n_custom): New public function.
65499         (quotearg_n_custom_mem): New public function.
65500         (quotearg_custom): New public function.
65501         (quotearg_custom_mem): New public function.
65502         * lib/quotearg.h: Prototype and document new public functions.
65503         (enum quoting_style): For escape_quoting_style and
65504         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65505         ignored even though they're otherwise like c_quoting_style.
65506         Add custom_quoting_style member and document with comparison to
65507         clocale_quoting_style.
65508         * tests/test-quotearg.c (custom_quotes): New array.
65509         (custom_results): New array.
65510         (main): Extend to test custom quoting.
65512 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65514         quotearg: fix right quote escaping when it's in quote_these_too
65515         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65516         quote, be sure to prepend only one backslash.
65517         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65518         (main): Test it.
65520 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65522         quotearg-tests: test escaping of embedded locale quotes
65523         * tests/test-quotearg.c (struct result_strings): Add member for
65524         new input.
65525         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65526         (inputs): Add new input.
65527         (results_g): Add expected results.
65528         (flag_results): Likewise.
65529         (locale_results): Likewise.
65530         (compare_strings): Check those.
65532 2009-08-23  Bruno Haible  <bruno@clisp.org>
65534         Tests for module 'dup3'.
65535         * modules/dup3-tests: New file.
65536         * tests/test-dup3.c: New file.
65538         New module 'dup3'.
65539         * lib/unistd.in.h (dup3): New declaration.
65540         * lib/dup3.c: New file.
65541         * m4/dup3.m4: New file.
65542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65543         HAVE_DUP3.
65544         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65545         * modules/dup3: New file.
65546         * doc/glibc-functions/dup3.texi: Mention the new module.
65548 2009-08-23  Bruno Haible  <bruno@clisp.org>
65550         Tweak the dup2 test.
65551         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65552         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65553         the test file is still empty. Fix argument order of lseek.
65555 2009-08-23  Bruno Haible  <bruno@clisp.org>
65557         Avoid test link errors when the modules getopt-gnu, gettext are used.
65558         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65561 2009-08-23  Bruno Haible  <bruno@clisp.org>
65563         Fix getdtablesize() on mingw.
65564         * lib/getdtablesize.c (getdtablesize): Implement differently.
65565         * lib/unistd.in.h (getdtablesize): Improve comment.
65567 2009-08-23  Bruno Haible  <bruno@clisp.org>
65569         New module 'mkostemp'.
65570         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65571         * lib/stdlib.in.h (mksotemp): New declaration.
65572         * lib/mkostemp.c: New file, from glibc with modifications.
65573         * lib/tempname.h (GT_FILE): Remove outdated comment.
65574         (gen_tempname): Add flags argument.
65575         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65576         (__GT_FILE): Map to 1.
65577         (small_open, large_open): Remove macros.
65578         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65579         * lib/mkstemp.c (mkstemp): Update.
65580         * lib/mkdtemp.c (mkdtemp): Likewise.
65581         * m4/mkostemp.m4: New file.
65582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65583         HAVE_MKOSTEMP.
65584         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65585         HAVE_MKOSTEMP.
65586         * modules/mkostemp: New file, based on modules/mkstemp.
65587         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65588         * NEWS: Mention the change.
65590 2009-08-23  Bruno Haible  <bruno@clisp.org>
65592         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65593         Reported by Eric Blake.
65595 2009-08-23  Bruno Haible  <bruno@clisp.org>
65597         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65598         Reported by Eric Blake.
65600 2009-08-23  Bruno Haible  <bruno@clisp.org>
65602         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65603         * modules/pipe2 (Depends-on): Likewise.
65605 2009-08-23  Eric Blake  <ebb9@byu.net>
65607         fcntl-h: add O_TTY_INIT support
65608         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65609         * tests/test-fcntl-h.c (o): Test it.
65610         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65612         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65613         * modules/fcntl: Move <fcntl.h> header replacement...
65614         * modules/fcntl-h: ...to new name, so as not to collide with
65615         like-named function.
65616         * tests/test-fcntl.c: Rename...
65617         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65618         * modules/fcntl-tests: Rename...
65619         * modules/fcntl-h-tests: ...to this.  Update test file name.
65620         * modules/chdir-long (Depends-on): Update clients.
65621         * modules/chdir-safer (Depends-on): Likewise.
65622         * modules/fcntl-safer (Depends-on): Likewise.
65623         * modules/fts (Depends-on): Likewise.
65624         * modules/mkancesdirs (Depends-on): Likewise.
65625         * modules/mkdir-p (Depends-on): Likewise.
65626         * modules/open (Depends-on): Likewise.
65627         * modules/savewd (Depends-on): Likewise.
65628         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65629         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65631 2009-08-22  Bruno Haible  <bruno@clisp.org>
65633         * modules/binary-io (License): Relicense under LGPL.
65634         * modules/pipe2 (License): Likewise.
65636 2009-08-22  Bruno Haible  <bruno@clisp.org>
65638         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65639         return value.
65640         * lib/pipe-filter-gi.c (filter_init): Likewise.
65641         Reported by Eric Blake.
65643 2009-08-22  Bruno Haible  <bruno@clisp.org>
65645         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65646         * modules/pipe (Depends-on): Add pipe2.
65648 2009-08-22  Bruno Haible  <bruno@clisp.org>
65650         Tests for module 'pipe2'.
65651         * modules/pipe2-tests: New file.
65652         * tests/test-pipe2.c: New file.
65654         New module 'pipe2'.
65655         * lib/unistd.in.h (pipe2): New declaration.
65656         * lib/pipe2.c: New file.
65657         * m4/pipe2.m4: New file.
65658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65659         HAVE_PIPE2.
65660         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65661         * modules/pipe2: New file.
65662         * doc/glibc-functions/pipe2.texi: Mention the new module.
65664 2009-08-22  Bruno Haible  <bruno@clisp.org>
65666         Reference some new glibc functions.
65667         * doc/glibc-functions/accept4.texi: New file.
65668         * doc/glibc-functions/dup3.texi: New file.
65669         * doc/glibc-functions/mkostemp.texi: New file.
65670         * doc/glibc-functions/pipe2.texi: New file.
65671         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65672         (Glibc sys/socket.h): Refer to accept4.
65673         (Glibc unistd.h): Refer to dup3, pipe2.
65674         Reported by Eric Blake.
65676 2009-08-22  Jim Meyering  <meyering@redhat.com>
65677             Bruno Haible  <bruno@clisp.org>
65679         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65680         This makes it so packages using automake-1.11's silent-rules option
65681         can print e.g., a single "GEN    configmake.h" line, rather than
65682         the 30+ statements that perform the job.  If you want to see the
65683         actual commands, you can still run "make V=1".
65684         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65685         so that make output is abbreviated when those variables are defined
65686         appropriately.
65687         * modules/argz: Likewise.
65688         * modules/arpa_inet: Likewise.
65689         * modules/byteswap: Likewise.
65690         * modules/configmake: Likewise.
65691         * modules/dirent: Likewise.
65692         * modules/errno: Likewise.
65693         * modules/fcntl: Likewise.
65694         * modules/float: Likewise.
65695         * modules/fnmatch: Likewise.
65696         * modules/getopt-posix: Likewise.
65697         * modules/glob: Likewise.
65698         * modules/iconv_open: Likewise.
65699         * modules/inttypes: Likewise.
65700         * modules/localcharset: Likewise.
65701         * modules/locale: Likewise.
65702         * modules/math: Likewise.
65703         * modules/netdb: Likewise.
65704         * modules/netinet_in: Likewise.
65705         * modules/poll: Likewise.
65706         * modules/posix_spawnp-tests: Likewise.
65707         * modules/sched: Likewise.
65708         * modules/search: Likewise.
65709         * modules/selinux-h: Likewise.
65710         * modules/signal: Likewise.
65711         * modules/spawn: Likewise.
65712         * modules/stdarg: Likewise.
65713         * modules/stdbool: Likewise.
65714         * modules/stddef: Likewise.
65715         * modules/stdint: Likewise.
65716         * modules/stdio: Likewise.
65717         * modules/stdlib: Likewise.
65718         * modules/string: Likewise.
65719         * modules/strings: Likewise.
65720         * modules/sys_file: Likewise.
65721         * modules/sys_ioctl: Likewise.
65722         * modules/sys_select: Likewise.
65723         * modules/sys_socket: Likewise.
65724         * modules/sys_stat: Likewise.
65725         * modules/sys_time: Likewise.
65726         * modules/sys_times: Likewise.
65727         * modules/sys_utsname: Likewise.
65728         * modules/sys_wait: Likewise.
65729         * modules/sysexits: Likewise.
65730         * modules/time: Likewise.
65731         * modules/unistd: Likewise.
65732         * modules/wchar: Likewise.
65733         * modules/wctype: Likewise.
65735 2009-08-22  Jim Meyering  <meyering@redhat.com>
65737         announce-gen: detect write failure
65738         * build-aux/announce-gen: Add Coda at end.
65739         Remove equivalent-but-more-verbose block at top.
65741 2009-08-19  Akim Demaille  <demaille@gostai.com>
65743         bootstrap: --help to stdout.
65744         * bootstrap (usage): Don't send --help to stderr.
65745         Use a here doc instead of a long string.
65747 2009-08-21  Eric Blake  <ebb9@byu.net>
65749         test-popen-safer: split from test-popen
65750         * tests/test-popen.c (main): Move...
65751         * tests/test-popen.h: ...into new file.
65752         * tests/test-popen-safer2.c: New file.
65753         * modules/popen-tests (Files): Add test-popen.h.
65754         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65755         Suggested by Bruno Haible.
65757         test-fcntl-safer: split from test-open
65758         * tests/test-open.c (main): Move...
65759         * tests/test-open.h: ...into new file.
65760         * tests/test-fcntl-safer.c: New file.
65761         * modules/open-tests (Files): Add test-open.h.
65762         * modules/fcntl-safer-tests: New file.
65763         Suggested by Bruno Haible.
65765         test-fopen-safer: split from test-fopen
65766         * tests/test-fopen.c (main): Move...
65767         * tests/test-fopen.h: ...into new file.
65768         * tests/test-fopen-safer.c: New file.
65769         * modules/fopen-tests (Files): Add test-fopen.h.
65770         * modules/fopen-safer-tests: New file.
65771         Suggested by Bruno Haible.
65773 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65775         popen-safer: test O_CLOEXEC at run-time.
65776         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65778 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65780         fcntl: move more flags to the header
65781         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65782         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65783         * lib/fcntl.in.h: Do both things here.
65785 2009-08-21  Jim Meyering  <meyering@redhat.com>
65787         consistently remove $@-t before redirecting to it
65788         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65789         * modules/alloca-opt: Likewise.
65790         * modules/byteswap: Likewise.
65791         * modules/fnmatch: Likewise.
65792         * modules/getopt-posix: Likewise.
65793         * modules/glob: Likewise.
65794         * modules/poll: Likewise.
65795         * modules/posix_spawnp-tests: Likewise.
65796         * modules/sys_socket: Likewise.
65797         * modules/sysexits: Likewise.
65799 2009-08-21  Eric Blake  <ebb9@byu.net>
65801         popen: simplify access to original popen
65802         * lib/popen.c (rpl_popen): No need to worry about popen being a
65803         macro.
65804         Reported by Bruno Haible.
65806 2009-08-20  Eric Blake  <ebb9@byu.net>
65808         build: avoid some compiler warnings
65809         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65810         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65811         type.
65812         (new_exclude_segment, excluded_file_pattern_p)
65813         (excluded_file_name_p): Reduce scope.
65814         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65815         old-style declaration.
65817 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65819         * tests/test-exclude1.sh: Handle Windows EOL.
65820         * tests/test-exclude2.sh: Likewise.
65821         * tests/test-exclude3.sh: Likewise.
65822         * tests/test-exclude4.sh: Likewise.
65823         * tests/test-exclude5.sh: Likewise.
65824         * tests/test-exclude6.sh: Likewise.
65825         * tests/test-exclude7.sh: Likewise.
65827 2009-08-19  Akim Demaille  <demaille@gostai.com>
65829         bootstrap: find sha1sum when named gsha1sum.
65830         * bootstrap (find_tool): New.
65831         ($SHA1SUM): New.
65832         Use it.
65834 2009-08-20  Jim Meyering  <meyering@redhat.com>
65836         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65837         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65838         expression that converts "." in a file name to "\." in the resulting
65839         regexp.  Start with a dummy statement, so that prior shell variable
65840         definitions are expanded portably.  Reported by Simon Josefsson.
65842 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65844         Fix polling for writeability of a screen buffer.
65845         * lib/poll.c: Distinguish input and screen buffers for the
65846         Win32 implementation.
65847         * lib/select.c: Likewise.
65849 2009-08-19  Eric Blake  <ebb9@byu.net>
65851         popen-safer: prevent popen from clobbering std descriptors
65852         * modules/popen-safer: New file.
65853         * lib/popen-safer.c: Likewise.
65854         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65855         * lib/stdio--.h (popen): Provide override.
65856         * lib/stdio-safer.h (popen_safer): Provide declaration.
65857         * tests/test-popen.c (includes): Partially test this.
65858         * modules/popen-safer-tests: New file, for more tests.
65859         * tests/test-popen-safer.c: Likewise.
65860         * MODULES.html.sh (file stream based Input/Output): Mention it.
65862         tests: test some of the *-safer modules
65863         * modules/fopen-safer (Depends-on): Add fopen.
65864         * modules/fcntl-safer (Depends-on): Add fcntl.
65865         * modules/stdlib-safer (Depends-on): Add stdlib.
65866         (configure.ac): Set indicator.
65867         * modules/unistd-safer (configure.ac): Likewise.
65868         * modules/tmpfile-safer (configure.ac): Likewise.
65869         (Depends-on): Add tmpfile.
65870         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65871         active.
65872         * tests/test-fopen.c (includes): Test safer versions when they are
65873         in use.
65874         * tests/test-open.c (includes): Likewise.
65876         popen: fix cygwin 1.5 bug when stdin closed
65877         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65878         * modules/popen: New file.
65879         * modules/popen-tests: Likewise.
65880         * tests/test-popen.c: Likewise.
65881         * m4/popen.m4: Likewise.
65882         * lib/popen.c: Likewise.
65883         * lib/stdio.in.h (popen): New declaration.
65884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65885         * modules/stdio (Makefile.am): Likewise.
65886         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65888 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65890         maint.mk: give full control over update-copyright exclusions
65891         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65892         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65893         (update-copyright): Don't force inclusion of top-level
65894         ChangeLog.  Don't force exclusion of all COPYING files, but make
65895         them the default exclusion instead.
65897 2009-08-16  Bruno Haible  <bruno@clisp.org>
65899         Fix test failures on Solaris 10.
65900         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65901         tests when Solaris iconv() is used.
65902         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65903         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65904         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65905         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65906         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65908 2009-08-16  Bruno Haible  <bruno@clisp.org>
65910         Fix test failures on Solaris 10.
65911         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65912         'tr' program and pass it as first argument.
65913         * tests/test-pipe-filter-gi1.sh: Likewise.
65914         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65915         program as first argument.
65916         * tests/test-pipe-filter-gi1.c (main): Likewise.
65918 2009-08-16  Eric Blake  <ebb9@byu.net>
65920         fpurge: fix previous commits
65921         * modules/fpurge (Makefile.am): Make replacement conditional,
65922         partially reverting 2007-04-29 change; missed in previous
65923         attempt.
65924         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65925         is missing.
65927 2009-08-16  Bruno Haible  <bruno@clisp.org>
65929         Clarify fpurge's effect on the file position.
65930         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65931         * tests/test-fpurge.c (main): Make a second pass for checking the file
65932         position.
65934 2009-08-16  Bruno Haible  <bruno@clisp.org>
65936         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65937         declaration of fpurge is missing.
65938         * tests/test-fpurge.c (main): Check that the file has not more contents
65939         than expected. Close the file before removing it.
65941 2009-08-15  Eric Blake  <ebb9@byu.net>
65943         fpurge: don't wrap working cygwin implementation
65944         * lib/fpurge.c (fpurge): Fix comment typo.
65945         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65946         1.7 to avoid replacement.
65947         * tests/test-fpurge.c (main): Enhance test.
65949 2009-08-15  Eric Blake  <ebb9@byu.net>
65950         and Jim Meyering  <meyering@redhat.com>
65952         test-update-copyright: skip if perl is insufficient
65953         * tests/test-update-copyright.sh: Failure to run maintainer tool
65954         should not cause testsuite failure on cygwin 1.5.
65956 2009-08-14  Eric Blake  <ebb9@byu.net>
65958         doc: mention more functions added in cygwin 1.7.0
65959         * doc/posix-headers/limits.texi (limits.h): Update for recent
65960         cygwin additions.
65961         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65962         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65963         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65964         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65965         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65967 2009-08-14  Eric Blake  <ebb9@byu.net>
65969         maint.mk: simplify update-copyright rule
65970         * top/maint.mk (update-copyright-local): Delete, and document how
65971         to do it in cfg.mk instead.
65972         (update-copyright-exclude-regexp): Delete, and document how to do
65973         it in .x-update-copyright instead.
65974         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65975         exclude ChangeLog.
65977 2009-08-14  Bruno Haible  <bruno@clisp.org>
65979         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65981 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65983         maint.mk: support update-copyright-env
65984         * top/maint.mk (update-copyright-env): Define place-holder.
65985         (update-copyright): Expand $(update-copyright-env) before
65986         invoking update-copyright.
65988 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65990         update-copyright: implement forced reformatting
65991         * build-aux/update-copyright: Implement and document
65992         UPDATE_COPYRIGHT_FORCE.
65993         * tests/test-update-copyright.sh: Test it.
65995 2009-08-14  Eric Blake  <ebb9@byu.net>
65996         and Bruno Haible  <bruno@clisp.org>
65998         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65999         * tests/test-locale.c: Revert previous patch related to NULL.
66000         * tests/test-stdio.c: Likewise.
66001         * tests/test-stdlib.c: Likewise.
66002         * tests/test-string.c: Likewise.
66003         * tests/test-unistd.c: Likewise.
66004         * modules/time-tests (Depends-on): Add verify.
66005         * modules/wchar-tests (Depends-on): Likewise.
66006         * tests/test-time.c: Test for NULL compliance.
66007         * tests/test-wchar.c: Likewise.
66008         * modules/locale (Depends-on): Add stddef.
66009         * modules/stdio (Depends-on): Likewise.
66010         * modules/stdlib (Depends-on): Likewise.
66011         * modules/string (Depends-on): Likewise.
66012         * modules/time (Depends-on): Likewise.
66013         * modules/unistd (Depends-on): Likewise.
66014         * modules/wchar (Depends-on): Likewise.
66015         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
66016         * lib/stdlib.in.h (includes): Likewise.
66017         * lib/string.in.h (includes): Likewise.
66018         * lib/time.in.h (includes): Likewise.
66019         * lib/unistd.in.h (includes): Likewise.
66020         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
66021         replaced.
66022         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66023         * m4/stddef_h.m4: New file.
66024         * modules/stddef: Likewise.
66025         * lib/stddef.in.h: Likewise.
66026         * modules/stddef-tests: Likewise.
66027         * tests/test-stddef.c: Likewise.
66028         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
66029         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
66030         * doc/posix-headers/locale.texi (locale.h): Likewise.
66031         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
66032         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
66033         * doc/posix-headers/string.texi (string.h): Likewise.
66034         * doc/posix-headers/time.texi (time.h): Likewise.
66035         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
66036         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
66038 2009-08-14  Eric Blake  <ebb9@byu.net>
66040         doc: improve git diff of texinfo files
66041         * .gitattributes: Add rule for *.texi files, with hint on how to
66042         use it.
66043         Copied from m4, and based on a report by Bruno Haible.
66045 2009-08-14  Bruno Haible  <bruno@clisp.org>
66047         Disable multithread support by default on Cygwin 1.5.x for real.
66048         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
66050 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
66052         update-copyright: much ado about intervals
66053         * build-aux/update-copyright: Implement and document
66054         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
66055         of copyright year intervals.
66056         Also, document UPDATE_COPYRIGHT_YEAR.
66057         * tests/test-update-copyright.sh: Test it.
66059         update-copyright: convert 2-digit to 4-digit years
66060         * build-aux/update-copyright: Implement and document.
66061         * tests/test-update-copyright.sh: Update.
66063 2009-08-14  Jim Meyering  <meyering@redhat.com>
66065         test-exclude: avoid coreutils "make check" failure
66066         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
66067         just as in test-argmatch.c.
66069 2009-08-13  Eric Blake  <ebb9@byu.net>
66071         test-dup2: fix bad assumption
66072         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
66073         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
66075         test-version-etc: fix CRLF portability issue
66076         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
66077         recognize \r.
66078         * tests/test-argp-version-etc-1.sh: Likewise.
66080         getopt: update client modules
66081         * modules/argp (Depends-on): Use getopt-gnu.
66082         * modules/git-merge-changelog (Depends-on): Likewise.
66083         * modules/long-options (Depends-on): Likewise.
66084         * modules/xstrtol (Depends-on): Likewise.
66086 2009-08-13  Simon Josefsson  <simon@josefsson.org>
66088         * tests/test-version-etc.sh: Don't fail on different
66089         project/version.  Don't fail on CRLF differences.  Rewrite to use
66090         multiple -e instead of multiple sed forks, suggested by Eric Blake
66091         <ebb9@byu.net>.
66092         * tests/test-argp-version-etc-1.sh: Likewise.
66094 2009-08-13  Simon Josefsson  <simon@josefsson.org>
66096         * tests/test-version-etc.sh: Don't fail on different
66097         project/version.
66099 2009-08-12  Bruno Haible  <bruno@clisp.org>
66101         Tests for modules 'getopt-posix', 'getopt-gnu'.
66102         * modules/getopt-posix-tests: New file.
66103         * tests/test-getopt.c: New file.
66104         * tests/test-getopt.h: New file.
66105         * tests/test-getopt_long.h: New file.
66107         New modules 'getopt-posix', 'getopt-gnu'.
66108         * modules/getopt-gnu: New file, renamed from modules/getopt.
66109         * modules/getopt-posix: New file.
66110         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
66111         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
66112         (gl_GETOPT): Remove macro.
66113         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
66114         Disable the test against BSD systems that declare optreset. Test
66115         against mingw bug. Test against lack of support of optional arguments
66116         on many platforms.
66117         * doc/glibc-headers/getopt.texi: Update module name and list of
66118         relevant platforms.
66119         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
66120         'getopt-gnu' and more portability problems.
66121         * NEWS: Mention the changes.
66123 2009-08-12  Bruno Haible  <bruno@clisp.org>
66125         Ensure that optarg etc. get declared by <unistd.h>.
66126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
66127         AC_USE_SYSTEM_EXTENSIONS.
66128         * modules/getopt (Depends-on): Add 'extensions'.
66130 2009-08-12  Bruno Haible  <bruno@clisp.org>
66132         Avoid test link errors.
66133         * modules/pipe-filter-ii-tests (Makefile.am): Define
66134         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
66135         * modules/pipe-filter-gi-tests (Makefile.am): Define
66136         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
66137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66139 2009-08-12  Bruno Haible  <bruno@clisp.org>
66141         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
66142         gl_GETOPT_SUBSTITUTE before.
66143         (gl_GETOPT): Use it.
66144         * m4/argp.m4 (gl_ARGP): Update.
66145         Reported by Sergey Poznyakoff.
66147         * m4/getopt.m4: Reorder macros.
66148         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
66149         (gl_GETOPT_SUBSTITUTE): Remove macro.
66151 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66153         Minor improvement in gitlog-to-changelog
66155         * build-aux/gitlog-to-changelog: New option `--format' makes
66156         output format string configurable.
66158 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66160         Optimize exclude: use hash tables for non-wildcard patterns.
66162         * lib/exclude.c: Include hash.h and mbuiter.h
66163         (struct exclude_pattern, exclude_segment): New data types.
66164         (struct exclude): Rewrite.
66165         (fnmatch_pattern_has_wildcards): New function.
66166         (new_exclude_segment, free_exclude_segment): New functions.
66167         (excluded_file_pattern_p, excluded_file_name_p): New functions.
66168         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
66169         * lib/exclude.h (is_fnmatch_pattern): New prototype.
66170         * modules/exclude: Depend on hash and mbuiter.
66172         * modules/exclude-tests: New file.
66173         * tests/test-exclude.c: New file.
66174         * tests/test-exclude1.sh: New file.
66175         * tests/test-exclude2.sh: New file.
66176         * tests/test-exclude3.sh: New file.
66177         * tests/test-exclude4.sh: New file.
66178         * tests/test-exclude5.sh: New file.
66179         * tests/test-exclude6.sh: New file.
66180         * tests/test-exclude7.sh: New file.
66182 2009-08-12  Bruno Haible  <bruno@clisp.org>
66184         Ensure that getopt() gets declared by <unistd.h>.
66185         * lib/unistd.in.h: Conditionally include getopt.h.
66186         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
66187         Set GNULIB_UNISTD_H_GETOPT.
66188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66189         GNULIB_UNISTD_H_GETOPT.
66190         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
66192 2009-08-12  Bruno Haible  <bruno@clisp.org>
66194         Clarify logic.
66195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
66196         gl_replace_getopt instead of GETOPT_H.
66198 2009-08-12  Bruno Haible  <bruno@clisp.org>
66200         * m4/getopt.m4: Add comments.
66202 2009-08-12  Bruno Haible  <bruno@clisp.org>
66204         Disable multithread support by default on Cygwin 1.5.x.
66205         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
66206         set gl_use_threads=no if not specified otherwise.
66208 2009-08-11  Bruno Haible  <bruno@clisp.org>
66210         Avoid compilation error on NetBSD 5.0.
66211         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
66212         * tests/test-stdio.c: Likewise.
66213         * tests/test-stdlib.c: Likewise.
66214         * tests/test-string.c: Likewise.
66215         * tests/test-unistd.c: Likewise.
66216         Reported by Greg Troxel <gdt@ir.bbn.com>
66217         at <https://savannah.gnu.org/support/?106973>.
66219 2009-08-11  Bruno Haible  <bruno@clisp.org>
66221         * modules/dup2-tests (Depends-on): Remove close.
66223         Undo 2009-07-19 commit.
66224         * modules/acl-tests (Depends-on): Remove close.
66225         * modules/binary-io-tests (Depends-on): Likewise.
66226         * modules/closein-tests (Depends-on): Likewise.
66227         * modules/flock-tests (Depends-on): Likewise.
66228         * modules/fsync-tests (Depends-on): Likewise.
66229         * modules/lseek-tests (Depends-on): Likewise.
66230         * modules/pipe-tests (Depends-on): Likewise.
66231         * modules/posix_spawn-tests (Depends-on): Likewise.
66232         * modules/posix_spawnp-tests (Depends-on): Likewise.
66233         * modules/stat-time-tests (Depends-on): Likewise.
66234         * modules/yesno-tests (Depends-on): Likewise.
66236 2009-08-10  Bruno Haible  <bruno@clisp.org>
66238         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
66240 2009-08-10  Bruno Haible  <bruno@clisp.org>
66242         Fix a gcc warning.
66243         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
66245 2009-08-10  Bruno Haible  <bruno@clisp.org>
66247         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
66248         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
66249         not only the first time.
66250         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
66251         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
66252         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
66253         is 1, not only the first time.
66255 2009-08-10  Bruno Haible  <bruno@clisp.org>
66257         Make it possible to use module 'gethostname' without module 'close'.
66258         * lib/unistd.in.h (close): Evoke a link error only if
66259         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66261         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66262         * modules/unistd (Makefile.am): Substitute
66263         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66264         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
66265         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66266         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66267         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66268         * modules/sys_ioctl (Makefile.am): Substitute
66269         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66270         * modules/socket (configure.ac): On native Windows, set
66271         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
66272         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66273         Reported by Sam Steingold <sds@gnu.org>.
66275 2009-08-10  Bruno Haible  <bruno@clisp.org>
66277         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
66278         * modules/ioctl (configure.ac): Likewise.
66280 2009-08-10  Bruno Haible  <bruno@clisp.org>
66282         Avoid collision between gnulib wrapper and libintl wrapper.
66283         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
66284         already defined in intl/printf.c.
66285         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
66286         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
66288 2009-08-09  Bruno Haible  <bruno@clisp.org>
66290         Make <sys/select.h> really self-contained, also on Solaris 10.
66291         * lib/sys_select.in.h: Include <string.h>.
66292         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
66293         Solaris 10 problem.
66294         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
66295         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
66296         Reported by Jim Meyering.
66298 2009-08-09  Bruno Haible  <bruno@clisp.org>
66300         Avoid warnings from 'aclocal' that are due to a use of macro name
66301         AM_XGETTEXT_OPTION that is not defined in automake.
66302         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
66303         automake.
66304         * modules/error (configure.ac): Likewise.
66305         * modules/propername (configure.ac): Likewise.
66306         * modules/vasprintf (configure.ac): Likewise.
66307         * modules/verror (configure.ac): Likewise.
66308         * modules/xprintf (configure.ac): Likewise.
66309         * modules/xvasprintf (configure.ac): Likewise.
66311 2009-08-08  Bruno Haible  <bruno@clisp.org>
66313         Avoid compilation error in C++ mode.
66314         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
66315         Reported by Sam Steingold <sds@gnu.org>.
66317 2009-08-08  Bruno Haible  <bruno@clisp.org>
66319         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
66320         for the various Unix platforms.
66321         * doc/posix-headers/limits.texi: Update platforms list regarding
66322         HOST_NAME_MAX.
66323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66325 2009-08-07  Jim Meyering  <meyering@redhat.com>
66327         selinux-at: fix typo in a comment
66328         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
66329         Spotted by Paolo Bonzini.
66331         selinux-at: remove redundant m4 code, add documentation
66332         * modules/selinux-at (configure.ac): Remove redundant code.
66333         LIB_SELINUX is already set via the dependent module, selinux-h.
66334         (Include): Add quotes around selinux-at.h.
66335         * lib/selinux-at.h: Add documentation.
66336         Reported by Bruno Haible in
66337         http://marc.info/?l=gnulib-bug&m=124958988300749
66339 2009-08-07  Bruno Haible  <bruno@clisp.org>
66341         Avoid link error on MacOS X 10.3 and 10.4.
66342         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66343         on non-ELF systems.
66344         * lib/argp-pv.c (argp_program_version): Likewise.
66345         Reported by Simon Josefsson.
66347 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66349         * tests/test-version-etc.sh: Use $EXEEXT.
66351 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66353         update-copyright: update documentation to point to maint.mk
66354         * build-aux/update-copyright: Here.
66356 2009-08-06  Jim Meyering  <meyering@redhat.com>
66358         maint.mk: support update-copyright-local
66359         * top/maint.mk (update-copyright-local): Define place-holder.
66360         (update-copyright): Depend on $(update-copyright-local).
66362 2009-08-06  Jim Meyering  <meyering@redhat.com>
66364         selinux-at: new module
66365         Initially written for coreutils, this module will soon be
66366         used by findutils, too.
66367         * MODULES.html.sh [Misc]: Add selinux-at.
66368         * lib/selinux-at.h: New file, from coreutils.
66369         * lib/selinux-at.c: Likewise.
66370         * modules/selinux-at: Likewise.
66371         (License): Change from LGPL to GPL, since it depends
66372         on the GPL'd openat module.
66374         doc: update README
66375         * README: Remove references to cogito.
66376         Remove cvs-repo-updating instructions from 2007.
66377         Don't imply that CVS is better if you have limited disk space.
66379 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66381         update-copyright: support C-style comments
66382         * build-aux/update-copyright: Implement and document.
66383         * tests/test-update-copyright.sh: Test.
66385 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66387         update-copyright: support omitted "(C)"
66388         * build-aux/update-copyright: Implement and document.  Also,
66389         allow variable whitespace before "(C)".
66390         * tests/test-update-copyright.sh: Test.
66392 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66394         update-copyright: don't trip on non-FSF copyright statements
66395         * build-aux/update-copyright: Fix so that the first correctly
66396         formatted FSF copyright statement is recognized no matter what
66397         appears before it.  Update documentation.
66398         * tests/test-update-copyright.sh: Test that.
66400 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66402         update-copyright: clean up code a little
66403         * build-aux/update-copyright: Append "_re" to the name of any
66404         variable holding a regular expression.
66405         Replace "old" and "new" with "stmt" in variable names.
66406         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66407         handled correctly.
66408         Format code more consistently.
66410 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66412         update-copyright-tests: improve portability
66413         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66414         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66416 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66418         update-copyright: support @copyright{} and &copy;
66419         * build-aux/update-copyright: Implement and document.
66420         * tests/test-update-copyright.sh: Test.
66422 2009-08-04  Jim Meyering  <meyering@redhat.com>
66424         update-copyright-tests: correctly test EOL=\r\n handling
66425         * tests/test-update-copyright.sh: Put \r at the end of some lines
66426         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66428         maint.mk: make update-copyright exclusion list more configurable
66429         * top/maint.mk (update-copyright): Default to excluding COPYING,
66430         but allow an override, in case someone does want to update that file.
66432         maint.mk: don't update copyright date in COPYING
66433         * top/maint.mk (update-copyright): Exclude COPYING.
66435         maint.mk: add a copyright-updating rule
66436         * top/maint.mk (update-copyright): New rule.
66437         Derived from coreutils/Makefile.am.
66439         update-copyright: rename some variables
66440         * build-aux/update-copyright: Rename a few variables for clarity.
66441         Tweak syntax.  List Joel E. Denny as coauthor.
66443 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66445         update-copyright: fix bug for 2-digit last year and add tests
66446         * build-aux/update-copyright: Fix bug.
66447         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66448         specified.
66449         * modules/update-copyright-tests: New
66450         * tests/test-update-copyright.sh: New.
66452 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66454         update-copyright: handle leading tabs in line prefix
66455         * build-aux/update-copyright: Count leading tabs as 8 spaces
66456         when computing margin.  This helps with the formatting of
66457         ChangeLogs, for example.
66458         Fix documentation a little.
66460 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66462         update-copyright: support EOL=\r\n
66463         * build-aux/update-copyright: Implement that.
66465 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66467         update-copyright: automatically format copyright statements
66468         * build-aux/update-copyright: Implement that.
66469         Also, be a little more predictable and safer by always failing
66470         when the full copyright format is not perfectly recognized as an
66471         unbroken whole.  Discussed at
66472         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66473         Rewrite documentation.
66475 2009-08-03  Bruno Haible  <bruno@clisp.org>
66477         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66479 2009-08-02  Bruno Haible  <bruno@clisp.org>
66481         Tests for module 'uname'.
66482         * modules/uname-tests: New file.
66483         * tests/test-uname.c: New file.
66485         New module 'uname'.
66486         * lib/uname.c: New file.
66487         * m4/uname.m4: New file.
66488         * modules/uname: New file.
66489         * doc/posix-functions/uname.texi: Mention the new module.
66491 2009-08-02  Bruno Haible  <bruno@clisp.org>
66493         Tests for module 'sys_utsname'.
66494         * modules/sys_utsname-tests: New file.
66495         * tests/test-sys_utsname.c: New file.
66497         New module 'sys_utsname'.
66498         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66499         * m4/sys_utsname_h.m4: New file.
66500         * modules/sys_utsname: New file.
66501         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66503 2009-08-02  Bruno Haible  <bruno@clisp.org>
66505         Implicitly initialize the sockets library.
66506         * lib/gethostname.c: Include sockets.h.
66507         (rpl_gethostname): Invoke gl_sockets_startup.
66508         * lib/socket.c: Include sockets.h.
66509         (rpl_socket): Invoke gl_sockets_startup.
66510         * modules/gethostname (Depends-on): Add sockets.
66511         * modules/socket (Depends-on): Likewise.
66512         * tests/test-poll.c: Don't include sockets.h.
66513         (main): Don't invoke gl_sockets_startup.
66514         * tests/test-select.c: Don't include sockets.h.
66515         (main): Don't invoke gl_sockets_startup.
66517 2009-08-02  Bruno Haible  <bruno@clisp.org>
66519         Allow multiple calls to gl_sockets_startup.
66520         * lib/sockets.c (initialized_sockets_version): New variable.
66521         (gl_sockets_startup): Do nothing if already called for this or a higher
66522         version.
66523         (gl_sockets_cleanup): Reset initialized_sockets_version.
66525 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66527         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66528         different project/version.
66530 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66531             Bruno Haible  <bruno@clisp.org>
66533         Tests for module 'pipe-filter-gi'.
66534         * modules/pipe-filter-gi-tests: New file.
66535         * tests/test-pipe-filter-gi1.sh: New file.
66536         * tests/test-pipe-filter-gi1.c: New file.
66537         * tests/test-pipe-filter-gi2.sh: New file.
66538         * tests/test-pipe-filter-gi2-main.c: New file.
66539         * tests/test-pipe-filter-gi2-child.c: New file.
66541         New module 'pipe-filter-gi'.
66542         * lib/pipe-filter-gi.c: New file.
66543         * modules/pipe-filter-gi: New file.
66545 2009-08-02  Bruno Haible  <bruno@clisp.org>
66546             Paolo Bonzini  <bonzini@gnu.org>
66548         Tests for module 'pipe-filter-ii'.
66549         * modules/pipe-filter-ii-tests: New file.
66550         * tests/test-pipe-filter-ii1.sh: New file.
66551         * tests/test-pipe-filter-ii1.c: New file.
66552         * tests/test-pipe-filter-ii2.sh: New file.
66553         * tests/test-pipe-filter-ii2-main.c: New file.
66554         * tests/test-pipe-filter-ii2-child.c: New file.
66556         New module 'pipe-filter-ii'.
66557         * lib/pipe-filter.h: New file.
66558         * lib/pipe-filter-ii.c: New file.
66559         * lib/pipe-filter-aux.h: New file.
66560         * modules/pipe-filter-ii: New file.
66562 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66564         * lib/gc-libgcrypt.c: Change copyright to FSF.
66565         * lib/gc-gnulib.c: Likewise.
66567 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66569         * lib/gethostname.c: Include limits.h.
66571 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66572             Bruno Haible  <bruno@clisp.org>
66574         Ensure HOST_NAME_MAX as part of the gethostname module.
66575         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66576         define also HOST_NAME_MAX.
66577         * tests/test-gethostname.c: Include <limits.h>.
66578         (main): Check also HOST_NAME_MAX.
66579         * doc/posix-headers/limits.texi: Document the mingw problem.
66581 2009-08-02  Bruno Haible  <bruno@clisp.org>
66583         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66584         Add comments.
66586 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66588         * lib/gethostname.c: Add Windows wrapper.
66589         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66590         * modules/gethostname: Depend on sys_socket & errno, for also
66591         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66592         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66594 2009-07-31  Jim Meyering  <meyering@redhat.com>
66596         getloadavg: fix symbol name in comment
66597         * lib/getloadavg.c: Correct a typo I introduced when adding
66598         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66599         Matt Kraai spotted the problem.
66601 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66603         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66604         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66605         code also if ! defined N_NAME_POINTER.
66606         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66607         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66608         but the n_name member is a 12-byte array.
66610 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66612         update-copyright: generalize comment handling
66613         * build-aux/update-copyright: Handle copyright statements
66614         within more comment styles.
66615         Document usage.
66616         Report any file with an external copyright holder or parse failure.
66618 2009-07-29  Jim Meyering  <meyering@redhat.com>
66620         mktime: correct setting of REPLACE_MKTIME
66621         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66623         update-copyright: new module
66624         * modules/update-copyright: New file.
66625         * build-aux/update-copyright: New file.
66626         * MODULES.html.sh (maint+release support): Add update-copyright.
66628 2009-07-27  Bruno Haible  <bruno@clisp.org>
66630         Fix compilation error when <ctime> is used and mktime is replaced.
66631         * lib/time.in.h (mktime): New declaration.
66632         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66633         REPLACE_MKTIME instead of defining mktime in config.h.
66634         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66635         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66636         Reported by Ross McFarland <rwmcfa1@neces.com>.
66638 2009-07-27  Bruno Haible  <bruno@clisp.org>
66640         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66641         Reported by Matt Kraai <mkraai@beckman.com>.
66643 2009-07-25  Jim Meyering  <meyering@redhat.com>
66645         maint.mk: avoid warnings about missing files
66646         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66647         diagnostic when .prev-version does not exist.
66648         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66649         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66650         nonexistent cfg.mk.
66651         Suggestions from Simon Josefsson.
66653 2009-07-25  Bruno Haible  <bruno@clisp.org>
66655         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66656         defined as macros. Needed on QNX 6.4.1.
66657         Reported by Matt Kraai <mkraai@beckman.com>.
66659 2009-07-23  Jim Meyering  <meyering@redhat.com>
66661         maint.mk: invoke "make dist" with a working value of XZ_OPT
66662         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66664 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66666         Make fseeko.c compile on QNX.
66667         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66669 2009-07-22  Peter Simons  <simons@cryp.to>
66671         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66672         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66673         * lib/md4.h: Likewise.
66674         * lib/md5.h: Likewise.
66675         * lib/sha1.h: Likewise.
66676         * lib/sha256.h: Likewise.
66677         * lib/sha512.h: Likewise.
66679         tests-sha1: don't assign literal string to 'char *' variable
66680         * tests/test-sha1.c (main): Declare locals with "const" to match
66681         attributes of the right hand side.
66683 2009-07-21  Eric Blake  <ebb9@byu.net>
66685         dup2: fix more mingw problems
66686         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66687         fd to itself.
66688         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66689         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66690         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66691         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66692         care of mingw bugs.
66694 2009-07-21  Jim Meyering  <meyering@redhat.com>
66696         vc-list-files: avoid failure when /bin/sh is dash
66697         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66698         On some Debian based systems, /bin/sh is a symlink to dash, and running
66699         this command would omit the "/" following each 'tests' prefix:
66700           dash -x build-aux/vc-list-files -C . tests
66701         That is because bash and dash work differently:
66702           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66703           bash ok
66704           dash odd
66706 2009-07-21  Eric Blake  <ebb9@byu.net>
66708         dup2-tests: test previous patch
66709         * modules/dup2-tests: New file.
66710         * tests/test-dup2.c: Likewise.
66711         * tests/test-open.c (main): Avoid unspecified behavior.
66712         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66713         test.
66715         dup2: work around mingw and cygwin 1.5 bug
66716         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66718         * modules/unistd (Makefile.am): Substitute it.
66719         * lib/unistd.in.h (dup2): Declare the replacement.
66720         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66721         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66722         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66723         * modules/execute (Depends-on): Add dup2.
66724         * modules/fseterr (Depends-on): Likewise.
66725         * modules/pipe (Depends-on): Likewise.
66726         * modules/posix_spawn-internal (Depends-on): Likewise.
66728 2009-07-21  Bruno Haible  <bruno@clisp.org>
66730         * modules/.gitattributes: New file.
66732 2009-07-20  Bruno Haible  <bruno@clisp.org>
66734         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66735         (main): Use it.
66737 2009-07-20  Eric Blake  <ebb9@byu.net>
66739         test-pipe: make a bit more robust.
66740         * tests/test-pipe.c (myerr): Allow error messages regardless of
66741         what we do to stderr.
66742         (test_pipe): Rearrange to avoid deadlock.
66743         (child_main): Try a larger read, to ensure we avoided deadlock.
66744         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66745         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66746         if misused.
66748 2009-07-19  Jim Meyering  <meyering@redhat.com>
66750         fts: avoid false-positive cycle-detection
66751         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66752         for each new command line argument.
66754 2009-07-19  Bruno Haible  <bruno@clisp.org>
66756         Fix build error on mingw with the modules sys_select and unistd.
66757         * modules/acl-tests (Depends-on): Add close.
66758         * modules/binary-io-tests (Depends-on): Likewise.
66759         * modules/closein-tests (Depends-on): Likewise.
66760         * modules/flock-tests (Depends-on): Likewise.
66761         * modules/fsync-tests (Depends-on): Likewise.
66762         * modules/lseek-tests (Depends-on): Likewise.
66763         * modules/pipe-tests (Depends-on): Likewise.
66764         * modules/posix_spawn-tests (Depends-on): Likewise.
66765         * modules/posix_spawnp-tests (Depends-on): Likewise.
66766         * modules/stat-time-tests (Depends-on): Likewise.
66767         * modules/yesno-tests (Depends-on): Likewise.
66769 2009-07-19  Bruno Haible  <bruno@clisp.org>
66771         Unify conditionals.
66772         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66773         macros, not at the compiler macros.
66774         * lib/pipe.c: Likewise.
66775         * lib/execute.c: Likewise.
66776         * lib/spawni.c: Likewise.
66778 2009-07-19  Bruno Haible  <bruno@clisp.org>
66780         Fix handling of closed stdin/stdout/stderr on mingw.
66781         * lib/w32spawn.h: Include unistd.h.
66782         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66783         file descriptor with O_NOINHERIT flag.
66784         (fd_safer_noinherit): New function, based on fd-safer.c.
66785         (dup_safer_noinherit): New function, based on dup-safer.c.
66786         (undup_safer_noinherit): New function.
66787         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66788         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66789         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66790         instead of fd_safer.
66791         * tests/test-pipe.c: Include <windows.h>.
66792         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66793         result.
66795         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66796         from main.
66797         (test_pipe): Pass an extra argument for disambiguation.
66798         (main): Invoke parent_main or child_main.
66800         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66801         consistently.
66803 2009-07-18  Eric Blake  <ebb9@byu.net>
66805         test-pipe: fix mingw build
66806         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66808 2009-07-18  Bruno Haible  <bruno@clisp.org>
66810         * modules/pipe-tests (Makefile.am): Fix typo.
66812 2009-07-18  Eric Blake  <ebb9@byu.net>
66814         error: fix mingw build
66815         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66816         Reported by Bruno Haible.
66818         error: avoid undefined use of stdout
66819         * lib/error.c (error, error_at_line): Check that fd 1 is open
66820         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66821         is handling faults and the close_stdout module wants to report the
66822         detection of closed stdout as an error.
66824 2009-07-17  Eric Blake  <ebb9@byu.net>
66826         pipe: be robust in face of closed fds
66827         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66828         should cause child to misbehave.
66829         * modules/pipe-tests: New module.
66830         * tests/test-pipe.c: New file.
66831         * tests/test-pipe.sh: New file.
66832         Reported by Akim Demaille.
66834 2009-07-14  Bruno Haible  <bruno@clisp.org>
66836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66837         Reported by anonymous kc.
66839 2009-07-07  Jim Meyering  <meyering@redhat.com>
66841         maint.mk: don't look for translatable strings in *.m4 or *.mk
66842         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66843         when searching for translatable strings.
66845 2009-07-05  Jim Meyering  <meyering@redhat.com>
66847         remove superfluous parentheses in STREQ definition
66848         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66849         * lib/getugroups.c (STREQ): Likewise.
66850         * lib/fnmatch.c (STREQ): Likewise.
66851         Spotted by Bruno Haible.
66853 2009-07-04  Jim Meyering  <meyering@redhat.com>
66855         argv-iter: new module
66856         * MODULES.html.sh: Add argv-iter.
66857         * lib/argv-iter.c, lib/argv-iter.h: New files.
66858         * modules/argv-iter: New file.
66859         * modules/argv-iter-tests: New file.
66860         * tests/test-argv-iter.c: Test it.
66862 2009-07-04  Bruno Haible  <bruno@clisp.org>
66864         Fix assertion.
66865         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66866         contains more exact copies of a given entry than file2, leave the extra
66867         copies unpaired rather than aborting.
66868         Reported by Eric Blake.
66870 2009-07-02  Bruno Haible  <bruno@clisp.org>
66872         Speedup git-merge-changelog for git cherry-pick.
66873         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66874         (entries_mapping_get): New function, extracted from compute_mapping.
66875         (entries_mapping_reverse_get): New function.
66876         (compute_mapping): Add a 'full' argument. Return the result in a
66877         'struct entries_mapping'.
66878         (main): Update. Access the mappings through entries_mapping_get.
66879         Reported by Eric Blake.
66881 2009-07-02  Bruno Haible  <bruno@clisp.org>
66883         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66884         best_i.
66886 2009-07-02  Bruno Haible  <bruno@clisp.org>
66888         Speed up approximate search for matching ChangeLog entries.
66889         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66890         argument. Call fstrcmp_bounded instead of fstrcmp.
66891         (compute_mapping, try_split_merged_entry, main): Update callers.
66893 2009-07-02  Bruno Haible  <bruno@clisp.org>
66895         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66897 2009-06-30  Bruno Haible  <bruno@clisp.org>
66899         Reduce the number of uc_is_cased calls.
66900         * lib/unicase.h (casing_suffix_context_t): Add
66901         'first_char_except_ignorable' field.
66902         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66903         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66904         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66905         Update initializer.
66906         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66907         case-ignorable characters.
66908         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66909         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66910         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66911         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66912         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66914 2009-06-30  Bruno Haible  <bruno@clisp.org>
66916         Tests for module 'unicase/ignorable'.
66917         * modules/unicase/ignorable-tests: New file.
66918         * tests/unicase/test-ignorable.c: New file, generated by
66919         gen-uni-tables.
66921         Tests for module 'unicase/cased'.
66922         * modules/unicase/cased-tests: New file.
66923         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66924         * tests/unicase/test-predicate-part1.h: New file, derived from
66925         tests/unictype/test-predicate-part1.h.
66926         * tests/unicase/test-predicate-part2.h: New file, same as
66927         tests/unictype/test-predicate-part2.h.
66929         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66930         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66931         (output_casing_properties): New function.
66932         (main): Call it.
66933         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66934         * lib/unicase/cased.c: Include unictype/bitmap.h.
66935         (uc_is_cased): Define through a bitmap lookup.
66936         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66937         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66938         (uc_is_case_ignorable): Define through a bitmap lookup.
66939         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66940         lib/unictype/bitmap.h.
66941         (Depends-on): Add inline. Clean up.
66942         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66943         lib/unictype/bitmap.h.
66944         (Depends-on): Add inline. Clean up.
66945         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66946         recognition.
66947         * tests/unicase/test-u16-tolower.c (main): Likewise.
66948         * tests/unicase/test-u32-tolower.c (main): Likewise.
66950 2009-06-30  Bruno Haible  <bruno@clisp.org>
66952         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66953         * lib/unicase/u16-casemap.c: Likewise.
66954         * lib/unicase/u32-casemap.c: Likewise.
66956 2009-06-29  Bruno Haible  <bruno@clisp.org>
66958         Define u32_casefold as a wrapper around u32_ct_casefold.
66959         * lib/unicase/u32-casefold.c: Update.
66960         * modules/unicase/u32-casefold (Depends-on): Add
66961         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66962         unicase/empty-suffix-context. Clean up.
66964         Define u16_casefold as a wrapper around u16_ct_casefold.
66965         * lib/unicase/u16-casefold.c: Update.
66966         * modules/unicase/u16-casefold (Depends-on): Add
66967         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66968         unicase/empty-suffix-context. Clean up.
66970         Define u8_casefold as a wrapper around u8_ct_casefold.
66971         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66972         * lib/unicase/u8-casefold.c: Update.
66973         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66974         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66976         Define u32_totitle as a wrapper around u32_ct_totitle.
66977         * lib/unicase/u32-totitle.c: Update.
66978         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66979         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66981         Define u16_totitle as a wrapper around u16_ct_totitle.
66982         * lib/unicase/u16-totitle.c: Update.
66983         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66984         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66986         Define u8_totitle as a wrapper around u8_ct_totitle.
66987         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66988         functions.
66989         (FUNC): Delegate to U_CT_TOTITLE.
66990         * lib/unicase/u8-totitle.c: Update.
66991         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66992         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66994         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66995         invocation.
66996         * modules/unicase/u32-tolower (Depends-on): Add
66997         unicase/empty-prefix-context, unicase/empty-suffix-context.
66999         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
67000         invocation.
67001         * modules/unicase/u16-tolower (Depends-on): Add
67002         unicase/empty-prefix-context, unicase/empty-suffix-context.
67004         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
67005         * modules/unicase/u8-tolower (Depends-on): Add
67006         unicase/empty-prefix-context, unicase/empty-suffix-context.
67008         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
67009         invocation.
67010         * modules/unicase/u32-toupper (Depends-on): Add
67011         unicase/empty-prefix-context, unicase/empty-suffix-context.
67013         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
67014         invocation.
67015         * modules/unicase/u16-toupper (Depends-on): Add
67016         unicase/empty-prefix-context, unicase/empty-suffix-context.
67018         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
67019         * modules/unicase/u8-toupper (Depends-on): Add
67020         unicase/empty-prefix-context, unicase/empty-suffix-context.
67022         New module 'unicase/u32-ct-casefold'.
67023         * lib/unicase/u32-ct-casefold.c: New file.
67024         * modules/unicase/u32-ct-casefold: New file.
67026         New module 'unicase/u16-ct-casefold'.
67027         * lib/unicase/u16-ct-casefold.c: New file.
67028         * modules/unicase/u16-ct-casefold: New file.
67030         New module 'unicase/u8-ct-casefold'.
67031         * lib/unicase/u8-ct-casefold.c: New file.
67032         * lib/unicase/u-ct-casefold.h: New file, derived from
67033         lib/unicase/u-casefold.h.
67034         * modules/unicase/u8-ct-casefold: New file.
67036         New module 'unicase/u32-ct-totitle'.
67037         * lib/unicase/u32-ct-totitle.c: New file.
67038         * modules/unicase/u32-ct-totitle: New file.
67040         New module 'unicase/u16-ct-totitle'.
67041         * lib/unicase/u16-ct-totitle.c: New file.
67042         * modules/unicase/u16-ct-totitle: New file.
67044         New module 'unicase/u8-ct-totitle'.
67045         * lib/unicase/u8-ct-totitle.c: New file.
67046         * lib/unicase/u-ct-totitle.h: New file, derived from
67047         lib/unicase/u-totitle.h.
67048         * modules/unicase/u8-ct-totitle: New file.
67050         New module 'unicase/u32-ct-tolower'.
67051         * lib/unicase/u32-ct-tolower.c: New file.
67052         * modules/unicase/u32-ct-tolower: New file.
67054         New module 'unicase/u16-ct-tolower'.
67055         * lib/unicase/u16-ct-tolower.c: New file.
67056         * modules/unicase/u16-ct-tolower: New file.
67058         New module 'unicase/u8-ct-tolower'.
67059         * lib/unicase/u8-ct-tolower.c: New file.
67060         * modules/unicase/u8-ct-tolower: New file.
67062         New module 'unicase/u32-ct-toupper'.
67063         * lib/unicase/u32-ct-toupper.c: New file.
67064         * modules/unicase/u32-ct-toupper: New file.
67066         New module 'unicase/u16-ct-toupper'.
67067         * lib/unicase/u16-ct-toupper.c: New file.
67068         * modules/unicase/u16-ct-toupper: New file.
67070         New module 'unicase/u8-ct-toupper'.
67071         * lib/unicase/u8-ct-toupper.c: New file.
67072         * modules/unicase/u8-ct-toupper: New file.
67074         Add context arguments to u*_casemap functions.
67075         * lib/unicase/unicasemap.h: Include unicase.h.
67076         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
67077         suffix_context arguments.
67078         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
67079         functions.
67080         (FUNC): Add prefix_context and suffix_context arguments. Use
67081         uc_is_cased and uc_is_case_ignorable.
67082         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
67083         * lib/unicase/u16-casemap.c: Likewise.
67084         * lib/unicase/u32-casemap.c: Likewise.
67085         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
67086         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67087         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
67088         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67089         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
67090         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67092         New module 'unicase/u32-suffix-context'.
67093         * lib/unicase/u32-suffix-context.c: New file.
67094         * modules/unicase/u32-suffix-context: New file.
67096         New module 'unicase/u16-suffix-context'.
67097         * lib/unicase/u16-suffix-context.c: New file.
67098         * modules/unicase/u16-suffix-context: New file.
67100         New module 'unicase/u8-suffix-context'.
67101         * lib/unicase/u8-suffix-context.c: New file.
67102         * lib/unicase/u-suffix-context.h: New file.
67103         * modules/unicase/u8-suffix-context: New file.
67105         New module 'unicase/empty-suffix-context'.
67106         * lib/unicase/empty-suffix-context.c: New file.
67107         * modules/unicase/empty-suffix-context: New file.
67109         New module 'unicase/u32-prefix-context'.
67110         * lib/unicase/u32-prefix-context.c: New file.
67111         * modules/unicase/u32-prefix-context: New file.
67113         New module 'unicase/u16-prefix-context'.
67114         * lib/unicase/u16-prefix-context.c: New file.
67115         * modules/unicase/u16-prefix-context: New file.
67117         New module 'unicase/u8-prefix-context'.
67118         * lib/unicase/u8-prefix-context.c: New file.
67119         * lib/unicase/u-prefix-context.h: New file.
67120         * lib/unicase/context.h: New file.
67121         * modules/unicase/u8-prefix-context: New file.
67123         New module 'unicase/empty-prefix-context'.
67124         * lib/unicase/empty-prefix-context.c: New file.
67125         * modules/unicase/empty-prefix-context: New file.
67127         New module 'unicase/ignorable'.
67128         * lib/unicase/ignorable.c: New file.
67129         * modules/unicase/ignorable: New file.
67131         New module 'unicase/cased'.
67132         * lib/unicase/caseprop.h: New file.
67133         * lib/unicase/cased.c: New file.
67134         * modules/unicase/cased: New file.
67136         New functions for case mapping of substrings.
67137         * lib/unicase.h (casing_prefix_context_t): New type.
67138         (unicase_empty_prefix_context): New variable.
67139         (u8_casing_prefix_context, u16_casing_prefix_context,
67140         u32_casing_prefix_context, u8_casing_prefixes_context,
67141         u16_casing_prefixes_context, u32_casing_prefixes_context): New
67142         declarations.
67143         (casing_suffix_context_t): New type.
67144         (unicase_empty_suffix_context): New variable.
67145         (u8_casing_suffix_context, u16_casing_suffix_context,
67146         u32_casing_suffix_context, u8_casing_suffixes_context,
67147         u16_casing_suffixes_context, u32_casing_suffixes_context,
67148         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
67149         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
67150         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
67151         declarations.
67153 2009-06-28  Jim Meyering  <meyering@redhat.com>
67155         boostrap: indent only with spaces
67156         * build-aux/bootstrap: Indent only with spaces, never TABs.
67158         bootstrap: split long lines
67159         * build-aux/bootstrap: Keep line length < 80.
67161         bootstrap: sync from coreutils
67162         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
67163         just as autoreconf does.  Verify a list of prerequisite
67164         package-name,version-number pairs if defined in bootstrap.conf.
67165         Refer to README-prereq, if prerequisites are not satisfied.
67167 2009-06-27  Eric Blake  <ebb9@byu.net>
67169         tests: add test for bogus NULL definition
67170         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
67171         * tests/test-stdlib.c: Likewise.
67172         * tests/test-string.c: Likewise.
67173         * tests/test-locale.c: Likewise.
67174         * tests/test-unistd.c: Likewise.
67175         * modules/stdio-tests (Depends-on): Add verify.
67176         * modules/stdlib-tests (Depends-on): Likewise.
67177         * modules/string-tests (Depends-on): Likewise.
67178         * modules/locale-tests (Depends-on): Likewise.
67179         * modules/unistd-tests (Depends-on): Likewise.
67181 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
67183         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
67184         self-explaining comment.
67185         * m4/selinux-selinux-h: Update serial.
67186         (gl_LIBSELINUX): New macro, adding a warning for missing development
67187         packages to code extracted from...
67188         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
67189         Add warning for missing development packages here, too.
67191 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
67193         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
67195 2009-06-25  Eric Blake  <ebb9@byu.net>
67197         version-etc: fix regression
67198         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
67199         gcc.
67200         (version_etc): Use it, to catch bugs with trailing NULL.
67201         * lib/version-etc.c (version_etc_arn): Delete unused argument.
67202         (version_etc_va): Fix logic bug.
67203         * modules/version-etc-tests: Add test.
67204         * tests/test-version-etc.c: New file.
67205         * tests/test-version-etc.sh: Likewise.
67207 2009-06-25  Sam Steingold  <sds@gnu.org>
67209         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
67210         mbtowc declaration.
67212 2009-06-25  Eric Blake  <ebb9@byu.net>
67214         fpurge: migrate into <stdio.h>
67215         * lib/fpurge.h: Delete...
67216         * lib/stdio.in.h (fpurge): ...and declare here, instead.
67217         * lib/fpurge.c (fpurge): Change declaring header.
67218         * modules/fpurge (Files): Drop deleted file.
67219         (Depends-on): Add stdio.
67220         (configure.ac): Set witness.
67221         * modules/stdio (Makefile.am): Support fpurge macros.
67222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67223         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
67224         * lib/fflush.c: Update client.
67225         * tests/test-fpurge.c: Likewise.
67226         * NEWS: Mention the change.
67228 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67230         * lib/argp-version-etc.c (program_authors): Add const
67231         qualifier.
67232         * lib/version-etc.c: Fix typos in the comments.
67233         * modules/argp-version-etc: Depends on version-etc.
67235 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67237         argp-version-etc: new module.
67239         * lib/argp-version-etc.c: New file.
67240         * lib/argp-version-etc.h: New file.
67241         * modules/argp-version-etc: New file.
67242         * modules/argp-version-etc-tests: New file.
67243         * tests/test-argp-version-etc.c: New test.
67244         * tests/test-argp-version-etc-1.sh: New test.
67246 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67248         Provide additional interfaces and documentation for version-etc
67249         module.
67251         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
67252         interfaces.
67253         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
67254         prototypes.
67256 2009-06-24  Bruno Haible  <bruno@clisp.org>
67258         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
67259         HAVE_LIB${NAME} macro.
67260         Reported by Sam Steingold <sds@gnu.org>.
67262 2009-06-23  Simon Josefsson  <simon@josefsson.org>
67264         * modules/hash-tests (test_hash_LDADD): Link to libintl when
67265         needed.
67267 2009-06-21  Bruno Haible  <bruno@clisp.org>
67269         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
67270         work.
67271         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
67272         together with LIB${NAME}, LTLIB${NAME}.
67273         Reported by Sam Steingold <sds@gnu.org>.
67275 2009-06-20  Jim Meyering  <meyering@redhat.com>
67277         tests: make sc_require_test_exit_idiom more generic
67278         * top/maint.mk (Exit_witness_file): New overridable variable.
67279         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
67280         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
67282 2009-06-19  Jim Meyering  <meyering@redhat.com>
67284         hash: reverse order of src/dst parameters in an internal interface
67285         * lib/hash.c (transfer_entries): Reverse order of parameters to
67286         put DST before SRC.  Adjust callers.
67288         tests: test-hash: avoid wholesale duplication
67289         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
67290         Instead, use a loop and add a single conditional.
67292         tests: test-hash: allow seed selection via a command line argument
67293         * tests/test-hash.c (get_seed): New function.
67294         (main): Use it.
67296 2009-06-19  Eric Blake  <ebb9@byu.net>
67298         hash: avoid memory leak on allocation failure
67299         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
67300         failure.  Factor repeated algorithm...
67301         (transfer_entries): ...into new helper routine.
67302         (hash_delete): React to hash_rehash return value.
67304         hash: reduce memory pressure in hash_rehash no-op case
67305         * lib/hash.c (next_prime): Avoid overflow.
67306         (hash_initialize): Factor bucket size computation...
67307         (compute_bucket_size): ...into new helper function.
67308         (hash_rehash): Use new function and open coding to reduce memory
67309         pressure, and avoid a memory leak in USE_OBSTACK code.
67310         Reported by Jim Meyering.
67312 2009-06-18  Eric Blake  <ebb9@byu.net>
67314         hash: make rotation more obvious
67315         * modules/hash (Depends-on): Add bitrotate and stdint.
67316         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
67317         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
67318         (SIZE_MAX): Rely on headers for definition.
67319         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
67320         (raw_hasher): Use rotr_sz.
67321         Suggested by Jim Meyering.
67323         hash: fix memory leak in last patch
67324         * lib/hash.c (hash_rehash): Avoid memory leak.
67326         hash: avoid no-op rehashing
67327         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
67329         hash: provide default callback functions
67330         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67331         (hash_initialize): Use them as defaults.
67332         * tests/test-hash.c (main): Test this.
67334         hash: minor optimization
67335         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67336         when possible.
67337         (hash_initialize): Document this promise.
67338         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67339         * tests/test-hash.c (hash_compare_strings): Test this.
67341 2009-06-18  Bruno Haible  <bruno@clisp.org>
67343         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67344         going to be replaced anyway.
67346 2009-06-18  Bruno Haible  <bruno@clisp.org>
67348         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67349         in one place.
67350         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67351         be replaced anyway.
67353 2009-06-18  Eric Blake  <ebb9@byu.net>
67355         hash: check for resize before insertion
67356         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67357         threshold before insertion, so that a pathological hash_rehash
67358         that fills every bucket can still trigger another rehash.
67360 2009-06-18  Jim Meyering  <meyering@redhat.com>
67362         hash-tests: add a loop around the small tests
67363         * tests/test-hash.c (main): Repeat small tests with selected
67364         small initial table sizes.
67366 2009-06-17  Eric Blake  <ebb9@byu.net>
67368         hash: minor cleanups
67369         * lib/hash.h (hash_entry): Make opaque, by moving...
67370         * lib/hash.c (hash_entry): ...here.
67371         (hash_insert): Clarify restrictions on what can be inserted.
67372         (hash_get_next): Clarify when it is safe to remove an element
67373         during traversal.
67374         (check_tuning): Skip verification when tuning is known safe.
67375         (hash_initialize): Clarify restrictions on tuning.
67377 2009-06-17  Jim Meyering  <jim@meyering.net>
67378         and Eric Blake  <ebb9@byu.net>
67380         hash-tests: new module
67381         * modules/hash-tests: New file.
67382         * tests/test-hash.c: New file.
67384 2009-06-17  Eric Blake  <ebb9@byu.net>
67386         strstr-simple: document new module
67387         * MODULES.html.sh: Document new module.
67389         strstr, strcasestr: replace on platforms with broken memchr
67390         * modules/strstr: Split into...
67391         * modules/strstr-simple: ...new module that does not care about
67392         performance, but does care about glibc bug.
67393         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67394         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67395         if platform memchr is broken, per Debian bug 521737.
67396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67397         memchr.
67398         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67399         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67400         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67401         * modules/mountlist (Depends-on): Add strstr-simple.
67402         * modules/gen-uni-tables (Depends-on): Likewise.
67403         * modules/argz (Depends-on): Add strstr.
67405 2009-06-17  Bruno Haible  <bruno@clisp.org>
67407         * modules/posix_spawn-internal (Depends-on): Add errno.
67409 2009-06-17  Bruno Haible  <bruno@clisp.org>
67411         Define missing ESTALE on Interix 3.5.
67412         * lib/errno.in.h (ESTALE): Assign a value if missing.
67413         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67414         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67415         missing.
67416         * doc/posix-headers/errno.texi: Mention the Interix bug.
67417         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67419 2009-06-15  Eric Blake  <ebb9@byu.net>
67421         memchr, memchr2: add valgrind exception
67422         * lib/memchr.valgrind: New file.
67423         * lib/memchr2.valgrind: New file.
67424         * modules/memchr (Files): Distribute valgrind file.
67425         * modules/memchr2 (Files): Likewise.
67427         docs: memchr is no longer obsolete
67428         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67429         * lib/string.in.h (memchr): Simplify logic.
67431 2009-06-14  Jim Meyering  <meyering@redhat.com>
67433         link-follow: fix the "checking..." message to not mention trailing slash
67434         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67435         never considered trailing slashes.
67437 2009-06-14  Bruno Haible  <bruno@clisp.org>
67439         * m4/memchr.m4: Mention also the bug on IA-64.
67440         * doc/posix-functions/memchr.texi: Likewise.
67442 2009-06-12  Eric Blake  <ebb9@byu.net>
67444         memchr: detect broken x86_64 and alpha implementations
67445         * modules/memchr-tests (Depends-on): Move mmap detection...
67446         * modules/memchr (Depends-on): ...here.
67447         (configure.ac): Set indicator.
67448         * lib/string.in.h (memchr): Declare replacement.
67449         * modules/string (Makefile.am): Trigger replacement.
67450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67451         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67452         bugs.
67453         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67454         * modules/getpagesize (License): Relax license.
67456 2009-06-11  Bruno Haible  <bruno@clisp.org>
67458         * lib/idpriv.h: Add more references.
67460 2009-06-08  Bruno Haible  <bruno@clisp.org>
67462         Tests for module 'idpriv-droptemp'.
67463         * modules/idpriv-droptemp-tests: New file.
67464         * tests/test-idpriv-droptemp.sh: New file.
67465         * tests/test-idpriv-droptemp.su.sh: New file.
67466         * tests/test-idpriv-droptemp.c: New file.
67468         New module 'idpriv-droptemp'.
67469         * lib/idpriv-droptemp.c: New file.
67470         * modules/idpriv-droptemp: New file.
67472 2009-06-08  Bruno Haible  <bruno@clisp.org>
67474         Tests for module 'idpriv-drop'.
67475         * modules/idpriv-drop-tests: New file.
67476         * tests/test-idpriv-drop.sh: New file.
67477         * tests/test-idpriv-drop.su.sh: New file.
67478         * tests/test-idpriv-drop.c: New file.
67480         New module 'idpriv-drop'.
67481         * lib/idpriv.h: New file.
67482         * lib-idpriv-drop.c: New file.
67483         * m4/idpriv.m4: New file.
67484         * modules/idpriv-drop: New file.
67486 2009-06-08  Bruno Haible  <bruno@clisp.org>
67488         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67489         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67490         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67491         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67492         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67493         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67494         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67496 2009-06-08  Eric Blake  <ebb9@byu.net>
67498         test-strstr: use memory fence, when possible
67499         * tests/test-strstr.c (main): Use memory fence, in order to be
67500         more likely to trigger Debian bug 521737.
67501         * modules/strstr-tests (Files): Pull in additional files.
67503         memchr: no longer obsolete, for wider field testing
67504         * modules/memchr (Status, Notice): Delete, this module is no
67505         longer obsolete.
67506         * modules/vasnprintf (Depends-on): Add memchr.
67508 2009-06-07  Jim Meyering  <meyering@redhat.com>
67510         hash: declare some functions with the warn_unused_result attribute
67511         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67513 2009-06-07  Bruno Haible  <bruno@clisp.org>
67515         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67516         Reported by Eric Blake.
67518 2009-06-06  Eric Blake  <ebb9@byu.net>
67520         test-alignof: fix typo with long double
67521         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67522         compiler error.
67524 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67526         Escape non-texinfo { and }s.
67527         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67528         markup error.
67530 2009-06-04  Jim Meyering  <meyering@redhat.com>
67532         gitlog-to-changelog: don't infloop on an empty commit log
67533         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67534         Reported by Boris Petersen <transacid@centerim.org>.
67536 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67538         version-etc: extend for packagers
67539         Add three new configure options, intended for packagers:
67540           --with-packager="packager name"
67541           --with-packager-version="packager-specific version"
67542           --with-packager-bug-reports="packager bug reporting"
67543         An example with coreutils:
67544           $ ./configure \
67545             --with-packager=Gentoo \
67546             --with-packager-bug-report=http://bugs.gentoo.org/ \
67547             --with-packager-version="patchset 1.6"
67548           $ ./src/ls --version | head -n2
67549           ls (GNU coreutils) 7.1-dirty
67550           Packaged by Gentoo (patchset 1.6)
67551         Note that the bug reporting info via --help doesn't show up because
67552         coreutils uses its own custom emit_bug_reporting_address() implementation
67553         in src/system.h.  If it didn't, it'd look like:
67554           $ ./src/ls --help | tail -n4
67555           Report bugs to <bug-coreutils@gnu.org>.
67556           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67557           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67558           General help using GNU software: <http://www.gnu.org/gethelp/>.
67559         * lib/version-etc.c: Print new information, if provided.
67560         * m4/version-etc.m4: New file.
67561         * modules/version-etc (Files): Add m4/version-etc.m4.
67562         (configure.ac): Add gl_VERSION_ETC.
67564 2009-05-31  Bruno Haible  <bruno@clisp.org>
67566         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67567         and 'int64_t'.
67568         * modules/alignof-tests (Dependencies): Add stdint.
67569         Reported by Eric Blake.
67571 2009-05-31  Bruno Haible  <bruno@clisp.org>
67573         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67574         restriction due to compiler bugs.
67575         Reported by Eric Blake.
67577 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67578             Bruno Haible  <bruno@clisp.org>
67580         Fix test-alignof failure.
67581         * lib/alignof.h (alignof_slot): New macro.
67582         (alignof_type): New macro, with the same semantics as the previous
67583         'alignof'.
67584         (alignof): Alias to alignof_slot.
67585         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67586         check that the results are usable as constant expressions.
67588 2009-05-31  Bruno Haible  <bruno@clisp.org>
67590         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67591         * tests/test-memchr.c (main): Check that memchr does not read past the
67592         first occurrence of the byte.
67593         * tests/test-strstr.c (main): Update comment.
67594         Suggested by Eric Blake.
67596 2009-05-30  Bruno Haible  <bruno@clisp.org>
67598         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67599         detail how to use dumpbin.
67600         Reported by David Byron <dbyron@dbyron.com>.
67602 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67604         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67606 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67608         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67610 2009-05-28  Bruno Haible  <bruno@clisp.org>
67612         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67613         build-aux/ files.
67615 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67617         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67619 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67621         * gnulib-tool (sed_transform_main_lib_file)
67622         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67623         regexps.
67625 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67627         * tests/test-strstr.c: Add another self-test.
67628         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67629         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67631 2009-05-23  Bruno Haible  <bruno@clisp.org>
67633         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67634         change.
67636 2009-05-21  Bruno Haible  <bruno@clisp.org>
67638         Simplify use of mode_t varargs.
67639         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67640         uses 'mode_t' or 'int'.
67641         * lib/openat.c (openat): Likewise.
67642         * lib/open-safer.c (open_safer): Likewise.
67643         * m4/mode_t.m4: New file.
67644         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67645         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67646         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67647         * modules/open (Files): Add m4/mode_t.m4.
67648         * modules/openat (Files): Likewise.
67649         * modules/fcntl-safer (Files): Likewise.
67650         Suggested by Eric Blake.
67652 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67654         * doc/glibc-functions/fallocate.texi: New file.
67655         * doc/gnulib.texi: Include it.
67657 2009-05-21  Eric Blake  <ebb9@byu.net>
67658             Bruno Haible  <bruno@clisp.org>
67660         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67661         invocations.
67662         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67664 2009-05-21  Eric Blake  <ebb9@byu.net>
67665             Bruno Haible  <bruno@clisp.org>
67667         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67668         include_next. Fix of 2008-11-20 commit.
67669         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67670         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67671         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67672         NEXT_MATH_H.
67673         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67674         instead of NEXT_MATH_H.
67676 2009-05-21  Bruno Haible  <bruno@clisp.org>
67678         Avoid redefinition warnings for SIZE_MAX.
67679         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67680         Reported by Simon Josefsson.
67682 2009-05-21  Bruno Haible  <bruno@clisp.org>
67684         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67685         AC_CACHE_VAL.
67687 2009-05-20  Bruno Haible  <bruno@clisp.org>
67689         Make zeroptr.h work on mingw.
67690         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67691         mprotect.
67692         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67693         * modules/memchr2-tests (configure.ac): Likewise.
67694         * modules/memcmp-tests (configure.ac): Likewise.
67695         * modules/memmem-tests (configure.ac): Likewise.
67696         * modules/memrchr-tests (configure.ac): Likewise.
67697         Reported by Simon Josefsson.
67699 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67701         * tests/test-glob.c: Include string.h for strcmp prototype.
67703 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67705         * modules/getdelim (Depends-on): Add explicit stdint, although it
67706         was implicitly already pulled in via realloc-posix.
67707         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67709 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67711         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67712         G. Christensen" <tgc@jupiterrise.com>.
67713         * m4/sys_socket_h.m4: Check for sa_family_t.
67714         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67715         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67716         * tests/test-sys_socket.c: Check that sa_family_t works.
67718 2009-05-18  Eric Blake  <ebb9@byu.net>
67720         maint.mk: allow gnulib_dir in VPATH build
67721         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67723 2009-05-15  Jim Meyering  <meyering@redhat.com>
67725         maint.mk: Give gnulib_dir a default definition.
67726         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67727         Thus, most packages no longer need to specify this variable in cfg.mk
67729 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67731         rename.m4: fix typos that would make non-mingw cross-configure fail
67732         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67734 2009-05-13  Eric Blake  <ebb9@byu.net>
67736         mmap-anon: avoid out-of-order autoconf expansion
67737         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67738         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67739         * modules/memchr-tests (Depends-on): Add extensions.
67740         * modules/memchr2-tests (Depends-on): Add extensions.
67741         * modules/memcmp-tests (Depends-on): Add extensions.
67742         * modules/memmem-tests (Depends-on): Add extensions.
67743         * modules/memrchr-tests (Depends-on): Add extensions.
67745 2009-05-13  Bruno Haible  <bruno@clisp.org>
67747         Make some tests ISO C 99 compliant.
67748         * tests/zerosize-ptr.h: New file.
67749         * tests/test-memchr.c: Include zerosize-ptr.h.
67750         (main): Use a zero-size object pointer instead of NULL.
67751         * tests/test-memchr2.c: Include zerosize-ptr.h.
67752         (main): Use a zero-size object pointer instead of NULL.
67753         * tests/test-memcmp.c: Include zerosize-ptr.h.
67754         (main): Use a zero-size object pointer instead of NULL.
67755         * tests/test-memmem.c: Include zerosize-ptr.h.
67756         (main): Use a zero-size object pointer instead of NULL.
67757         * tests/test-memrchr.c: Include zerosize-ptr.h.
67758         (main): Use a zero-size object pointer instead of NULL.
67759         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67760         m4/mmap-anon.m4.
67761         (Depends-on): Add getpagesize.
67762         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67763         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67764         m4/mmap-anon.m4.
67765         (Depends-on): Add getpagesize.
67766         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67767         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67768         m4/mmap-anon.m4.
67769         (Depends-on): Add getpagesize.
67770         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67771         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67772         m4/mmap-anon.m4.
67773         (Depends-on): Add getpagesize.
67774         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67775         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67776         m4/mmap-anon.m4.
67777         (Depends-on): Add getpagesize.
67778         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67780 2009-05-12  Bruno Haible  <bruno@clisp.org>
67782         Tests for module 'alignof'.
67783         * modules/alignof-tests: New file.
67784         * tests/test-alignof.c: New file.
67786 2009-05-12  Bruno Haible  <bruno@clisp.org>
67788         Fix alignof macro.
67789         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67790         vendor compilers that are always correct.
67792 2009-05-12  Bruno Haible  <bruno@clisp.org>
67794         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67795         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67796         not whether its fully works.
67798 2009-05-12  Bruno Haible  <bruno@clisp.org>
67800         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67802 2009-05-12  Jim Meyering  <meyering@redhat.com>
67804         * top/maint.mk: Adjust backslash alignment.
67806 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67808         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67810 2009-05-11  Eric Blake  <ebb9@byu.net>
67812         argp: avoid undefined behavior
67813         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67814         macros.
67816 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67818         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67819         user.name to prevent git commit from complaining.
67821 2009-05-10  Bruno Haible  <bruno@clisp.org>
67823         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67824         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67825         it rewrites every file name only once.
67826         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67828 2009-05-08  Bruno Haible  <bruno@clisp.org>
67830         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67831         instead of 'max'.
67833 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67835         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67836         sockaddr_storage test.
67838 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67840         * modules/sys_socket (Makefile.am): Substitute
67841         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67842         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67843         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67844         * tests/test-sys_socket.c: Check sockaddr_storage.
67846 2009-05-08  Bruno Haible  <bruno@clisp.org>
67848         New module 'alignof'.
67849         * lib/alignof.h: New file.
67850         * modules/alignof: New file.
67852 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67853             Bruno Haible  <bruno@clisp.org>
67855         Fix test-file-has-acl on FreeBSD.
67856         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67857         mask is implicitly added.
67858         * tests/test-file-has-acl.c: Include <signal.h>.
67859         (main): Terminate the test after 5 seconds.
67860         * modules/acl-tests (configure.ac): Check for alarm function.
67862 2009-05-04  Bruno Haible  <bruno@clisp.org>
67864         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67865         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67866         * modules/errno (configure.ac): Drop AC_REQUIRE.
67867         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67868         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67870 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67872         * modules/glob-tests: New module.
67873         * tests/test-glob.c: Add.
67875 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67877         * modules/fnmatch-tests: New module.
67878         * tests/test-fnmatch.c: Add.
67880 2009-05-04  Eric Blake  <ebb9@byu.net>
67882         maint: make the new no-submodule-changes rule VPATH-safe
67883         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67885 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67886             Bruno Haible  <bruno@clisp.org>
67888         acl: Fix infinite loop on FreeBSD.
67889         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67890         of return value from acl_get_entry.
67891         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67892         Likewise.
67894 2009-05-03  Bruno Haible  <bruno@clisp.org>
67896         * lib/acl-internal.h (acl_entries): Clarify return value.
67897         * lib/acl_entries.c (acl_entries): Likewise.
67899 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67901         Bug fix in acl module.
67902         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67904 2009-05-03  Bruno Haible  <bruno@clisp.org>
67906         Create gperf-generated file in the source dir, not in the build dir.
67907         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67908         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67909         * modules/unicase/locale-language (unicase/locale-languages.h):
67910         Likewise.
67911         * modules/unicase/special-casing (unicase/special-casing-table.h):
67912         Likewise.
67913         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67914         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67915         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67916         Reported by Ralf Wildenhues.
67918 2009-05-03  Bruno Haible  <bruno@clisp.org>
67920         * modules/fnmatch (Description, configure.ac): Taken from
67921         fnmatch-posix.
67922         * modules/fnmatch-posix: Turn into a symbolic reference to the
67923         'fnmatch' module, and deprecate.
67924         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67926 2009-05-03  Bruno Haible  <bruno@clisp.org>
67928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67929         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67930         Reported by Ralf Wildenhues.
67932 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67934         * m4/fnmatch.m4: Fix fnmatch re-define.
67936 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67938         priv-set: new module and tests; adapt write-any-file
67939         * lib/priv-set.c: New file.
67940         * lib/priv-set.h: New file.
67941         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67942         * lib/write-any-file.c: Simplify by using priv-set module.
67943         * m4/priv-set.m4: New file.
67944         * modules/priv-set: New file.
67945         * modules/unlinkdir: Add dependency on priv-set module.
67946         * modules/write-any-file: Likewise.
67948         Tests for module 'priv-set'.
67949         * modules/priv-set-tests: New file.
67950         * tests/test-priv-set.c: New file.
67952 2009-05-03  Jim Meyering  <meyering@redhat.com>
67953             Bruno Haible  <bruno@clisp.org>
67955         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67956         use the converted UTF-8 variant of the name instead.
67958 2009-05-03  Jim Meyering  <meyering@redhat.com>
67960         tests: tighten some getdate tests
67961         * tests/test-getdate.c (main): Tighten tests: require equality,
67962         not just greater than.  Set TZ envvar to UTC0.
67964 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67966         getdate: correctly interpret "next monday" when run on a Monday
67967         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67968         that e.g., "next tues" (when run on a tuesday) results in a date
67969         that is one week in the future, and not today's date.
67970         I.e., add a week when the wday is the same as the current one.
67971         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67972         and earlier by Martin Bernreuther and Jan Minář.
67973         * tests/test-getdate.c (main): Check that "next DAY" is always in
67974         the future and that "last DAY" is always in the past.
67976 2009-05-02  Jim Meyering  <meyering@redhat.com>
67978         build: ensure that a release build fails when a submodule is unclean
67979         * top/maint.mk (no-submodule-changes): New rule.
67980         (alpha beta major): Depend on it.
67982 2009-05-02  Bruno Haible  <bruno@clisp.org>
67984         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67985         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67986         shell variable gl_fnmatch_required to detect which variant is
67987         requested.
67988         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67989         gl_FUNC_FNMATCH_POSIX.
67990         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67991         exclude fnmatch-posix.
67993 2009-05-02  Bruno Haible  <bruno@clisp.org>
67995         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67996         * modules/mbsrtowcs (License): Change to LGPLv2+.
67997         * modules/strnlen1 (License): Likewise.
67998         Reported by Simon Josefsson.
68000 2009-05-02  Bruno Haible  <bruno@clisp.org>
68002         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
68003         "cross".
68004         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
68005         gnulib-tool was called with option --source-base=lib.
68007 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68009         Use automake *-local hooks without commands, for extensibility.
68010         * modules/localcharset (Makefile.am): Rename install-exec-local
68011         rule to install-exec-localcharset, and make it a prerequisite of
68012         install-exec-local.  Likewise, rename the uninstall-local rule to
68013         uninstall-localcharset, and make it a prerequisite of the former.
68015 2009-05-01  Bruno Haible  <bruno@clisp.org>
68017         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
68018         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
68019         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
68020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
68021         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
68022         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
68023         m4/locale-zh.m4, m4/codeset.m4.
68025         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
68026         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
68027         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
68028         m4/locale-zh.m4.
68030         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
68031         REPLACE_WCRTOMB if mbstate_t must be replaced.
68032         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
68033         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
68035 2009-05-01  Bruno Haible  <bruno@clisp.org>
68037         Avoid compiler warnings when redefining macros defined by <libintl.h>.
68038         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
68039         dngettext, dcngettext, textdomain, bindtextdomain,
68040         bind_textdomain_codeset): Undefine before redefining.
68042 2009-04-30  Bruno Haible  <bruno@clisp.org>
68044         Fix bug introduced on 2009-04-25.
68045         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
68046         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
68047         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
68048         is defined.
68049         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
68050         is defined.
68051         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
68052         is defined.
68053         Reported by Elbert_Pol <elbert.pol@gmail.com>.
68055 2009-04-28  Bruno Haible  <bruno@clisp.org>
68057         Comment tweaks.
68058         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
68059         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
68060         * lib/unicase.h (u*_casexfrm): Likewise.
68061         Reported by Paolo Bonzini.
68063 2009-04-28  Bruno Haible  <bruno@clisp.org>
68065         Fix a compilation error.
68066         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
68067         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
68068         Reported by Jim Meyering.
68070 2009-04-27  Bruno Haible  <bruno@clisp.org>
68072         New module 'libunistring'.
68073         * modules/libunistring: New file.
68074         * m4/libunistring.m4: New file.
68075         * MODULES.html.sh (Unicode string functions): Add it.
68077 2009-04-27  Eric Blake  <ebb9@byu.net>
68079         maint.mk: allow package-specific header to provide <config.h>
68080         * top/maint.mk (sc_require_config_h): New variable.
68081         (sc_require_config_h, sc_require_config_h_first): Use it.
68083 2009-04-27  Simon Josefsson  <simon@josefsson.org>
68085         * top/maint.mk (sc_avoid_if_before_free): Except
68086         useless-if-before-free script.
68088 2009-04-27  Eric Blake  <ebb9@byu.net>
68090         maintainer-makefile: depend on all required helper scripts
68091         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
68092         useless-if-before-free.
68093         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
68094         version, rather than assuming gnulib checkout is available.
68095         Reported by Simen Josefsson.
68097 2009-04-26  Bruno Haible  <bruno@clisp.org>
68099         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
68100         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
68101         "../" or "..".
68103 2009-04-26  Bruno Haible  <bruno@clisp.org>
68105         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
68106         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
68107         AC_LIB_HAVE_LINKFLAGS.
68109 2009-04-26  Bruno Haible  <bruno@clisp.org>
68111         Simplify calling convention of u*_conv_from_encoding.
68112         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
68113         u32_conv_from_encoding): Expect a resultbuf argument and return the
68114         result directly as a pointer.
68115         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
68116         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
68117         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
68118         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
68119         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
68120         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68121         Update.
68122         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
68123         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
68124         * lib/vasnprintf.c (VASNPRINTF): Update.
68125         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
68126         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
68127         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
68128         * NEWS: Mention the change.
68130 2009-04-26  Bruno Haible  <bruno@clisp.org>
68132         Simplify calling convention of u*_conv_to_encoding.
68133         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68134         u32_conv_to_encoding): Expect a resultbuf argument and return the
68135         result directly as a pointer.
68136         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68137         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
68138         freeing scaled_offsets if mem_iconveha failed.
68139         * lib/unicase/u-casexfrm.h (FUNC): Update.
68140         * lib/uninorm/u-normxfrm.h (FUNC): Update.
68141         * lib/vasnprintf.c (VASNPRINTF): Update.
68142         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
68143         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
68144         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
68145         * NEWS: Mention the change.
68147 2009-04-26  Bruno Haible  <bruno@clisp.org>
68149         Avoid test failures on AIX and OSF/1.
68150         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
68151         malloc(0).
68152         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68153         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68154         Likewise.
68155         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
68156         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
68157         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
68158         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
68159         * doc/posix-functions/malloc.texi: Document the portability problem
68160         related to malloc(0).
68162 2009-04-26  Bruno Haible  <bruno@clisp.org>
68164         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
68165         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
68166         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
68168 2009-04-25  Bruno Haible  <bruno@clisp.org>
68170         Avoid link error when creating a namespace clean library.
68171         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
68172         as macro with arguments if already defined as an alias.
68173         * lib/signbitf.c (gl_signbitf): Don't undefine.
68174         * lib/signbitd.c (gl_signbitd): Don't undefine.
68175         * lib/signbitl.c (gl_signbitl): Don't undefine.
68177 2009-04-25  Jim Meyering  <meyering@redhat.com>
68179         vc-list-files: fix another quoting bug
68180         * build-aux/vc-list-files: Avoid sed backslash expansion
68181         of pathological directory names.
68183 2009-04-25  Eric Blake  <ebb9@byu.net>
68185         vc-list-files: fix shell quoting error
68186         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
68187         timestamp.
68189 2009-04-25  Jim Meyering  <meyering@redhat.com>
68191         vc-list-files: restore lost functionality with subdir argument
68192         * build-aux/vc-list-files: When given a non-"." sub-directory
68193         argument, substitute the $dir/ prefix back onto each resulting name.
68194         Otherwise, coreutils' root_tests check would fail.
68196 2009-04-24  Eric Blake  <ebb9@byu.net>
68198         vc-list-files: ignore git symlinks
68199         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
68200         than ls-files, to ignore git symlinks.
68202         maint.mk: import improvements from m4
68203         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
68204         (move_if_change): Delete unused macro.
68205         (news-date-check, vc-diff-check): Support VPATH builds.
68206         (announcement): Likewise.  Split --bootstrap-tools list...
68207         (boostrap-tools): ...into separate list, which can be overridden
68208         in cfg.mk.
68209         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
68210         requiring dependency on useless-if-before-free module.
68211         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
68212         Support VPATH builds.
68214 2009-04-24  Jim Meyering  <meyering@redhat.com>
68216         maint.mk: remove coreutils-specific rules and variables
68217         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
68218         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
68219         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
68221         maint.mk: remove obsolete rule
68222         * top/maint.mk (rel-check): Remove rule.
68223         (WGET, WGETFLAGS): Remove now-unused variables.
68225 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68227         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
68228         consistency.
68230         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
68231         '$(PATH_SEPARATOR)' instead of ':'.
68233 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68235         * lib/getopt1.c (main): Use 'const' for static array.
68237 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68239         * top/maint.mk: Sync with coreutils.
68240         * NEWS: Explain incompatibilities.
68242 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68243             Bruno Haible  <bruno@clisp.org>
68245         Fix cross-compilation results.
68246         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
68247         statement, as third argument of AC_TRY_RUN.
68248         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
68249         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
68250         Likewise.
68251         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
68252         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
68253         Likewise.
68254         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
68255         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
68256         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
68258 2009-04-20  Bruno Haible  <bruno@clisp.org>
68260         Avoid test failure on mingw.
68261         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
68263 2009-04-20  Bruno Haible  <bruno@clisp.org>
68265         Avoid compilation error on mingw.
68266         * modules/localename-tests (Depends-on): Add locale.
68268 2009-04-19  Bruno Haible  <bruno@clisp.org>
68270         Support for building a shared library on Windows platforms.
68271         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
68272         (main): Test the presence of UNINORM_NFC here.
68273         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
68274         (main): Test the presence of UNINORM_NFD here.
68275         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
68276         (main): Test the presence of UNINORM_NFKC here.
68277         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
68278         (main): Test the presence of UNINORM_NFKD here.
68280 2009-04-19  Bruno Haible  <bruno@clisp.org>
68282         Avoid a compiler warning.
68283         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
68284         Change type of variable 'sequence'.
68286 2009-04-19  Bruno Haible  <bruno@clisp.org>
68288         * modules/configmake (Makefile.am): When the contents of configmake.h
68289         does not change, arrange to preserve its modification time.
68291 2009-04-17  Simon Josefsson  <simon@josefsson.org>
68293         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
68294         gettext domain.
68296 2009-04-16  Jim Meyering  <meyering@redhat.com>
68298         useless-if-before-free: improve conversion code
68299         * build-aux/useless-if-before-free: Adjust code-in-comment to match
68300         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
68302 2009-04-14  Bruno Haible  <bruno@clisp.org>
68304         * modules/fcntl (Depends-on): Add extensions.
68305         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
68307 2009-04-12  Ben Pfaff  <blp@gnu.org>
68309         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
68310         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
68312 2009-03-20  Ben Pfaff  <blp@gnu.org>
68314         Make rename replace existing destinations on Windows.
68315         * m4/rename.m4: Add test for Mingw.
68316         * lib/rename.c: Add rename replacement that uses MoveFileEx with
68317         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
68318         * doc/posix-functions/rename.texi: Document.
68320 2009-04-10  Bruno Haible  <bruno@clisp.org>
68322         New include file "iconveh.h".
68323         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
68324         * lib/striconveh.h: Include it.
68325         (enum iconv_ilseq_handler): Remove definition.
68326         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
68327         striconveh.h.
68328         * lib/striconveha.c: Include striconveh.h.
68329         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68330         * modules/striconveh (Files): Add lib/iconveh.h.
68331         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68332         lib/striconveh.h.
68334 2009-04-10  Bruno Haible  <bruno@clisp.org>
68336         * lib/uniconv.h: Update comment.
68338 2009-04-10  Bruno Haible  <bruno@clisp.org>
68340         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68341         always.
68342         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68343         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68344         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68345         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68346         "unistring-notinline.h", so that the function gets defined always.
68347         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68348         * lib/unistr/u8-uctomb.c: Likewise.
68349         * lib/unistr/u16-mbtouc.c: Likewise.
68350         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68351         * lib/unistr/u16-uctomb.c: Likewise.
68352         * lib/unistr/u32-mbtouc.c: Likewise.
68353         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68354         * lib/unistr/u32-uctomb.c: Likewise.
68356 2009-04-10  Bruno Haible  <bruno@clisp.org>
68358         Mark 'utime' obsolete.
68359         * modules/utime (Status, Notice): New sections.
68360         Suggested by Jim Meyering.
68362         Fix cross-compile guess for utime test.
68363         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68364         autoconf.
68365         * doc/posix-functions/utime.texi: Give more precisions.
68366         Reported by Jan <ipif@ymail.com>.
68368 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68370         filevercmp: correct today's change
68371         * lib/filevercmp.c: Also handle coreutils' test inputs.
68372         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68374         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68375         for reporting it.
68376         * lib/filevercmp.c: Special handle for "", "." and "..".
68377         * tests/test-filevercmp.c: Enlarge the set suite.
68379 2009-04-07  Jim Meyering  <meyering@redhat.com>
68381         useless-if-before-free: show how to remove braced useless free, too
68382         * build-aux/useless-if-before-free: still only in a comment, though.
68384 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68386         maint.mk: import changes to syntax-check macros from coreutils
68387         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68388         Use them in the relevant macros.
68390 2009-04-06  Bruno Haible  <bruno@clisp.org>
68392         Fix unportable use of bit-fields.
68393         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68394         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68395         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68397 2009-04-06  Bruno Haible  <bruno@clisp.org>
68399         Avoid test failures on AIX and OSF/1.
68400         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68401         that malloc(0) = NULL.
68402         * tests/unicase/test-u8-tolower.c (check): Likewise.
68403         * tests/unicase/test-u8-totitle.c (check): Likewise.
68404         * tests/unicase/test-u8-toupper.c (check): Likewise.
68405         * tests/unicase/test-u16-casefold.c (check): Likewise.
68406         * tests/unicase/test-u16-tolower.c (check): Likewise.
68407         * tests/unicase/test-u16-totitle.c (check): Likewise.
68408         * tests/unicase/test-u16-toupper.c (check): Likewise.
68409         * tests/unicase/test-u32-casefold.c (check): Likewise.
68410         * tests/unicase/test-u32-tolower.c (check): Likewise.
68411         * tests/unicase/test-u32-totitle.c (check): Likewise.
68412         * tests/unicase/test-u32-toupper.c (check): Likewise.
68413         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68414         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68415         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68416         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68417         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68418         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68419         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68420         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68421         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68422         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68423         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68424         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68426 2009-04-05  Bruno Haible  <bruno@clisp.org>
68428         Work around an autoconf limitation.
68429         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68430         comment line if it would be longer than 3 KB.
68432 2009-04-05  Bruno Haible  <bruno@clisp.org>
68434         Avoid test failure with libiconv-1.13.
68435         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68436         of the expected test results.
68438 2009-04-05  Bruno Haible  <bruno@clisp.org>
68440         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68441         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68442         that it should be installed.
68444 2009-04-05  Bruno Haible  <bruno@clisp.org>
68446         * gnulib-tool: New option --copy-file.
68447         (func_usage): Document it.
68448         (func_dest_tmpfilename): Moved out of func_import.
68449         (func_add_file, func_update_file): New functions, extracted from
68450         func_import.
68451         (func_import): Update.
68453 2009-04-05  Karl Berry  <karl@gnu.org>
68455         * README: prominently mention gnulib-tool.
68456         Rearrange sections so getting the code is near the top.
68458 2009-04-05  Bruno Haible  <bruno@clisp.org>
68460         * lib/unicase.h: Mention u*_cmp2.
68461         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68462         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68463         * lib/unicase/ulc-casecmp.c: Likewise.
68464         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68465         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68466         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68467         unistr/u8-cmp.
68468         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68469         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68470         unistr/u16-cmp.
68471         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68472         unistr/u32-cmp.
68474         * lib/uninorm.h: Mention u*_cmp2.
68475         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68476         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68477         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68478         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68479         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68480         unistr/u8-cmp.
68481         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68482         unistr/u16-cmp.
68483         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68484         unistr/u32-cmp.
68486         New module 'unistr/u32-cmp2'.
68487         * lib/unistr/u32-cmp2.c: New file.
68488         * modules/unistr/u32-cmp2: New file.
68490         New module 'unistr/u16-cmp2'.
68491         * lib/unistr/u16-cmp2.c: New file.
68492         * modules/unistr/u16-cmp2: New file.
68494         New module 'unistr/u8-cmp2'.
68495         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68496         * lib/unistr/u8-cmp2.c: New file.
68497         * lib/unistr/u-cmp2.h: New file.
68498         * modules/unistr/u8-cmp2: New file.
68500 2009-04-05  Bruno Haible  <bruno@clisp.org>
68502         * lib/unictype.h (uc_property_is_valid): New macro.
68503         * tests/unictype/test-pr_byname.c (main): Use it.
68505         * lib/unistr.h: Doc fixes.
68506         * lib/uniconv.h: Doc fixes.
68507         * lib/unictype.h: Doc fixes.
68509 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68511         Port coreutils 7.2 to Solaris 8.
68513         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68514         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68515         for Solaris 8.  This is a bit of a hack, as it means it's the
68516         caller's responsibility to add -lnsl if needed, but most likely it
68517         won't be needed since only getaddrinfo uses this and getaddrinfo
68518         isn't needed on Solaris 8.
68520         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68521         problem to Solaris 8 encountered with coreutils 7.2, which
68522         resulted in a message "fnmatch.c:292: warning: passing argument 4
68523         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68524         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68526 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68528         * m4/ld-version-script.m4: Add FIXME comment.
68530 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68532         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68533         SOVERSION variable.
68535 2009-04-02  Bruno Haible  <bruno@clisp.org>
68537         * Makefile (info, html, dvi, pdf): Combine the rules.
68538         Suggested by Jim Meyering.
68540 2009-04-01  Bruno Haible  <bruno@clisp.org>
68542         * Makefile (info, html, dvi, pdf): New targets.
68543         Reported by Reuben Thomas <rrt@sc3d.org>.
68545 2009-04-01  Bruno Haible  <bruno@clisp.org>
68547         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68548         can be put into PATH.
68549         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68551 2009-04-01  Bruno Haible  <bruno@clisp.org>
68553         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68555 2009-04-01  Bruno Haible  <bruno@clisp.org>
68557         Rename module 'visibility'.
68558         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68559         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68560         * doc/gnulib.texi: Update.
68561         * MODULES.html.sh (Misc): Update.
68562         * NEWS: Mention the change.
68564 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68566         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68567         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68568         Eric Blake <ebb9@byu.net> for review.
68569         * MODULES.html.sh: Add lib-msvc-compat.
68570         * doc/gnulib.texi: Link to new section.
68571         * m4/ld-output-def.m4: New file.
68572         * doc/ld-output-def.texi: New file.
68574 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68576         Rename ld-version-script to lib-symbol-versions.  Suggested by
68577         Bruno Haible <bruno@clisp.org>.
68578         * modules/ld-version-script: Renamed to lib-symbol-versions.
68579         * doc/ld-version-script.texi: Fix module name.
68580         * MODULES.html.sh: Add lib-symbol-versions.
68582 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68584         * modules/u64-tests: New file.
68585         * tests/test-u64.c: New file.
68587 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68589         * MODULES.html.sh: Mention u64.
68590         * modules/u64: New module.
68591         * modules/crypto/sha512: Depend on u64 module instead of providing
68592         u64.h.
68594 2009-03-27  Eric Blake  <ebb9@byu.net>
68596         test-strerror: make debugging EAI_SYSTEM easier
68597         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68598         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68599         failure was EAI_SYSTEM.
68601 2009-03-25  Bruno Haible  <bruno@clisp.org>
68603         Fix a problem with --enable-relocatable on Solaris 7.
68604         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68605         since 2008-02-24.
68607 2009-03-25  Eric Blake  <ebb9@byu.net>
68609         test-sockets: avoid gcc warning
68610         * tests/test-sockets.c (main): Silence compiler warning.
68612 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68614         New modules nproc, pthread, contributed by Glen Lenker.
68616         * MODULES.html.sh: Add pthread, nproc.
68617         * lib/nproc.c: New file.
68618         * lib/nproc.h: New file.
68619         * lib/pthread.in.h: New file.
68620         * m4/pthread.m4: New file.
68621         * modules/nproc: New file.
68622         * modules/pthread: New file.
68624 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68626         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68627         New variable.
68629 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68631         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68632         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68633         * tests/test-filevercmp.c: Add tests for backup suffixes.
68635 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68637         * modules/stdlib (Depends-on): Add stdint, needed when defining
68638         struct random_data on, for example, HP-UX 10.20.  Reported by
68639         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68641 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68643         * lib/readline.c (readline): Call fflush on stdout after printing
68644         prompt.
68646 2009-03-20  Bruno Haible  <bruno@clisp.org>
68648         Remove dependency from 'close' module to -lws2_32 on native Windows.
68649         * lib/close-hook.h: New file.
68650         * lib/close-hook.c: New file.
68651         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68652         w32sock.h.
68653         (_gl_close_fd_maybe_socket): Remove function.
68654         (rpl_close): Invoke execute_all_close_hooks instead of
68655         _gl_close_fd_maybe_socket.
68656         * lib/sockets.c: Include close-hook.h, w32sock.h.
68657         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68658         (close_sockets_hook): New variable.
68659         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68660         (gl_sockets_cleanup): Unregister it.
68661         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68662         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68663         * modules/close-hook: New file.
68664         * modules/close (Files): Remove lib/w32sock.h.
68665         (Depends-on): Add close-hook.
68666         (Link): Remove section.
68667         * modules/sockets (Files): Add lib/w32sock.h.
68668         (Depends-on): Add close-hook.
68669         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68670         invocation.
68671         * NEWS: Mention that LIB_CLOSE is gone.
68673 2009-03-23  Eric Blake  <ebb9@byu.net>
68675         signal-tests: test previous patch
68676         * tests/test-signal.c: New file.
68677         * modules/signal-tests: Likewise.
68679         signal.h: always support 'volatile sig_atomic_t'
68680         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68681         (gl_SIGNAL_H_DEFAULTS): Add a default.
68682         * modules/signal (Makefile.am): Substitute if needed.
68683         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68684         users can blindly add volatile.
68685         * doc/posix-headers/signal.texi (signal.h): Document it.
68686         Reported by Matthew Woehlke.
68688 2009-03-23  Jim Meyering  <meyering@redhat.com>
68690         pathmax: PATH_MAX: use pathconf only when available
68691         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68692         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68693         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68694         This avoids a link failure in a PSP cross-compilation environment
68695         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68697         * lib/vasnprintf.c (divide): Fix typo in comment.
68699 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68701         * gnulib-tool (func_filter_filelist): Fix comment.
68703 2009-03-20  Bruno Haible  <bruno@clisp.org>
68705         Make sockets.h self-contained.
68706         * lib/sockets.c: Include sockets.h first.
68707         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68709 2009-03-19  Eric Blake  <ebb9@byu.net>
68711         doc: mention more functions added in cygwin 1.7.0
68712         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68713         addition.
68714         * doc/posix-functions/log2f.texi: Likewise.
68716 2009-03-19  Jim Meyering  <meyering@redhat.com>
68718         fsusage: avoid syntax error due to statement-before-declaration
68719         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68720         after all declarations.  Reported by Matthew Woehlke in
68721         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68723 2009-03-18  Eric Blake  <ebb9@byu.net>
68725         build-aux/compile: sync from automake
68726         * build-aux/compile: New file, from automake.
68727         * config/srclist.txt: Mention build-aux/compile.
68729 2009-03-17  Bruno Haible  <bruno@clisp.org>
68731         * lib/git-merge-changelog.c: Fix typo in comment.
68732         Reported by Reuben Thomas <rrt@sc3d.org>.
68734 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68736         * m4/regex.m4: update and improve help for
68737         --without-included-regex.
68739 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68741         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68742         failure on missing include files.
68744 2009-03-17  Eric Blake  <ebb9@byu.net>
68746         doc: mention more functions added in cygwin 1.7.0
68747         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68748         addition.
68749         * doc/posix-functions/fwscanf.texi: Likewise.
68750         * doc/posix-functions/swprintf.texi: Likewise.
68751         * doc/posix-functions/swscanf.texi: Likewise.
68752         * doc/posix-functions/vfwprintf.texi: Likewise.
68753         * doc/posix-functions/vfwscanf.texi: Likewise.
68754         * doc/posix-functions/vswprintf.texi: Likewise.
68755         * doc/posix-functions/vswscanf.texi: Likewise.
68756         * doc/posix-functions/vwprintf.texi: Likewise.
68757         * doc/posix-functions/vwscanf.texi: Likewise.
68758         * doc/posix-functions/wcscasecmp.texi: Likewise.
68759         * doc/posix-functions/wcsdup.texi: Likewise.
68760         * doc/posix-functions/wcsftime.texi: Likewise.
68761         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68762         * doc/posix-functions/wprintf.texi: Likewise.
68763         * doc/posix-functions/wscanf.texi: Likewise.
68764         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68766 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68768         maint.mk: really add $(AM_MAKEFLAGS)
68769         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68770         was inadvertently omitted in the last commit.
68771         Spotted by Bruno Haible.
68773         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68774         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68775         $(AM_MAKEFLAGS)' rather than plain `make'.
68777         gnulib-tool: execute $MAKE not make
68778         * gnulib-tool: Default $MAKE to 'make'.
68779         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68780         than make.  Initialize $MAKE in the do-autobuild script.
68782         gnulib-tool: use $MAKE not make in generated files
68783         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68784         make, in generated files.  Initialize $MAKE in the do-autobuild
68785         script.
68787         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68789         GNUmakefile: disable parallelism only for multiple, recursive targets
68790         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68791         additions in the Makefile.
68792         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68793         by Automake.
68794         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68795         are listed on the command line and at least one of them is
68796         listed in $(ALL_RECURSIVE_TARGETS).
68798 2009-03-14  Bruno Haible  <bruno@clisp.org>
68800         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68801         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68802         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68803         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68804         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68805         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68806         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68807         unistr/u8-uctomb.
68808         * modules/unistr/u8-strchr (Depends-on): Likewise.
68809         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68810         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68811         unistr/u16-uctomb.
68812         * modules/unistr/u16-strchr (Depends-on): Likewise.
68813         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68815 2009-03-12  Bruno Haible  <bruno@clisp.org>
68817         Work around select() bug on Interix 3.5.
68818         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68819         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68820         * m4/select.m4: New file.
68821         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68822         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68823         * modules/select (Files): Add m4/select.m4.
68824         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68825         * modules/nanosleep (Depends-on): Add select.
68826         * modules/poll (Depends-on): Likewise.
68827         * doc/posix-functions/select.texi: Mention the Interix bug.
68828         Reported by Markus Duft <mduft@gentoo.org>.
68830         * lib/select.c: Renamed from lib/winsock-select.c.
68831         * modules/select (Files): Add lib/select.c, remove
68832         lib/winsock-select.c.
68833         (configure.ac): Update.
68835 2009-03-12  Jim Meyering  <meyering@redhat.com>
68837         avoid gcc warnings about unused macro definitions
68838         * lib/readtokens.c (STREQ): Remove unused definition.
68839         * lib/xmalloc.c (SIZE_MAX): Likewise.
68840         * lib/openat-die.c (N_): Likewise.
68841         * lib/mountlist.c (SIZE_MAX): Remove definition.
68842         Instead, include <stdint.h>.
68843         * lib/readutmp.c: Likewise.
68844         * modules/readutmp (Depends-on): Add stdint.
68845         * modules/mountlist (Depends-on): Add stdint.
68846         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68848 2009-03-10  Bruno Haible  <bruno@clisp.org>
68850         Tests for module 'mbmemcasecoll'.
68851         * modules/mbmemcasecoll-tests: New file.
68852         * tests/test-mbmemcasecoll1.sh: New file.
68853         * tests/test-mbmemcasecoll2.sh: New file.
68854         * tests/test-mbmemcasecoll3.sh: New file.
68855         * tests/test-mbmemcasecoll.c: New file.
68857         New module 'mbmemcasecoll'.
68858         * lib/mbmemcasecoll.h: New file.
68859         * lib/mbmemcasecoll.c: New file.
68860         * modules/mbmemcasecoll: New file.
68862         * tests/test-mbmemcasecmp.h: New file, extracted from
68863         tests/test-mbmemcasecmp.c.
68864         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68865         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68866         (main): Update.
68867         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68869 2009-03-09  Bruno Haible  <bruno@clisp.org>
68871         Tests for module 'mbmemcasecmp'.
68872         * modules/mbmemcasecmp-tests: New file.
68873         * tests/test-mbmemcasecmp1.sh: New file.
68874         * tests/test-mbmemcasecmp2.sh: New file.
68875         * tests/test-mbmemcasecmp3.sh: New file.
68876         * tests/test-mbmemcasecmp.c: New file.
68878         New module 'mbmemcasecmp'.
68879         * lib/mbmemcasecmp.h: New file.
68880         * lib/mbmemcasecmp.c: New file.
68881         * modules/mbmemcasecmp: New file.
68883 2009-03-09  Bruno Haible  <bruno@clisp.org>
68885         Tests for module 'unicase/ulc-casecoll'.
68886         * modules/unicase/ulc-casecoll-tests: New file.
68887         * tests/unicase/test-ulc-casecoll1.sh: New file.
68888         * tests/unicase/test-ulc-casecoll2.sh: New file.
68889         * tests/unicase/test-ulc-casecoll.c: New file.
68891         New module 'unicase/ulc-casecoll'.
68892         * lib/unicase.h (ulc_casecoll): New declaration.
68893         * lib/unicase/ulc-casecoll.c: New file.
68894         * modules/unicase/ulc-casecoll: New file.
68896         New module 'unicase/ulc-casexfrm'.
68897         * lib/unicase.h (ulc_casexfrm): New declaration.
68898         * lib/unicase/ulc-casexfrm.c: New file.
68899         * modules/unicase/ulc-casexfrm: New file.
68901 2009-03-09  Bruno Haible  <bruno@clisp.org>
68903         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68904         invocations.
68906         * m4/mbscasecmp.m4: Remove file.
68907         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68908         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68910         * m4/mbscasestr.m4: Remove file.
68911         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68912         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68914         * m4/mbschr.m4: Remove file.
68915         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68916         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68918         * m4/mbscspn.m4: Remove file.
68919         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68920         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68922         * m4/mbslen.m4: Remove file.
68923         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68924         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68926         * m4/mbsncasecmp.m4: Remove file.
68927         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68928         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68930         * m4/mbsnlen.m4: Remove file.
68931         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68932         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68934         * m4/mbspbrk.m4: Remove file.
68935         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68936         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68938         * m4/mbspcasecmp.m4: Remove file.
68939         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68940         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68942         * m4/mbsrchr.m4: Remove file.
68943         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68944         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68946         * m4/mbssep.m4: Remove file.
68947         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68948         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68950         * m4/mbsspn.m4: Remove file.
68951         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68952         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68954         * m4/mbsstr.m4: Remove file.
68955         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68956         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68958         * m4/mbstok_r.m4: Remove file.
68959         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68960         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68962         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68964         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68965         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68967         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68969 2009-03-08  Bruno Haible  <bruno@clisp.org>
68971         Tests for module 'unicase/ulc-casecmp'.
68972         * modules/unicase/ulc-casecmp-tests: New file.
68973         * tests/unicase/test-ulc-casecmp1.sh: New file.
68974         * tests/unicase/test-ulc-casecmp2.sh: New file.
68975         * tests/unicase/test-ulc-casecmp.c: New file.
68977         New module 'unicase/ulc-casecmp'.
68978         * lib/unicase.h (ulc_casecmp): New declaration.
68979         * lib/unicase/ulc-casecmp.c: New file.
68980         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68981         'const SRC_UNIT *'.
68982         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68983         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68984         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68985         * modules/unicase/ulc-casecmp: New file.
68987         Tests for module 'unicase/u32-is-cased'.
68988         * modules/unicase/u32-is-cased-tests: New file.
68989         * tests/unicase/test-u32-is-cased.c: New file.
68991         Tests for module 'unicase/u16-is-cased'.
68992         * modules/unicase/u16-is-cased-tests: New file.
68993         * tests/unicase/test-u16-is-cased.c: New file.
68995         Tests for module 'unicase/u8-is-cased'.
68996         * modules/unicase/u8-is-cased-tests: New file.
68997         * tests/unicase/test-u8-is-cased.c: New file.
68998         * tests/unicase/test-is-cased.h: New file.
69000         New module 'unicase/u32-is-cased'.
69001         * lib/unicase/u32-is-cased.c: New file.
69002         * modules/unicase/u32-is-cased: New file.
69004         New module 'unicase/u16-is-cased'.
69005         * lib/unicase/u16-is-cased.c: New file.
69006         * modules/unicase/u16-is-cased: New file.
69008         New module 'unicase/u8-is-cased'.
69009         * lib/unicase/u8-is-cased.c: New file.
69010         * lib/unicase/u-is-cased.h: New file.
69011         * modules/unicase/u8-is-cased: New file.
69013         Tests for module 'unicase/u32-is-casefolded'.
69014         * modules/unicase/u32-is-casefolded-tests: New file.
69015         * tests/unicase/test-u32-is-casefolded.c: New file.
69017         Tests for module 'unicase/u16-is-casefolded'.
69018         * modules/unicase/u16-is-casefolded-tests: New file.
69019         * tests/unicase/test-u16-is-casefolded.c: New file.
69021         Tests for module 'unicase/u8-is-casefolded'.
69022         * modules/unicase/u8-is-casefolded-tests: New file.
69023         * tests/unicase/test-u8-is-casefolded.c: New file.
69024         * tests/unicase/test-is-casefolded.h: New file.
69026         New module 'unicase/u32-is-casefolded'.
69027         * lib/unicase/u32-is-casefolded.c: New file.
69028         * modules/unicase/u32-is-casefolded: New file.
69030         New module 'unicase/u16-is-casefolded'.
69031         * lib/unicase/u16-is-casefolded.c: New file.
69032         * modules/unicase/u16-is-casefolded: New file.
69034         New module 'unicase/u8-is-casefolded'.
69035         * lib/unicase/u8-is-casefolded.c: New file.
69036         * modules/unicase/u8-is-casefolded: New file.
69038         Tests for module 'unicase/u32-is-titlecase'.
69039         * modules/unicase/u32-is-titlecase-tests: New file.
69040         * tests/unicase/test-u32-is-titlecase.c: New file.
69042         Tests for module 'unicase/u16-is-titlecase'.
69043         * modules/unicase/u16-is-titlecase-tests: New file.
69044         * tests/unicase/test-u16-is-titlecase.c: New file.
69046         Tests for module 'unicase/u8-is-titlecase'.
69047         * modules/unicase/u8-is-titlecase-tests: New file.
69048         * tests/unicase/test-u8-is-titlecase.c: New file.
69049         * tests/unicase/test-is-titlecase.h: New file.
69051         New module 'unicase/u32-is-titlecase'.
69052         * lib/unicase/u32-is-titlecase.c: New file.
69053         * modules/unicase/u32-is-titlecase: New file.
69055         New module 'unicase/u16-is-titlecase'.
69056         * lib/unicase/u16-is-titlecase.c: New file.
69057         * modules/unicase/u16-is-titlecase: New file.
69059         New module 'unicase/u8-is-titlecase'.
69060         * lib/unicase/u8-is-titlecase.c: New file.
69061         * modules/unicase/u8-is-titlecase: New file.
69063         Tests for module 'unicase/u32-is-lowercase'.
69064         * modules/unicase/u32-is-lowercase-tests: New file.
69065         * tests/unicase/test-u32-is-lowercase.c: New file.
69067         Tests for module 'unicase/u16-is-lowercase'.
69068         * modules/unicase/u16-is-lowercase-tests: New file.
69069         * tests/unicase/test-u16-is-lowercase.c: New file.
69071         Tests for module 'unicase/u8-is-lowercase'.
69072         * modules/unicase/u8-is-lowercase-tests: New file.
69073         * tests/unicase/test-u8-is-lowercase.c: New file.
69074         * tests/unicase/test-is-lowercase.h: New file.
69076         New module 'unicase/u32-is-lowercase'.
69077         * lib/unicase/u32-is-lowercase.c: New file.
69078         * modules/unicase/u32-is-lowercase: New file.
69080         New module 'unicase/u16-is-lowercase'.
69081         * lib/unicase/u16-is-lowercase.c: New file.
69082         * modules/unicase/u16-is-lowercase: New file.
69084         New module 'unicase/u8-is-lowercase'.
69085         * lib/unicase/u8-is-lowercase.c: New file.
69086         * modules/unicase/u8-is-lowercase: New file.
69088         Tests for module 'unicase/u32-is-uppercase'.
69089         * modules/unicase/u32-is-uppercase-tests: New file.
69090         * tests/unicase/test-u32-is-uppercase.c: New file.
69092         Tests for module 'unicase/u16-is-uppercase'.
69093         * modules/unicase/u16-is-uppercase-tests: New file.
69094         * tests/unicase/test-u16-is-uppercase.c: New file.
69096         Tests for module 'unicase/u8-is-uppercase'.
69097         * modules/unicase/u8-is-uppercase-tests: New file.
69098         * tests/unicase/test-u8-is-uppercase.c: New file.
69099         * tests/unicase/test-is-uppercase.h: New file.
69101         New module 'unicase/u32-is-uppercase'.
69102         * lib/unicase/u32-is-uppercase.c: New file.
69103         * modules/unicase/u32-is-uppercase: New file.
69105         New module 'unicase/u16-is-uppercase'.
69106         * lib/unicase/u16-is-uppercase.c: New file.
69107         * modules/unicase/u16-is-uppercase: New file.
69109         New module 'unicase/u8-is-uppercase'.
69110         * lib/unicase/u8-is-uppercase.c: New file.
69111         * modules/unicase/u8-is-uppercase: New file.
69113         New module 'unicase/u32-is-invariant'.
69114         * lib/unicase/u32-is-invariant.c: New file.
69115         * modules/unicase/u32-is-invariant: New file.
69117         New module 'unicase/u16-is-invariant'.
69118         * lib/unicase/u16-is-invariant.c: New file.
69119         * modules/unicase/u16-is-invariant: New file.
69121         New module 'unicase/u8-is-invariant'.
69122         * lib/unicase/u8-is-invariant.c: New file.
69123         * lib/unicase/invariant.h: New file.
69124         * lib/unicase/u-is-invariant.h: New file.
69125         * modules/unicase/u8-is-invariant: New file.
69127         Tests for module 'unicase/u32-casecoll'.
69128         * modules/unicase/u32-casecoll-tests: New file.
69129         * tests/unicase/test-u32-casecoll.c: New file.
69131         Tests for module 'unicase/u16-casecoll'.
69132         * modules/unicase/u16-casecoll-tests: New file.
69133         * tests/unicase/test-u16-casecoll.c: New file.
69135         Tests for module 'unicase/u8-casecoll'.
69136         * modules/unicase/u8-casecoll-tests: New file.
69137         * tests/unicase/test-u8-casecoll.c: New file.
69139         New module 'unicase/u32-casecoll'.
69140         * lib/unicase/u32-casecoll.c: New file.
69141         * modules/unicase/u32-casecoll: New file.
69143         New module 'unicase/u16-casecoll'.
69144         * lib/unicase/u16-casecoll.c: New file.
69145         * modules/unicase/u16-casecoll: New file.
69147         New module 'unicase/u8-casecoll'.
69148         * lib/unicase/u8-casecoll.c: New file.
69149         * lib/unicase/u-casecoll.h: New file.
69150         * modules/unicase/u8-casecoll: New file.
69152         New module 'unicase/u32-casexfrm'.
69153         * lib/unicase/u32-casexfrm.c: New file.
69154         * modules/unicase/u32-casexfrm: New file.
69156         New module 'unicase/u16-casexfrm'.
69157         * lib/unicase/u16-casexfrm.c: New file.
69158         * modules/unicase/u16-casexfrm: New file.
69160         New module 'unicase/u8-casexfrm'.
69161         * lib/unicase/u8-casexfrm.c: New file.
69162         * lib/unicase/u-casexfrm.h: New file.
69163         * modules/unicase/u8-casexfrm: New file.
69165         Tests for module 'unicase/u32-casecmp'.
69166         * modules/unicase/u32-casecmp-tests: New file.
69167         * tests/unicase/test-u32-casecmp.c: New file.
69169         Tests for module 'unicase/u16-casecmp'.
69170         * modules/unicase/u16-casecmp-tests: New file.
69171         * tests/unicase/test-u16-casecmp.c: New file.
69173         Tests for module 'unicase/u8-casecmp'.
69174         * modules/unicase/u8-casecmp-tests: New file.
69175         * tests/unicase/test-u8-casecmp.c: New file.
69176         * tests/unicase/test-casecmp.h: New file.
69178         New module 'unicase/u32-casecmp'.
69179         * lib/unicase/u32-casecmp.c: New file.
69180         * modules/unicase/u32-casecmp: New file.
69182         New module 'unicase/u16-casecmp'.
69183         * lib/unicase/u16-casecmp.c: New file.
69184         * modules/unicase/u16-casecmp: New file.
69186         New module 'unicase/u8-casecmp'.
69187         * lib/unicase/u8-casecmp.c: New file.
69188         * lib/unicase/u-casecmp.h: New file.
69189         * modules/unicase/u8-casecmp: New file.
69191         Tests for module 'unicase/u32-casefold'.
69192         * modules/unicase/u32-casefold-tests: New file.
69193         * tests/unicase/test-u32-casefold.c: New file.
69195         Tests for module 'unicase/u16-casefold'.
69196         * modules/unicase/u16-casefold-tests: New file.
69197         * tests/unicase/test-u16-casefold.c: New file.
69199         Tests for module 'unicase/u8-casefold'.
69200         * modules/unicase/u8-casefold-tests: New file.
69201         * tests/unicase/test-u8-casefold.c: New file.
69203         New module 'unicase/u32-casefold'.
69204         * lib/unicase/u32-casefold.c: New file.
69205         * modules/unicase/u32-casefold: New file.
69207         New module 'unicase/u16-casefold'.
69208         * lib/unicase/u16-casefold.c: New file.
69209         * modules/unicase/u16-casefold: New file.
69211         New module 'unicase/u8-casefold'.
69212         * lib/unicase/u8-casefold.c: New file.
69213         * lib/unicase/u-casefold.h: New file.
69214         * modules/unicase/u8-casefold: New file.
69216         New module 'unicase/tocasefold'.
69217         * lib/unicase/casefold.h: New file.
69218         * lib/unicase/tocasefold.c: New file.
69219         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
69220         * modules/unicase/tocasefold: New file.
69222         Tests for module 'unicase/u32-totitle'.
69223         * modules/unicase/u32-totitle-tests: New file.
69224         * tests/unicase/test-u32-totitle.c: New file.
69226         Tests for module 'unicase/u16-totitle'.
69227         * modules/unicase/u16-totitle-tests: New file.
69228         * tests/unicase/test-u16-totitle.c: New file.
69230         Tests for module 'unicase/u8-totitle'.
69231         * modules/unicase/u8-totitle-tests: New file.
69232         * tests/unicase/test-u8-totitle.c: New file.
69234         New module 'unicase/u32-totitle'.
69235         * lib/unicase/u32-totitle.c: New file.
69236         * modules/unicase/u32-totitle: New file.
69238         New module 'unicase/u16-totitle'.
69239         * lib/unicase/u16-totitle.c: New file.
69240         * modules/unicase/u16-totitle: New file.
69242         New module 'unicase/u8-totitle'.
69243         * lib/unicase/u8-totitle.c: New file.
69244         * lib/unicase/u-totitle.h: New file.
69245         * modules/unicase/u8-totitle: New file.
69247         Tests for module 'unicase/u32-tolower'.
69248         * modules/unicase/u32-tolower-tests: New file.
69249         * tests/unicase/test-u32-tolower.c: New file.
69251         Tests for module 'unicase/u16-tolower'.
69252         * modules/unicase/u16-tolower-tests: New file.
69253         * tests/unicase/test-u16-tolower.c: New file.
69255         Tests for module 'unicase/u8-tolower'.
69256         * modules/unicase/u8-tolower-tests: New file.
69257         * tests/unicase/test-u8-tolower.c: New file.
69259         New module 'unicase/u32-tolower'.
69260         * lib/unicase/u32-tolower.c: New file.
69261         * modules/unicase/u32-tolower: New file.
69263         New module 'unicase/u16-tolower'.
69264         * lib/unicase/u16-tolower.c: New file.
69265         * modules/unicase/u16-tolower: New file.
69267         New module 'unicase/u8-tolower'.
69268         * lib/unicase/u8-tolower.c: New file.
69269         * modules/unicase/u8-tolower: New file.
69271         Tests for module 'unicase/u32-toupper'.
69272         * modules/unicase/u32-toupper-tests: New file.
69273         * tests/unicase/test-u32-toupper.c: New file.
69275         Tests for module 'unicase/u16-toupper'.
69276         * modules/unicase/u16-toupper-tests: New file.
69277         * tests/unicase/test-u16-toupper.c: New file.
69279         Tests for module 'unicase/u8-toupper'.
69280         * modules/unicase/u8-toupper-tests: New file.
69281         * tests/unicase/test-u8-toupper.c: New file.
69283         New module 'unicase/u32-toupper'.
69284         * lib/unicase/u32-toupper.c: New file.
69285         * modules/unicase/u32-toupper: New file.
69287         New module 'unicase/u16-toupper'.
69288         * lib/unicase/u16-toupper.c: New file.
69289         * modules/unicase/u16-toupper: New file.
69291         New module 'unicase/u8-toupper'.
69292         * lib/unicase/u8-toupper.c: New file.
69293         * modules/unicase/u8-toupper: New file.
69295         New module 'unicase/u32-casemap'.
69296         * lib/unicase/u32-casemap.c: New file.
69297         * modules/unicase/u32-casemap: New file.
69299         New module 'unicase/u16-casemap'.
69300         * lib/unicase/u16-casemap.c: New file.
69301         * modules/unicase/u16-casemap: New file.
69303         New module 'unicase/u8-casemap'.
69304         * lib/unicase/unicasemap.h: New file.
69305         * lib/unicase/u8-casemap.c: New file.
69306         * lib/unicase/u-casemap.h: New file.
69307         * modules/unicase/u8-casemap: New file.
69309         New module 'unicase/special-casing'.
69310         * lib/unicase/special-casing.h: New file.
69311         * lib/unicase/special-casing.c: New file.
69312         * lib/unicase/special-casing-table.gperf: New file, generated by
69313         gen-uni-tables.c.
69314         * modules/unicase/special-casing: New file.
69316         Tests for module 'unicase/locale-language'.
69317         * modules/unicase/locale-language-tests: New file.
69318         * tests/unicase/test-locale-language.sh: New file.
69319         * tests/unicase/test-locale-language.c: New file.
69321         New module 'unicase/locale-language'.
69322         * lib/unicase/locale-language.c: New file.
69323         * lib/unicase/locale-languages.gperf: New file.
69324         * modules/unicase/locale-language: New file.
69326         Generate more tables for case conversion and case folding.
69327         * lib/gen-uni-tables.c (SCC_*): New enum items.
69328         (struct special_casing_rule): New type.
69329         (casing_rules, num_casing_rules, allocated_casing_rules): New
69330         variables.
69331         (add_casing_rule, fill_casing_rules): New functions.
69332         (struct casefold_rule): New type.
69333         (casefolding_rules, num_casefolding_rules,
69334         allocated_casefolding_rules): New variables.
69335         (fill_casefolding_rules): New function.
69336         (unicode_casefold): New variable.
69337         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69338         sort_casing_rules, output_casing_rules): New functions.
69339         (main): Accept to more arguments: SpecialCasing.txt and
69340         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69341         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69342         Output mapping for casefolding.
69344         * lib/unicase.h: Include stdbool.h, uninorm.h.
69345         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69346         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69347         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69348         arguments.
69349         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69350         resultp arguments.
69351         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69352         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69353         resultp arguments.
69354         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69355         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69356         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69357         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69358         declarations.
69359         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69361 2009-03-08  Bruno Haible  <bruno@clisp.org>
69363         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69364         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69365         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69366         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69368 2009-03-07  Bruno Haible  <bruno@clisp.org>
69370         Adjust u*_normcmp, u*_normcoll API.
69371         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69372         u16_normcoll, u32_normcoll): Change failure conventions.
69373         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69374         errno and return -1.
69375         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69377 2009-03-07  Bruno Haible  <bruno@clisp.org>
69379         Tests for module 'uninorm/u32-normcoll'.
69380         * modules/uninorm/u32-normcoll-tests: New file.
69381         * tests/uninorm/test-u32-normcoll.c: New file.
69383         Tests for module 'uninorm/u16-normcoll'.
69384         * modules/uninorm/u16-normcoll-tests: New file.
69385         * tests/uninorm/test-u16-normcoll.c: New file.
69387         Tests for module 'uninorm/u8-normcoll'.
69388         * modules/uninorm/u8-normcoll-tests: New file.
69389         * tests/uninorm/test-u8-normcoll.c: New file.
69391 2009-03-07  Bruno Haible  <bruno@clisp.org>
69393         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69394         tests/uninorm/test-u32-normcmp.c.
69395         * tests/uninorm/test-u32-normcmp.c: Include it.
69396         (test_nonascii): New function, extracted from main. Add some more
69397         tests.
69398         (main): Invoke test_ascii and test_nonascii.
69399         * modules/uninorm/u32-normcmp-tests (Files): Add
69400         tests/uninorm/test-u32-normcmp.h.
69401         (Depends-on): Remove uninorm/u32-normcmp.
69403         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69404         tests/uninorm/test-u16-normcmp.c.
69405         * tests/uninorm/test-u16-normcmp.c: Include it.
69406         (test_nonascii): New function, extracted from main. Add some more
69407         tests.
69408         (main): Invoke test_ascii and test_nonascii.
69409         * modules/uninorm/u16-normcmp-tests (Files): Add
69410         tests/uninorm/test-u16-normcmp.h.
69411         (Depends-on): Remove uninorm/u16-normcmp.
69413         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69414         tests/uninorm/test-u8-normcmp.c.
69415         * tests/uninorm/test-u8-normcmp.c: Include it.
69416         (test_nonascii): New function, extracted from main. Add some more
69417         tests.
69418         (main): Invoke test_ascii and test_nonascii.
69419         * modules/uninorm/u8-normcmp-tests (Files): Add
69420         tests/uninorm/test-u8-normcmp.h.
69421         (Depends-on): Remove uninorm/u8-normcmp.
69423 2009-03-07  Bruno Haible  <bruno@clisp.org>
69425         New module 'uninorm/u32-normcoll'.
69426         * lib/uninorm/u32-normcoll.c: New file.
69427         * modules/uninorm/u32-normcoll: New file.
69429         New module 'uninorm/u16-normcoll'.
69430         * lib/uninorm/u16-normcoll.c: New file.
69431         * modules/uninorm/u16-normcoll: New file.
69433         New module 'uninorm/u8-normcoll'.
69434         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69435         declarations.
69436         * lib/uninorm/u8-normcoll.c: New file.
69437         * lib/uninorm/u-normcoll.h: New file.
69438         * modules/uninorm/u8-normcoll: New file.
69440         New module 'uninorm/u32-normxfrm'.
69441         * lib/uninorm/u32-normxfrm.c: New file.
69442         * modules/uninorm/u32-normxfrm: New file.
69444         New module 'uninorm/u16-normxfrm'.
69445         * lib/uninorm/u16-normxfrm.c: New file.
69446         * modules/uninorm/u16-normxfrm: New file.
69448         New module 'uninorm/u8-normxfrm'.
69449         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69450         declarations.
69451         * lib/uninorm/u8-normxfrm.c: New file.
69452         * lib/uninorm/u-normxfrm.h: New file.
69453         * modules/uninorm/u8-normxfrm: New file.
69455 2009-03-07  Bruno Haible  <bruno@clisp.org>
69457         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69458         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69459         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69461 2009-03-07  Bruno Haible  <bruno@clisp.org>
69463         New module 'memxfrm'.
69464         * lib/memxfrm.h: New file.
69465         * lib/memxfrm.c: New file.
69466         * modules/memxfrm: New file.
69468 2009-03-07  Bruno Haible  <bruno@clisp.org>
69470         New module 'memcmp2'.
69471         * lib/memcmp2.h: New file.
69472         * lib/memcmp2.c: New file.
69473         * modules/memcmp2: New file.
69475 2009-03-07  Bruno Haible  <bruno@clisp.org>
69477         Tests for module 'uninorm/decomposing-form'.
69478         * modules/uninorm/decomposing-form-tests: New file.
69479         * tests/uninorm/test-decomposing-form.c: New file.
69481         New module 'uninorm/decomposing-form'.
69482         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69483         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69484         Add 'decomposing_variant' field.
69485         * lib/uninorm/decomposing-form.c: New file.
69486         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69487         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69488         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69489         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69490         * modules/uninorm/decomposing-form: New file.
69491         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69492         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69494 2009-03-07  Bruno Haible  <bruno@clisp.org>
69496         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69497         strings.
69499 2009-03-06  Bruno Haible  <bruno@clisp.org>
69501         Tests for module 'uninorm/u32-normcmp'.
69502         * tests/uninorm/test-u32-normcmp.c: New file.
69503         * modules/uninorm/u32-normcmp-tests: New file.
69505         Tests for module 'uninorm/u16-normcmp'.
69506         * tests/uninorm/test-u16-normcmp.c: New file.
69507         * modules/uninorm/u16-normcmp-tests: New file.
69509         Tests for module 'uninorm/u8-normcmp'.
69510         * tests/uninorm/test-u8-normcmp.c: New file.
69511         * modules/uninorm/u8-normcmp-tests: New file.
69513         New module 'uninorm/u32-normcmp'.
69514         * lib/uninorm/u32-normcmp.c: New file.
69515         * modules/uninorm/u32-normcmp: New file.
69517         New module 'uninorm/u16-normcmp'.
69518         * lib/uninorm/u16-normcmp.c: New file.
69519         * modules/uninorm/u16-normcmp: New file.
69521         New module 'uninorm/u8-normcmp'.
69522         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69523         declarations.
69524         * lib/uninorm/u8-normcmp.c: New file.
69525         * lib/uninorm/u-normcmp.h: New file.
69526         * modules/uninorm/u8-normcmp: New file.
69528 2009-03-06  Bruno Haible  <bruno@clisp.org>
69530         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69531         Reported by Eric Blake.
69533 2009-03-06  Eric Blake  <ebb9@byu.net>
69534             Bruno Haible  <bruno@clisp.org>
69536         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69537         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69538         condition.
69539         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69540         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69541         condition.
69542         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69544 2009-03-06  Eric Blake  <ebb9@byu.net>
69546         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69547         to avoid compiler warnings.
69548         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69550 2009-03-05  Bruno Haible  <bruno@clisp.org>
69552         * tests/test-ftell.c (main): Disable test beyond end of file on
69553         FreeMiNT.
69554         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69556 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69558         * lib/filevercmp.c: Move hidden files up in ordering.
69559         * tests/test-filevercmp.c: Add tests for hidden files.
69561 2009-03-04  Bruno Haible  <bruno@clisp.org>
69563         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69564         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69565         AM_CFLAGS.
69566         Reported by Simon Josefsson.
69568 2009-03-03  Bruno Haible  <bruno@clisp.org>
69570         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69571         Reported by Simon Josefsson.
69573         * doc/ld-version-script.texi: Update node reference.
69575 2009-03-03  Bruno Haible  <bruno@clisp.org>
69577         * modules/visibility (License): Change to 'unlimited'.
69578         Suggested by Simon Josefsson.
69580 2009-03-03  Jim Meyering  <meyering@redhat.com>
69582         unlinkdir: cannot_unlink_dir may modify process state
69583         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69584         it's neither thread-safe nor appropriate for use in a library.
69586 2009-03-03  Eric Blake  <ebb9@byu.net>
69588         test-closein: silence test under Darwin
69589         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69590         care if it dies from EPIPE or EBADF.
69592 2009-03-03  Bruno Haible  <bruno@clisp.org>
69594         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69595         earlier.
69596         * doc/visibility.texi: Fix @node and @section.
69598 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69600         * doc/gnulib.texi: Link to sections for ld version script and
69601         visibility.
69602         * doc/visibility.texi: Add @node and @section.
69603         * modules/ld-version-script: New module.
69604         * m4/ld-version-script.m4: New file.
69605         * doc/ld-version-script.texi: New file.
69607 2009-03-02  David Lutterkort  <lutter@redhat.com>
69609         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69612 2009-03-02  Bruno Haible  <bruno@clisp.org>
69614         * doc/visibility.texi: Mention libtool's -export-symbols option.
69616 2009-03-02  Jim Meyering  <meyering@redhat.com>
69618         announce-gen: new option: --no-print-checksums
69619         * build-aux/announce-gen (usage): Describe it.
69620         (print_checksums): Print a newline here, not in the [*] footnote.
69621         (main): Honor it.
69623 2009-03-01  Bruno Haible  <bruno@clisp.org>
69625         Use socklen_t in the native Windows replacements prototypes.
69626         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69627         instead of 'int'.
69628         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69629         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69630         * modules/getsockopt (Depends-on): Add socklen.
69631         * modules/setsockopt (Depends-on): Add socklen.
69633 2009-03-01  Bruno Haible  <bruno@clisp.org>
69635         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69636         least 4.2.
69638 2009-03-01  Eric Blake  <ebb9@byu.net>
69639             Bruno Haible  <bruno@clisp.org>
69641         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69642         error messages.
69643         * lib/wait-process.c (wait_subprocess): Omit error message about
69644         deadly signal sent to the child of termsigp != NULL.
69646 2009-03-01  Eric Blake  <ebb9@byu.net>
69648         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69650 2009-03-01  Bruno Haible  <bruno@clisp.org>
69652         Avoid a gcc warning.
69653         * tests/test-sched.c (b): Make global.
69654         Reported by Eric Blake.
69656 2009-01-19  Martin Lambers  <marlam@marlam.de>
69658         Provide POSIX semantics for socket timeout options on W32.
69659         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69660         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69661         * modules/setsockopt: Depend on sys_time module for struct timeval.
69662         * modules/getsockopt: Depend on sys_time module for struct timeval.
69664 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69666         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69667         __USE_GNU, for consistency with netdb.in.h.
69668         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69670 2009-03-01  Bruno Haible  <bruno@clisp.org>
69672         More support for FreeMiNT.
69673         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69674         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69676 2009-03-01  Bruno Haible  <bruno@clisp.org>
69678         More support for FreeMiNT.
69679         * lib/fpurge.c (fpurge): Correct last commit.
69680         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69682 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69684         Fix unportable awk script in vc-list-files.
69685         * build-aux/vc-list-files: In the replacement awk script, use
69686         substr with a second argument of 1, not zero.
69687         Report by Simon Josefsson.
69689 2009-02-28  Bruno Haible  <bruno@clisp.org>
69691         More support for FreeMiNT.
69692         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69693         to FreeMiNT today.
69694         * lib/fwriting.c (fwriting): Likewise.
69695         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69697 2009-02-28  Bruno Haible  <bruno@clisp.org>
69699         * tests/test-freadseek.c (main): Disable test beyond end of file on
69700         FreeMiNT.
69701         * tests/test-ftello.c (main): Likewise.
69702         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69704 2009-02-28  Bruno Haible  <bruno@clisp.org>
69706         Add tentative support for FreeMiNT.
69707         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69708         * lib/fpurge.c (fpurge): Likewise.
69709         * lib/freadable.c (freadable): Likewise.
69710         * lib/freading.c (freading): Likewise.
69711         * lib/freadptr.c (freadptr): Likewise.
69712         * lib/freadseek.c (freadptrinc): Likewise.
69713         * lib/fseeko.c (rpl_fseeko): Likewise.
69714         * lib/fseterr.c (fseterr): Likewise.
69715         * lib/fwritable.c (fwritable): Likewise.
69716         * lib/fwriting.c (fwriting): Likewise.
69717         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69718         Hourihane.
69719         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69721 2009-02-28  Bruno Haible  <bruno@clisp.org>
69723         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69724         SIGCHLD.
69725         Reported by Jim Meyering.
69727 2009-02-28  Bruno Haible  <bruno@clisp.org>
69729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69730         Mention the results of these tests on various platforms.
69731         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69732         order.
69733         * doc/posix-functions/printf.texi: Likewise.
69734         * doc/posix-functions/snprintf.texi: Likewise.
69735         * doc/posix-functions/sprintf.texi: Likewise.
69736         * doc/posix-functions/vfprintf.texi: Likewise.
69737         * doc/posix-functions/vprintf.texi: Likewise.
69738         * doc/posix-functions/vsnprintf.texi: Likewise.
69739         * doc/posix-functions/vsprintf.texi: Likewise.
69740         * doc/glibc-functions/obstack_printf.texi: Likewise.
69741         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69743 2009-02-28  Bruno Haible  <bruno@clisp.org>
69745         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69746         Reported by Loïc Minier <lool@dooz.org>.
69748 2009-02-27  Bruno Haible  <bruno@clisp.org>
69750         * gnulib-tool (func_import): Make the sed expression used to create the
69751         sed script for updating the .gitignore file POSIX compliant.
69752         Reported by Eric Blake.
69754 2009-02-27  Bruno Haible  <bruno@clisp.org>
69756         * gnulib-tool (sed): Don't alias as "sed --posix".
69757         Reported by Eric Blake.
69759 2009-02-27  Bruno Haible  <bruno@clisp.org>
69761         Avoid test link errors.
69762         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69763         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69764         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69765         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69768 2009-02-27  Bruno Haible  <bruno@clisp.org>
69770         Avoid spurious "(cached)" in configure output.
69771         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69772         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69773         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69774         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69775         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69776         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69777         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69778         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69779         Reported by Eric Blake.
69781 2009-02-27  Eric Blake  <ebb9@byu.net>
69783         printf: fix regression in previous patch
69784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69786 2009-02-27  Bruno Haible  <bruno@clisp.org>
69788         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69789         value.
69790         * lib/stdint.in.h: Likewise.
69791         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69793 2009-02-27  Eric Blake  <ebb9@byu.net>
69795         doc: mention more functions added in cygwin 1.7.0
69796         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69797         addition.
69798         * doc/posix-functions/open_wmemstream.texi: Likewise.
69799         * doc/posix-functions/wcsnlen.texi: Likewise.
69800         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69801         * doc/posix-functions/wcstod.texi: Likewise.
69802         * doc/posix-functions/wcstof.texi: Likewise.
69803         * doc/posix-functions/wcstoimax.texi: Likewise.
69804         * doc/posix-functions/wcstok.texi: Likewise.
69805         * doc/posix-functions/wcstoumax.texi: Likewise.
69807         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69809         * doc/posix-functions/fprintf.texi: Update.
69810         * doc/posix-functions/printf.texi: Update.
69811         * doc/posix-functions/snprintf.texi: Update.
69812         * doc/posix-functions/sprintf.texi: Update.
69813         * doc/posix-functions/vfprintf.texi: Update.
69814         * doc/posix-functions/vprintf.texi: Update.
69815         * doc/posix-functions/vsnprintf.texi: Update.
69816         * doc/posix-functions/vsprintf.texi: Update.
69817         * doc/glibc-functions/obstack_printf.texi: Update.
69818         * doc/glibc-functions/obstack_vprintf.texi: Update.
69820 2009-02-26  Eric Blake  <ebb9@byu.net>
69822         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69823         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69824         compilation bug by using runtime conversion.
69825         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69826         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69827         * modules/ceill-tests (Files): Use nan.h.
69828         * modules/floorl-tests (Files): Likewise.
69829         * modules/frexpl-tests (Files): Likewise.
69830         * modules/isnanl-tests (Files): Likewise.
69831         * modules/ldexpl-tests (Files): Likewise.
69832         * modules/roundl-tests (Files): Likewise.
69833         * modules/truncl-tests (Files): Likewise.
69834         * tests/test-ceill.c (main): Use a working NaN.
69835         * tests/test-floorl.c (main): Likewise.
69836         * tests/test-frexpl.c (main): Likewise.
69837         * tests/test-isnan.c (test_long_double): Likewise.
69838         * tests/test-isnanl.h (main): Likewise.
69839         * tests/test-ldexpl.h (main): Likewise.
69840         * tests/test-roundl.h (main): Likewise.
69841         * tests/test-truncl.h (main): Likewise.
69842         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69844 2009-02-26  Eric Blake  <ebb9@byu.net>
69845             Bruno Haible  <bruno@clisp.org>
69847         Work around a *printf bug with %ls on Solaris.
69848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69849         precision is specified, sprintf stops converting the wide string
69850         argument when the number of bytes that have been produced by this
69851         conversion equals or exceeds the precision.
69852         * doc/posix-functions/fprintf.texi: Update.
69853         * doc/posix-functions/printf.texi: Update.
69854         * doc/posix-functions/snprintf.texi: Update.
69855         * doc/posix-functions/sprintf.texi: Update.
69856         * doc/posix-functions/vfprintf.texi: Update.
69857         * doc/posix-functions/vprintf.texi: Update.
69858         * doc/posix-functions/vsnprintf.texi: Update.
69859         * doc/posix-functions/vsprintf.texi: Update.
69860         * doc/glibc-functions/obstack_printf.texi: Update.
69861         * doc/glibc-functions/obstack_vprintf.texi: Update.
69863 2009-02-26  Eric Blake  <ebb9@byu.net>
69865         stdlib: favor compiler check of random.h
69866         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69867         to avoid an ObjC random.h installed by Swarm.
69869 2009-02-26  Bruno Haible  <bruno@clisp.org>
69871         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69872         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69873         Reported by Gary V. Vaughan <gary@gnu.org>.
69875 2009-02-26  Bruno Haible  <bruno@clisp.org>
69877         Fix *printf behaviour regarding the %ls directive.
69878         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69879         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69880         NEED_PRINTF_DIRECTIVE_LS.
69881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69882         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69884         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69885         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69886         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69887         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69888         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69889         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69890         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69892         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69896         * doc/posix-functions/fprintf.texi: Update.
69897         * doc/posix-functions/printf.texi: Update.
69898         * doc/posix-functions/snprintf.texi: Update.
69899         * doc/posix-functions/sprintf.texi: Update.
69900         * doc/posix-functions/vfprintf.texi: Update.
69901         * doc/posix-functions/vprintf.texi: Update.
69902         * doc/posix-functions/vsnprintf.texi: Update.
69903         * doc/posix-functions/vsprintf.texi: Update.
69904         * doc/glibc-functions/obstack_printf.texi: Update.
69905         * doc/glibc-functions/obstack_vprintf.texi: Update.
69906         Reported by Eric Blake.
69908 2009-02-25  Bruno Haible  <bruno@clisp.org>
69910         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69911         with known value.
69912         Reported by Gary V. Vaughan <gary@gnu.org>.
69914 2009-02-25  Bruno Haible  <bruno@clisp.org>
69916         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69917         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69918         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69919         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69920         Reported by Gary V. Vaughan <gary@gnu.org>.
69922 2009-02-25  Bruno Haible  <bruno@clisp.org>
69924         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69925         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69926         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69927         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69928         Reported by Gary V. Vaughan <gary@gnu.org>.
69930 2009-02-25  Eric Blake  <ebb9@byu.net>
69932         tests: skip fseek/ftell tests if ungetc is broken
69933         * m4/ungetc.m4: New file.
69934         * modules/fseek-tests: Split test, so ungetc dependency is
69935         separate from rest of test.
69936         * modules/fseeko-tests: Likewise.
69937         * modules/ftell-tests: Likewise.
69938         * modules/ftello-tests: Likewise.
69939         * tests/test-fseek.c (main): Isolate ungetc dependency.
69940         * tests/test-fseeko.c (main): Likewise.
69941         * tests/test-ftell.c (main): Likewise.
69942         * tests/test-ftello.c (main): Likewise.
69943         * tests/test-fseek2.sh: New file.
69944         * tests/test-fseeko2.sh: Likewise.
69945         * tests/test-ftell2.sh: Likewise.
69946         * tests/test-ftello2.sh: Likewise.
69948 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69950         test-getaddrinfo: fix usage of skip return code 77
69951         * tests/test-gettaddrinfo.c: Return skip code 77 only
69952         for first occurrence of skip (4x77 is not 77)
69954 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69956         strtod: avoid C99 decl-after-statement
69957         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69959 2009-02-24  Eric Blake  <ebb9@byu.net>
69961         strtod: detect HP-UX 11.31 bug
69962         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69963         Reported by Gary V. Vaughan.
69965 2009-02-23  Bruno Haible  <bruno@clisp.org>
69967         Fix invalid read past end of memory block.
69968         * lib/vasnprintf.c (DCHAR_SET): Define.
69969         (local_wcslen): Define only when needed.
69970         (local_strnlen, local_wcsnlen): New functions.
69971         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69972         directives that involve a conversion ourselves.
69973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69974         wcsnlen, mbrtowc, wcrtomb.
69975         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69976         * tests/test-vasprintf-posix.c (test_function): Likewise.
69977         * tests/test-snprintf-posix.h (test_function): Likewise.
69978         * tests/test-sprintf-posix.h (test_function): Likewise.
69979         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69981 2009-02-22  Bruno Haible  <bruno@clisp.org>
69983         Implement new clarified decomposition of Hangul syllables.
69984         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69985         of type LTV, return only a pairwise decomposition.
69986         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69987         Likewise.
69988         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69989         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69990         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69992 2009-02-22  Bruno Haible  <bruno@clisp.org>
69994         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69995         zero-length results and shrink excess allocated memory.
69996         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69997         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69998         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69999         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
70000         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
70001         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
70002         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
70003         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
70004         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
70005         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
70006         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
70007         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
70009 2009-02-21  Bruno Haible  <bruno@clisp.org>
70011         * doc/gnulib.texi: Include safe-alloc.texi earlier.
70012         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
70013         spaces after a period. Put a space between a macro name and its
70014         argument list. Trivial rewordings.
70015         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
70016         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
70017         (main): Return 0 explicitly.
70019 2009-02-21  Bruno Haible  <bruno@clisp.org>
70021         Tests for module 'uninorm/filter'.
70022         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
70023         * modules/uninorm/filter-tests: New file.
70025         New module 'uninorm/filter'.
70026         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
70027         uninorm_filter_flush, uninorm_filter_free): New declarations.
70028         * lib/uninorm/uninorm-filter.c: New file.
70029         * modules/uninorm/filter: New file.
70031 2009-02-21  Bruno Haible  <bruno@clisp.org>
70033         Tests for module 'uninorm/nfkc'.
70034         * tests/uninorm/test-nfkc.c: New file.
70035         * tests/uninorm/test-u8-nfkc.c: New file.
70036         * tests/uninorm/test-u16-nfkc.c: New file.
70037         * tests/uninorm/test-u32-nfkc.c: New file.
70038         * tests/uninorm/test-u32-nfkc-big.sh: New file.
70039         * tests/uninorm/test-u32-nfkc-big.c: New file.
70040         * modules/uninorm/nfkc-tests: New file.
70042         New module 'uninorm/nfkc'.
70043         * lib/uninorm/nfkc.c: New file.
70044         * modules/uninorm/nfkc: New file.
70046         Tests for module 'uninorm/nfkd'.
70047         * tests/uninorm/test-nfkd.c: New file.
70048         * tests/uninorm/test-u8-nfkd.c: New file.
70049         * tests/uninorm/test-u16-nfkd.c: New file.
70050         * tests/uninorm/test-u32-nfkd.c: New file.
70051         * tests/uninorm/test-u32-nfkd-big.sh: New file.
70052         * tests/uninorm/test-u32-nfkd-big.c: New file.
70053         * modules/uninorm/nfkd-tests: New file.
70055         New module 'uninorm/nfkd'.
70056         * lib/uninorm/nfkd.c: New file.
70057         * modules/uninorm/nfkd: New file.
70059         Tests for module 'uninorm/nfc'.
70060         * tests/uninorm/test-nfc.c: New file.
70061         * tests/uninorm/test-u8-nfc.c: New file.
70062         * tests/uninorm/test-u16-nfc.c: New file.
70063         * tests/uninorm/test-u32-nfc.c: New file.
70064         * tests/uninorm/test-u32-nfc-big.sh: New file.
70065         * tests/uninorm/test-u32-nfc-big.c: New file.
70066         * modules/uninorm/nfc-tests: New file.
70068         New module 'uninorm/nfc'.
70069         * lib/uninorm/nfc.c: New file.
70070         * modules/uninorm/nfc: New file.
70072         Tests for module 'uninorm/nfd'.
70073         * tests/uninorm/test-nfd.c: New file.
70074         * tests/uninorm/test-u8-nfd.c: New file.
70075         * tests/uninorm/test-u16-nfd.c: New file.
70076         * tests/uninorm/test-u32-nfd.c: New file.
70077         * tests/uninorm/test-u32-nfd-big.sh: New file.
70078         * tests/uninorm/test-u32-nfd-big.c: New file.
70079         * tests/uninorm/test-u32-normalize-big.h: New file.
70080         * tests/uninorm/test-u32-normalize-big.c: New file.
70081         * tests/uninorm/NormalizationTest.txt: New file, created from
70082         Unicode 5.1.0 NormalizationTest.txt.
70083         * modules/uninorm/nfd-tests: New file.
70085         New module 'uninorm/nfd'.
70086         * lib/uninorm/nfd.c: New file.
70087         * modules/uninorm/nfd: New file.
70089         New module 'uninorm/u32-normalize'.
70090         * lib/uninorm/u32-normalize.c: New file.
70091         * modules/uninorm/u32-normalize: New file.
70093         New module 'uninorm/u16-normalize'.
70094         * lib/uninorm/u16-normalize.c: New file.
70095         * modules/uninorm/u16-normalize: New file.
70097         New module 'uninorm/u8-normalize'.
70098         * lib/uninorm/u8-normalize.c: New file.
70099         * lib/uninorm/normalize-internal.h: New file.
70100         * lib/uninorm/u-normalize-internal.h: New file.
70101         * modules/uninorm/u8-normalize: New file.
70103         New module 'uninorm/decompose-internal'.
70104         * lib/uninorm/decompose-internal.c: New file.
70105         * modules/uninorm/decompose-internal: New file.
70107         Tests for module 'uninorm/composition'.
70108         * tests/uninorm/test-composition.c: New file.
70109         * modules/uninorm/composition-tests: New file.
70111         New module 'uninorm/composition'.
70112         * lib/uninorm/composition.c: New file.
70113         * lib/uninorm/composition-table.gperf: New file, generated by
70114         gen-uni-tables.
70115         * modules/uninorm/composition: New file.
70117         Tests for module 'uninorm/compat-decomposition'.
70118         * tests/uninorm/test-compat-decomposition.c: New file.
70119         * modules/uninorm/compat-decomposition-tests: New file.
70121         New module 'uninorm/compat-decomposition'.
70122         * lib/uninorm/decompose-internal.h: New file.
70123         * lib/uninorm/compat-decomposition.c: New file.
70124         * modules/uninorm/compat-decomposition: New file.
70126         Tests for module 'uninorm/canonical-decomposition'.
70127         * tests/uninorm/test-canonical-decomposition.c: New file.
70128         * modules/uninorm/canonical-decomposition-tests: New file.
70130         New module 'uninorm/canonical-decomposition'.
70131         * lib/uninorm/canonical-decomposition.c: New file.
70132         * modules/uninorm/canonical-decomposition: New file.
70134         Tests for module 'uninorm/decomposition'.
70135         * tests/uninorm/test-decomposition.c: New file.
70136         * modules/uninorm/decomposition-tests: New file.
70138         New module 'uninorm/decomposition'.
70139         * lib/uninorm/decomposition.c: New file.
70140         * modules/uninorm/decomposition: New file.
70142         New module 'uninorm/decomposition-table'.
70143         * lib/uninorm/decomposition-table.h: New file.
70144         * lib/uninorm/decomposition-table.c: New file.
70145         * lib/uninorm/decomposition-table1.h: New file, generated by
70146         gen-uni-tables.
70147         * lib/uninorm/decomposition-table2.h: New file, generated by
70148         gen-uni-tables.
70149         * modules/uninorm/decomposition-table: New file.
70151         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
70152         (UC_DECOMP_*): New enumeration items.
70153         (get_decomposition): New function.
70154         (struct decomp_table): New type.
70155         (output_decomposition, output_decomposition_tables): New functions.
70156         (unicode_composition_exclusions): New variable.
70157         (fill_composition_exclusions, debug_output_composition_tables): New
70158         functions.
70159         (main): Accept one more argument. Invoke fill_composition_exclusions.
70160         Output decomposition and composition tables.
70162         New module 'uninorm/base'.
70163         * lib/uninorm.h: New file.
70164         * lib/unictype.h: Update comment.
70165         * modules/uninorm/base: New file.
70167 2009-02-21  David Lutterkort  <lutter@redhat.com>
70169         Tests for module 'safe-alloc'.
70170         * tests/test-safe-alloc.c: New file.
70171         * modules/safe-alloc-tests: New file.
70173         New module 'safe-alloc'.
70174         * lib/safe-alloc.h: New file.
70175         * lib/safe-alloc.c: New file.
70176         * m4/safe-alloc.m4: New file.
70177         * modules/safe-alloc: New file.
70178         * doc/safe-alloc.texi: New file.
70179         * doc/gnulib.texi: Include it.
70180         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
70181         safe-alloc.
70183 2009-02-18  Bruno Haible  <bruno@clisp.org>
70185         Fix link error on non-glibc systems.
70186         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
70187         variable.
70188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70190 2009-02-18  Jim Meyering  <meyering@redhat.com>
70192         fts: avoid used-uninitialized error due to recent change
70193         * lib/fts.c (fts_read): Guard uses of the new member,
70194         parent->fts_n_dirs_remaining, since it's not relevant for
70195         the parent of a directory specified on the command-line.
70197 2009-02-17  James Youngman  <jay@gnu.org>
70198             Bruno Haible  <bruno@clisp.org>
70200         * m4/include_next.m4: Reformulate comment.
70202 2009-02-16  Jim Meyering  <meyering@redhat.com>
70204         fts: add #if guards so that the fts_lgpl module still builds
70205         * lib/fts.c: Guard just-added hash-table-using parts with
70206         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
70207         Reported by Simon Josefsson.
70209 2009-02-15  Bruno Haible  <bruno@clisp.org>
70211         * modules/array-mergesort-tests: New file.
70212         * tests/test-array-mergesort.c: New file.
70214         New module 'array-mergesort'.
70215         * modules/array-mergesort: New file.
70216         * lib/array-mergesort.h: New file.
70218 2009-02-15  Bruno Haible  <bruno@clisp.org>
70220         Fix 2009-02-07 commit.
70221         * lib/gen-uni-tables.c (output_predicate, output_category,
70222         output_combclass, output_bidi_category, output_decimal_digit,
70223         output_digit, output_numeric, output_mirror, output_scripts,
70224         output_ident_category, output_simple_mapping): Fix format directives.
70225         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
70227 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
70229         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
70230         fixes are available from IBM.
70232 2009-02-13  Jim Meyering  <meyering@redhat.com>
70234         fts: arrange not to stat non-directories in more cases
70235         This makes GNU find (when it doesn't need to stat each file)
70236         *much* more efficient at traversing reiserfs file systems.
70237         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
70238         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
70239         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
70240         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
70241         (leaf_optimization_applies): New function.
70242         (LCO_hash, LCO_compare): New helper functions.
70243         (link_count_optimize_ok): New function.
70244         (fts_stat): Initialize new member (if dir).
70245         (fts_read): Decrement parent's fts_n_dirs_remaining count if
70246         we've just stat'ed a directory.  Skip the stat call when possible.
70247         ---
70248         Note this AFS-related exchange:
70249         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
70250         and note find's pioctl call in find/fstype.c.
70251         But that is necessary only if you want to enable the
70252         optimization for AFS, and for now, I don't.
70254         fts: move a function definition "up" (no semantic change)
70255         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
70256         "up" to precede upcoming use of a related function.
70258 2009-02-11  Jim Meyering  <meyering@redhat.com>
70260         fts: correct internal computation of nlinks (optimization-related)
70261         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
70262         whether the current entry is a directory, so don't test it.
70264 2009-02-10  Bruno Haible  <bruno@clisp.org>
70266         Tests for module 'uniwbrk/ulc-wordbreaks'.
70267         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
70268         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
70269         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
70271         Tests for module 'uniwbrk/u32-wordbreaks'.
70272         * modules/uniwbrk/u32-wordbreaks-tests: New file.
70273         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
70275         Tests for module 'uniwbrk/u16-wordbreaks'.
70276         * modules/uniwbrk/u16-wordbreaks-tests: New file.
70277         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
70279         Tests for module 'uniwbrk/u8-wordbreaks'.
70280         * modules/uniwbrk/u8-wordbreaks-tests: New file.
70281         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
70283 2009-02-10  Bruno Haible  <bruno@clisp.org>
70285         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
70286         property.
70287         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
70288         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
70289         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
70291 2009-02-10  Simon Josefsson  <simon@josefsson.org>
70293         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
70294         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
70296 2009-02-10  Bruno Haible  <bruno@clisp.org>
70298         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
70299         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
70300         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
70301         * lib/unilbrk/u8-possible-linebreaks.c: Update.
70302         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
70303         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
70305 2009-02-09  Simon Josefsson  <simon@josefsson.org>
70307         * lib/sockets.h (gl_fd_to_handle): New function.
70309         * tests/test-sockets.c: Call gl_fd_to_handle.
70311 2009-02-09  Bruno Haible  <bruno@clisp.org>
70313         * doc/havelib.texi: Document the conventions on bi-arch systems.
70315 2009-02-08  Bruno Haible  <bruno@clisp.org>
70317         Document the AC_LIB_LINKFLAGS macro.
70318         * doc/havelib.texi: New file, mostly written on 2005-05-24.
70319         * doc/gnulib.texi: Include it.
70321 2009-02-08  Bruno Haible  <bruno@clisp.org>
70323         Fix wrong order of sections, compared to TOC.
70324         * doc/gnulib.texi: Include relocatable-maint.texi after the
70325         "Regular expressions" node, not before.
70327 2009-02-08  Bruno Haible  <bruno@clisp.org>
70329         Tests for module 'unicase/totitle'.
70330         * modules/unicase/totitle-tests: New file.
70332         Tests for module 'unicase/tolower'.
70333         * modules/unicase/tolower-tests: New file.
70335         Tests for module 'unicase/toupper'.
70336         * modules/unicase/toupper-tests: New file.
70337         * tests/unicase/test-mapping-part1.h: New file.
70338         * tests/unicase/test-mapping-part2.h: New file.
70340         New module 'unicase/totitle'.
70341         * modules/unicase/totitle: New file.
70342         * lib/unicase/totitle.c: New file.
70344         New module 'unicase/tolower'.
70345         * modules/unicase/tolower: New file.
70346         * lib/unicase/tolower.c: New file.
70348         New module 'unicase/toupper'.
70349         * modules/unicase/toupper: New file.
70350         * lib/unicase/toupper.c: New file.
70351         * lib/unicase/simple-mapping.h: New file.
70353         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70354         (mapping_table): New structure.
70355         (output_simple_mapping): New function.
70356         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70357         * modules/gen-uni-tables (Description): Update.
70358         * lib/unicase/toupper.h: New file, automatically generated by
70359         gen-uni-tables.
70360         * lib/unicase/tolower.h: New file, automatically generated by
70361         gen-uni-tables.
70362         * lib/unicase/totitle.h: New file, automatically generated by
70363         gen-uni-tables.
70364         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70365         gen-uni-tables.
70366         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70367         gen-uni-tables.
70368         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70369         gen-uni-tables.
70371         New module 'unicase/base'.
70372         * modules/unicase/base: New file.
70373         * lib/unicase.h: New file.
70375 2009-02-08  Bruno Haible  <bruno@clisp.org>
70377         New module 'uniwbrk/ulc-wordbreaks'.
70378         * modules/uniwbrk/ulc-wordbreaks: New file.
70379         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70381         New module 'uniwbrk/u32-wordbreaks'.
70382         * modules/uniwbrk/u32-wordbreaks: New file.
70383         * lib/uniwbrk/u32-wordbreaks.c: New file.
70385         New module 'uniwbrk/u16-wordbreaks'.
70386         * modules/uniwbrk/u16-wordbreaks: New file.
70387         * lib/uniwbrk/u16-wordbreaks.c: New file.
70389         New module 'uniwbrk/u8-wordbreaks'.
70390         * modules/uniwbrk/u8-wordbreaks: New file.
70391         * lib/uniwbrk/u8-wordbreaks.c: New file.
70392         * lib/uniwbrk/u-wordbreaks.h: New file.
70394         New module 'uniwbrk/table'.
70395         * modules/uniwbrk/table: New file.
70396         * lib/uniwbrk/wbrktable.h: New file.
70397         * lib/uniwbrk/wbrktable.c: New file.
70399         New module 'uniwbrk/wordbreak-property'.
70400         * modules/uniwbrk/wordbreak-property: New file.
70401         * lib/uniwbrk/wordbreak-property.c: New file.
70403         * lib/gen-uni-tables.c (WBP_*): New enum items.
70404         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70405         (unicode_org_wbp): New variable.
70406         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70407         New functions.
70408         (wbp_table): New structure.
70409         (output_wbp, output_wbrk_tables): New functions.
70410         (main): Accept additional argument. Invoke fill_org_wbp,
70411         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70412         output_wbrk_tables.
70413         * modules/gen-uni-tables (Description): Update.
70414         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70415         gen-uni-tables.
70417         New module 'uniwbrk/base'.
70418         * modules/uniwbrk/base: New file.
70419         * lib/uniwbrk.h: New file.
70421 2009-02-08  Bruno Haible  <bruno@clisp.org>
70423         Update to Unicode 5.1.0.
70424         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70425         U+2185..U+2188.
70426         (is_property_default_ignorable_code_point): Don't include characters
70427         of category Cc or Cs and not-a-characters.
70428         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70429         U+0D79, U+109E, U+109F, U+A60C.
70430         * lib/unictype/bidi_of.h: Regenerated.
70431         * lib/unictype/blocks.h: Regenerated.
70432         * lib/unictype/categ_C.h: Regenerated.
70433         * lib/unictype/categ_Cf.h: Regenerated.
70434         * lib/unictype/categ_Cn.h: Regenerated.
70435         * lib/unictype/categ_L.h: Regenerated.
70436         * lib/unictype/categ_Ll.h: Regenerated.
70437         * lib/unictype/categ_Lm.h: Regenerated.
70438         * lib/unictype/categ_Lo.h: Regenerated.
70439         * lib/unictype/categ_Lu.h: Regenerated.
70440         * lib/unictype/categ_M.h: Regenerated.
70441         * lib/unictype/categ_Mc.h: Regenerated.
70442         * lib/unictype/categ_Me.h: Regenerated.
70443         * lib/unictype/categ_Mn.h: Regenerated.
70444         * lib/unictype/categ_N.h: Regenerated.
70445         * lib/unictype/categ_Nd.h: Regenerated.
70446         * lib/unictype/categ_Nl.h: Regenerated.
70447         * lib/unictype/categ_No.h: Regenerated.
70448         * lib/unictype/categ_P.h: Regenerated.
70449         * lib/unictype/categ_Pd.h: Regenerated.
70450         * lib/unictype/categ_Pe.h: Regenerated.
70451         * lib/unictype/categ_Pf.h: Regenerated.
70452         * lib/unictype/categ_Pi.h: Regenerated.
70453         * lib/unictype/categ_Po.h: Regenerated.
70454         * lib/unictype/categ_Ps.h: Regenerated.
70455         * lib/unictype/categ_S.h: Regenerated.
70456         * lib/unictype/categ_Sk.h: Regenerated.
70457         * lib/unictype/categ_Sm.h: Regenerated.
70458         * lib/unictype/categ_So.h: Regenerated.
70459         * lib/unictype/categ_of.h: Regenerated.
70460         * lib/unictype/combining.h: Regenerated.
70461         * lib/unictype/ctype_alnum.h: Regenerated.
70462         * lib/unictype/ctype_alpha.h: Regenerated.
70463         * lib/unictype/ctype_graph.h: Regenerated.
70464         * lib/unictype/ctype_lower.h: Regenerated.
70465         * lib/unictype/ctype_print.h: Regenerated.
70466         * lib/unictype/ctype_punct.h: Regenerated.
70467         * lib/unictype/ctype_upper.h: Regenerated.
70468         * lib/unictype/decdigit.h: Regenerated.
70469         * lib/unictype/digit.h: Regenerated.
70470         * lib/unictype/mirror.h: Regenerated.
70471         * lib/unictype/numeric.h: Regenerated.
70472         * lib/unictype/pr_alphabetic.h: Regenerated.
70473         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70474         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70475         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70476         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70477         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70478         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70479         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70480         * lib/unictype/pr_combining.h: Regenerated.
70481         * lib/unictype/pr_dash.h: Regenerated.
70482         * lib/unictype/pr_decimal_digit.h: Regenerated.
70483         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70484         * lib/unictype/pr_deprecated.h: Regenerated.
70485         * lib/unictype/pr_diacritic.h: Regenerated.
70486         * lib/unictype/pr_extender.h: Regenerated.
70487         * lib/unictype/pr_format_control.h: Regenerated.
70488         * lib/unictype/pr_grapheme_base.h: Regenerated.
70489         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70490         * lib/unictype/pr_grapheme_link.h: Regenerated.
70491         * lib/unictype/pr_id_continue.h: Regenerated.
70492         * lib/unictype/pr_id_start.h: Regenerated.
70493         * lib/unictype/pr_ideographic.h: Regenerated.
70494         * lib/unictype/pr_ignorable_control.h: Regenerated.
70495         * lib/unictype/pr_lowercase.h: Regenerated.
70496         * lib/unictype/pr_math.h: Regenerated.
70497         * lib/unictype/pr_numeric.h: Regenerated.
70498         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70499         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70500         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70501         * lib/unictype/pr_other_id_continue.h: Regenerated.
70502         * lib/unictype/pr_other_lowercase.h: Regenerated.
70503         * lib/unictype/pr_other_math.h: Regenerated.
70504         * lib/unictype/pr_punctuation.h: Regenerated.
70505         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70506         * lib/unictype/pr_soft_dotted.h: Regenerated.
70507         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70508         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70509         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70510         * lib/unictype/pr_uppercase.h: Regenerated.
70511         * lib/unictype/pr_xid_continue.h: Regenerated.
70512         * lib/unictype/pr_xid_start.h: Regenerated.
70513         * lib/unictype/pr_zero_width.h: Regenerated.
70514         * lib/unictype/scripts.h: Regenerated.
70515         * lib/unictype/scripts_byname.gperf: Regenerated.
70516         * lib/unictype/sy_java_ident.h: Regenerated.
70517         * lib/unilbrk/lbrkprop1.h: Regenerated.
70518         * lib/unilbrk/lbrkprop2.h: Regenerated.
70519         * tests/unictype/test-categ_C.c: Regenerated.
70520         * tests/unictype/test-categ_Cf.c: Regenerated.
70521         * tests/unictype/test-categ_Cn.c: Regenerated.
70522         * tests/unictype/test-categ_L.c: Regenerated.
70523         * tests/unictype/test-categ_Ll.c: Regenerated.
70524         * tests/unictype/test-categ_Lm.c: Regenerated.
70525         * tests/unictype/test-categ_Lo.c: Regenerated.
70526         * tests/unictype/test-categ_Lu.c: Regenerated.
70527         * tests/unictype/test-categ_M.c: Regenerated.
70528         * tests/unictype/test-categ_Mc.c: Regenerated.
70529         * tests/unictype/test-categ_Me.c: Regenerated.
70530         * tests/unictype/test-categ_Mn.c: Regenerated.
70531         * tests/unictype/test-categ_N.c: Regenerated.
70532         * tests/unictype/test-categ_Nd.c: Regenerated.
70533         * tests/unictype/test-categ_Nl.c: Regenerated.
70534         * tests/unictype/test-categ_No.c: Regenerated.
70535         * tests/unictype/test-categ_P.c: Regenerated.
70536         * tests/unictype/test-categ_Pd.c: Regenerated.
70537         * tests/unictype/test-categ_Pe.c: Regenerated.
70538         * tests/unictype/test-categ_Pf.c: Regenerated.
70539         * tests/unictype/test-categ_Pi.c: Regenerated.
70540         * tests/unictype/test-categ_Po.c: Regenerated.
70541         * tests/unictype/test-categ_Ps.c: Regenerated.
70542         * tests/unictype/test-categ_S.c: Regenerated.
70543         * tests/unictype/test-categ_Sk.c: Regenerated.
70544         * tests/unictype/test-categ_Sm.c: Regenerated.
70545         * tests/unictype/test-categ_So.c: Regenerated.
70546         * tests/unictype/test-ctype_alnum.c: Regenerated.
70547         * tests/unictype/test-ctype_alpha.c: Regenerated.
70548         * tests/unictype/test-ctype_graph.c: Regenerated.
70549         * tests/unictype/test-ctype_lower.c: Regenerated.
70550         * tests/unictype/test-ctype_print.c: Regenerated.
70551         * tests/unictype/test-ctype_punct.c: Regenerated.
70552         * tests/unictype/test-ctype_upper.c: Regenerated.
70553         * tests/unictype/test-decdigit.h: Regenerated.
70554         * tests/unictype/test-digit.h: Regenerated.
70555         * tests/unictype/test-numeric.h: Regenerated.
70556         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70557         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70558         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70559         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70560         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70561         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70562         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70563         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70564         * tests/unictype/test-pr_combining.c: Regenerated.
70565         * tests/unictype/test-pr_dash.c: Regenerated.
70566         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70567         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70568         * tests/unictype/test-pr_deprecated.c: Regenerated.
70569         * tests/unictype/test-pr_diacritic.c: Regenerated.
70570         * tests/unictype/test-pr_extender.c: Regenerated.
70571         * tests/unictype/test-pr_format_control.c: Regenerated.
70572         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70573         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70574         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70575         * tests/unictype/test-pr_id_continue.c: Regenerated.
70576         * tests/unictype/test-pr_id_start.c: Regenerated.
70577         * tests/unictype/test-pr_ideographic.c: Regenerated.
70578         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70579         * tests/unictype/test-pr_lowercase.c: Regenerated.
70580         * tests/unictype/test-pr_math.c: Regenerated.
70581         * tests/unictype/test-pr_numeric.c: Regenerated.
70582         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70583         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70584         Regenerated.
70585         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70586         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70587         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70588         * tests/unictype/test-pr_other_math.c: Regenerated.
70589         * tests/unictype/test-pr_punctuation.c: Regenerated.
70590         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70591         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70592         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70593         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70594         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70595         * tests/unictype/test-pr_uppercase.c: Regenerated.
70596         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70597         * tests/unictype/test-pr_xid_start.c: Regenerated.
70598         * tests/unictype/test-pr_zero_width.c: Regenerated.
70600         Update to Unicode 5.1.0.
70601         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70602         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70603         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70604         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70605         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70606         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70607         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70608         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70609         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70610         (nonspacing_table_ind): Update.
70611         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70613         Update to Unicode 5.1.0.
70614         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70615         code transform.
70616         * lib/uniname/uniname.c (unicode_character_name,
70617         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70618         * lib/uniname/uninames.h: Regenerated.
70619         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70621 2009-02-07  Bruno Haible  <bruno@clisp.org>
70623         Merge gen-ctype and gen-lbrk into a single program.
70624         * lib/gen-uni-tables.c: New file, incorporating
70625         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70626         Add directory prefixes to the names of the generated files.
70627         * lib/unictype/gen-ctype.c: Remove file.
70628         * lib/unilbrk/gen-lbrk.c: Remove file.
70629         * modules/gen-uni-tables: New file.
70630         * modules/unictype/gen-ctype: Remove file.
70631         * modules/unilbrk/gen-lbrk: Remove file.
70633 2009-02-07  Bruno Haible  <bruno@clisp.org>
70635         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70637         New module 'unistr/u32-strcoll'.
70638         * modules/unistr/u32-strcoll: New file.
70639         * lib/unistr/u32-strcoll.c: New file.
70641         New module 'unistr/u16-strcoll'.
70642         * modules/unistr/u16-strcoll: New file.
70643         * lib/unistr/u16-strcoll.c: New file.
70645         New module 'unistr/u8-strcoll'.
70646         * modules/unistr/u8-strcoll: New file.
70647         * lib/unistr/u8-strcoll.c: New file.
70648         * lib/unistr/u-strcoll.h: New file.
70650 2009-02-07  Bruno Haible  <bruno@clisp.org>
70652         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70653         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70654         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70655         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70656         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70657         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70659 2009-02-07  Bruno Haible  <bruno@clisp.org>
70661         Make 64-bit clean.
70662         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70663         output_combclass, output_bidi_category, output_decimal_digit,
70664         output_digit, output_numeric, output_mirror, output_scripts,
70665         output_ident_category): Use proper width specifier in format strings.
70667 2009-02-07  Bruno Haible  <bruno@clisp.org>
70669         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70670         failure behaviour.
70672 2009-02-07  Jim Meyering  <meyering@redhat.com>
70674         regex: avoid compilation failure with upcoming gcc-4.4
70675         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70676         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70677         "... error: integer overflow in preprocessor expression".
70679 2009-02-05  Ben Pfaff  <blp@gnu.org>
70681         Fix link errors on Windows when close module is used.
70682         * modules/close: Add $(LIB_CLOSE) to Link section.
70683         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70684         $(LIB_CLOSE) on Windows.
70686 2009-02-05  Jim Meyering  <meyering@redhat.com>
70688         still avoid unused-parameter warnings, but do it cleanly
70689         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70690         (get_fs_usage): Cast to void instead.
70691         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70692         (dev_from_mount_options, read_file_system_list): Cast to void.
70693         Prompted by Bruno Haible.
70695 2009-02-04  Jim Meyering  <meyering@redhat.com>
70697         fsusage.c: correct copyright year
70698         * lib/fsusage.c: Reflect year in which the change is pushed into
70700         avoid misc. warnings
70701         * lib/fsusage.c (UNUSED_PARAM): Define.
70702         (get_fs_usage): Mark parameter "disk" as unused.
70703         * lib/getugroups.c (getgrent): Use "void" in prototype.
70704         * lib/mountlist.c: Mark unused parameters.
70705         (read_file_system_list): Declare a local with "const".
70706         * lib/nanosleep.c (getnow): Declare static.
70707         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70709         dirfd: set errno upon failure
70710         * lib/dirfd.c: Include <errno.h>.
70711         Set errno to ENOTSUP when returning -1.
70712         * modules/dirfd (Depends-on): Add errno.
70713         Suggested by John Kodis <kodis@comcast.net>.
70715 2009-02-01  Bruno Haible  <bruno@clisp.org>
70717         Don't assume sizeof (long) >= sizeof (void *).
70718         * lib/memcmp.c: Include stdint.h.
70719         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70720         srcp2 to 'const byte *'.
70721         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70722         types to uintptr_t.
70723         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70724         * modules/memcmp (Depends-on): Add stdint.
70725         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70727 2009-01-30  Eric Blake  <ebb9@byu.net>
70729         fix more require-before-expand issues
70730         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70731         expand, AC_PROG_AWK.
70732         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70734 2009-01-28  Eric Blake  <ebb9@byu.net>
70736         version-etc: use consistent URL formatting
70737         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70738         Improve formatting.  Use fputs for string without %.
70740 2009-01-28  Jim Meyering  <meyering@redhat.com>
70742         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70743         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70744         "underquoted definition of NAME" from autoconf-2.59.
70746 2009-01-28  Bruno Haible  <bruno@clisp.org>
70748         * doc/gnulib.texi: Add "Obsolete modules" to index.
70750 2009-01-28  Jim Meyering  <meyering@redhat.com>
70752         useless-if-before-free: recognize more variants
70753         * build-aux/useless-if-before-free: Also recognize e.g.,
70754         if (NULL != p) free (p);
70756 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70758         test-getaddrinfo: skip (don't fail) this test when there's no network
70759         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70760         on the presumption that it means you lack network access.
70762 2009-01-26  Jim Meyering  <meyering@redhat.com>
70764         fflush: avoid warnings on modern systems
70765         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70766         pos and result, into scopes where they're used.
70768 2009-01-26  Eric Blake  <ebb9@byu.net>
70770         Silence warning reintroduced by recent extensions patch.
70771         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70772         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70773         autoconf.
70775         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70776         * m4/00gnulib.m4: New file.
70777         * gnulib-tool (func_get_filelist): Always use it.
70778         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70779         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70781 2009-01-25  Bruno Haible  <bruno@clisp.org>
70783         Make test-quotearg work on MacOS X and AIX.
70784         * tests/test-quotearg.sh: New file.
70785         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70786         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70787         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70788         include <libintl.h>.
70789         (fake_locale): Remove variable.
70790         (gettext, dgettext, dcgettext): Remove functions.
70791         (main): Instead of setting a fake locale, set a real locale. Call
70792         textdomain and bindtextdomain.
70793         * modules/quotearg-tests (Files): Add the new files.
70794         (Depends-on): Add gettext, setenv, unsetenv.
70795         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70796         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70797         Augment TESTS_ENVIRONMENT.
70799 2009-01-25  Bruno Haible  <bruno@clisp.org>
70801         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70802         fr_FR.ISO8859-1 locale on MacOS X.
70803         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70804         ja_JP.eucJP locale on MacOS X.
70805         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70806         zh_CN.GB18030 locale on MacOS X.
70808 2009-01-25  Bruno Haible  <bruno@clisp.org>
70810         Avoid link errors on MacOS X 10.3.
70811         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70812         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70814 2009-01-25  Bruno Haible  <bruno@clisp.org>
70816         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70817         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70818         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70819         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70820         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70821         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70822         posix_spawnattr_init, posix_spawnattr_setsigmask,
70823         posix_spawnattr_setflags, posix_spawnattr_destroy.
70825         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70826         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70827         * modules/execute (Files): Remove m4/posix_spawn.m4.
70828         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70829         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70830         posix_spawnattr_init, posix_spawnattr_setsigmask,
70831         posix_spawnattr_setflags, posix_spawnattr_destroy.
70833 2009-01-25  Bruno Haible  <bruno@clisp.org>
70835         * lib/glthread/threadlib.c: Include <stdlib.h>.
70837 2009-01-25  Bruno Haible  <bruno@clisp.org>
70839         * lib/glthread/threadlib.c (dummy): New declaration.
70841 2009-01-25  Bruno Haible  <bruno@clisp.org>
70843         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70844         multibyte characters also for the GB18030 encoding. Don't crash when
70845         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70847 2009-01-25  Bruno Haible  <bruno@clisp.org>
70849         Avoid redefining 'struct random_data' on OSF/1 5.1.
70850         * lib/stdlib.in.h: Include <random.h> if it exists.
70851         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70852         HAVE_RANDOM_H. Include <random.h> when testing whether
70853         'struct random_data' exists.
70854         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70856 2009-01-25  Bruno Haible  <bruno@clisp.org>
70858         Don't install charset.alias on MacOS X >= 10.3.
70859         * lib/localcharset.c (DARWIN7): New macro.
70860         (get_charset_aliases): Hardcode the result for Darwin7.
70861         * modules/localcharset (install-exec-local): Don't install
70862         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70864 2009-01-25  Bruno Haible  <bruno@clisp.org>
70866         Don't install charset.alias on mingw and Cygwin.
70867         * modules/localcharset (install-exec-local): Don't install
70868         charset.alias on mingw and Cygwin, if the file does not yet exist.
70869         The result for these platforms is hardcoded in localcharset.c.
70871 2009-01-25  Bruno Haible  <bruno@clisp.org>
70873         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70874         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70875         before requiring AC_USE_SYSTEM_EXTENSIONS.
70877 2009-01-25  Jim Meyering  <meyering@redhat.com>
70879         c-strtod: avoid warnings
70880         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70881         "assignment discards qualifiers from pointer target type" warnings.
70883 2009-01-24  Bruno Haible  <bruno@clisp.org>
70885         Add support for non-UTF-8 locales on MacOS X.
70886         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70887         canonical encodings. For Darwin 7 and newer, don't map traditional
70888         encodings to UTF-8.
70889         Reported by Vincent Lefevre <vincent@vinc17.org>
70890         at <http://savannah.gnu.org/bugs/?25235>.
70892 2009-01-24  Bruno Haible  <bruno@clisp.org>
70894         * doc/gnulib.texi (Obsolete modules): New section.
70895         Reported by Mike Frysinger <vapier@gentoo.org>.
70897 2009-01-24  Bruno Haible  <bruno@clisp.org>
70899         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70900         (%.dvi): New rule.
70902 2009-01-24  Bruno Haible  <bruno@clisp.org>
70904         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70905         Reported by Eric Blake.
70907 2009-01-24  Bruno Haible  <bruno@clisp.org>
70909         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70910         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70911         Reported by Gary V. Vaughan <gary@gnu.org>.
70913 2009-01-24  Bruno Haible  <bruno@clisp.org>
70915         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70917 2009-01-23  Bruno Haible  <bruno@clisp.org>
70919         Make c-strtod, c-strtold usable in libraries.
70920         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70921         (C_STRTOD): Call strdup instead of xstrdup.
70922         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70923         * modules/c-strtold (Depends-on): Likewise.
70924         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70925         * NEWS: Mention the change.
70926         Reported by Michael Gold <mgold@ncf.ca>.
70928 2009-01-23  Jim Meyering  <meyering@redhat.com>
70930         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70931         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70932         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70934 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70936         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70937         GNU CoreUtils.
70938         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70939         * modules/version-etc (Description): Update.
70941 2009-01-22  Bruno Haible  <bruno@clisp.org>
70943         Cache the C locale object.
70944         * lib/c-strtod.c (c_locale_cache): New variable.
70945         (c_locale): New function.
70946         (C_STRTOD): Use it, and don't call freelocale.
70947         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70948         Suggested by Paolo Bonzini.
70950 2009-01-21  Bruno Haible  <bruno@clisp.org>
70952         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70953         conditions other than overflow.
70955 2009-01-21  Bruno Haible  <bruno@clisp.org>
70957         * lib/c-strtod.c: Include errno.h.
70958         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70959         value from STRTOD_L and STRTOD.
70961 2009-01-21  Bruno Haible  <bruno@clisp.org>
70962         and Jim Meyering  <meyering@redhat.com>
70964         nanosleep: skip configure test (fail it) for apple universal builds
70965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70966         universal builds, assume that nanosleep does not work.
70967         * modules/nanosleep (Depends-on): Add multiarch.
70969         mktime: skip configure test (fail it) for apple universal builds
70970         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70971         universal builds, assume that mktime does not work.
70972         * modules/mktime (Depends-on): Add multiarch.
70974 2009-01-21  Eric Blake  <ebb9@byu.net>
70976         multiarch: avoid expand-before-require warning
70977         * modules/multiarch (configure.ac): Require, rather than expand,
70978         gl_MULTIARCH.
70979         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70980         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70981         enforce that all clients require it.  Partial reversion of
70982         2008-12-29 patch.
70984         error: avoid expand-before-require warning
70985         * modules/errno (configure.ac): Require, rather than expand,
70986         gl_HEADER_ERRNO_H.
70987         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70988         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70989         enforce that all clients require it.
70991         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70992         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70993         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70994         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70996 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70998         Revert:
70999         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
71001         regex: do not depend on obsolete modules.
71002         * modules/regex: Remove memcmp and memmove.
71004 2009-01-20  Bruno Haible  <bruno@clisp.org>
71006         Make the 'link' module link on Windows NT 4.
71007         * lib/link.c (_WIN32_WINNT): Don't define.
71008         (CreateHardLinkFuncType): New type.
71009         (CreateHardLinkFunc, initialized): New variables.
71010         (initialize): New function.
71011         (link): Invoke CreateHardLink indirectly through the function pointer.
71013 2009-01-20  Bruno Haible  <bruno@clisp.org>
71015         Fix compilation failure on mingw.
71016         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
71018 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
71020         * doc/c-strtod.texi: Mention a couple of restrictions.
71022 2009-01-20  Jim Meyering  <meyering@redhat.com>
71024         gettimeofday: move more declarations out of functions
71025         * lib/gettimeofday.c: Move extern declarations of tzset and
71026         gmtime out of containing functions.  Prompted by Bruno Haible.
71028 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
71030         regex: do not depend on obsolete modules.
71031         * modules/regex: Remove memcmp and memmove.
71033 2009-01-19  Bruno Haible  <bruno@clisp.org>
71035         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
71036         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
71037         gl_BIGENDIAN, not AC_C_BIGENDIAN.
71038         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
71039         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
71041 2009-01-19  Bruno Haible  <bruno@clisp.org>
71043         * tests/test-link.c: Include <errno.h>.
71044         (main): Exit with code 77 when a hard link cannot be created due to
71045         the file system.
71046         * tests/test-link.sh: Skip test when a hard link cannot be created due
71047         to the file system.
71048         Suggested by Eric Blake.
71050 2009-01-19  Martin Lambers  <marlam@marlam.de>
71052         * modules/link-tests: New file.
71053         * tests/test-link.sh: New file.
71054         * tests/test-link.c: New file.
71056 2009-01-19  Eric Blake  <ebb9@byu.net>
71058         doc: mention another function added in cygwin 1.7.0
71059         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
71060         Another new function in cygwin 1.7.
71062 2009-01-19  Bruno Haible  <bruno@clisp.org>
71064         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
71065         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
71066         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
71067         gl_BIGENDIAN, not AC_C_BIGENDIAN.
71068         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
71069         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
71070         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
71071         * m4/md4.m4 (gl_MD4): Likewise.
71072         * m4/md5.m4 (gl_MD5): Likewise.
71073         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
71074         * m4/sha1.m4 (gl_SHA1): Likewise.
71075         * m4/sha256.m4 (gl_SHA256): Likewise.
71076         * m4/sha512.m4 (gl_SHA512): Likewise.
71078 2009-01-19  Bruno Haible  <bruno@clisp.org>
71080         * modules/uniname/uniname-tests (Depends-on): Add progname.
71081         * tests/uniname/test-uninames.c: Include progname.h.
71082         (main): Call set_program_name.
71084         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
71085         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
71086         (main): Call set_program_name.
71088         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
71089         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
71090         (main): Call set_program_name.
71092         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
71093         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
71094         (main): Call set_program_name.
71096         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
71097         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
71098         (main): Call set_program_name.
71100         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
71101         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
71102         (main): Call set_program_name.
71104         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
71105         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
71106         (main): Call set_program_name.
71108         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
71109         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
71110         (main): Call set_program_name.
71112         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
71113         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
71114         (main): Call set_program_name.
71116 2009-01-19  Eric Blake  <ebb9@byu.net>
71118         test-unistd: test previous patch
71119         * tests/test-unistd.c: Test *_FILENO macros.
71121         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
71122         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71123         Guarantee a definition.
71124         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
71125         * modules/unistd-safer (Depends-on): Add dependency on unistd.
71126         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
71127         * lib/dup-safer.c (STDERR_FILENO): Likewise.
71128         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71129         Likewise.
71130         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
71131         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
71132         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71133         Likewise.
71134         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
71135         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
71136         (STDERR_FILENO): Likewise.
71137         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
71138         (STDERR_FILENO): Likewise.
71139         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
71140         (STDERR_FILENO): Likewise.
71141         Reported by Elbert Pol.
71143 2009-01-19  Eric Blake  <ebb9@byu.net>
71145         doc: mention more functions added in cygwin 1.7.0
71146         * doc/posix-functions/abort.texi (abort): Update wording related
71147         to cygwin.
71148         * doc/posix-functions/daylight.texi (daylight): Likewise.
71149         * doc/posix-functions/optarg.texi (optarg): Likewise.
71150         * doc/posix-functions/optarg.texi (opterr): Likewise.
71151         * doc/posix-functions/optarg.texi (optind): Likewise.
71152         * doc/posix-functions/optarg.texi (optopt): Likewise.
71153         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
71154         worked in 1.5.x, and was withdrawn in 1.7.
71155         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
71156         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
71157         cygwin versions.
71158         * doc/posix-functions/perror.texi (perror): Likewise.
71159         * doc/posix-functions/printf.texi (printf): Likewise.
71160         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
71161         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
71162         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
71163         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
71164         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
71165         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
71166         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71167         Likewise.
71168         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71169         Likewise.
71170         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
71171         this function.
71172         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
71173         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
71174         Likewise.
71175         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
71176         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
71177         * doc/posix-functions/confstr.texi (confstr): Likewise.
71178         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
71179         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
71180         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
71181         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
71182         * doc/posix-functions/fputws.texi (fputws): Likewise.
71183         * doc/posix-functions/fwide.texi (fwide): Likewise.
71184         * doc/posix-functions/getwc.texi (getwc): Likewise.
71185         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
71186         * doc/posix-functions/putwc.texi (putwc): Likewise.
71187         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
71188         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
71189         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
71190         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
71191         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
71192         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
71193         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
71194         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
71195         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
71196         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
71197         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
71199 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71201         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
71202         * lib/ioctl.c: Include <sys/ioctl.h>.
71204 2009-01-19  Simon Josefsson  <simon@josefsson.org>
71206         * modules/getdate-tests (Depends-on): Add progname.
71207         * tests/test-getdate.c: Use progname module, to avoid link errors
71208         on non-glibc systems.
71210 2009-01-18  Simon Josefsson  <simon@josefsson.org>
71212         * modules/filenamecat-tests (Depends-on): Add progname.
71213         * modules/fstrcmp-tests (Depends-on): Likewise.
71215         * tests/test-filenamecat.c: Use progname module, to avoid link
71216         errors on non-glibc systems.
71217         * tests/test-fstrcmp.c: Likewise.
71219 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71221         gettimeofday: avoid warning: nested extern declaration of 'localtime'
71222         * lib/gettimeofday.c: Move extern declaration out of function.
71224 2009-01-18  Bruno Haible  <bruno@clisp.org>
71226         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
71227         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
71228         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
71230 2009-01-18  Bruno Haible  <bruno@clisp.org>
71232         * lib/strftime.c (MEMPCPY): Remove unused macro.
71233         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
71235 2009-01-18  Martin Lambers  <marlam@marlam.de>
71237         New module 'link'.
71238         * lib/unistd.in.h (link): New declaration.
71239         * lib/link.c: New file.
71240         * m4/link.m4: New file.
71241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
71242         HAVE_LINK.
71243         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
71244         * modules/link: New file.
71245         * doc/posix-functions/link.texi: Mention the new module.
71247 2009-01-18  Bruno Haible  <bruno@clisp.org>
71249         * tests/test-avltree_list.c (main): Call set_program_name.
71250         * tests/test-avltree_oset.c (main): Likewise.
71251         * tests/test-obstack-printf.c: Include progname.h.
71252         (main): Call set_program_name.
71253         * tests/test-quotearg.c: Include progname.h.
71254         (main): Call set_program_name.
71255         * tests/test-xmemdup0.c: Include progname.h.
71256         (main): Call set_program_name.
71258 2009-01-18  Bruno Haible  <bruno@clisp.org>
71260         New module 'alphasort'.
71261         * lib/dirent.in.h (alphasort): New declaration.
71262         * lib/alphasort.c: New file, from glibc with modifications.
71263         * m4/alphasort.m4: New file.
71264         * modules/alphasort: New file.
71265         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
71266         HAVE_ALPHASORT.
71267         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
71268         HAVE_ALPHASORT.
71269         * doc/posix-functions/alphasort.texi: Mention the new module and the
71270         portability problems.
71272 2009-01-18  Bruno Haible  <bruno@clisp.org>
71274         New module 'scandir'.
71275         * lib/dirent.in.h (scandir): New declaration.
71276         * lib/scandir.c: New file, from glibc with modifications.
71277         * m4/scandir.m4: New file.
71278         * modules/scandir: New file.
71279         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
71280         HAVE_SCANDIR.
71281         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
71282         HAVE_SCANDIR.
71283         * doc/posix-functions/scandir.texi: Mention the new module and the
71284         portability problems.
71286 2009-01-17  Bruno Haible  <bruno@clisp.org>
71288         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
71289         Update documentation.
71290         (func_remove_suffix): Escape all dots in the suffix. Update
71291         documentation.
71292         (func_filter_filelist): Update documentation.
71293         Reported by Ralf Wildenhues.
71295 2009-01-17  Bruno Haible  <bruno@clisp.org>
71297         * modules/dprintf-posix-tests: New file.
71298         * tests/test-dprintf-posix.sh: New file.
71299         * tests/test-dprintf-posix.c: New file.
71301         New modules 'dprintf', 'dprintf-posix'.
71302         * lib/stdio.in.h (dprintf): New declaration.
71303         * lib/dprintf.c: New file.
71304         * m4/dprintf.m4: New file.
71305         * m4/dprintf-posix.m4: New file.
71306         * modules/dprintf: New file.
71307         * modules/dprintf-posix: New file.
71308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
71309         HAVE_DPRINTF, REPLACE_DPRINTF.
71310         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
71311         HAVE_DPRINTF, REPLACE_DPRINTF.
71312         * doc/posix-functions/dprintf.texi: Mention the new modules.
71314 2009-01-17  Bruno Haible  <bruno@clisp.org>
71316         * modules/vdprintf-posix-tests: New file.
71317         * tests/test-vdprintf-posix.sh: New file.
71318         * tests/test-vdprintf-posix.c: New file.
71320         New modules 'vdprintf', 'vdprintf-posix'.
71321         * lib/stdio.in.h (vdprintf): New declaration.
71322         * lib/vdprintf.c: New file.
71323         * m4/vdprintf.m4: New file.
71324         * m4/vdprintf-posix.m4: New file.
71325         * modules/vdprintf: New file.
71326         * modules/vdprintf-posix: New file.
71327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
71328         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71329         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71330         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71331         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71333 2009-01-17  Bruno Haible  <bruno@clisp.org>
71335         Fix replacement of fopen on mingw.
71336         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71337         mingw.
71339 2009-01-17  Bruno Haible  <bruno@clisp.org>
71341         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71342         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71344 2009-01-17  Bruno Haible  <bruno@clisp.org>
71346         Avoid test-fflush2.sh failure on mingw.
71347         * tests/test-fflush2.c: Include binary-io.h.
71348         (main): Put standard input into binary mode.
71349         * modules/fflush-tests (Depends-on): Add binary-io.
71351 2009-01-17  Bruno Haible  <bruno@clisp.org>
71353         * lib/wchar.in.h: In another particular situation, include only the
71354         system's <wchar.h> file.
71355         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71356         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71357         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71359 2009-01-17  Bruno Haible  <bruno@clisp.org>
71361         Support for stripping executables in --enable-relocatable.
71362         * build-aux/install-reloc: Expect one more argument, or an environment
71363         variable RELOC_STRIP_PROG. If set, strip the destination program and
71364         its wrapper.
71365         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71366         RELOC_STRIP_PROG.
71367         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71368         to set RELOCATABLE_STRIP.
71369         * NEWS: Mention the new Makefile requirement.
71371 2009-01-17  Bruno Haible  <bruno@clisp.org>
71373         * build-aux/install-reloc: Remove debugging information left over by
71374         C compiler on MacOS X.
71376 2009-01-17  Bruno Haible  <bruno@clisp.org>
71378         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71379         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71380         _NSGetExecutablePath.
71382 2009-01-16  Jim Meyering  <meyering@redhat.com>
71384         strerror: avoid warnings about discarding "const"
71385         * lib/strerror.c (rpl_strerror): Instead of returning a const
71386         string from each and every "case", use a variable, and add a single
71387         cast after the switch.
71389 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71391         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71393 2009-01-16  Bruno Haible  <bruno@clisp.org>
71395         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71396         array initializer syntax that also works in C++ mode.
71397         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71399 2009-01-16  Jim Meyering  <meyering@redhat.com>
71401         poll: suppress a warning
71402         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71403         to ignore "...unsigned expression < 0 is always false" warnings.
71405 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71407         poll: remove declarations of unused variables
71408         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71409         sockbuf and optlen.
71411 2009-01-15  Bruno Haible  <bruno@clisp.org>
71413         Make fflush-after-ungetc POSIX compliant on BSD systems.
71414         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71415         (clear_ungetc_buffer): Implement also for other systems.
71416         (rpl_fflush): On glibc systems, invoke
71417         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71418         clear_ungetc_buffer after fetching the stream's position, not before.
71420 2009-01-15  Bruno Haible  <bruno@clisp.org>
71422         Make fflush-after-ungetc POSIX compliant on glibc systems.
71423         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71424         after ungetc.
71425         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71426         (rpl_fflush): On glibc systems, simply call the system's fflush
71427         function after clearing the ungetc buffer.
71428         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71429         Instead, lseek only to the end of file, then use the system's fseeko
71430         for the rest. On glibc systems, reset the EOF indicator bit.
71432 2009-01-15  Jim Meyering  <meyering@redhat.com>
71434         openmp.m4: revert quote-adding change, for portability to older autoconf
71435         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71436         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71437         Simon Josefsson noticed the problem when using autoconf-2.61.
71439 2009-01-15  Bruno Haible  <bruno@clisp.org>
71441         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71442         * tests/test-fflush2.c (ASSERT): Always fail.
71443         (main): Add two tests for fflush() after ungetc(), taking into account
71444         the Austin Group's clarification.
71445         Suggested by Eric Blake.
71447 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71449         mktime.m4: remove K&R-style function prototypes
71450         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71451         for the Sun C++ compiler.
71453 2009-01-14  Bruno Haible  <bruno@clisp.org>
71455         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71456         while including <wchar.h>.
71457         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71458         the system's <wchar.h> file.
71459         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71461 2009-01-14  Bruno Haible  <bruno@clisp.org>
71463         * m4/csharp.m4: Don't mention gettext on the serial number line.
71464         * m4/csharpexec.m4: Likewise.
71465         * m4/eaccess.m4: Likewise.
71466         * m4/javaexec.m4: Likewise.
71467         * m4/sig_atomic_t.m4: Likewise.
71468         * m4/tmpdir.m4: Likewise.
71469         * m4/intldir.m4: Bump gettext version.
71470         * m4/lib-ld.m4: Likewise.
71472 2009-01-14  Bruno Haible  <bruno@clisp.org>
71474         * lib/progname.c (set_program_name): Add more comments.
71475         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71477 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71479         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71480         were sys/stat.h does not define it.
71482 2009-01-14  Jim Meyering  <meyering@redhat.com>
71484         many *.m4 files: improve m4 quoting
71485         99% of this change was performed by running the following commands:
71486         git ls-files | grep '\.m4$' | xargs perl -pi \
71487           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71488           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71489           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71490           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71491         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71492         The remainder were to add Copyright dates, increment serial numbers,
71493         undo some changes in comments, exclude m4/intl.m4, and add quotes
71494         around the "1" in ",1" where the unusual spacing prohibited the
71495         above regexps from doing the job.  For more details, see
71496         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71497         * m4/acl.m4: Modified.
71498         * m4/afs.m4: Likewise.
71499         * m4/alloca.m4: Likewise.
71500         * m4/argp.m4: Likewise.
71501         * m4/argz.m4: Likewise.
71502         * m4/atexit.m4: Likewise.
71503         * m4/bison-i18n.m4: Likewise.
71504         * m4/bison.m4: Likewise.
71505         * m4/byteswap.m4: Likewise.
71506         * m4/c-stack.m4: Likewise.
71507         * m4/c-strtod.m4: Likewise.
71508         * m4/calloc.m4: Likewise.
71509         * m4/canonicalize-lgpl.m4: Likewise.
71510         * m4/chown.m4: Likewise.
71511         * m4/clock_time.m4: Likewise.
71512         * m4/codeset.m4: Likewise.
71513         * m4/copy-file.m4: Likewise.
71514         * m4/csharp.m4: Likewise.
71515         * m4/csharpcomp.m4: Likewise.
71516         * m4/csharpexec.m4: Likewise.
71517         * m4/d-ino.m4: Likewise.
71518         * m4/d-type.m4: Likewise.
71519         * m4/dirfd.m4: Likewise.
71520         * m4/double-slash-root.m4: Likewise.
71521         * m4/eaccess.m4: Likewise.
71522         * m4/eealloc.m4: Likewise.
71523         * m4/environ.m4: Likewise.
71524         * m4/errno_h.m4: Likewise.
71525         * m4/euidaccess.m4: Likewise.
71526         * m4/execute.m4: Likewise.
71527         * m4/fatal-signal.m4: Likewise.
71528         * m4/fchdir.m4: Likewise.
71529         * m4/fcntl_h.m4: Likewise.
71530         * m4/fileblocks.m4: Likewise.
71531         * m4/filenamecat.m4: Likewise.
71532         * m4/findprog.m4: Likewise.
71533         * m4/flexmember.m4: Likewise.
71534         * m4/fnmatch.m4: Likewise.
71535         * m4/fopen.m4: Likewise.
71536         * m4/fpending.m4: Likewise.
71537         * m4/fprintf-posix.m4: Likewise.
71538         * m4/free.m4: Likewise.
71539         * m4/frexp.m4: Likewise.
71540         * m4/frexpl.m4: Likewise.
71541         * m4/fsusage.m4: Likewise.
71542         * m4/ftruncate.m4: Likewise.
71543         * m4/gc-camellia.m4: Likewise.
71544         * m4/gc-random.m4: Likewise.
71545         * m4/gc.m4: Likewise.
71546         * m4/getaddrinfo.m4: Likewise.
71547         * m4/getcwd-abort-bug.m4: Likewise.
71548         * m4/getcwd-path-max.m4: Likewise.
71549         * m4/getdate.m4: Likewise.
71550         * m4/getdomainname.m4: Likewise.
71551         * m4/getgroups.m4: Likewise.
71552         * m4/gethostname.m4: Likewise.
71553         * m4/gethrxtime.m4: Likewise.
71554         * m4/getline.m4: Likewise.
71555         * m4/getloadavg.m4: Likewise.
71556         * m4/getndelim2.m4: Likewise.
71557         * m4/getpass.m4: Likewise.
71558         * m4/gettext.m4: Likewise.
71559         * m4/gettime.m4: Likewise.
71560         * m4/gettimeofday.m4: Likewise.
71561         * m4/gnulib-common.m4: Likewise.
71562         * m4/group-member.m4: Likewise.
71563         * m4/host-os.m4: Likewise.
71564         * m4/iconv.m4: Likewise.
71565         * m4/iconv_open.m4: Likewise.
71566         * m4/inet_ntop.m4: Likewise.
71567         * m4/inet_pton.m4: Likewise.
71568         * m4/inline.m4: Likewise.
71569         * m4/intldir.m4: Likewise.
71570         * m4/intlmacosx.m4: Likewise.
71571         * m4/intmax.m4: Likewise.
71572         * m4/intmax_t.m4: Likewise.
71573         * m4/inttypes.m4: Likewise.
71574         * m4/inttypes_h.m4: Likewise.
71575         * m4/inttypes-pri.m4: Likewise.
71576         * m4/isapipe.m4: Likewise.
71577         * m4/isnand.m4: Likewise.
71578         * m4/isnanf.m4: Likewise.
71579         * m4/isnanl.m4: Likewise.
71580         * m4/javacomp.m4: Likewise.
71581         * m4/javaexec.m4: Likewise.
71582         * m4/jm-winsz1.m4: Likewise.
71583         * m4/jm-winsz2.m4: Likewise.
71584         * m4/lchown.m4: Likewise.
71585         * m4/lcmessage.m4: Likewise.
71586         * m4/ldexpl.m4: Likewise.
71587         * m4/lib-ld.m4: Likewise.
71588         * m4/lib-link.m4: Likewise.
71589         * m4/libsigsegv.m4: Likewise.
71590         * m4/link-follow.m4: Likewise.
71591         * m4/localcharset.m4: Likewise.
71592         * m4/locale-fr.m4: Likewise.
71593         * m4/locale-ja.m4: Likewise.
71594         * m4/locale-tr.m4: Likewise.
71595         * m4/locale-zh.m4: Likewise.
71596         * m4/lock.m4: Likewise.
71597         * m4/longlong.m4: Likewise.
71598         * m4/ls-mntd-fs.m4: Likewise.
71599         * m4/lstat.m4: Likewise.
71600         * m4/malloc.m4: Likewise.
71601         * m4/mathl.m4: Likewise.
71602         * m4/mbrtowc.m4: Likewise.
71603         * m4/mbstate_t.m4: Likewise.
71604         * m4/mbswidth.m4: Likewise.
71605         * m4/memchr.m4: Likewise.
71606         * m4/memcmp.m4: Likewise.
71607         * m4/memcpy.m4: Likewise.
71608         * m4/memmem.m4: Likewise.
71609         * m4/memmove.m4: Likewise.
71610         * m4/mempcpy.m4: Likewise.
71611         * m4/memrchr.m4: Likewise.
71612         * m4/memset.m4: Likewise.
71613         * m4/minmax.m4: Likewise.
71614         * m4/mkdir-slash.m4: Likewise.
71615         * m4/mkdtemp.m4: Likewise.
71616         * m4/mktime.m4: Likewise.
71617         * m4/mmap-anon.m4: Likewise.
71618         * m4/mountlist.m4: Likewise.
71619         * m4/nanosleep.m4: Likewise.
71620         * m4/nls.m4: Likewise.
71621         * m4/nocrash.m4: Likewise.
71622         * m4/open.m4: Likewise.
71623         * m4/openat.m4: Likewise.
71624         * m4/openmp.m4: Likewise.
71625         * m4/pathmax.m4: Likewise.
71626         * m4/perl.m4: Likewise.
71627         * m4/physmem.m4: Likewise.
71628         * m4/pipe.m4: Likewise.
71629         * m4/po.m4: Likewise.
71630         * m4/poll.m4: Likewise.
71631         * m4/posixtm.m4: Likewise.
71632         * m4/posixver.m4: Likewise.
71633         * m4/printf-frexp.m4: Likewise.
71634         * m4/printf-frexpl.m4: Likewise.
71635         * m4/printf-posix.m4: Likewise.
71636         * m4/printf-posix-rpl.m4: Likewise.
71637         * m4/printf.m4: Likewise.
71638         * m4/progtest.m4: Likewise.
71639         * m4/putenv.m4: Likewise.
71640         * m4/readline.m4: Likewise.
71641         * m4/readlink.m4: Likewise.
71642         * m4/readutmp.m4: Likewise.
71643         * m4/realloc.m4: Likewise.
71644         * m4/regex.m4: Likewise.
71645         * m4/relocatable.m4: Likewise.
71646         * m4/relocatable-lib.m4: Likewise.
71647         * m4/rename-dest-slash.m4: Likewise.
71648         * m4/rename.m4: Likewise.
71649         * m4/rmdir-errno.m4: Likewise.
71650         * m4/rmdir.m4: Likewise.
71651         * m4/roundf.m4: Likewise.
71652         * m4/roundl.m4: Likewise.
71653         * m4/rpmatch.m4: Likewise.
71654         * m4/save-cwd.m4: Likewise.
71655         * m4/selinux-selinux-h.m4: Likewise.
71656         * m4/setenv.m4: Likewise.
71657         * m4/settime.m4: Likewise.
71658         * m4/sig2str.m4: Likewise.
71659         * m4/sig_atomic_t.m4: Likewise.
71660         * m4/signalblocking.m4: Likewise.
71661         * m4/signbit.m4: Likewise.
71662         * m4/sigpipe.m4: Likewise.
71663         * m4/sockets.m4: Likewise.
71664         * m4/sockpfaf.m4: Likewise.
71665         * m4/st_dm_mode.m4: Likewise.
71666         * m4/stat-time.m4: Likewise.
71667         * m4/stdbool.m4: Likewise.
71668         * m4/stdint.m4: Likewise.
71669         * m4/stdint_h.m4: Likewise.
71670         * m4/stpcpy.m4: Likewise.
71671         * m4/stpncpy.m4: Likewise.
71672         * m4/strcase.m4: Likewise.
71673         * m4/strchrnul.m4: Likewise.
71674         * m4/strcspn.m4: Likewise.
71675         * m4/strdup.m4: Likewise.
71676         * m4/strftime.m4: Likewise.
71677         * m4/strndup.m4: Likewise.
71678         * m4/strnlen.m4: Likewise.
71679         * m4/strpbrk.m4: Likewise.
71680         * m4/strptime.m4: Likewise.
71681         * m4/strsep.m4: Likewise.
71682         * m4/strtod.m4: Likewise.
71683         * m4/strtoimax.m4: Likewise.
71684         * m4/strtok_r.m4: Likewise.
71685         * m4/strtol.m4: Likewise.
71686         * m4/strtoll.m4: Likewise.
71687         * m4/strtoul.m4: Likewise.
71688         * m4/strtoull.m4: Likewise.
71689         * m4/strtoumax.m4: Likewise.
71690         * m4/strverscmp.m4: Likewise.
71691         * m4/threadlib.m4: Likewise.
71692         * m4/timegm.m4: Likewise.
71693         * m4/tm_gmtoff.m4: Likewise.
71694         * m4/tmpdir.m4: Likewise.
71695         * m4/tmpfile.m4: Likewise.
71696         * m4/tzset.m4: Likewise.
71697         * m4/uintmax_t.m4: Likewise.
71698         * m4/unlinkdir.m4: Likewise.
71699         * m4/unlocked-io.m4: Likewise.
71700         * m4/uptime.m4: Likewise.
71701         * m4/userspec.m4: Likewise.
71702         * m4/utimbuf.m4: Likewise.
71703         * m4/utime.m4: Likewise.
71704         * m4/utimes-null.m4: Likewise.
71705         * m4/utimes.m4: Likewise.
71706         * m4/vararrays.m4: Likewise.
71707         * m4/vasnprintf.m4: Likewise.
71708         * m4/vfprintf-posix.m4: Likewise.
71709         * m4/vprintf-posix.m4: Likewise.
71710         * m4/wait-process.m4: Likewise.
71711         * m4/wchar_t.m4: Likewise.
71712         * m4/wint_t.m4: Likewise.
71713         * m4/write-any-file.m4: Likewise.
71714         * m4/yield.m4: Likewise.
71716 2009-01-13  Bruno Haible  <bruno@clisp.org>
71718         Avoid test-copy-file.sh failures when ACL support insufficient.
71719         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71720         TESTS_ENVIRONMENT.
71721         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71722         Reported by Jim Meyering.
71724 2009-01-13  Bruno Haible  <bruno@clisp.org>
71726         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71727         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71728         * modules/unistdio/u8-printf-parse (Files): Likewise.
71729         * modules/unistdio/u32-printf-parse (Files): Likewise.
71730         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71732 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71734         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71735         and m4/inttypes_h.m4 too.
71737 2009-01-12  Eric Blake  <ebb9@byu.net>
71739         tests: IRIX 6.2 cc can't compile -0.0 into .data
71740         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71741         rather than at compile-time.
71742         * tests/test-floorl.c (minus_zero): Likewise.
71743         * tests/test-frexpl.c (minus_zero): Likewise.
71744         * tests/test-isnan.c (minus_zerol): Likewise.
71745         * tests/test-isnanl.h (minus_zero): Likewise.
71746         * tests/test-ldexpl.c (minus_zero): Likewise.
71747         * tests/test-roundl.c (minus_zero): Likewise.
71748         * tests/test-signbit.c (minus_zerol): Likewise.
71749         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71750         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71751         * tests/test-truncl.c (minus_zero): Likewise.
71752         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71753         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71754         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71756 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71758         regex: fix glibc bug 9697
71759         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71760         handling.
71762 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71764         regex: fix glibc bug 697
71765         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71766         being NULL also if there are no backreferences.
71768 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71770         regex: merge glibc changes
71771         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71772         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71773         re_string_skip_chars, re_string_reconstruct): Likewise.
71774         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71776 2009-01-07  Jim Meyering  <meyering@redhat.com>
71778         poll: filter through cppi
71779         * lib/poll.c: Indent cpp directives to reflect nesting.
71781 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71783         poll: don't return uninitialized
71784         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71786 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71788         avoid compile failure on AIX 6.1
71789         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71790         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71792 2009-01-04  Jim Meyering  <meyering@redhat.com>
71794         remove duplicate inclusion of <stdio.h>
71795         * tests/test-fprintf-posix.c: Likewise.
71796         * tests/test-printf-posix.c: Likewise.
71797         * tests/test-snprintf-posix.c: Likewise.
71798         * tests/test-sprintf-posix.c: Likewise.
71799         * tests/test-vasprintf-posix.c: Likewise.
71800         * tests/test-vfprintf-posix.c: Likewise.
71801         * tests/test-vprintf-posix.c: Likewise.
71802         * tests/test-vsnprintf-posix.c: Likewise.
71803         * tests/test-vsprintf-posix.c: Likewise.
71805 2009-01-03  Jim Meyering  <meyering@redhat.com>
71807         gnulib-tool: fix sed-based filtering
71808         * gnulib-tool (func_filter_filelist): Remove extra backslash
71809         in sed_fff_filter definition.
71811 2009-01-02  Jim Meyering  <meyering@redhat.com>
71813         strftime: avoid compilation failure on Solaris 2.6
71814         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71815         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71816         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71817         be available.  Reported by Tom G. Christensen.  Details in
71818         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71820 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71821             Bruno Haible  <bruno@clisp.org>
71823         Speed up gnulib-tool by doing more string processing through shell
71824         built-ins.
71825         * gnulib-tool (fast_func_append): New variable.
71826         (func_remove_prefix, func_remove_suffix): New functions.
71827         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71828         (func_filter_filelist): New function.
71829         (func_get_dependencies): Use func_remove_suffix instead of sed.
71830         (func_get_automake_snippet): Use func_filter_filelist instead of a
71831         subshell and sed invocation.
71833 2009-01-01  Bruno Haible  <bruno@clisp.org>
71835         Fix a security bug.
71836         * gnulib-tool (func_import, import, update): Don't allow the characters
71837         '"', '$', '`', '\' in macro arguments that become part of commands that
71838         are evaluated.
71840 2009-01-01  Bruno Haible  <bruno@clisp.org>
71842         * gnulib-tool (func_reset_sigpipe): Add more comments.
71844 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71846         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71847         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71848         already know the answer.
71850 2009-01-01  Jim Meyering  <meyering@redhat.com>
71852         * lib/version-etc.c (version_etc_va): Update copyright year.
71854 2008-12-30  Bruno Haible  <bruno@clisp.org>
71856         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71857         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71858         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71860 2008-12-29  Eric Blake  <ebb9@byu.net>
71862         multiarch: avoid autoconf AC_REQUIRE bug
71863         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71864         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71865         2.63 and older.
71866         Reported by Bruno Haible, and analyzed in
71867         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71869 2008-12-29  Bruno Haible  <bruno@clisp.org>
71871         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71872         files in subdirectories correctly.
71873         Reported by Ralf Wildenhues.
71875 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71877         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71878         rather than 'join FILE -', for Solaris join.
71880 2008-12-29  Bruno Haible  <bruno@clisp.org>
71882         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71883         quoting.
71884         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71885         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71886         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71887         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71888         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71889         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71890         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71891         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71892         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71893         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71894         * m4/nls.m4 (AM_NLS): Likewise.
71895         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71896         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71897         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71898         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71899         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71900         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71901         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71902         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71903         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71904         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71905         * m4/xsize.m4 (gl_XSIZE): Likewise.
71906         Suggested by Jim Meyering.
71908 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71910         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71911         * lib/parse-duration.c: use a switch instead of cascading if's.
71913 2008-12-29  Eric Blake  <ebb9@byu.net>
71915         wchar.h: supply WEOF on Irix 5.3
71916         * lib/wchar.in.h (wint_t): Also supply WEOF.
71917         * lib/wctype.in.h (wint_t): Likewise.
71918         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71919         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71920         Reported by Tom G. Christensen.
71922 2008-12-26  Bruno Haible  <bruno@clisp.org>
71924         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71925         i486, i586, i686.
71927 2008-12-26  Bruno Haible  <bruno@clisp.org>
71929         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71931 2008-12-26  Bruno Haible  <bruno@clisp.org>
71933         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71934         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71935         not __STDC_CONSTANT_MACROS.
71936         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71938 2008-12-25  Bruno Haible  <bruno@clisp.org>
71940         Add support for universal builds to vasnprintf.
71941         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71942         universal builds, guess no.
71943         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71944         * modules/vasprintf-posix (Depends-on): Likewise.
71945         * modules/fprintf-posix (Depends-on): Likewise.
71946         * modules/vfprintf-posix (Depends-on): Likewise.
71947         * modules/snprintf-posix (Depends-on): Likewise.
71948         * modules/vsnprintf-posix (Depends-on): Likewise.
71949         * modules/sprintf-posix (Depends-on): Likewise.
71950         * modules/vsprintf-posix (Depends-on): Likewise.
71951         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71952         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71953         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71954         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71955         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71956         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71957         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71959         Add support for universal builds to <inttypes.h>.
71960         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71961         _SCNu64_PREFIX): In Apple
71962         universal builds, define directly, using _LP64.
71963         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71964         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71965         * modules/inttypes (Depends-on): Add multiarch.
71966         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71968         Add support for universal builds to <stdint.h>.
71969         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71970         universal builds, define directly, using _LP64.
71971         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71972         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71973         and size_t.
71974         * modules/stdint (Depends-on): Add multiarch.
71975         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71977         New module 'multiarch'.
71978         * modules/multiarch: New file.
71979         * m4/multiarch.m4: New file.
71981 2008-12-25  Bruno Haible  <bruno@clisp.org>
71983         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71985 2008-12-25  Bruno Haible  <bruno@clisp.org>
71987         * modules/btowc (License): Relicense under LGPLv2+.
71988         * modules/mbsinit (License): Likewise.
71989         * modules/mbrtowc (License): Likewise.
71990         * modules/wcrtomb (License): Likewise.
71991         * modules/streq (License): Likewise.
71992         Reported by David Lutterkort <lutter@redhat.com>.
71994 2008-12-23  Bruno Haible  <bruno@clisp.org>
71996         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71998 2008-12-23  Bruno Haible  <bruno@clisp.org>
72000         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
72001         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
72002         GETADDRINFO_LIB, not in LIBS.
72003         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
72004         * modules/canon-host (Link): Likewise.
72005         * NEWS: Mention the change.
72006         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
72007         GETADDRINFO_LIB.
72009 2008-12-22  Bruno Haible  <bruno@clisp.org>
72011         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
72012         * doc/posix-functions/iswalpha_l.texi: Likewise.
72013         * doc/posix-functions/iswblank_l.texi: Likewise.
72014         * doc/posix-functions/iswcntrl_l.texi: Likewise.
72015         * doc/posix-functions/iswctype_l.texi: Likewise.
72016         * doc/posix-functions/iswdigit_l.texi: Likewise.
72017         * doc/posix-functions/iswgraph_l.texi: Likewise.
72018         * doc/posix-functions/iswlower_l.texi: Likewise.
72019         * doc/posix-functions/iswprint_l.texi: Likewise.
72020         * doc/posix-functions/iswpunct_l.texi: Likewise.
72021         * doc/posix-functions/iswspace_l.texi: Likewise.
72022         * doc/posix-functions/iswupper_l.texi: Likewise.
72023         * doc/posix-functions/iswxdigit_l.texi: Likewise.
72024         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
72025         * doc/posix-functions/open_wmemstream.texi: Likewise.
72026         * doc/posix-functions/swscanf.texi: Likewise.
72027         * doc/posix-functions/towctrans_l.texi: Likewise.
72028         * doc/posix-functions/towlower.texi: Likewise.
72029         * doc/posix-functions/towlower_l.texi: Likewise.
72030         * doc/posix-functions/towupper.texi: Likewise.
72031         * doc/posix-functions/towupper_l.texi: Likewise.
72032         * doc/posix-functions/vfwprintf.texi: Likewise.
72033         * doc/posix-functions/vfwscanf.texi: Likewise.
72034         * doc/posix-functions/vswscanf.texi: Likewise.
72035         * doc/posix-functions/vwprintf.texi: Likewise.
72036         * doc/posix-functions/vwscanf.texi: Likewise.
72037         * doc/posix-functions/wcpcpy.texi: Likewise.
72038         * doc/posix-functions/wcpncpy.texi: Likewise.
72039         * doc/posix-functions/wcscasecmp.texi: Likewise.
72040         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
72041         * doc/posix-functions/wcscoll_l.texi: Likewise.
72042         * doc/posix-functions/wcsdup.texi: Likewise.
72043         * doc/posix-functions/wcsncasecmp.texi: Likewise.
72044         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
72045         * doc/posix-functions/wcsnlen.texi: Likewise.
72046         * doc/posix-functions/wcsnrtombs.texi: Likewise.
72047         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
72048         * doc/posix-functions/wctrans_l.texi: Likewise.
72049         * doc/posix-functions/wctype_l.texi: Likewise.
72050         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
72051         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
72052         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
72053         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
72054         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
72055         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
72056         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
72057         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
72058         * doc/glibc-functions/wcschrnul.texi: Likewise.
72059         * doc/glibc-functions/wcsftime_l.texi: Likewise.
72060         * doc/glibc-functions/wcstod_l.texi: Likewise.
72061         * doc/glibc-functions/wcstof_l.texi: Likewise.
72062         * doc/glibc-functions/wcstol_l.texi: Likewise.
72063         * doc/glibc-functions/wcstold_l.texi: Likewise.
72064         * doc/glibc-functions/wcstoll_l.texi: Likewise.
72065         * doc/glibc-functions/wcstoq.texi: Likewise.
72066         * doc/glibc-functions/wcstoul_l.texi: Likewise.
72067         * doc/glibc-functions/wcstoull_l.texi: Likewise.
72068         * doc/glibc-functions/wcstouq.texi: Likewise.
72069         * doc/glibc-functions/wmempcpy.texi: Likewise.
72071 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
72072             Eric Blake  <ebb9@byu.net>
72073             Paolo Bonzini  <bonzini@gnu.org>
72074             Bruno Haible  <bruno@clisp.org>
72076         Make c-stack work on Haiku.
72077         * lib/c-stack.c (SA_ONSTACK): Define fallback.
72078         (c_stack_action): Use SA_ONSTACK flag.
72080 2008-12-22  Bruno Haible  <bruno@clisp.org>
72082         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
72084 2008-12-22  Bruno Haible  <bruno@clisp.org>
72086         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
72087         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
72088         being overridden.
72089         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
72090         New macros.
72091         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
72092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
72093         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
72094         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
72096 2008-12-22  Bruno Haible  <bruno@clisp.org>
72098         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
72099         from test code.
72101 2008-12-22  Eric Blake  <ebb9@byu.net>
72103         Avoid gcc warnings on cygwin.
72104         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
72105         Avoid unused variable.
72106         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
72107         Likewise.
72109 2008-12-22  Bruno Haible  <bruno@clisp.org>
72111         Remove HAVE_MBRTOWC conditionals.
72112         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
72113         (mbscasecmp): Assume mbrtowc function.
72114         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
72115         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
72116         * lib/mbschr.c: Include mbuiter.h unconditionally.
72117         (mbschr): Assume mbrtowc function.
72118         * lib/mbscspn.c: Include mbuiter.h unconditionally.
72119         (mbscspn): Assume mbrtowc function.
72120         * lib/mbslen.c: Include mbuiter.h unconditionally.
72121         (mbslen): Assume mbrtowc function.
72122         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
72123         (mbsncasecmp): Assume mbrtowc function.
72124         * lib/mbsnlen.c: Include mbiter.h unconditionally.
72125         (mbsnlen): Assume mbrtowc function.
72126         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
72127         (mbspbrk): Assume mbrtowc function.
72128         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
72129         (mbspcasecmp): Assume mbrtowc function.
72130         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
72131         (mbsrchr): Assume mbrtowc function.
72132         * lib/mbssep.c: Include mbuiter.h unconditionally.
72133         (mbssep): Assume mbrtowc function.
72134         * lib/mbsspn.c: Include mbuiter.h unconditionally.
72135         (mbsspn): Assume mbrtowc function.
72136         * lib/mbsstr.c: Include mbuiter.h unconditionally.
72137         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
72138         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
72139         (mbstok_r): Assume mbrtowc function.
72140         * lib/propername.c: Include mbuiter.h unconditionally.
72141         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
72142         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
72143         (trim2): Assume mbrtowc function.
72144         * lib/mbswidth.c (mbsinit): Remove fallback definition.
72145         (mbsnwidth): Assume mbrtowc function.
72146         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
72147         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
72148         fallback definitions.
72149         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
72151 2008-12-22  Bruno Haible  <bruno@clisp.org>
72153         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
72155 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
72157         * modules/regex: Request emulations for the mb*/wc* functions we need.
72158         * m4/regex.m4: Don't look for those functions here.
72159         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
72161 2008-12-22  Bruno Haible  <bruno@clisp.org>
72163         * modules/fnmatch (Depends-on): Remove duplicated dependency.
72165 2008-12-21  Bruno Haible  <bruno@clisp.org>
72167         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
72168         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
72169         (Include): Remove conditionalization.
72170         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
72171         (Include): Remove conditionalization.
72172         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
72173         (Include): Remove conditionalization.
72174         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
72175         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72176         * NEWS: Mention the change.
72177         Reported by Alan Hourihane <alanh@fairlite.co.uk>
72178         via Sergey Poznyakoff <gray@gnu.org.ua>.
72180 2008-12-21  Bruno Haible  <bruno@clisp.org>
72182         * MODULES.html.sh (Extended multibyte and wide character utilities
72183         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
72184         wcrtomb, wcsrtombs.
72185         (Support for systems lacking POSIX:2008): Add accept, bind, close,
72186         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
72187         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
72188         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
72190 2008-12-21  Bruno Haible  <bruno@clisp.org>
72192         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
72194 2008-12-21  Bruno Haible  <bruno@clisp.org>
72196         * modules/wcsnrtombs-tests: New file.
72197         * tests/test-wcsnrtombs1.sh: New file.
72198         * tests/test-wcsnrtombs2.sh: New file.
72199         * tests/test-wcsnrtombs3.sh: New file.
72200         * tests/test-wcsnrtombs4.sh: New file.
72201         * tests/test-wcsnrtombs.c: New file.
72203         New module 'wcsnrtombs'.
72204         * lib/wchar.in.h (wcsnrtombs): New declaration.
72205         * lib/wcsnrtombs.c: New file.
72206         * lib/wcsrtombs-state.c: New file.
72207         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
72208         (internal_state): Remove variable.
72209         * m4/wcsnrtombs.m4: New file.
72210         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
72211         compilation units.
72212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
72213         HAVE_WCSNRTOMBS.
72214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
72215         HAVE_WCSNRTOMBS.
72216         * modules/wcsnrtombs: New file.
72217         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
72218         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
72220 2008-12-21  Bruno Haible  <bruno@clisp.org>
72222         * modules/wcsrtombs-tests: New file.
72223         * tests/test-wcsrtombs1.sh: New file.
72224         * tests/test-wcsrtombs2.sh: New file.
72225         * tests/test-wcsrtombs3.sh: New file.
72226         * tests/test-wcsrtombs4.sh: New file.
72227         * tests/test-wcsrtombs.c: New file.
72229         New module 'wcsrtombs'.
72230         * lib/wchar.in.h (wcsrtombs): New declaration.
72231         * lib/wcsrtombs.c: New file.
72232         * m4/wcsrtombs.m4: New file.
72233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
72234         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72235         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
72236         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72237         * modules/wcsrtombs: New file.
72238         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
72239         bugs.
72241 2008-12-21  Bruno Haible  <bruno@clisp.org>
72243         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
72244         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
72245         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
72246         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
72247         if not correct.
72248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
72249         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
72250         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72251         m4/locale-zh.m4, m4/codeset.m4.
72252         * doc/posix-functions/wcrtomb.texi: Document the bug.
72254 2008-12-21  Bruno Haible  <bruno@clisp.org>
72256         Work around a btowc() bug on IRIX 6.5.
72257         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
72258         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
72259         REPLACE_WTOBC if not.
72260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
72261         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
72262         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
72264 2008-12-21  Bruno Haible  <bruno@clisp.org>
72266         * modules/wcrtomb-tests: New file.
72267         * tests/test-wcrtomb.sh: New file.
72268         * tests/test-wcrtomb.c: New file.
72270         New module 'wcrtomb'.
72271         * lib/wchar.in.h (wcrtomb): New declaration.
72272         * lib/wcrtomb.c: New file.
72273         * m4/wcrtomb.m4: New file.
72274         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
72275         HAVE_WCRTOMB.
72276         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
72277         HAVE_WCRTOMB.
72278         * modules/wcrtomb: New file.
72279         * doc/posix-functions/wcrtomb.texi: Mention the new module.
72281 2008-12-21  Bruno Haible  <bruno@clisp.org>
72283         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
72284         * modules/mbsrtowcs (Files): Likewise.
72285         * modules/wctob (Files): Likewise.
72286         * modules/c-strcase-tests (Files): Likewise.
72287         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72288         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72289         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72290         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72291         * modules/vasnprintf-posix-tests (Files): Likewise.
72293 2008-12-21  William Pursell  <bill.pursell@gmail.com>
72295         gitlog-to-changelog: pass all command-line arguments to git-log
72296         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
72297         it is sometimes convenient to filter the commits in various ways.
72298         gitlog-to-changelog only allows --since to specify a start date,
72299         but git-log itself supports many other filtering mechanisms.
72300         At the moment, I want to filter by branch name.  Rather than
72301         adding a --branch option to gitlog-to-changelog, it seems more
72302         flexible to simply pass all options directly to git-log and let
72303         git do the work.  Notice that this effectively makes --since a
72304         redundant option for gitlog-to-changelog, but removing it would
72305         require current usage to change since calls would then require
72306         an additional '--'.
72308 2008-12-21  Bruno Haible  <bruno@clisp.org>
72310         * modules/mbsnrtowcs-tests: New file.
72311         * tests/test-mbsnrtowcs1.sh: New file.
72312         * tests/test-mbsnrtowcs2.sh: New file.
72313         * tests/test-mbsnrtowcs3.sh: New file.
72314         * tests/test-mbsnrtowcs4.sh: New file.
72315         * tests/test-mbsnrtowcs.c: New file.
72317         New module 'mbsnrtowcs'.
72318         * lib/wchar.in.h (mbsnrtowcs): New declaration.
72319         * lib/mbsnrtowcs.c: New file.
72320         * lib/mbsrtowcs-state.c: New file.
72321         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
72322         (internal_state): Remove variable.
72323         * m4/mbsnrtowcs.m4: New file.
72324         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
72325         compilation units.
72326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
72327         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72328         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
72329         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72330         * modules/mbsnrtowcs: New file.
72331         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72332         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72333         portability problem.
72335 2008-12-21  Bruno Haible  <bruno@clisp.org>
72337         Work around mbsrtowcs bug.
72338         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72339         (gl_FUNC_MBSRTOWCS): Invoke it.
72340         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72341         m4/locale-zh.m4.
72342         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72344 2008-12-21  Bruno Haible  <bruno@clisp.org>
72346         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72348 2008-12-21  Bruno Haible  <bruno@clisp.org>
72350         Update doc for AIX.
72351         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72352         16-bit wchar_t type.
72353         * doc/posix-functions/btowc.texi: Likewise.
72354         * doc/posix-functions/fgetwc.texi: Likewise.
72355         * doc/posix-functions/fgetws.texi: Likewise.
72356         * doc/posix-functions/fputwc.texi: Likewise.
72357         * doc/posix-functions/fputws.texi: Likewise.
72358         * doc/posix-functions/fwide.texi: Likewise.
72359         * doc/posix-functions/fwprintf.texi: Likewise.
72360         * doc/posix-functions/fwscanf.texi: Likewise.
72361         * doc/posix-functions/getwchar.texi: Likewise.
72362         * doc/posix-functions/getwc.texi: Likewise.
72363         * doc/posix-functions/iswalnum.texi: Likewise.
72364         * doc/posix-functions/iswalpha.texi: Likewise.
72365         * doc/posix-functions/iswblank.texi: Likewise.
72366         * doc/posix-functions/iswcntrl.texi: Likewise.
72367         * doc/posix-functions/iswctype.texi: Likewise.
72368         * doc/posix-functions/iswdigit.texi: Likewise.
72369         * doc/posix-functions/iswgraph.texi: Likewise.
72370         * doc/posix-functions/iswlower.texi: Likewise.
72371         * doc/posix-functions/iswprint.texi: Likewise.
72372         * doc/posix-functions/iswpunct.texi: Likewise.
72373         * doc/posix-functions/iswspace.texi: Likewise.
72374         * doc/posix-functions/iswupper.texi: Likewise.
72375         * doc/posix-functions/iswxdigit.texi: Likewise.
72376         * doc/posix-functions/mbrtowc.texi: Likewise.
72377         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72378         * doc/posix-functions/mbstowcs.texi: Likewise.
72379         * doc/posix-functions/mbtowc.texi: Likewise.
72380         * doc/posix-functions/putwchar.texi: Likewise.
72381         * doc/posix-functions/putwc.texi: Likewise.
72382         * doc/posix-functions/swprintf.texi: Likewise.
72383         * doc/posix-functions/tolower.texi: Likewise.
72384         * doc/posix-functions/toupper.texi: Likewise.
72385         * doc/posix-functions/towctrans.texi: Likewise.
72386         * doc/posix-functions/ungetwc.texi: Likewise.
72387         * doc/posix-functions/vswprintf.texi: Likewise.
72388         * doc/posix-functions/wcrtomb.texi: Likewise.
72389         * doc/posix-functions/wcscat.texi: Likewise.
72390         * doc/posix-functions/wcschr.texi: Likewise.
72391         * doc/posix-functions/wcscmp.texi: Likewise.
72392         * doc/posix-functions/wcscoll.texi: Likewise.
72393         * doc/posix-functions/wcscpy.texi: Likewise.
72394         * doc/posix-functions/wcscspn.texi: Likewise.
72395         * doc/posix-functions/wcsftime.texi: Likewise.
72396         * doc/posix-functions/wcslen.texi: Likewise.
72397         * doc/posix-functions/wcsncat.texi: Likewise.
72398         * doc/posix-functions/wcsncmp.texi: Likewise.
72399         * doc/posix-functions/wcsncpy.texi: Likewise.
72400         * doc/posix-functions/wcspbrk.texi: Likewise.
72401         * doc/posix-functions/wcsrchr.texi: Likewise.
72402         * doc/posix-functions/wcsrtombs.texi: Likewise.
72403         * doc/posix-functions/wcsspn.texi: Likewise.
72404         * doc/posix-functions/wcsstr.texi: Likewise.
72405         * doc/posix-functions/wcstod.texi: Likewise.
72406         * doc/posix-functions/wcstof.texi: Likewise.
72407         * doc/posix-functions/wcstoimax.texi: Likewise.
72408         * doc/posix-functions/wcstok.texi: Likewise.
72409         * doc/posix-functions/wcstold.texi: Likewise.
72410         * doc/posix-functions/wcstoll.texi: Likewise.
72411         * doc/posix-functions/wcstol.texi: Likewise.
72412         * doc/posix-functions/wcstombs.texi: Likewise.
72413         * doc/posix-functions/wcstoull.texi: Likewise.
72414         * doc/posix-functions/wcstoul.texi: Likewise.
72415         * doc/posix-functions/wcstoumax.texi: Likewise.
72416         * doc/posix-functions/wcswidth.texi: Likewise.
72417         * doc/posix-functions/wcsxfrm.texi: Likewise.
72418         * doc/posix-functions/wctob.texi: Likewise.
72419         * doc/posix-functions/wctomb.texi: Likewise.
72420         * doc/posix-functions/wctrans.texi: Likewise.
72421         * doc/posix-functions/wctype.texi: Likewise.
72422         * doc/posix-functions/wcwidth.texi: Likewise.
72423         * doc/posix-functions/wmemchr.texi: Likewise.
72424         * doc/posix-functions/wmemcmp.texi: Likewise.
72425         * doc/posix-functions/wmemcpy.texi: Likewise.
72426         * doc/posix-functions/wmemmove.texi: Likewise.
72427         * doc/posix-functions/wmemset.texi: Likewise.
72428         * doc/posix-functions/wprintf.texi: Likewise.
72429         * doc/posix-functions/wscanf.texi: Likewise.
72431 2008-12-21  Bruno Haible  <bruno@clisp.org>
72433         Update doc for HP-UX 11.11.
72434         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72435         in HP-UX version 11.00, not in all versions of HP-UX 11.
72436         * doc/posix-functions/fwide.texi: Likewise.
72437         * doc/posix-functions/fwprintf.texi: Likewise.
72438         * doc/posix-functions/fwscanf.texi: Likewise.
72439         * doc/posix-functions/inet_ntop.texi: Likewise.
72440         * doc/posix-functions/inet_pton.texi: Likewise.
72441         * doc/posix-functions/mbrlen.texi: Likewise.
72442         * doc/posix-functions/mbrtowc.texi: Likewise.
72443         * doc/posix-functions/mbsinit.texi: Likewise.
72444         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72445         * doc/posix-functions/swprintf.texi: Likewise.
72446         * doc/posix-functions/swscanf.texi: Likewise.
72447         * doc/posix-functions/towctrans.texi: Likewise.
72448         * doc/posix-functions/vfwprintf.texi: Likewise.
72449         * doc/posix-functions/vswprintf.texi: Likewise.
72450         * doc/posix-functions/vwprintf.texi: Likewise.
72451         * doc/posix-functions/wcrtomb.texi: Likewise.
72452         * doc/posix-functions/wcsrtombs.texi: Likewise.
72453         * doc/posix-functions/wcsstr.texi: Likewise.
72454         * doc/posix-functions/wctob.texi: Likewise.
72455         * doc/posix-functions/wctrans.texi: Likewise.
72456         * doc/posix-functions/wmemchr.texi: Likewise.
72457         * doc/posix-functions/wmemcmp.texi: Likewise.
72458         * doc/posix-functions/wmemcpy.texi: Likewise.
72459         * doc/posix-functions/wmemmove.texi: Likewise.
72460         * doc/posix-functions/wmemset.texi: Likewise.
72461         * doc/posix-functions/wprintf.texi: Likewise.
72462         * doc/posix-functions/wscanf.texi: Likewise.
72464 2008-12-21  Bruno Haible  <bruno@clisp.org>
72466         Work around a portability problem.
72467         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72468         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72470 2008-12-20  Bruno Haible  <bruno@clisp.org>
72472         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72473         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72474         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72476         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72478         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72479         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72480         set.
72481         (GNULIB_defined_mbstate_t): New macro.
72482         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72483         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72484         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72485         reuses the system's mbrtowc function but works around the bugs.
72486         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72487         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72488         macros.
72489         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72490         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72491         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72492         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72493         REPLACE_MBSINIT if mbsinit needs to be overridden.
72494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72495         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72496         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72497         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72498         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72499         m4/locale-zh.m4.
72500         (Depends): Add mbsinit.
72501         * modules/mbsinit (Depends): Add mbrtowc.
72502         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72504 2008-12-20  Bruno Haible  <bruno@clisp.org>
72506         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72507         so that there are no conversion errors on AIX.
72508         * tests/test-mbsrtowcs.c (main): LIkewise.
72510 2008-12-20  Bruno Haible  <bruno@clisp.org>
72512         Work around wctob bug on Solaris <= 9.
72513         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72514         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72516         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72517         * modules/wctob (Files): Add m4/locale-fr.m4.
72518         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72520 2008-12-20  Bruno Haible  <bruno@clisp.org>
72522         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72523         /dev/null.
72524         * tests/test-select-in.sh: Likewise.
72525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72527 2008-12-20  Bruno Haible  <bruno@clisp.org>
72529         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72530         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72531         Cygwin 1.5.x.
72533 2008-12-20  Bruno Haible  <bruno@clisp.org>
72535         Ensure mbstate_t is defined on HP-UX 11.11.
72536         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72537         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72538         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72539         AC_USE_SYSTEM_EXTENSIONS.
72540         * modules/fnmatch (Depends-on): Add extensions.
72541         * modules/mbrlen (Depends-on): Likewise.
72542         * modules/mbrtowc (Depends-on): Likewise.
72543         * modules/mbsinit (Depends-on): Likewise.
72544         * modules/mbsrtowcs (Depends-on): Likewise.
72545         * modules/mbswidth (Depends-on): Likewise.
72546         * modules/quotearg (Depends-on): Likewise.
72547         * modules/strftime (Depends-on): Likewise.
72549 2008-12-20  Bruno Haible  <bruno@clisp.org>
72551         Ensure wctob is declared on IRIX 6.5.
72552         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72553         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72554         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72556         of HAVE_WCTOB.
72557         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72558         HAVE_WCTOB.
72559         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72561 2008-12-19  Bruno Haible  <bruno@clisp.org>
72563         * modules/mbsrtowcs-tests: New file.
72564         * tests/test-mbsrtowcs1.sh: New file.
72565         * tests/test-mbsrtowcs2.sh: New file.
72566         * tests/test-mbsrtowcs3.sh: New file.
72567         * tests/test-mbsrtowcs4.sh: New file.
72568         * tests/test-mbsrtowcs.c: New file.
72570         New module 'mbsrtowcs'.
72571         * lib/wchar.in.h (mbsrtowcs): New declaration.
72572         * lib/mbsrtowcs.c: New file.
72573         * m4/mbsrtowcs.m4: New file.
72574         * modules/mbsrtowcs: New file.
72575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72576         HAVE_MBSRTOWCS.
72577         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72578         HAVE_MBSRTOWCS.
72579         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72581 2008-12-19  Bruno Haible  <bruno@clisp.org>
72583         New module 'mbrlen'.
72584         * lib/wchar.in.h (mbrlen): New declaration.
72585         * lib/mbrlen.c: New file.
72586         * m4/mbrlen.m4: New file.
72587         * modules/mbrlen: New file.
72588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72589         HAVE_MBRLEN.
72590         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72591         HAVE_MBRLEN.
72592         * doc/posix-functions/mbrlen.texi: Document the new module.
72594 2008-12-19  Bruno Haible  <bruno@clisp.org>
72596         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72597         * modules/mbrtowc (Depends-on): Add verify.
72598         Suggested by Paul Eggert.
72600 2008-12-18  Bruno Haible  <bruno@clisp.org>
72602         * modules/mbsinit-tests: New file.
72603         * tests/test-mbsinit.sh: New file.
72604         * tests/test-mbsinit.c: New file.
72606 2008-12-18  Bruno Haible  <bruno@clisp.org>
72608         * modules/mbrtowc-tests: New file.
72609         * tests/test-mbrtowc1.sh: New file.
72610         * tests/test-mbrtowc2.sh: New file.
72611         * tests/test-mbrtowc3.sh: New file.
72612         * tests/test-mbrtowc4.sh: New file.
72613         * tests/test-mbrtowc.c: New file.
72615         New module 'mbrtowc'.
72616         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72617         mbsinit and mbrtowc.
72618         (mbrtowc): New declaration.
72619         * lib/mbrtowc.c: New file.
72620         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72621         * modules/mbrtowc: New file.
72622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72623         HAVE_MBRTOWC.
72624         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72625         HAVE_MBRTOWC.
72626         * doc/posix-functions/mbrtowc.texi: Document the new module.
72628 2008-12-18  Bruno Haible  <bruno@clisp.org>
72630         New module 'wctob'.
72631         * lib/wchar.in.h (wctob): New declaration.
72632         * lib/wctob.c: New file.
72633         * m4/wctob.m4: New file.
72634         * modules/wctob: New file.
72635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72636         HAVE_WCTOB.
72637         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72638         * doc/posix-functions/wctob.texi: Document the new module.
72640 2008-12-18  Bruno Haible  <bruno@clisp.org>
72642         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72643         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72645 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72647         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72648         G. Christensen" <tgc@jupiterrise.com>.
72650         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72651         G. Christensen" <tgc@jupiterrise.com>.
72653         * lib/flock.c: Need to include string.h.  Reported by "Tom
72654         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72655         <ebb9@byu.net>.
72657 2008-12-18  Bruno Haible  <bruno@clisp.org>
72659         * m4/locale-ja.m4: New file, from GNU gettext.
72661 2008-12-17  Bruno Haible  <bruno@clisp.org>
72663         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72664         Suggested by Eric Blake.
72666 2008-12-17  Bruno Haible  <bruno@clisp.org>
72668         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72670 2008-12-17  Bruno Haible  <bruno@clisp.org>
72672         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72673         * modules/mbsinit (Depends-on): Add verify.
72674         Suggested by Paul Eggert.
72676 2008-12-17  Bruno Haible  <bruno@clisp.org>
72678         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72679         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72680         gl_FUNC_MBRTOWC.
72681         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72682         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72683         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72684         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72685         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72686         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72687         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72688         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72689         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72690         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72691         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72692         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72693         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72694         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72695         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72696         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72697         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72698         * modules/trim (configure.ac): Likewise.
72700 2008-12-17  Bruno Haible  <bruno@clisp.org>
72702         * modules/btowc-tests: New file.
72703         * tests/test-btowc1.sh: New file.
72704         * tests/test-btowc2.sh: New file.
72705         * tests/test-btowc.c: New file.
72707         New module 'btowc'.
72708         * lib/wchar.in.h (btowc): New declaration.
72709         * lib/btowc.c: New file.
72710         * m4/btowc.m4: New file.
72711         * modules/btowc: New file.
72712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72713         HAVE_BTOWC.
72714         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72715         * doc/posix-functions/btowc.texi: Document the new module.
72717 2008-12-17  Bruno Haible  <bruno@clisp.org>
72719         New module 'mbsinit'.
72720         * lib/wchar.in.h (mbsinit): New declaration.
72721         * lib/mbsinit.c: New file.
72722         * m4/mbsinit.m4: New file.
72723         * modules/mbsinit: New file.
72724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72725         HAVE_MBSINIT.
72726         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72727         HAVE_MBSINIT.
72728         * doc/posix-functions/mbsinit.texi: Document the new module.
72730 2008-12-16  Bruno Haible  <bruno@clisp.org>
72732         * lib/unistd.in.h: Add comment.
72733         * tests/test-environ.c: Don't include <stdlib.h>.
72735 2008-12-16  Bruno Haible  <bruno@clisp.org>
72737         * lib/parse-duration.h (parse_duration): Document return value
72738         convention.
72739         * lib/parse-duration.c: Include specification header first. Add
72740         comments.
72741         (_): Remove macro.
72742         (parse_year_month_day, parse_hour_minute_second): Move side effects
72743         outside of strchr call.
72744         (parse_non_iso8601): Move side effects outside of isspace call.
72745         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72746         call.
72748 2008-12-16  Bruno Haible  <bruno@clisp.org>
72750         * tests/test-parse-duration.sh: Produce no output when the test
72751         succeeds.
72753 2008-12-16  Bruno Haible  <bruno@clisp.org>
72755         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72756         expressions.
72758 2008-12-15  Bruno Haible  <bruno@clisp.org>
72760         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72761         * doc/glibc-functions/flistxattr.texi: Likewise.
72762         * doc/glibc-functions/fopencookie.texi: Likewise.
72763         * doc/glibc-functions/fremovexattr.texi: Likewise.
72764         * doc/glibc-functions/fsetxattr.texi: Likewise.
72765         * doc/glibc-functions/getxattr.texi: Likewise.
72766         * doc/glibc-functions/lgetxattr.texi: Likewise.
72767         * doc/glibc-functions/listxattr.texi: Likewise.
72768         * doc/glibc-functions/llistxattr.texi: Likewise.
72769         * doc/glibc-functions/lremovexattr.texi: Likewise.
72770         * doc/glibc-functions/lsetxattr.texi: Likewise.
72771         * doc/glibc-functions/removexattr.texi: Likewise.
72772         * doc/glibc-functions/setxattr.texi: Likewise.
72773         * doc/posix-functions/open_memstream.texi: Likewise.
72775 2008-12-15  Eric Blake  <ebb9@byu.net>
72777         Update doc for cygwin 1.7.
72778         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72779         functions.
72780         * doc/posix-functions/fchmodat.texi: Likewise.
72781         * doc/posix-functions/fchownat.texi: Likewise.
72782         * doc/posix-functions/fdopendir.texi: Likewise.
72783         * doc/posix-functions/fmemopen.texi: Likewise.
72784         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72785         * doc/posix-functions/fstatat.texi: Likewise.
72786         * doc/posix-functions/futimens.texi: Likewise.
72787         * doc/posix-functions/gai_strerror.texi: Likewise.
72788         * doc/posix-functions/getaddrinfo.texi: Likewise.
72789         * doc/posix-functions/getnameinfo.texi: Likewise.
72790         * doc/posix-functions/if_freenameindex.texi: Likewise.
72791         * doc/posix-functions/if_indextoname.texi: Likewise.
72792         * doc/posix-functions/if_nameindex.texi: Likewise.
72793         * doc/posix-functions/if_nametoindex.texi: Likewise.
72794         * doc/posix-functions/insque.texi: Likewise.
72795         * doc/posix-functions/linkat.texi: Likewise.
72796         * doc/posix-functions/llrint.texi: Likewise.
72797         * doc/posix-functions/llrintf.texi: Likewise.
72798         * doc/posix-functions/llrintl.texi: Likewise.
72799         * doc/posix-functions/lockf.texi: Likewise.
72800         * doc/posix-functions/lrintl.texi: Likewise.
72801         * doc/posix-functions/mkdirat.texi: Likewise.
72802         * doc/posix-functions/mkfifoat.texi: Likewise.
72803         * doc/posix-functions/mknodat.texi: Likewise.
72804         * doc/posix-functions/mq_close.texi: Likewise.
72805         * doc/posix-functions/mq_getattr.texi: Likewise.
72806         * doc/posix-functions/mq_notify.texi: Likewise.
72807         * doc/posix-functions/mq_open.texi: Likewise.
72808         * doc/posix-functions/mq_receive.texi: Likewise.
72809         * doc/posix-functions/mq_send.texi: Likewise.
72810         * doc/posix-functions/mq_setattr.texi: Likewise.
72811         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72812         * doc/posix-functions/mq_timedsend.texi: Likewise.
72813         * doc/posix-functions/mq_unlink.texi: Likewise.
72814         * doc/posix-functions/open_memstream.texi: Likewise.
72815         * doc/posix-functions/openat.texi: Likewise.
72816         * doc/posix-functions/posix_fadvise.texi: Likewise.
72817         * doc/posix-functions/posix_fallocate.texi: Likewise.
72818         * doc/posix-functions/posix_madvise.texi: Likewise.
72819         * doc/posix-functions/posix_memalign.texi: Likewise.
72820         * doc/posix-functions/posix_openpt.texi: Likewise.
72821         * doc/posix-functions/readlinkat.texi: Likewise.
72822         * doc/posix-functions/remque.texi: Likewise.
72823         * doc/posix-functions/renameat.texi: Likewise.
72824         * doc/posix-functions/rintl.texi: Likewise.
72825         * doc/posix-functions/sem_unlink.texi: Likewise.
72826         * doc/posix-functions/shm_open.texi: Likewise.
72827         * doc/posix-functions/shm_unlink.texi: Likewise.
72828         * doc/posix-functions/signgam.texi: Likewise.
72829         * doc/posix-functions/sigset.texi: Likewise.
72830         * doc/posix-functions/stpcpy.texi: Likewise.
72831         * doc/posix-functions/stpncpy.texi: Likewise.
72832         * doc/posix-functions/strerror.texi: Likewise.
72833         * doc/posix-functions/strtod.texi: Likewise.
72834         * doc/posix-functions/symlinkat.texi: Likewise.
72835         * doc/posix-functions/unlinkat.texi: Likewise.
72836         * doc/posix-functions/utimensat.texi: Likewise.
72837         * doc/glibc-functions/bindresvport.texi: Likewise.
72838         * doc/glibc-functions/dn_expand.texi: Likewise.
72839         * doc/glibc-functions/exp10.texi: Likewise.
72840         * doc/glibc-functions/exp10f.texi: Likewise.
72841         * doc/glibc-functions/fgetxattr.texi: Likewise.
72842         * doc/glibc-functions/flistxattr.texi: Likewise.
72843         * doc/glibc-functions/fopencookie.texi: Likewise.
72844         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72845         * doc/glibc-functions/fremovexattr.texi: Likewise.
72846         * doc/glibc-functions/fsetxattr.texi: Likewise.
72847         * doc/glibc-functions/getifaddrs.texi: Likewise.
72848         * doc/glibc-functions/getxattr.texi: Likewise.
72849         * doc/glibc-functions/lgetxattr.texi: Likewise.
72850         * doc/glibc-functions/listxattr.texi: Likewise.
72851         * doc/glibc-functions/llistxattr.texi: Likewise.
72852         * doc/glibc-functions/lremovexattr.texi: Likewise.
72853         * doc/glibc-functions/lsetxattr.texi: Likewise.
72854         * doc/glibc-functions/pow10.texi: Likewise.
72855         * doc/glibc-functions/pow10f.texi: Likewise.
72856         * doc/glibc-functions/rcmd_af.texi: Likewise.
72857         * doc/glibc-functions/removexattr.texi: Likewise.
72858         * doc/glibc-functions/res_init.texi: Likewise.
72859         * doc/glibc-functions/res_mkquery.texi: Likewise.
72860         * doc/glibc-functions/res_query.texi: Likewise.
72861         * doc/glibc-functions/res_querydomain.texi: Likewise.
72862         * doc/glibc-functions/res_send.texi: Likewise.
72863         * doc/glibc-functions/rresvport_af.texi: Likewise.
72864         * doc/glibc-functions/setxattr.texi: Likewise.
72865         * doc/glibc-functions/strcasestr.texi: Likewise.
72867 2008-12-15  Bruno Haible  <bruno@clisp.org>
72869         Fix compilation error on OSF/1 4.0.
72870         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72871         <sys/time.h>, simply delegate to the system header.
72872         Reported by Daniel Richard G. <oss@teragram.com>.
72874 2008-12-15  Bruno Haible  <bruno@clisp.org>
72876         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72877         * doc/posix-functions/fchmodat.texi: Likewise.
72878         * doc/posix-functions/fchownat.texi: Likewise.
72879         * doc/posix-functions/fdopendir.texi: Likewise.
72880         * doc/posix-functions/fstatat.texi: Likewise.
72881         * doc/posix-functions/mkdirat.texi: Likewise.
72882         * doc/posix-functions/unlinkat.texi: Likewise.
72884 2008-12-14  Bruno Haible  <bruno@clisp.org>
72886         Update doc for POSIX:2008.
72887         * doc/posix-functions/faccessat.texi: New file.
72888         * doc/posix-functions/fchmodat.texi: New file.
72889         * doc/posix-functions/fchownat.texi: New file.
72890         * doc/posix-functions/fdopendir.texi: New file.
72891         * doc/posix-functions/fstatat.texi: New file.
72892         * doc/posix-functions/futimens.texi: New file.
72893         * doc/posix-functions/linkat.texi: New file.
72894         * doc/posix-functions/mkdirat.texi: New file.
72895         * doc/posix-functions/mkfifoat.texi: New file.
72896         * doc/posix-functions/mknodat.texi: New file.
72897         * doc/posix-functions/open_wmemstream.texi: New file.
72898         * doc/posix-functions/openat.texi: New file.
72899         * doc/posix-functions/psiginfo.texi: New file.
72900         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72901         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72902         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72903         * doc/posix-functions/readlinkat.texi: New file.
72904         * doc/posix-functions/renameat.texi: New file.
72905         * doc/posix-functions/strerror_l.texi: New file.
72906         * doc/posix-functions/symlinkat.texi: New file.
72907         * doc/posix-functions/unlinkat.texi: New file.
72908         * doc/posix-functions/utimensat.texi: New file.
72909         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72911 2008-12-14  Bruno Haible  <bruno@clisp.org>
72913         Update doc for POSIX:2008.
72914         * doc/posix-functions/alphasort.texi: Renamed from
72915         doc/glibc-functions/alphasort.texi.
72916         * doc/posix-functions/dirfd.texi: Renamed from
72917         doc/glibc-functions/dirfd.texi.
72918         * doc/posix-functions/dprintf.texi: Renamed from
72919         doc/glibc-functions/dprintf.texi.
72920         * doc/posix-functions/duplocale.texi: Renamed from
72921         doc/glibc-functions/duplocale.texi.
72922         * doc/posix-functions/fexecve.texi: Renamed from
72923         doc/glibc-functions/fexecve.texi.
72924         * doc/posix-functions/fmemopen.texi: Renamed from
72925         doc/glibc-functions/fmemopen.texi.
72926         * doc/posix-functions/freelocale.texi: Renamed from
72927         doc/glibc-functions/freelocale.texi.
72928         * doc/posix-functions/getdate_err.texi: Renamed from
72929         doc/glibc-functions/getdate_err.texi.
72930         * doc/posix-functions/isalnum_l.texi: Renamed from
72931         doc/glibc-functions/isalnum_l.texi.
72932         * doc/posix-functions/isalpha_l.texi: Renamed from
72933         doc/glibc-functions/isalpha_l.texi.
72934         * doc/posix-functions/isblank_l.texi: Renamed from
72935         doc/glibc-functions/isblank_l.texi.
72936         * doc/posix-functions/iscntrl_l.texi: Renamed from
72937         doc/glibc-functions/iscntrl_l.texi.
72938         * doc/posix-functions/isdigit_l.texi: Renamed from
72939         doc/glibc-functions/isdigit_l.texi.
72940         * doc/posix-functions/isgraph_l.texi: Renamed from
72941         doc/glibc-functions/isgraph_l.texi.
72942         * doc/posix-functions/islower_l.texi: Renamed from
72943         doc/glibc-functions/islower_l.texi.
72944         * doc/posix-functions/isprint_l.texi: Renamed from
72945         doc/glibc-functions/isprint_l.texi.
72946         * doc/posix-functions/ispunct_l.texi: Renamed from
72947         doc/glibc-functions/ispunct_l.texi.
72948         * doc/posix-functions/isspace_l.texi: Renamed from
72949         doc/glibc-functions/isspace_l.texi.
72950         * doc/posix-functions/isupper_l.texi: Renamed from
72951         doc/glibc-functions/isupper_l.texi.
72952         * doc/posix-functions/iswalnum_l.texi: Renamed from
72953         doc/glibc-functions/iswalnum_l.texi.
72954         * doc/posix-functions/iswalpha_l.texi: Renamed from
72955         doc/glibc-functions/iswalpha_l.texi.
72956         * doc/posix-functions/iswblank_l.texi: Renamed from
72957         doc/glibc-functions/iswblank_l.texi.
72958         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72959         doc/glibc-functions/iswcntrl_l.texi.
72960         * doc/posix-functions/iswctype_l.texi: Renamed from
72961         doc/glibc-functions/iswctype_l.texi.
72962         * doc/posix-functions/iswdigit_l.texi: Renamed from
72963         doc/glibc-functions/iswdigit_l.texi.
72964         * doc/posix-functions/iswgraph_l.texi: Renamed from
72965         doc/glibc-functions/iswgraph_l.texi.
72966         * doc/posix-functions/iswlower_l.texi: Renamed from
72967         doc/glibc-functions/iswlower_l.texi.
72968         * doc/posix-functions/iswprint_l.texi: Renamed from
72969         doc/glibc-functions/iswprint_l.texi.
72970         * doc/posix-functions/iswpunct_l.texi: Renamed from
72971         doc/glibc-functions/iswpunct_l.texi.
72972         * doc/posix-functions/iswspace_l.texi: Renamed from
72973         doc/glibc-functions/iswspace_l.texi.
72974         * doc/posix-functions/iswupper_l.texi: Renamed from
72975         doc/glibc-functions/iswupper_l.texi.
72976         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72977         doc/glibc-functions/iswxdigit_l.texi.
72978         * doc/posix-functions/isxdigit_l.texi: Renamed from
72979         doc/glibc-functions/isxdigit_l.texi.
72980         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72981         doc/glibc-functions/mbsnrtowcs.texi.
72982         * doc/posix-functions/mkdtemp.texi: Renamed from
72983         doc/glibc-functions/mkdtemp.texi.
72984         * doc/posix-functions/newlocale.texi: Renamed from
72985         doc/glibc-functions/newlocale.texi.
72986         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72987         doc/glibc-functions/nl_langinfo_l.texi.
72988         * doc/posix-functions/open_memstream.texi: Renamed from
72989         doc/glibc-functions/open_memstream.texi.
72990         * doc/posix-functions/opterr.texi: Renamed from
72991         doc/glibc-functions/opterr.texi.
72992         * doc/posix-functions/optind.texi: Renamed from
72993         doc/glibc-functions/optind.texi.
72994         * doc/posix-functions/optopt.texi: Renamed from
72995         doc/glibc-functions/optopt.texi.
72996         * doc/posix-functions/psignal.texi: Renamed from
72997         doc/glibc-functions/psignal.texi.
72998         * doc/posix-functions/scandir.texi: Renamed from
72999         doc/glibc-functions/scandir.texi.
73000         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
73001         doc/glibc-functions/sched_get_priority_min.texi.
73002         * doc/posix-functions/signgam.texi: Renamed from
73003         doc/glibc-functions/signgam.texi.
73004         * doc/posix-functions/stpcpy.texi: Renamed from
73005         doc/glibc-functions/stpcpy.texi.
73006         * doc/posix-functions/stpncpy.texi: Renamed from
73007         doc/glibc-functions/stpncpy.texi.
73008         * doc/posix-functions/strcasecmp_l.texi: Renamed from
73009         doc/glibc-functions/strcasecmp_l.texi.
73010         * doc/posix-functions/strcoll_l.texi: Renamed from
73011         doc/glibc-functions/strcoll_l.texi.
73012         * doc/posix-functions/strfmon_l.texi: Renamed from
73013         doc/glibc-functions/strfmon_l.texi.
73014         * doc/posix-functions/strftime_l.texi: Renamed from
73015         doc/glibc-functions/strftime_l.texi.
73016         * doc/posix-functions/strncasecmp_l.texi: Renamed from
73017         doc/glibc-functions/strncasecmp_l.texi.
73018         * doc/posix-functions/strndup.texi: Renamed from
73019         doc/glibc-functions/strndup.texi.
73020         * doc/posix-functions/strnlen.texi: Renamed from
73021         doc/glibc-functions/strnlen.texi.
73022         * doc/posix-functions/strsignal.texi: Renamed from
73023         doc/glibc-functions/strsignal.texi.
73024         * doc/posix-functions/strxfrm_l.texi: Renamed from
73025         doc/glibc-functions/strxfrm_l.texi.
73026         * doc/posix-functions/timer_gettime.texi: Renamed from
73027         doc/glibc-functions/timer_gettime.texi.
73028         * doc/posix-functions/tolower_l.texi: Renamed from
73029         doc/glibc-functions/tolower_l.texi.
73030         * doc/posix-functions/toupper_l.texi: Renamed from
73031         doc/glibc-functions/toupper_l.texi.
73032         * doc/posix-functions/towctrans_l.texi: Renamed from
73033         doc/glibc-functions/towctrans_l.texi.
73034         * doc/posix-functions/towlower_l.texi: Renamed from
73035         doc/glibc-functions/towlower_l.texi.
73036         * doc/posix-functions/towupper_l.texi: Renamed from
73037         doc/glibc-functions/towupper_l.texi.
73038         * doc/posix-functions/uselocale.texi: Renamed from
73039         doc/glibc-functions/uselocale.texi.
73040         * doc/posix-functions/vdprintf.texi: Renamed from
73041         doc/glibc-functions/vdprintf.texi.
73042         * doc/posix-functions/wcpcpy.texi:
73043         Renamed from doc/glibc-functions/wcpcpy.texi.
73044         * doc/posix-functions/wcpncpy.texi: Renamed from
73045         doc/glibc-functions/wcpncpy.texi.
73046         * doc/posix-functions/wcscasecmp.texi: Renamed from
73047         doc/glibc-functions/wcscasecmp.texi.
73048         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
73049         doc/glibc-functions/wcscasecmp_l.texi.
73050         * doc/posix-functions/wcscoll_l.texi: Renamed from
73051         doc/glibc-functions/wcscoll_l.texi.
73052         * doc/posix-functions/wcsdup.texi: Renamed from
73053         doc/glibc-functions/wcsdup.texi.
73054         * doc/posix-functions/wcsncasecmp.texi: Renamed from
73055         doc/glibc-functions/wcsncasecmp.texi.
73056         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
73057         doc/glibc-functions/wcsncasecmp_l.texi.
73058         * doc/posix-functions/wcsnlen.texi: Renamed from
73059         doc/glibc-functions/wcsnlen.texi.
73060         * doc/posix-functions/wcsnrtombs.texi: Renamed from
73061         doc/glibc-functions/wcsnrtombs.texi.
73062         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
73063         doc/glibc-functions/wcsxfrm_l.texi.
73064         * doc/posix-functions/wctrans_l.texi: Renamed from
73065         doc/glibc-functions/wctrans_l.texi.
73066         * doc/posix-functions/wctype_l.texi: Renamed from
73067         doc/glibc-functions/wctype_l.texi.
73068         * doc/gnulib.texi (Function Substitutes): Add these subsections.
73069         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
73070         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
73071         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
73072         these subsections.
73073         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
73074         Remove sections.
73076 2008-12-14  Bruno Haible  <bruno@clisp.org>
73078         Update doc for POSIX:2008.
73079         * doc/posix-functions/*.texi: Update URL of POSIX specification.
73081 2008-12-14  Bruno Haible  <bruno@clisp.org>
73083         Update doc for POSIX:2008.
73084         * doc/pastposix-functions/bcmp.texi: Renamed from
73085         doc/posix-functions/bcmp.texi.
73086         * doc/pastposix-functions/bcopy.texi: Renamed from
73087         doc/posix-functions/bcopy.texi.
73088         * doc/pastposix-functions/bsd_signal.texi: Renamed from
73089         doc/posix-functions/bsd_signal.texi.
73090         * doc/pastposix-functions/bzero.texi: Renamed from
73091         doc/posix-functions/bzero.texi.
73092         * doc/pastposix-functions/ecvt.texi: Renamed from
73093         doc/posix-functions/ecvt.texi.
73094         * doc/pastposix-functions/fcvt.texi: Renamed from
73095         doc/posix-functions/fcvt.texi.
73096         * doc/pastposix-functions/ftime.texi: Renamed from
73097         doc/posix-functions/ftime.texi.
73098         * doc/pastposix-functions/gcvt.texi: Renamed from
73099         doc/posix-functions/gcvt.texi.
73100         * doc/pastposix-functions/getcontext.texi: Renamed from
73101         doc/posix-functions/getcontext.texi.
73102         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
73103         doc/posix-functions/gethostbyaddr.texi.
73104         * doc/pastposix-functions/gethostbyname.texi: Renamed from
73105         doc/posix-functions/gethostbyname.texi.
73106         * doc/pastposix-functions/getwd.texi: Renamed from
73107         doc/posix-functions/getwd.texi.
73108         * doc/pastposix-functions/h_errno.texi: Renamed from
73109         doc/posix-functions/h_errno.texi.
73110         * doc/pastposix-functions/index.texi: Renamed from
73111         doc/posix-functions/index.texi.
73112         * doc/pastposix-functions/makecontext.texi: Renamed from
73113         doc/posix-functions/makecontext.texi.
73114         * doc/pastposix-functions/mktemp.texi: Renamed from
73115         doc/posix-functions/mktemp.texi.
73116         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
73117         doc/posix-functions/pthread_attr_getstackaddr.texi.
73118         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
73119         doc/posix-functions/pthread_attr_setstackaddr.texi.
73120         * doc/pastposix-functions/rindex.texi: Renamed from
73121         doc/posix-functions/rindex.texi.
73122         * doc/pastposix-functions/scalb.texi: Renamed from
73123         doc/posix-functions/scalb.texi.
73124         * doc/pastposix-functions/setcontext.texi: Renamed from
73125         doc/posix-functions/setcontext.texi.
73126         * doc/pastposix-functions/swapcontext.texi: Renamed from
73127         doc/posix-functions/swapcontext.texi.
73128         * doc/pastposix-functions/ualarm.texi: Renamed from
73129         doc/posix-functions/ualarm.texi.
73130         * doc/pastposix-functions/usleep.texi: Renamed from
73131         doc/posix-functions/usleep.texi.
73132         * doc/pastposix-functions/vfork.texi: Renamed from
73133         doc/posix-functions/vfork.texi.
73134         * doc/pastposix-functions/wcswcs.texi: Renamed from
73135         doc/posix-functions/wcswcs.texi.
73136         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
73137         (Function Substitutes): Update.
73139 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73141         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
73142         m4/strerror.m4.
73144 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73145             Bruno Haible  <bruno@clisp.org>
73147         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
73149 2008-12-13  Bruno Haible  <bruno@clisp.org>
73151         * modules/strtoull (Depends-on): Remove unistd.
73153 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73155         * modules/strtoull (Depends-on): Add stdlib.
73157 2008-12-11  Simon Josefsson  <simon@josefsson.org>
73159         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
73161 2008-12-10  Jim Meyering  <meyering@redhat.com>
73163         gl_ASSERT: don't say assertions are disabled when they're not
73164         * m4/assert.m4 (gl_ASSERT): Do not make configure report
73165         "checking whether to enable assertions... no", when they are in
73166         fact enabled.  This is solely a bug in the output of configure.
73167         In spite of saying "no", NDEBUG was not defined in that case.
73168         Also, as noted by Eric Blake, leave assertions enabled upon
73169         --enable-assert=INVALID.
73171 2008-12-10  Bruno Haible  <bruno@clisp.org>
73173         Change MODULES.html to refer to POSIX:2008 where possible.
73174         * MODULES.html.sh (POSIX2008_URL): New variable.
73175         (posix_headers): Remove sys/timeb, ucontext.
73176         (posix2001_headers): New variable.
73177         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
73178         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
73179         index, makecontext, mktemp, pthread_attr_getstackaddr,
73180         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
73181         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
73182         (posix2001_functions): New variable.
73183         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
73184         otherwise.
73186 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73188         add missing include to parse-duration.c
73189         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
73190         * modules/parse-duration (Depends-on): Add xalloc.
73192         fix sed script reading maint.mk
73193         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
73194         (syntax-check-rules): Use it.
73196 2008-12-09  Bruno Haible  <bruno@clisp.org>
73198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
73199         MacOS X 10.4/PowerPC.
73200         Reported by Simon Josefsson.
73202 2008-12-08  Jim Meyering  <meyering@redhat.com>
73204         work around mingw's lack of some S_IF definitions
73205         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
73206         Reported by Simon Josefsson.
73208 2008-12-08  Bruno Haible  <bruno@clisp.org>
73210         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
73211         applied to variables. Needed on MacOS X 10.4/PowerPC.
73212         Reported by Simon Josefsson.
73214 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
73215         and Eric Blake  <ebb9@byu.net>
73217         assert: honor --enable-assert
73218         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
73219         order to honor --enable-assert, rather than treating it as a
73220         synonym for --disable-assert.
73222 2008-12-08  Jim Meyering  <meyering@redhat.com>
73224         * lib/posixtm.c: Remove now-useless declaration of mktime.
73226         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
73228 2008-12-07  Bruno Haible  <bruno@clisp.org>
73230         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
73231         test_once): Mark functions as static.
73232         * tests/test-tls.c (test_tls): Likewise.
73234 2008-12-07  Bruno Haible  <bruno@clisp.org>
73236         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
73237         iconv_register_autodetect.
73239 2008-12-07  Jim Meyering  <meyering@redhat.com>
73241         posixtm.c: avoid a warning
73242         * lib/posixtm.c (posixtime): Don't initialize tm0.
73243         It's no longer needed to placate gcc4's -Wuninitialized,
73244         and the attempt to placate would elicit a new warning.
73246         unicodeio.c: mark unused parameters
73247         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73248         (fallback_failure_callback): Likewise.
73250 2008-12-07  Bruno Haible  <bruno@clisp.org>
73252         * gnulib-tool (func_create_testdir): When building the tests
73253         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
73254         Reported by Simon Josefsson.
73256 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73258         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
73260 2008-12-06  Bruno Haible  <bruno@clisp.org>
73262         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
73263         Suggested by Eric Blake.
73265 2008-12-06  Bruno Haible  <bruno@clisp.org>
73267         Fix a c-stack test failure on MacOS X.
73268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
73269         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
73270         handler for SIGBUS as well.
73271         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
73272         install a signal handler for SIGBUS as well.
73273         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
73275 2008-12-06  Bruno Haible  <bruno@clisp.org>
73277         Advocacy documentation.
73278         * doc/gnulib-intro.texi (Benefits): New section.
73279         * doc/gnulib.texi: Update.
73281 2008-12-06  Bruno Haible  <bruno@clisp.org>
73283         Document the 'manywarnings' module.
73284         * doc/manywarnings.texi: New file.
73285         * doc/gnulib.texi: Include it.
73287 2008-12-05  Eric Blake  <ebb9@byu.net>
73289         tests: silence some gcc warnings
73290         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
73291         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
73292         type mismatches.
73294 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73295             Bruno Haible  <bruno@clisp.org>
73297         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
73299 2008-11-29  Jim Meyering  <meyering@redhat.com>
73301         unicodeio.c: mark unused parameters
73302         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73303         (fallback_failure_callback): Likewise.
73305         fts: fix a thinko
73306         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
73307         (set_stat_type): Return S_IF*-valued "type" directly.
73308         Prompted by James Youngman's spotting a related bug.
73309         Confirmed by further testing through find.
73311         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
73312         * lib/fts.c (D_TYPE): Define.
73313         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
73314         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
73315         (s_ifmt_shift_bits): New function.
73316         (set_stat_type): New function.
73317         (fts_build): When not calling fts_stat, call set_stat_type
73318         to propagate dirent.d_type info to fts_read caller.
73319         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
73320         fts_statp->st_mode type information may be valid.
73322 2008-11-28  Simon Josefsson  <simon@josefsson.org>
73324         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
73325         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
73326         <sds@gnu.org>.
73328 2008-11-20  Bruno Haible  <bruno@clisp.org>
73330         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73331         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73332         INCLUDE_NEXT.
73333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73334         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73335         * modules/math (Makefile.am): Substitute
73336         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73337         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73339 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73340             Bruno Haible  <bruno@clisp.org>
73342         * lib/stdint.in.h: Define all type macros so that their expansion is
73343         a single typedef'ed token. Fixes a compilation failure in Boost which
73344         does "using ::int8_t;".
73346 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73348         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73349         gl_MANYWARN_ALL_GCC.
73350         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73351         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73352         * modules/manywarnings: New file.
73353         * MODULES.html.sh: Mention manywarnings module.
73355 2008-11-18  Bruno Haible  <bruno@clisp.org>
73357         * doc/gnulib-tool.texi (Unit tests): New section.
73359 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73361         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73362         paths like 'lib/po/foo.po'.
73364 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73366         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73367         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73369 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73371         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73372         parameter works.
73374 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73376         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73378 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73380         * modules/parse-duration-tests: New file.
73381         * tests/test-parse-duration.sh: New file.
73382         * tests/test-parse-duration.c: New file.
73384         New module 'parse-duration'.
73385         * lib/parse-duration.h: New file.
73386         * lib/parse-duration.c: New file.
73387         * modules/parse-duration: New file.
73389 2008-11-17  Bruno Haible  <bruno@clisp.org>
73391         * tests/test-select-out.sh: Comment out the first pipe test.
73392         Reported by Simon Josefsson.
73394 2008-11-17  Bruno Haible  <bruno@clisp.org>
73396         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73398         gl_HOSTENT.
73400 2008-11-17  Bruno Haible  <bruno@clisp.org>
73402         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73403         -lnetwork and -lnet. Needed for Haiku and BeOS.
73405 2008-11-16  Bruno Haible  <bruno@clisp.org>
73407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73409 2008-11-16  Bruno Haible  <bruno@clisp.org>
73411         Avoid test failure on Haiku.
73412         * tests/test-fsync.c: Include <errno.h>.
73413         (main): Don't require that fsync (0) fails.
73415 2008-11-15  Bruno Haible  <bruno@clisp.org>
73417         New module 'hostent'.
73418         * modules/hostent: New file.
73419         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73421 2008-11-15  Bruno Haible  <bruno@clisp.org>
73423         New module 'servent'.
73424         * modules/servent: New file.
73425         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73427 2008-11-15  Bruno Haible  <bruno@clisp.org>
73429         Avoid generating same test program with two different rules.
73430         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73431         test-frexp to test-frexp-nolibm.
73432         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73433         test-frexpl to test-frexpl-nolibm.
73435 2008-11-15  Bruno Haible  <bruno@clisp.org>
73437         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73438         $(FREXPL_LIBM).
73440 2008-11-15  Bruno Haible  <bruno@clisp.org>
73442         * lib/netdb.in.h: Activate the definitions also when the system's
73443         <netdb.h> has 'struct addrinfo'.
73444         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73445         EAI_OVERFLOW or AI_NUMERICSERV.
73446         * doc/posix-headers/netdb.texi: Document the problem.
73448 2008-11-15  Bruno Haible  <bruno@clisp.org>
73450         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73452         Make the 'sched' module work on platforms where <sched.h> exists but
73453         is incomplete (such as Haiku).
73454         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73455         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73456         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73457         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73458         HAVE_STRUCT_SCHED_PARAM.
73459         * modules/sched (Depends-on): Add include_next.
73460         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73461         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73462         * doc/posix-headers/sched.texi: Document the issue.
73464 2008-11-13  Jim Meyering  <meyering@redhat.com>
73466         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73467         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73468         test would fail due to the difference in the Report bugs to ...
73469         line.  The expected address is empty, "<>", while the actual
73470         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73472 2008-11-12  Bruno Haible  <bruno@clisp.org>
73474         lstat: don't compile lstat.c on systems lacking lstat
73475         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73476         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73477         Reported by Daniel P. Berrange via Jim Meyering.
73479 2008-11-12  Jim Meyering  <meyering@redhat.com>
73481         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73483 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73485         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73486         instead.
73488 2008-11-12  Bruno Haible  <bruno@clisp.org>
73490         * lib/unicodeio.c: Include unistr.h.
73491         (utf8_wctomb): Remove function.
73492         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73494 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73496         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73497         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73498         <bruno@clisp.org>.
73499         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73501 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73503         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73504         * doc/gnulib.texi: Add section for warnings.
73506 2008-11-11  Bruno Haible  <bruno@clisp.org>
73508         * lib/sockets.h: Add a comment.
73510 2008-11-11  Karl Berry  <karl@gnu.org>
73512         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73514 2008-11-11  Eric Blake  <ebb9@byu.net>
73516         fdl.texi: avoid git symlinks
73517         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73519 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73521         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73523 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73525         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73526         (gl_WARN_ADD): Substitute $2 if literal.
73528 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73530         * m4/warning.m4: Remove.
73532 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73534         * m4/warnings.m4: Almost complete rewrite. :-)
73536 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73538         * modules/warnings: New module.
73539         * m4/warnings.m4: New file.
73540         * MODULES.html.sh: Mention warnings module.
73541         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73542         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73544 2008-11-10  Eric Blake  <ebb9@byu.net>
73546         fdl.texi: make a symlink to the latest version
73547         * doc/standards.texi: Revert today's earlier change.
73548         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73549         * doc/fdl.texi: ...and replace this with a symlink to the newer
73550         fdl-1.3.texi.
73552 2008-11-10  Bruno Haible  <bruno@clisp.org>
73554         * tests/test-select-fd.c (main): Accept the result file name as fourth
73555         argument.
73556         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73557         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73559 2008-11-10  Bruno Haible  <bruno@clisp.org>
73561         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73562         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73563         as autoconf-substituted macros.
73564         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73566         gl_NETDB_H_DEFAULTS. Set these variables.
73567         * modules/netdb (Makefile.am): Substitute these variables.
73569 2008-11-10  Eric Blake  <ebb9@byu.net>
73571         standards.texi: include correct file for FDL 1.3
73572         * doc/standards.texi (GNU Free Documentation License): Change
73573         include file to pull in FDL 1.3, not 1.2.
73575         fdl.texi: revert accidental change to license
73576         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73578 2008-11-10  Bruno Haible  <bruno@clisp.org>
73580         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73581         cross-compiling guesses also when the native compile gives no result.
73583 2008-11-10  Bruno Haible  <bruno@clisp.org>
73585         * lib/spawni.c (__spawni): Force variable into the stack.
73587 2008-11-10  Bruno Haible  <bruno@clisp.org>
73589         Add support for Haiku.
73590         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73591         glibc and BeOS, but also on Haiku.
73592         * lib/fpurge.c (fpurge): Likewise.
73593         * lib/freadable.c (freadable): Likewise.
73594         * lib/freadahead.c (freadahead): Likewise.
73595         * lib/freading.c (freading): Likewise.
73596         * lib/freadptr.c (freadptr): Likewise.
73597         * lib/freadseek.c (freadptrinc): Likewise.
73598         * lib/fseeko.c (rpl_fseeko): Likewise.
73599         * lib/fseterr.c (fseterr): Likewise.
73600         * lib/fwritable.c (fwritable): Likewise.
73601         * lib/fwriting.c (fwriting): Likewise.
73602         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73604 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73606         * lib/config.charset: Treat Haiku like BeOS.
73608 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73610         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73611         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73613 2008-11-08  Bruno Haible  <bruno@clisp.org>
73615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73616         AC_CACHE_CHECK.
73618 2008-11-08  Bruno Haible  <bruno@clisp.org>
73620         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73622 2008-11-08  Bruno Haible  <bruno@clisp.org>
73624         * tests/test-select-fd.c: New file.
73625         * tests/test-select-in.sh: New file.
73626         * tests/test-select-out.sh: New file.
73627         * tests/test-select-stdin.c: New file.
73628         * modules/select-tests (Files): Add the new files.
73629         (Depends-on): Add gettimeofday.
73630         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73631         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73632         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73634 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73635             Bruno Haible  <bruno@clisp.org>
73637         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73639 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73641         * build-aux/pmccabe2html: Added support for C++ source files.
73643 2008-11-05  Ben Pfaff  <blp@gnu.org>
73645         Fix lib/close.c build on Windows.
73646         * modules/close (Files): Add lib/w32sock.h.
73648 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73650         Accept Bison's NEWS format.
73651         * build-aux/announce-gen (print_news_deltas): Tweak
73652         $re_prefix.
73654 2008-11-04  Bruno Haible  <bruno@clisp.org>
73656         * modules/random_r (Maintainer): Add glibc.
73658 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73660         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73661         by karl@freefriends.org (Karl Berry).
73662         * doc/alloca.texi: Likewise.
73663         * doc/c-ctype.texi: Likewise.
73664         * doc/c-strcase.texi: Likewise.
73665         * doc/c-strcaseeq.texi: Likewise.
73666         * doc/c-strcasestr.texi: Likewise.
73667         * doc/c-strstr.texi: Likewise.
73668         * doc/c-strtod.texi: Likewise.
73669         * doc/c-strtold.texi: Likewise.
73670         * doc/ctime.texi: Likewise.
73671         * doc/error.texi: Likewise.
73672         * doc/fdl.texi: Likewise.
73673         * doc/gcd.texi: Likewise.
73674         * doc/getdate.texi: Likewise.
73675         * doc/gnulib-intro.texi: Likewise.
73676         * doc/gnulib-tool.texi: Likewise.
73677         * doc/gnulib.texi: Likewise.
73678         * doc/inet_ntoa.texi: Likewise.
73679         * doc/maintain.texi: Likewise.
73680         * doc/make-stds.texi: Likewise.
73681         * doc/quote.texi: Likewise.
73682         * doc/regexprops-generic.texi: Likewise.
73683         * doc/standards.texi: Likewise.
73684         * doc/verify.texi: Likewise.
73685         * doc/visibility.texi: Likewise.
73686         * doc/gnulib.texi (GNU Free Documentation License): Include
73687         fdl-1.3.texi instead of fdl.texi.
73689 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73691         * doc/fdl-1.3.texi: New file, from
73692         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73693         * modules/fdl-1.3: Add.
73694         * MODULES.html.sh: Add fdl-1.3.
73696 2008-11-03  Bruno Haible  <bruno@clisp.org>
73698         Make determination of absolute name of header file work with AIX xlc.
73699         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73700         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73701         preprocessing.
73702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73703         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73705 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73707         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73708         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73709         <ludo@gnu.org>.
73711 2008-11-02  Bruno Haible  <bruno@clisp.org>
73713         Mark 'strpbrk' obsolete.
73714         * modules/strpbrk (Status, Notice): New sections.
73715         * modules/strtok_r (Depends-on): Add strpbrk.
73717 2008-11-02  Bruno Haible  <bruno@clisp.org>
73719         Mark 'strdup' obsolete.
73720         * modules/strdup (Status, Notice): New sections.
73721         * modules/findprog (Depends-on): Add strdup.
73722         * modules/getaddrinfo (Depends-on): Likewise.
73723         * modules/localename (Depends-on): Likewise.
73724         * modules/relocatable-lib (Depends-on): Likewise.
73725         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73726         * modules/relocatable-prog (Depends-on): Likewise.
73727         * modules/trim (Depends-on): Likewise.
73728         * modules/unictype/gen-ctype (Depends-on): Likewise.
73729         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73731 2008-11-02  Bruno Haible  <bruno@clisp.org>
73733         Mark 'strcspn' obsolete.
73734         * modules/strcspn (Status, Notice): New sections.
73736 2008-11-02  Bruno Haible  <bruno@clisp.org>
73738         Mark 'rmdir' obsolete.
73739         * modules/rmdir (Status, Notice): New sections.
73740         * modules/clean-temp (Depends-on): Add rmdir.
73741         * modules/openat (Depends-on): Likewise.
73743 2008-11-02  Bruno Haible  <bruno@clisp.org>
73745         Mark 'raise' obsolete.
73746         * modules/raise (Status, Notice): New sections.
73747         (Include): Specify <signal.h>.
73748         * modules/stdio (Depends-on): Add raise.
73749         * modules/write (Depends-on): Likewise.
73751 2008-11-02  Bruno Haible  <bruno@clisp.org>
73753         Mark 'memset' obsolete.
73754         * modules/memset (Status, Notice): New sections.
73756 2008-11-02  Bruno Haible  <bruno@clisp.org>
73758         Mark 'memmove' obsolete.
73759         * modules/memmove (Status, Notice): New sections.
73760         * modules/argp (Depends-on): Add memmove.
73761         * modules/argz (Depends-on): Likewise.
73762         * modules/canonicalize (Depends-on): Likewise.
73763         * modules/canonicalize-lgpl (Depends-on): Likewise.
73764         * modules/fts (Depends-on): Likewise.
73765         * modules/getcwd (Depends-on): Likewise.
73766         * modules/human (Depends-on): Likewise.
73767         * modules/regex (Depends-on): Likewise.
73768         * modules/striconveh (Depends-on): Likewise.
73769         * modules/trim (Depends-on): Likewise.
73770         * modules/unistr/u8-move (Depends-on): Likewise.
73771         * modules/unistr/u16-move (Depends-on): Likewise.
73772         * modules/unistr/u32-move (Depends-on): Likewise.
73774 2008-11-02  Bruno Haible  <bruno@clisp.org>
73776         Mark 'memcpy' obsolete.
73777         * modules/memcpy (Status, Notice): New sections.
73779 2008-11-02  Bruno Haible  <bruno@clisp.org>
73781         Mark 'memcmp' obsolete.
73782         * modules/memcmp (Status, Notice): New sections.
73783         * modules/argmatch (Depends-on): Add memchr.
73784         * modules/backupfile (Depends-on): Likewise.
73785         * modules/c-strcasestr (Depends-on): Likewise.
73786         * modules/crypto/des (Depends-on): Likewise.
73787         * modules/csharpcomp (Depends-on): Likewise.
73788         * modules/fnmatch (Depends-on): Likewise.
73789         * modules/git-merge-changelog (Depends-on): Likewise.
73790         * modules/isnand (Depends-on): Likewise.
73791         * modules/isnand-nolibm (Depends-on): Likewise.
73792         * modules/isnanf (Depends-on): Likewise.
73793         * modules/isnanf-nolibm (Depends-on): Likewise.
73794         * modules/isnanl (Depends-on): Likewise.
73795         * modules/isnanl-nolibm (Depends-on): Likewise.
73796         * modules/mbchar (Depends-on): Likewise.
73797         * modules/memcoll (Depends-on): Likewise.
73798         * modules/quotearg (Depends-on): Likewise.
73799         * modules/regex (Depends-on): Likewise.
73800         * modules/relocatable-prog (Depends-on): Likewise.
73801         * modules/same (Depends-on): Likewise.
73802         * modules/signbit (Depends-on): Likewise.
73803         * modules/strcasestr-simple (Depends-on): Likewise.
73804         * modules/unictype/gen-ctype (Depends-on): Likewise.
73805         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73806         * modules/uniname/uniname (Depends-on): Likewise.
73807         * modules/unistr/u8-cmp (Depends-on): Likewise.
73809 2008-11-02  Bruno Haible  <bruno@clisp.org>
73811         Mark 'memchr' obsolete.
73812         * modules/memchr (Status, Notice): New sections.
73813         * modules/argp (Depends-on): Add memchr.
73814         * modules/base64 (Depends-on): Likewise.
73815         * modules/c-strcasestr (Depends-on): Likewise.
73816         * modules/chdir-long (Depends-on): Likewise.
73817         * modules/fnmatch (Depends-on): Likewise.
73818         * modules/getsubopt (Depends-on): Likewise.
73819         * modules/git-merge-changelog (Depends-on): Likewise.
73820         * modules/glob (Depends-on): Likewise.
73821         * modules/strcasestr-simple (Depends-on): Likewise.
73822         * modules/strnlen (Depends-on): Likewise.
73824 2008-11-02  Bruno Haible  <bruno@clisp.org>
73826         Mark 'atexit' obsolete.
73827         * modules/atexit (Status, Notice): New sections.
73828         * modules/chdir-long (Depends-on): Add atexit.
73829         * modules/wait-process (Depends-on): Likewise.
73831 2008-11-02  Bruno Haible  <bruno@clisp.org>
73833         * gnulib-tool: New option --with-obsolete.
73834         (func_usage): Document it.
73835         (func_modules_transitive_closure): Drop obsolete dependencies if
73836         incobsolete is not true.
73837         (func_import): Read and save the incobsolete variable to the cache.
73839 2008-11-02  Bruno Haible  <bruno@clisp.org>
73841         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73842         * gnulib-tool: New option --extract-status.
73843         (func_usage): Document it.
73844         (sed_extract_prog): Recognize it.
73845         (func_get_status): New function.
73847 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73849         * modules/sockets (License): Change from LGPL to LGPLv2+.
73851 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73853         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73855 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73857         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73858         Mention times and sys_times.
73859         * modules/sys_times, modules/sys_times-tests: New modules.
73860         * modules/times, modules/times-tests: Likewise
73861         * m4/sys_times_h.m4: New file.
73862         * lib/sys_times.in.h: Likewise
73863         * lib/times.c: Likewise.
73864         * tests/test-sys_times.c: Likewise.
73865         * tests/test-times.c: Likewise.
73866         * doc/posix-headers/sys_times.texi: Update.
73867         * doc/posix-functions/times.texi: Update.
73869 2008-10-28  Jim Meyering  <meyering@redhat.com>
73871         * modules/tempname (Depends-on): Add lstat.
73873         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73875 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73877         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73878         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73879         using idiom used elsewhere in gnulib.
73881 2008-10-27  Jim Meyering  <meyering@redhat.com>
73883         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73885 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73887         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73888         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73889         programs.
73890         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73892 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73894         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73896 2008-10-27  Bruno Haible  <bruno@clisp.org>
73898         * tests/test-lstat.c: Include <stdio.h>.
73900 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73902         * modules/lstat-tests: New module.
73903         * tests/test-lstat.c: New file.
73905 2008-10-26  Jim Meyering  <meyering@redhat.com>
73907         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73909 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73910             Bruno Haible  <bruno@clisp.org>
73912         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73913         * modules/configmake (Include): Add a note that the include must come
73914         after all system headers.
73915         * lib/javaversion.c: Include configmake.h after all other includes.
73917 2008-10-26  Bruno Haible  <bruno@clisp.org>
73919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73920         HAVE_STRUCT_RANDOM_DATA to 1.
73921         (gl_STDLIB_H): Simplify.
73923 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73925         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73926         substitute HAVE_STRUCT_RANDOM_DATA.
73927         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73928         random_data.
73929         * modules/stdlib (Makefile.am): Substitute
73930         HAVE_STRUCT_RANDOM_DATA.
73932 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73934         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73935         * doc/gnulib-intro.texi (Copyright): Likewise.
73937 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73939         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73940         findings.
73942 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73943             Bruno Haible  <bruno@clisp.org>
73945         * lib/unistd.in.h: Include <winsock2.h>.
73946         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73947         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73948         Provide dummy declarations.
73949         (gethostname): Override.
73950         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73951         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73952         gl_PREREQ_SYS_H_WINSOCK2.
73953         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73954         * doc/posix-functions/gethostname.texi: More details.
73956 2008-10-25  Bruno Haible  <bruno@clisp.org>
73958         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73959         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73960         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73962         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73963         here ...
73964         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73965         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73966         gl_UNISTD_H_DEFAULTS.
73968 2008-10-25  Eric Blake  <ebb9@byu.net>
73970         signbit: avoid spurious compiler failure
73971         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73972         declarations inside function.
73974 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73975             Bruno Haible  <bruno@clisp.org>
73977         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73978         * modules/random_r (Depends-on): Add stdint.
73980 2008-10-24  Bruno Haible  <bruno@clisp.org>
73982         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73983         Eggert.
73984         * modules/strerror (License): Likewise.
73986 2008-10-24  Jim Meyering  <meyering@redhat.com>
73988         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73989         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73991 2008-10-24  Eric Blake  <ebb9@byu.net>
73993         getgroups: fix compilation when getgroups is available
73994         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73995         but with <config.h> override of getgroups disabled.
73997 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73999         * doc/gnulib.texi (Header files): Add note about C++ problems.
74000         Explained by Bruno Haible <bruno@clisp.org>.
74002 2008-10-23  Bruno Haible  <bruno@clisp.org>
74004         Define a dummy SA_NODEFER macro on Interix.
74005         * lib/signal.in.h (SA_NODEFER): Define fallback.
74006         Reported by Aleksey Cheusov <cheusov@tut.by> via
74007         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
74009 2008-10-23  Bruno Haible  <bruno@clisp.org>
74011         * modules/freadahead (License): Change to LGPLv2+.
74012         Suggested by Simon Josefsson.
74014 2008-10-23  Jim Meyering  <meyering@redhat.com>
74016         random_r: new module
74017         * modules/random_r: New file.
74018         * m4/random_r.m4: New file.
74019         * lib/random_r.c: New file, from glibc.
74020         * modules/random_r-tests: New file.
74021         * tests/test-random_r.c: New file.
74022         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
74023          Declare.
74024         (RAND_MAX): Define.
74025         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
74026         * modules/stdlib: Substitute them, too.
74027         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
74028         * doc/glibc-functions/initstate_r.texi: Mention the new module.
74029         * doc/glibc-functions/random_r.texi: Likewise.
74030         * doc/glibc-functions/setstate_r.texi: Likewise.
74031         * doc/glibc-functions/srandom_r.texi: Likewise.
74032         * config/srclist.txt: Mention it.
74034 2008-10-23  David Lutterkort  <lutter@redhat.com>
74036         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
74037         link requirement
74039 2008-10-23  Jim Meyering  <meyering@redhat.com>
74041         selinux-h: mark parameters of stub functions as intentionally unused
74042         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
74043         * lib/se-context.in.h: Likewise.
74045 2008-10-22  Simon Josefsson  <simon@josefsson.org>
74047         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
74049 2008-10-22  Simon Josefsson  <simon@josefsson.org>
74051         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
74053 2008-10-22  Eric Blake  <ebb9@byu.net>
74055         glthread/thread: avoid compiler warning
74056         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
74057         Add unreachable abort to silence compiler.
74059 2008-10-22  Eric Blake  <ebb9@byu.net>
74061         netdb: also supply struct addrinfo for cygwin 1.5.x
74062         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
74063         older cygwin.
74064         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
74065         cygwin.
74066         * doc/posix-headers/netdb.texi (netdb.h): Document this.
74068 2008-10-22  Bruno Haible  <bruno@clisp.org>
74070         * users.txt: Update entry about pspp.
74072 2008-10-21  Bruno Haible  <bruno@clisp.org>
74074         Simplification.
74075         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
74076         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
74078         Simplification.
74079         * lib/ioctl.c (ioctl): Don't undefine.
74080         * lib/socket.c (socket): Don't undefine.
74082         Remove unused module indicator macros.
74083         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
74084         GNULIB_$1 as a C macro.
74086         * doc/posix-functions/close.texi: Undo last change.
74087         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
74088         Windows platforms.
74090 2008-10-21  Bruno Haible  <bruno@clisp.org>
74092         Add gethostname() declaration to <unistd.h>.
74093         * lib/unistd.in.h (gethostname): New declaration.
74094         * lib/gethostname.c: Include <unistd.h>.
74095         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
74096         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
74097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
74098         and HAVE_GETHOSTNAME.
74099         * modules/gethostname (Depends-on): Add unistd.
74100         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74101         (Include): Specify <unistd.h>.
74102         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
74103         HAVE_GETHOSTNAME.
74104         * tests/test-gethostname.c: Include <unistd.h> first.
74106 2008-10-21  Bruno Haible  <bruno@clisp.org>
74108         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
74109         * modules/select-tests (Depends-on): Likewise.
74110         Reported by Simon Josefsson.
74112 2008-10-21  Simon Josefsson  <simon@josefsson.org>
74114         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
74115         * lib/accept.c: New file, based on winsock.c.
74116         * lib/bind.c: New file, based on winsock.c.
74117         * lib/connect.c: New file, based on winsock.c.
74118         * lib/getpeername.c: New file, based on winsock.c.
74119         * lib/getsockname.c: New file, based on winsock.c.
74120         * lib/getsockopt.c: New file, based on winsock.c.
74121         * lib/ioctl.c: New file, based on winsock.c.
74122         * lib/listen.c: New file, based on winsock.c.
74123         * lib/recv.c: New file, based on winsock.c.
74124         * lib/recvfrom.c: New file, based on winsock.c.
74125         * lib/send.c: New file, based on winsock.c.
74126         * lib/sendto.c: New file, based on winsock.c.
74127         * lib/setsockopt.c: New file, based on winsock.c.
74128         * lib/shutdown.c: New file, based on winsock.c.
74129         * lib/socket.c: New file, based on winsock.c.
74130         * lib/w32sock.h: New file, based on winsock.c.
74131         * lib/winsock.c: Remove file.
74132         * modules/accept: Likewise.
74133         * modules/bind: Likewise.
74134         * modules/connect: Likewise.
74135         * modules/getpeername: Likewise.
74136         * modules/getsockname: Likewise.
74137         * modules/getsockopt: Likewise.
74138         * modules/ioctl: Likewise.
74139         * modules/listen: Likewise.
74140         * modules/recv: Likewise.
74141         * modules/recvfrom: Likewise.
74142         * modules/send: Likewise.
74143         * modules/sendto: Likewise.
74144         * modules/setsockopt: Likewise.
74145         * modules/shutdown: Likewise.
74146         * modules/socket: Use socket.c instead of winsock.c.
74147         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
74148         * doc/posix-functions/accept.texi: Doc fix.
74149         * doc/posix-functions/bind.texi: Doc fix.
74150         * doc/posix-functions/close.texi: Doc fix.
74151         * doc/posix-functions/connect.texi: Doc fix.
74152         * doc/posix-functions/getpeername.texi: Doc fix.
74153         * doc/posix-functions/getsockname.texi: Doc fix.
74154         * doc/posix-functions/getsockopt.texi: Doc fix.
74155         * doc/posix-functions/ioctl.texi: Doc fix.
74156         * doc/posix-functions/listen.texi: Doc fix.
74157         * doc/posix-functions/recv.texi: Doc fix.
74158         * doc/posix-functions/recvfrom.texi: Doc fix.
74159         * doc/posix-functions/send.texi: Doc fix.
74160         * doc/posix-functions/sendto.texi: Doc fix.
74161         * doc/posix-functions/setsockopt.texi: Doc fix.
74162         * doc/posix-functions/shutdown.texi: Doc fix.
74163         * doc/posix-functions/socket.texi: Doc fix.
74165 2008-10-20  Bruno Haible  <bruno@clisp.org>
74167         Take into account the role of SIGABRT_COMPAT on Windows 2008.
74168         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
74169         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
74170         as an alias for SIGABRT.
74171         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
74172         (sigaction): Map it to SIGABRT.
74173         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
74175 2008-10-20  Bruno Haible  <bruno@clisp.org>
74177         * lib/fts.c: Don't include lstat.h.
74178         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
74180         Move the lstat() declaration to <sys/stat.h>.
74181         * lib/lstat.h: Remove file.
74182         * lib/sys_stat.in.h: Add special invocation convention.
74183         (lstat): New declaration.
74184         * lib/lstat.c (orig_lstat): New function.
74185         (rpl_lstat): Use orig_lstat instead of lstat.
74186         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
74187         AC_C_INLINE. Set REPLACE_LSTAT.
74188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
74189         and REPLACE_LSTAT.
74190         * modules/lstat (Files): Remove lib/lstat.h.
74191         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74192         (Include): Specify <sys/stat.h> instead of lstat.h.
74193         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
74194         REPLACE_LSTAT.
74195         * NEWS: Mention the change.
74197 2008-10-20  Bruno Haible  <bruno@clisp.org>
74199         * modules/posix_spawn-tests: New file.
74200         * tests/test-posix_spawn3.c: New file.
74202 2008-10-20  Bruno Haible  <bruno@clisp.org>
74204         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
74205         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74206         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
74207         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74208         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
74210 2008-10-20  Bruno Haible  <bruno@clisp.org>
74212         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
74213         of posix_spawn on AIX 5.3.
74215 2008-10-20  Bruno Haible  <bruno@clisp.org>
74217         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
74219 2008-10-20  Bruno Haible  <bruno@clisp.org>
74221         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
74222         of AC_LANG_PROGRAM.
74224 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74226         * lib/netdb.in.h: Don't define GNU specific constants until they
74227         are supported or needed.  Reported by Bruno Haible
74228         <bruno@clisp.org>.
74230 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74232         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
74234 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74236         * lib/getaddrinfo.h: Remove file.
74237         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
74238         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
74239         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
74240         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
74241         * modules/netdb: Substitute GNULIB_GETADDRINFO.
74242         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
74243         * tests/test-getaddrinfo.c: Likewise.
74244         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
74245         * NEWS: Mention change.
74247 2008-10-19  Bruno Haible  <bruno@clisp.org>
74249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
74251 2008-10-19  Bruno Haible  <bruno@clisp.org>
74253         * lib/wait-process.c: Include simply <sys/wait.h>.
74254         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
74255         WIFSTOPPED): Remove fallback definitions.
74256         * modules/wait-process (Depends-on): Add sys_wait.
74258         New module 'sys_wait'.
74259         * modules/sys_wait: New file.
74260         * lib/sys_wait.in.h: New file, partially copied from
74261         lib/wait-process.c.
74262         * m4/sys_wait_h.m4: New file.
74263         * doc/posix-headers/sys_wait.texi: Mention the new module.
74265 2008-10-19  Bruno Haible  <bruno@clisp.org>
74267         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
74269 2008-10-19  Bruno Haible  <bruno@clisp.org>
74271         Assume that waitpid() fills an 'int' status, not a 'union wait'.
74272         * lib/wait-process.c (WAIT_T): Remove type.
74273         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
74274         (wait_subprocess): Update.
74276 2008-10-19  Bruno Haible  <bruno@clisp.org>
74278         New module 'atoll'.
74279         * modules/atoll: New file.
74280         * lib/stdlib.in.h (atoll): New declaration.
74281         * lib/atoll.c: New file, from glibc with modifications.
74282         * m4/atoll.m4: New file.
74283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
74284         HAVE_ATOLL.
74285         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
74286         * doc/posix-functions/atoll.texi: Mention the new module.
74288 2008-10-19  Bruno Haible  <bruno@clisp.org>
74290         Add strtoull() declaration to <stdlib.h>.
74291         * lib/stdlib.in.h (strtoull): New declaration.
74292         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74293         Set HAVE_STRTOULL.
74294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
74295         HAVE_STRTOULL.
74296         * modules/strtoull (Depends-on): Add stdlib.
74297         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74298         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
74299         HAVE_STRTOULL.
74301 2008-10-19  Bruno Haible  <bruno@clisp.org>
74303         Add strtoll() declaration to <stdlib.h>.
74304         * lib/stdlib.in.h (strtoll): New declaration.
74305         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74306         Set HAVE_STRTOLL.
74307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
74308         HAVE_STRTOLL.
74309         * modules/strtoll (Depends-on): Add stdlib.
74310         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74311         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
74313 2008-10-19  Bruno Haible  <bruno@clisp.org>
74315         * modules/bcopy (Depends-on): Add strings.
74316         (Include): Specify <strings.h>.
74318 2008-10-19  Bruno Haible  <bruno@clisp.org>
74320         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
74322 2008-10-19  Bruno Haible  <bruno@clisp.org>
74324         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
74325         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
74326         mingw.
74328 2008-10-19  Bruno Haible  <bruno@clisp.org>
74330         * lib/atanl.c: Don't include isnanl.h.
74331         * lib/cosl.c: Likewise.
74332         * lib/ldexpl.c: Likewise.
74333         * lib/logl.c: Likewise.
74334         * lib/sinl.c: Likewise.
74335         * lib/sqrtl.c: Likewise.
74336         * lib/tanl.c: Likewise.
74338         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74339         * lib/isnanf.h: Remove file.
74340         * lib/isnand.h: Remove file.
74341         * lib/isnanl.h: Remove file.
74342         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74343         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74344         macros.
74345         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74346         HAVE_ISNANF, don't define it as a C macro.
74347         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74348         HAVE_ISNAND, don't define it as a C macro.
74349         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74350         HAVE_ISNANL, don't define it as a C macro.
74351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74352         HAVE_ISNAN[FDL].
74353         * modules/isnanf (Files): Remove lib/isnanf.h.
74354         (Depends-on): Add math.
74355         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74356         (Include): Specify <math.h> instead of isnanf.h.
74357         * modules/isnand (Files): Remove lib/isnand.h.
74358         (Depends-on): Add math.
74359         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74360         (Include): Specify <math.h> instead of isnand.h.
74361         * modules/isnanl (Files): Remove lib/isnanl.h.
74362         (Depends-on): Add math.
74363         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74364         (Include): Specify <math.h> instead of isnanl.h.
74365         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74366         HAVE_ISNAN[FDL].
74367         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74368         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74369         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74370         * NEWS: Mention the change.
74372 2008-10-18  Bruno Haible  <bruno@clisp.org>
74374         Add getusershell(), setusershell(), endusershell() declarations to
74375         <unistd.h>.
74376         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74377         declarations.
74378         * lib/getusershell.c: Include unistd.h.
74379         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74380         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74381         HAVE_GETUSERSHELL.
74382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74383         and HAVE_GETUSERSHELL.
74384         * modules/getusershell (Depends-on): Add unistd, extensions.
74385         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74386         (Include): Specify <unistd.h>.
74387         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74388         HAVE_GETUSERSHELL.
74390 2008-10-18  Bruno Haible  <bruno@clisp.org>
74392         Add a getloadavg() declaration to <stdlib.h>.
74393         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74394         getloadavg declaration.
74395         (getloadavg): New declaration.
74396         * lib/getloadavg.c: Include <stdlib.h> first.
74397         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74398         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74399         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74401         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74402         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74403         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74404         (Include): Specify <stdlib.h>.
74405         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74406         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74408 2008-10-18  Bruno Haible  <bruno@clisp.org>
74410         * lib/dirchownmod.c: Don't include lchmod.h.
74412         Move the lchmod() declaration to <sys/stat.h>.
74413         * lib/lchmod.h: Remove file.
74414         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74415         (lchmod): New declaration, moved here from lib/lchown.h.
74416         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74417         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74418         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74419         and HAVE_LCHMOD.
74420         * modules/lchmod (Files): Remove lib/lchmod.h.
74421         (Depends-on): Add sys_stat, extensions.
74422         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74423         (Include): Specify <sys/stat.h> instead of lchmod.h.
74424         * modules/sys_stat (Depends-on): Add link-warning.
74425         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74426         definition of GL_LINK_WARNING.
74427         * NEWS: Mention the change.
74429 2008-10-18  Bruno Haible  <bruno@clisp.org>
74431         * lib/fchdir.c: Don't include dirfd.h.
74432         * lib/fts.c: Likewise.
74433         * lib/getcwd.c: Likewise.
74434         * lib/glob.c: Likewise.
74436         Move the dirfd() declaration to <dirent.h>.
74437         * lib/dirfd.h: Remove file.
74438         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74439         (dirfd): New declaration.
74440         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74441         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74442         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74443         HAVE_DECL_DIRFD.
74444         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74445         HAVE_DECL_DIRFD.
74446         * modules/dirfd (Files): Remove lib/dirfd.h.
74447         (Depends-on): Add dirent, extensions.
74448         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74449         (Include): Specify <dirent.h> instead of dirfd.h.
74450         * modules/dirent (Depends-on): Add link-warning.
74451         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74452         definition of GL_LINK_WARNING.
74453         * NEWS: Mention the change.
74455 2008-10-18  Bruno Haible  <bruno@clisp.org>
74457         Move the euidaccess() declaration to <unistd.h>.
74458         * lib/euidaccess.h: Remove file.
74459         * lib/unistd.in.h (euidaccess): New declaration.
74460         * lib/euidaccess.c: Don't include euidaccess.h.
74461         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74462         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74464         and HAVE_EUIDACCESS.
74465         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74466         (Depends-on): Add unistd.
74467         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74468         (Include): Specify <unistd.h> instead of euidaccess.h.
74469         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74470         HAVE_EUIDACCESS.
74471         * NEWS: Mention the change.
74473 2008-10-18  Bruno Haible  <bruno@clisp.org>
74475         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74477         Move the getdomainname() declaration to <unistd.h>.
74478         * lib/getdomainname.h: Remove file.
74479         * lib/unistd.in.h (getdomainname): New declaration.
74480         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74481         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74482         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74483         HAVE_GETDOMAINNAME.
74484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74485         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74486         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74487         (Depends-on): Add unistd, extensions.
74488         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74489         (Includes): Specify <unistd.h> instead of getdomainname.h.
74490         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74491         HAVE_GETDOMAINNAME.
74492         * NEWS: Mention the change.
74494 2008-10-18  Bruno Haible  <bruno@clisp.org>
74496         * modules/dirent: New file.
74497         * m4/dirent_h.m4: New file.
74498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74499         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74500         * modules/fchdir (Files): Remove lib/dirent.in.h.
74501         (Depends-on): Add dirent.
74502         (Makefile.am): Move rules to modules/dirent.
74503         * doc/posix-headers/dirent.texi: Mention the new module.
74505 2008-10-18  Bruno Haible  <bruno@clisp.org>
74507         Avoid -Wunused-parameter warnings in public gnulib header files.
74508         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74509         macro.
74510         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74512 2008-10-18  Bruno Haible  <bruno@clisp.org>
74514         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74515         * doc/glibc-functions/error.texi: Mention the module 'error'.
74516         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74517         * doc/glibc-functions/getdomainname.texi: Mention the module
74518         'getdomainname'.
74519         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74520         * doc/glibc-functions/getpagesize.texi: Mention the module
74521         'getpagesize'.
74522         * doc/glibc-functions/getusershell.texi: Mention the module
74523         'getusershell'.
74524         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74525         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74526         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74527         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74528         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74529         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74530         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74531         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74532         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74533         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74534         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74535         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74536         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74537         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74539 2008-10-17  Bruno Haible  <bruno@clisp.org>
74541         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74542         HP-UX and IRIX, use -0.0L.
74543         * tests/test-ceill.c (minus_zero): Likewise.
74544         * tests/test-floorl.c (minus_zero): Likewise.
74545         * tests/test-frexpl.c (minus_zero): Likewise.
74546         * tests/test-isnan.c (minus_zerol): Likewise.
74547         * tests/test-isnanl.h (minus_zero): Likewise.
74548         * tests/test-ldexpl.c (minus_zero): Likewise.
74549         * tests/test-roundl.c (minus_zero): Likewise.
74550         * tests/test-signbit.c (minus_zerol): Likewise.
74551         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74552         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74553         * tests/test-truncl.c (minus_zero): Likewise.
74554         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74555         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74556         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74557         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74559 2008-10-17  Bruno Haible  <bruno@clisp.org>
74561         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74562         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74563         that it gets activated only for gcc >= 3.0.
74564         * lib/dirent.in.h: Likewise.
74565         * lib/errno.in.h: Likewise.
74566         * lib/fcntl.in.h: Likewise.
74567         * lib/float.in.h: Likewise.
74568         * lib/iconv.in.h: Likewise.
74569         * lib/inttypes.in.h: Likewise.
74570         * lib/locale.in.h: Likewise.
74571         * lib/math.in.h: Likewise.
74572         * lib/netdb.in.h: Likewise.
74573         * lib/netinet_in.in.h: Likewise.
74574         * lib/search.in.h: Likewise.
74575         * lib/signal.in.h: Likewise.
74576         * lib/spawn.in.h: Likewise.
74577         * lib/stdarg.in.h: Likewise.
74578         * lib/stdint.in.h: Likewise.
74579         * lib/stdio.in.h: Likewise.
74580         * lib/stdlib.in.h: Likewise.
74581         * lib/string.in.h: Likewise.
74582         * lib/strings.in.h: Likewise.
74583         * lib/sys_file.in.h: Likewise.
74584         * lib/sys_ioctl.in.h: Likewise.
74585         * lib/sys_select.in.h: Likewise.
74586         * lib/sys_socket.in.h: Likewise.
74587         * lib/sys_stat.in.h: Likewise.
74588         * lib/sys_time.in.h: Likewise.
74589         * lib/sysexits.in.h: Likewise.
74590         * lib/time.in.h: Likewise.
74591         * lib/unistd.in.h: Likewise.
74592         * lib/wchar.in.h: Likewise.
74593         * lib/wctype.in.h: Likewise.
74594         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74596 2008-10-17  Jim Meyering  <meyering@redhat.com>
74598         ignore-value: don't depend on inline module
74599         * modules/ignore-value (Depends-on): Remove 'inline'.
74600         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74601         Suggestion from Bruno Haible.
74603 2008-10-17  Bruno Haible  <bruno@clisp.org>
74605         New implementation of condition variables for Win32.
74606         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74607         (gl_linked_waitqueue_t): New type.
74608         (gl_cond_t): Use it.
74609         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74610         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74611         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74612         (glthread_cond_init_func, glthread_cond_wait_func,
74613         glthread_cond_timedwait_func, glthread_cond_signal_func,
74614         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74615         Reimplemented on the basis of gl_linked_waitqueue_t.
74616         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74617         gl_waitqueue_t.
74618         (gl_rwlock_t): Update.
74619         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74621 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74623         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74624         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74626 2008-10-17  Jim Meyering  <meyering@redhat.com>
74628         ignore-value: new module
74629         * modules/ignore-value: New file.
74630         * lib/ignore-value.h: New file.
74631         * MODULES.html.sh (Compiler warning management): New section,
74632         just for this module.  More to come.
74634 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74636         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74637         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74638         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74640 2008-10-16  Jim Meyering  <meyering@redhat.com>
74642         openat-die.c: avoid 'no previous prototype' warning
74643         * lib/openat-die.c: Include "openat.h".
74644         Reported by Reuben Thomas <rrt@sc3d.org>.
74646 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74648         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74649         * lib/netdb.in.h: Fix typo.
74650         Reported by Bruno Haible  <bruno@clisp.org>
74652         * lib/netdb.in.h: Include sys/socket.h for platforms without
74653         netdb.h, to get structures like hostent on MinGW.
74654         * modules/netdb (Depends-on): Add sys_socket.
74656 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74658         * modules/netdb, modules/netdb-tests: New file.
74659         * m4/netdb_h.m4: New file.
74660         * lib/netdb.in.h: Add, currently just an empty file pending
74661         definitions.
74662         * tests/test-netdb.c: New file.
74663         * doc/posix-headers/netdb.texi: Mention that we replace it if
74664         needed.
74665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74666         netdb.
74668 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74670         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74671         with code.
74673 2008-10-13  Bruno Haible  <bruno@clisp.org>
74675         * lib/glthread/cond.c (glthread_cond_wait_func,
74676         glthread_cond_timedwait_func): Add a comment.
74678 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74680         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74681         * tests/test-select.c: Likewise,
74683 2008-10-13  Bruno Haible  <bruno@clisp.org>
74685         * lib/glthread/cond.c (glthread_cond_wait_func,
74686         glthread_cond_timedwait_func): Fix variable name.
74687         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74689 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74691         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74692         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74693         struct sockaddr.sa_len.
74694         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74696 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74698         * build-aux/pmccabe2html: Add css and css_url parameters.
74700 2008-10-12  Bruno Haible  <bruno@clisp.org>
74702         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74703         calling aclx_get.
74704         Reported by Rainer Tammer <tammer@tammer.net>.
74706 2008-10-12  Bruno Haible  <bruno@clisp.org>
74708         Use msvcrt aware primitives for creation/termination of Win32 threads.
74709         * lib/glthread/thread.c: Include <process.h>.
74710         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74711         (wrapper_func): Update signature.
74712         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74714 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74715             Bruno Haible  <bruno@clisp.org>
74717         Provide a Win32 implementation of the 'cond' module.
74718         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74719         * lib/glthread/cond.c (glthread_cond_init_func,
74720         glthread_cond_wait_func, glthread_cond_timedwait_func,
74721         glthread_cond_signal_func, glthread_cond_broadcast_func,
74722         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74723         * modules/cond (Dependencies): Add gettimeofday.
74725 2008-10-11  Bruno Haible  <bruno@clisp.org>
74727         Make sleep work on older versions of mingw.
74728         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74729         only whether it exists.
74730         * doc/posix-functions/sleep.texi: Mention the problem with older
74731         versions of mingw.
74733 2008-10-11  Bruno Haible  <bruno@clisp.org>
74735         New module 'shutdown'.
74736         * modules/shutdown: New file.
74737         * lib/sys_socket.in.h (shutdown): New declaration.
74738         * lib/winsock.c (shutdown): New function.
74739         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74740         GNULIB_SHUTDOWN.
74741         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74742         * doc/posix-functions/shutdown.texi: Document the new module.
74744 2008-10-11  Jim Meyering  <meyering@redhat.com>
74746         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74748 2008-10-11  Bruno Haible  <bruno@clisp.org>
74750         New module 'fclose'.
74751         * modules/fclose: New file.
74752         * lib/stdio.in.h (fclose): New declaration.
74753         * lib/fclose.c: New file.
74754         * m4/fclose.m4: New file.
74755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74756         REPLACE_FCLOSE.
74757         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74758         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74759         REPLACE_FCLOSE.
74760         * modules/close (Depends-on): fclose.
74761         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74763 2008-10-11  Bruno Haible  <bruno@clisp.org>
74765         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74766         set errno and don't call _close.
74768 2008-10-10  Bruno Haible  <bruno@clisp.org>
74770         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74771         ACL, not afterwards. Fixes test failure on Cygwin.
74773 2008-10-09  Ben Pfaff  <blp@gnu.org>
74775         * build-aux/announce-gen: Fix gnulib version related part of usage
74776         message.  Die with a useful error message if no tarballs are
74777         found.
74779 2008-10-10  Jim Meyering  <meyering@redhat.com>
74781         bootstrap: use git's --depth=N option only if it's supported
74782         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74783         recognize the --depth option.  Reported by Pádraig Brady.
74785 2008-10-09  Bruno Haible  <bruno@clisp.org>
74787         New module 'ioctl'.
74788         * modules/ioctl: New file.
74789         * lib/sys_socket.in.h (ioctl): Remove declaration.
74790         * lib/winsock.c: Include <sys/ioctl.h>.
74791         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74792         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74793         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74794         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74795         * doc/posix-functions/ioctl.texi: Mention the new module.
74797 2008-10-09  Bruno Haible  <bruno@clisp.org>
74799         New module 'sys_ioctl'.
74800         * lib/sys_ioctl.in.h: New file.
74801         * m4/sys_ioctl_h.m4: New file.
74802         * modules/sys_ioctl: New file.
74803         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74805 2008-10-09  Bruno Haible  <bruno@clisp.org>
74807         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74808         * lib/winsock.c: Include <stdarg.h>.
74809         (rpl_ioctl): Change to second argument 'int' and then varargs.
74811 2008-10-09  Bruno Haible  <bruno@clisp.org>
74813         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74814         when the sys_socket module is present and the system has <winsock2.h>.
74816 2008-10-09  Bruno Haible  <bruno@clisp.org>
74818         * doc/posix-functions/close.texi: Mention module 'close' instead of
74819         module 'sys_socket'.
74821 2008-10-09  Bruno Haible  <bruno@clisp.org>
74823         * doc/glibc-headers/sys_ioctl.texi: New file.
74824         * doc/gnulib.texi: Include it.
74826 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74827             Bruno Haible  <bruno@clisp.org>
74829         Combine the two replacements of 'close'.
74830         * lib/sys_socket.in.h (close): Define to a reminder to include
74831         <unistd.h>.
74832         (_gl_close_fd_maybe_socket): New declaration.
74833         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74834         * lib/winsock.c (close): Remove undefinition.
74835         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74836         needed for the gnulib module 'close'.
74837         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74838         define to an error symbol or to a warning, if suitable.
74839         * lib/close.c: Include <sys/socket.h>.
74840         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74841         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74842         UNISTD_H_HAVE_WINSOCK2_H.
74843         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74845         UNISTD_H_HAVE_WINSOCK2_H.
74846         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74847         (configure.ac): Set a module indicator.
74848         (Makefile.am): Substitute GNULIB_CLOSE.
74849         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74850         * modules/poll-tests (Depends-on): Add close.
74851         * modules/select-tests (Depends-on): Likewise.
74853 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74854             Bruno Haible  <bruno@clisp.org>
74856         New module 'close'.
74857         * modules/close: New file.
74858         * lib/unistd.in.h (close): Move declaration out of the
74859         FCHDIR_REPLACEMENT scope.
74860         (_gl_unregister_fd): New declaration.
74861         * lib/close.c: New file.
74862         * lib/fchdir.c (rpl_close): Remove function.
74863         * m4/close.m4: New file.
74864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74865         close.
74866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74867         REPLACE_CLOSE.
74868         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74869         REPLACE_CLOSE.
74870         * modules/fchdir (Depends-on): Add close.
74872 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74873             Bruno Haible  <bruno@clisp.org>
74875         * lib/fcntl.in.h (open): Simplify conditionals.
74876         (_gl_register_fd): New declaration.
74877         * lib/fchdir.c (rpl_open): Remove function.
74878         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74879         also.
74880         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74882         open.
74884 2008-10-09  Jim Meyering  <meyering@redhat.com>
74886         GNUmakefile: use the more name-space-friendly "_version"
74887         * top/GNUmakefile (_dummy): Update.
74888         (_version): Rename from "version".
74890 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74891             Bruno Haible  <bruno@clisp.org>
74893         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74894         rpl_close.
74895         (_gl_register_fd): New function, extracted from rpl_open.
74896         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74897         (rpl_open, rpl_opendir): Use _gl_register_fd.
74899 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74901         Fix organization of 'open' replacement.
74902         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74903         (gl_FUNC_OPEN): Use it.
74904         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74906 2008-10-08  Bruno Haible  <bruno@clisp.org>
74908         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74910 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74912         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74913         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74914         listen).
74916 2008-10-08  Eric Blake  <ebb9@byu.net>
74918         GNUmakefile: add 'make version' target
74919         * top/GNUmakefile (_curr-ver): Split version update rules...
74920         (version): ...into a target.
74922 2008-10-07  Bruno Haible  <bruno@clisp.org>
74924         Use a more portable replacement expression for -0.0L.
74925         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74926         instead of -0.0L. Fix m4 quotation.
74928         * tests/test-signbit.c: Include <float.h>.
74929         (minus_zero): New variable.
74930         (test_signbitl): Use minus_zero instead of -zero.
74931         * modules/signbit-tests (Depends-on): Add float.
74933         * tests/test-ceill.c: Include <float.h>.
74934         (zero): Remove variable.
74935         (minus_zero): New variable.
74936         (main): Use minus_zero instead of -zero.
74937         * modules/ceill-tests (Depends-on): Add float.
74939         * tests/test-floorl.c: Include <float.h>.
74940         (zero): Remove variable.
74941         (minus_zero): New variable.
74942         (main): Use minus_zero instead of -zero.
74943         * modules/floorl-tests (Depends-on): Add float.
74945         * tests/test-roundl.c: Include <float.h>.
74946         (zero): Remove variable.
74947         (minus_zero): New variable.
74948         (main): Use minus_zero instead of -zero.
74949         * modules/roundl-tests (Depends-on): Add float.
74951         * tests/test-truncl.c: Include <float.h>.
74952         (zero): Remove variable.
74953         (minus_zero): New variable.
74954         (main): Use minus_zero instead of -zero.
74955         * modules/truncl-tests (Depends-on): Add float.
74957         * tests/test-frexpl.c (zero): Remove variable.
74958         (minus_zero): New variable.
74959         (main): Use minus_zero instead of -zero.
74960         * modules/frexpl-tests (Depends-on): Add float.
74962         * tests/test-isnan.c (zerol): Remove variable.
74963         (minus_zerol): New variable.
74964         (test_long_double): Use minus_zerol instead of -zerol.
74965         * modules/isnan-tests (Depends-on): Add float.
74967         * tests/test-isnanl.h (zero): Remove variable.
74968         (minus_zero): New variable.
74969         (main): Use minus_zero instead of -zero.
74970         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74971         * modules/isnanl-tests (Depends-on): Add float.
74973         * tests/test-ldexpl.c (zero): Remove variable.
74974         (minus_zero): New variable.
74975         (main): Use minus_zero instead of -zero.
74976         * modules/ldexpl-tests (Depends-on): Add float.
74978         * tests/test-snprintf-posix.h (zerol): Remove variable.
74979         (minus_zerol): New variable.
74980         (test_function): Use minus_zerol instead of -zerol.
74981         * modules/snprintf-posix-tests (Depends-on): Add float.
74982         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74984         * tests/test-sprintf-posix.h (zerol): Remove variable.
74985         (minus_zerol): New variable.
74986         (test_function): Use minus_zerol instead of -zerol.
74987         * modules/sprintf-posix-tests (Depends-on): Add float.
74988         * modules/vsprintf-posix-tests (Depends-on): Add float.
74990         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74991         (minus_zerol): New variable.
74992         (test_function): Use minus_zerol instead of -zerol.
74993         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74995         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74996         (minus_zerol): New variable.
74997         (test_function): Use minus_zerol instead of -zerol.
74998         * modules/vasprintf-posix-tests (Depends-on): Add float.
75000 2008-10-07  Simon Josefsson  <simon@josefsson.org>
75002         * MODULES.html.sh (Support for building documentation): Mention
75003         pmccabe2html.  Sort entries.
75005         Add pmccabe2html module, from gnupdf.
75006         * build-aux/pmccabe.css: New file.
75007         * build-aux/pmccabe2html: New file.
75008         * m4/pmccabe2html.m4: New file.
75009         * modules/pmccabe2html: New file.
75011 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
75013         flock: new module
75014         * MODULES.html.sh: Add to list of modules.
75015         * lib/flock.c: flock implementation for Windows and Unix systems
75016         which have fcntl.
75017         * doc/glibc-functions/flock.texi: Update documentation.
75018         * lib/sys_file.in.h: <sys/file.h> header file.
75019         * m4/flock.m4: M4 macros.
75020         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
75021         * modules/flock: flock module.
75022         * modules/flock-tests: flock tests module.
75023         * modules/sys_file: sys/file.h module.
75024         * tests/test-flock.c: test suite for flock.
75026 2008-10-06  Jim Meyering  <meyering@redhat.com>
75028         bootstrap: check for LT_INIT more portably still ;-)
75029         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
75030         Spotted by Bruno Haible.
75032 2008-10-06  Eric Blake  <ebb9@byu.net>
75034         test-signbit: avoid tripping Irix cc bug on -0.0L
75035         * tests/test-signbit.c (minus_zerol): Delete, and replace with
75036         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
75037         entire testsuite consistent and avoids an Irix 6.2 bug.
75039 2008-10-05  Bruno Haible  <bruno@clisp.org>
75040             Jim Meyering  <jim@meyering.net>
75042         Add an option for ignoring EPIPE during close_stdout.
75043         * lib/closeout.h: Include <stdbool.h>.
75044         (close_stdout_set_ignore_EPIPE): New declaration.
75045         * lib/closeout.c: Include <stdbool.h>.
75046         (ignore_EPIPE): New variable.
75047         (close_stdout_set_ignore_EPIPE): New function.
75048         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
75049         * lib/close-stream.c (close_stream): Mention the possible EPIPE
75050         failure.
75051         * modules/closeout (Depends-on): Add stdbool.
75053 2008-10-05  Bruno Haible  <bruno@clisp.org>
75055         * modules/accept: New file.
75056         * modules/bind: New file.
75057         * modules/connect: New file.
75058         * modules/getpeername: New file.
75059         * modules/getsockname: New file.
75060         * modules/getsockopt: New file.
75061         * modules/listen: New file.
75062         * modules/recv: New file.
75063         * modules/recvfrom: New file.
75064         * modules/send: New file.
75065         * modules/sendto: New file.
75066         * modules/setsockopt: New file.
75067         * modules/socket: New file.
75068         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
75069         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
75070         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
75071         the particular module is requested. Add a link warning when the
75072         particular module is not requested.
75073         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
75074         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
75075         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
75076         the particular module is requested.
75077         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
75078         gl_SYS_SOCKET_H_DEFAULTS): New macros.
75079         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
75080         * modules/sys_socket (Depends-on): Add link-warning.
75081         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
75082         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
75083         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
75084         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
75085         GL_LINK_WARNING.
75086         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
75087         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
75088         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
75089         * doc/posix-functions/getpeername.texi: Mention the new module
75090         'getpeername'.
75091         * doc/posix-functions/getsockname.texi: Mention the new module
75092         'getsockname'.
75093         * doc/posix-functions/getsockopt.texi: Mention the new module
75094         'getsockopt'.
75095         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
75096         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
75097         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
75098         * doc/posix-functions/send.texi: Mention the new module 'send'.
75099         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
75100         * doc/posix-functions/setsockopt.texi: Mention the new module
75101         'setsockopt'.
75102         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
75103         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
75104         listen, connect, accept.
75105         * modules/select-tests (Depends-on): Likewise.
75107 2008-10-05  Bruno Haible  <bruno@clisp.org>
75109         * lib/winsock.c (strerror): Remove unused #undef.
75110         (rpl_close): Remove unused local variable.
75112         * modules/sys_socket (Depends-on); Add errno.
75114 2008-10-05  Bruno Haible  <bruno@clisp.org>
75116         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
75117         (select): Add a link warning when the 'select' module is not used.
75118         * modules/sys_select (Depends-on): Add link-warning.
75119         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
75120         Suggested by Paolo Bonzini.
75122 2008-10-05  Jim Meyering  <meyering@redhat.com>
75124         bootstrap: check for LT_INIT more portably
75125         * build-aux/bootstrap: Avoid using grep -E, since it's not
75126         portable enough.  Suggestion from Bruno Haible.
75128 2008-10-05  Bruno Haible  <bruno@clisp.org>
75130         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
75131         as being fixed by gnulib.
75133 2008-10-05  Bruno Haible  <bruno@clisp.org>
75135         * modules/select-tests: New file, mostly copied from
75136         modules/sys_select-tests.
75137         * tests/test-select.c: New file, mostly copied from
75138         tests/test-sys_select.c.
75139         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
75140         * modules/sys_select-tests (Depends-on): Remove all dependencies.
75141         (Makefile.am): Remove test_sys_select_LDADD.
75143         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
75144         to an undefined symbol, for an error message.
75145         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
75146         (gl_SYS_SELECT_H_DEFAULTS): New macro.
75147         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
75148         winsock-select.c here.
75149         * modules/sys_select (Files): Remove lib/winsock-select.c.
75150         (Depends-on): Remove alloca.
75151         (Makefile.am): Substitute GNULIB_SELECT.
75152         * modules/select: New file.
75153         * doc/posix-functions/select.texi: Update.
75155 2008-10-05  Bruno Haible  <bruno@clisp.org>
75157         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
75158         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
75159         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
75160         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
75161         getdtablesize.
75162         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
75163         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
75165 2008-10-05  Bruno Haible  <bruno@clisp.org>
75167         * modules/getdtablesize-tests: New file.
75168         * tests/test-getdtablesize.c: New file.
75170         New module 'getdtablesize'.
75171         * lib/unistd.in.h (getdtablesize): New declaration.
75172         * lib/getdtablesize.c: New file.
75173         * m4/getdtablesize.m4: New file.
75174         * modules/getdtablesize: New file.
75175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75176         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
75177         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
75178         HAVE_GETDTABLESIZE.
75179         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
75181 2008-10-05  Bruno Haible  <bruno@clisp.org>
75183         * modules/sched (Makefile.am): Fix typo.
75184         Reported by Simon Josefsson.
75186 2008-10-05  Jim Meyering  <meyering@redhat.com>
75188         bootstrap: check for LT_INIT, too
75189         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
75190         are deprecated.  Suggestion from Ralf Wildenhues.
75192 2008-10-05  Bruno Haible  <bruno@clisp.org>
75194         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
75195         overriding them by ours.
75196         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
75198 2008-10-05  Jim Meyering  <meyering@redhat.com>
75200         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
75201         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
75202         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
75204 2008-10-04  Bruno Haible  <bruno@clisp.org>
75206         * modules/dup2 (License): Change to LGPLv2+.
75207         * modules/sleep (License): Likewise.
75208         * modules/perror (License): Likewise.
75209         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
75210         Blake.
75211         * modules/signal (License): Likewise.
75212         * modules/sigprocmask (License): Likewise.
75213         * modules/raise (License): Change to LGPLv2+, with approval by Jim
75214         Meyering.
75216 2008-10-04  Bruno Haible  <bruno@clisp.org>
75218         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
75219         Reported by Rainer Tammer <tammer@tammer.net>.
75221 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
75222             Bruno Haible  <bruno@clisp.org>
75224         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
75225         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
75226         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
75228 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
75230         filevercmp: new module
75231         * lib/filevercmp.h: New function filevercmp comparing version strings.
75232         * lib/filevercmp.c: Implementation of filevercmp function.
75233         * modules/filevercmp: Module metadata.
75234         * tests/test-filevercmp.c: Unit test for new module.
75235         * modules/filevercmp-tests: Unit test metadata.
75236         * MODULES.html.sh: Add filevercmp module.
75238 2008-10-03  Bruno Haible  <bruno@clisp.org>
75240         * lib/c-ctype.h: Add comment.
75241         Reported by Jim Meyering.
75243 2008-10-02  Bruno Haible  <bruno@clisp.org>
75245         * modules/posix_spawn-internal (Depends-on): Add 'open'.
75247 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75249         * build-aux/bootstrap: Allow renaming bootstrap, and change the
75250         name of bootstrap.conf accordingly.
75252 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75254         * build-aux/bootstrap: Install git-merge-changelog configuration
75255         items into .gitconfig if needed.
75257 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75259         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
75260         git repository, and initialize/update it accordingly.
75262 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
75264         * modules/fsync-tests: New file.
75265         * tests/test-fsync.c: New file.
75267         New module 'fsync'.
75268         * lib/fsync.c: New file.
75269         * m4/fsync.m4: New file.
75270         * modules/fsync: New file.
75271         * lib/unistd.in.h (fsync): New declaration.
75272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
75273         GNULIB_FSYNC and HAVE_FSYNC.
75274         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
75275         * MODULES.html.sh (posix_functions): Add fsync.
75276         * doc/posix-functions/fsync.texi: Mention the new module.
75278 2008-10-02  Jim Meyering  <meyering@redhat.com>
75280         fts.c: sync with similar code from coreutils' remove.c
75281         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
75282         Guard also with "#if defined __linux__", since for now at least,
75283         this code is Linux-kernel-specific.
75285 2008-10-02  Jim Meyering  <meyering@redhat.com>
75287         fts: bug fixes
75288         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
75289         Include <sys/vfs.h>, not <sys/statfs.h>.
75291         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
75292         Include <sys/vfs.h>, not <sys/statfs.h>.
75294 2008-10-01  Bruno Haible  <bruno@clisp.org>
75296         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
75297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
75298         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
75299         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
75300         * doc/posix-functions/posix_spawnp.texi: Likewise.
75301         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
75302         whether posix_spawn actually works.
75303         * m4/pipe.m4 (gl_PIPE): Likewise.
75304         * modules/execute (Files): Add m4/posix_spawn.m4.
75305         * modules/pipe (Files): Add m4/posix_spawn.m4.
75306         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
75308 2008-10-01  Jim Meyering  <meyering@redhat.com>
75310         remove trailing spaces
75311         * NEWS: Likewise.
75312         * lib/poll.c (poll): Likewise.
75313         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
75314         * lib/winsock.c (rpl_close): Likewise.
75315         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
75316         * modules/yield: Likewise.
75317         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
75318         * tests/test-sys_select.c (connect_to_socket): Likewise.
75320         fts.c: adjust a new interface to be more generally useful
75321         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
75322         (fts_build): Adjust caller.
75324 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75326         * modules/cond-tests: New file.
75327         * tests/test-cond.c: New file.
75329 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75330             Bruno Haible  <bruno@clisp.org>
75332         * modules/cond (Dependencies): Add errno, time.
75333         * lib/glthread/cond.h: Include <time.h>.
75334         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75335         across platforms.
75337 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75338             Bruno Haible  <bruno@clisp.org>
75340         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75342 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75343             Bruno Haible  <bruno@clisp.org>
75345         * modules/tls-tests (Depends-on): Add thread, yield.
75346         (configure.ac): Remove all checks.
75347         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75348         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75349         gl_thread_self): Remove definitions. Include glthread/thread.h and
75350         glthread/yield.h instead.
75351         (test_tls): Pass an additional NULL argument to gl_thread_join.
75353 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75354             Bruno Haible  <bruno@clisp.org>
75356         * modules/lock-tests (Depends-on): Add thread, yield.
75357         (configure.ac): Remove all checks.
75358         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75359         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75360         gl_thread_self): Remove definitions. Include glthread/thread.h and
75361         glthread/yield.h instead.
75362         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75363         additional NULL argument to gl_thread_join.
75365 2008-09-30  Bruno Haible  <bruno@clisp.org>
75367         Fix the Win32 implementation of the 'thread' module.
75368         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75369         pointer type.
75370         (gl_thread_self): Invoke gl_thread_self_func.
75371         (gl_thread_self_func): New declaration.
75372         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75373         (do_init_self_key, init_self_key): New functions.
75374         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75375         Remove some fields.
75376         (running_threads, running_lock): Remove variables.
75377         (get_current_thread_handle): New function.
75378         (gl_thread_self_func, wrapper_func, glthread_create_func,
75379         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75380         simplified.
75382 2008-09-30  Bruno Haible  <bruno@clisp.org>
75384         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75385         files.
75387 2008-09-30  Jim Meyering  <meyering@redhat.com>
75389         fts.m4: correct the test for statfs.f_type
75390         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75391         when checking for statfs.f_type.
75393 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75395         tests: avoid some compiler warnings
75396         * tests/test-memchr.c (main): Pass NULL indirectly.
75397         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75399 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75401         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75402         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75403         exactly specified dayshifts.
75404         (dayshift): New rule.
75405         (rel): Add dayshift.
75406         (relative_time_table) [tomorrow, yesterday, today, now]:
75407         Use tDAY_SHIFT in place of tDAY_UNIT.
75408         * tests/test-getdate.c: Add tests for now-disallowed countable
75409         dayshifts, e.g., "4 yesterday ago".
75411 2008-09-29  Bruno Haible  <bruno@clisp.org>
75413         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75414         * tests/test-posix_spawn1.in.sh: Renamed from
75415         tests/test-posix_spawn.in.sh.
75416         * tests/test-posix_spawn2.c: New file.
75417         * tests/test-posix_spawn2.in.sh: New file.
75418         * modules/posix_spawnp-tests (Files): Update.
75419         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75421 2008-09-29  Bruno Haible  <bruno@clisp.org>
75423         Propagate effects of putenv/setenv/unsetenv to child processes.
75424         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75425         * lib/pipe.c (create_pipe): Likewise.
75427 2008-09-29  Bruno Haible  <bruno@clisp.org>
75429         Enable use of shell scripts as executables in mingw.
75430         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75431         run the program as a shell script.
75432         * lib/pipe.c (create_pipe): Likewise.
75433         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75434         resulting array.
75436 2008-09-29  Eric Blake  <ebb9@byu.net>
75438         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75440 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75442         * doc/posix-functions/accept.texi: Update mingw problems.
75443         * doc/posix-functions/bind.texi: Update mingw problems.
75444         * doc/posix-functions/close.texi: Update mingw problems.
75445         * doc/posix-functions/connect.texi: Update mingw problems.
75446         * doc/posix-functions/getpeername.texi: Update mingw problems.
75447         * doc/posix-functions/getsockname.texi: Update mingw problems.
75448         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75449         * doc/posix-functions/ioctl.texi: Update mingw problems.
75450         * doc/posix-functions/listen.texi: Update mingw problems.
75451         * doc/posix-functions/recv.texi: Update mingw problems.
75452         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75453         * doc/posix-functions/select.texi: Update mingw problems.
75454         * doc/posix-functions/send.texi: Update mingw problems.
75455         * doc/posix-functions/sendto.texi: Update mingw problems.
75456         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75457         * doc/posix-functions/socket.texi: Update mingw problems.
75459 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75460             Bruno Haible  <bruno@clisp.org>
75462         * lib/sys_select.in.h: Include sys/time.h.
75463         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75464         * modules/sys_select: Depend on sys_time.
75465         * tests/test-sys_select.c: Test that sys/select.h defines struct
75466         timeval fully.
75468 2008-09-29  Bruno Haible  <bruno@clisp.org>
75470         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75471         * lib/sys_select.in.h: Likewise.
75473 2008-09-29  Bruno Haible  <bruno@clisp.org>
75475         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75477 2008-09-29  Bruno Haible  <bruno@clisp.org>
75479         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75480         Set LIBSOCKET instead of augmenting LIBS.
75481         * modules/sockets (Link): New section.
75482         * modules/sockets-tests (test_sockets_LDADD): New variable.
75483         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75484         * modules/poll-tests (test_poll_LDADD): New variable.
75485         * NEWS: Document the change.
75487 2008-09-29  Bruno Haible  <bruno@clisp.org>
75489         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75490         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75491         ARPA_INET_H directly.
75492         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75494 2008-09-28  Bruno Haible  <bruno@clisp.org>
75496         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75497         from gl_HEADER_SYS_SOCKET.
75498         (gl_HEADER_SYS_SOCKET): Invoke it.
75499         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75501 2008-09-28  Bruno Haible  <bruno@clisp.org>
75503         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75504         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75505         Needed on OSF/1 4.0.
75507 2008-09-28  Bruno Haible  <bruno@clisp.org>
75509         Override open more carefully.
75510         * lib/open.c (orig_open): New function.
75511         (rpl_open): Use orig_open instead of open.
75512         * lib/fcntl.in.h: Add special invocation convention.
75513         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75514         (gl_FUNC_OPEN): Invoke it.
75516         Override freopen more carefully.
75517         * lib/freopen.c (orig_freopen): New function.
75518         (rpl_freopen): Use orig_freopen instead of freopen.
75519         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75520         (gl_FUNC_FREOPEN): Invoke it.
75522         Override fopen more carefully.
75523         * lib/fopen.c (orig_fopen): New function.
75524         (rpl_fopen): Use orig_fopen instead of fopen.
75525         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75526         (gl_FUNC_FOPEN): Invoke it.
75527         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75529 2008-09-28  Bruno Haible  <bruno@clisp.org>
75531         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75532         SIGPIPE.
75534 2008-09-28  Bruno Haible  <bruno@clisp.org>
75536         * tests/test-sigaction.c (handler, main): Disable the check whether
75537         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75538         glibc systems with LinuxThreads.
75540 2008-09-28  Bruno Haible  <bruno@clisp.org>
75542         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75544         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75545         with AIX xlc.
75546         * lib/fcntl.in.h (open): Likewise.
75547         Reported by Rainer Tammer <tammer@tammer.net>.
75549 2008-09-28  Bruno Haible  <bruno@clisp.org>
75551         * modules/posix_spawnp-tests: New file.
75552         * tests/test-posix_spawn.c: New file.
75553         * tests/test-posix_spawn.in.sh: New file.
75555         New module 'posix_spawnp'.
75556         * modules/posix_spawnp: New file.
75557         * lib/spawnp.c: New file, from GNU libc with modifications.
75558         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75560         New module 'posix_spawn'.
75561         * modules/posix_spawn: New file.
75562         * lib/spawn.c: New file, from GNU libc with modifications.
75563         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75565         New module 'posix_spawnattr_destroy'.
75566         * modules/posix_spawnattr_destroy: New file.
75567         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75568         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75569         module.
75571         New module 'posix_spawnattr_setsigmask'.
75572         * modules/posix_spawnattr_setsigmask: New file.
75573         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75574         modifications.
75575         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75576         new module.
75578         New module 'posix_spawnattr_getsigmask'.
75579         * modules/posix_spawnattr_getsigmask: New file.
75580         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75581         modifications.
75582         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75583         new module.
75585         New module 'posix_spawnattr_setsigdefault'.
75586         * modules/posix_spawnattr_setsigdefault: New file.
75587         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75588         modifications.
75589         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75590         new module.
75592         New module 'posix_spawnattr_getsigdefault'.
75593         * modules/posix_spawnattr_getsigdefault: New file.
75594         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75595         modifications.
75596         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75597         new module.
75599         New module 'posix_spawnattr_setschedpolicy'.
75600         * modules/posix_spawnattr_setschedpolicy: New file.
75601         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75602         modifications.
75603         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75604         new module.
75606         New module 'posix_spawnattr_getschedpolicy'.
75607         * modules/posix_spawnattr_getschedpolicy: New file.
75608         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75609         modifications.
75610         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75611         new module.
75613         New module 'posix_spawnattr_setschedparam'.
75614         * modules/posix_spawnattr_setschedparam: New file.
75615         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75616         modifications.
75617         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75618         new module.
75620         New module 'posix_spawnattr_getschedparam'.
75621         * modules/posix_spawnattr_getschedparam: New file.
75622         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75623         modifications.
75624         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75625         new module.
75627         New module 'posix_spawnattr_setpgroup'.
75628         * modules/posix_spawnattr_setpgroup: New file.
75629         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75630         modifications.
75631         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75632         module.
75634         New module 'posix_spawnattr_getpgroup'.
75635         * modules/posix_spawnattr_getpgroup: New file.
75636         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75637         modifications.
75638         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75639         module.
75641         New module 'posix_spawnattr_setflags'.
75642         * modules/posix_spawnattr_setflags: New file.
75643         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75644         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75645         module.
75647         New module 'posix_spawnattr_getflags'.
75648         * modules/posix_spawnattr_getflags: New file.
75649         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75650         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75651         module.
75653         New module 'posix_spawnattr_init'.
75654         * modules/posix_spawnattr_init: New file.
75655         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75656         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75657         module.
75659         New module 'posix_spawn_file_actions_destroy'.
75660         * modules/posix_spawn_file_actions_destroy: New file.
75661         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75662         modifications.
75663         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75664         the new module.
75666         New module 'posix_spawn_file_actions_addopen'.
75667         * modules/posix_spawn_file_actions_addopen: New file.
75668         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75669         modifications.
75670         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75671         the new module.
75673         New module 'posix_spawn_file_actions_adddup2'.
75674         * modules/posix_spawn_file_actions_adddup2: New file.
75675         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75676         modifications.
75677         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75678         the new module.
75680         New module 'posix_spawn_file_actions_addclose'.
75681         * modules/posix_spawn_file_actions_addclose: New file.
75682         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75683         modifications.
75684         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75685         the new module.
75687         New module 'posix_spawn_file_actions_init'.
75688         * modules/posix_spawn_file_actions_init: New file.
75689         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75690         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75691         new module.
75693         New module 'posix_spawn-internal'.
75694         * modules/posix_spawn-internal: New file.
75695         * lib/spawn_int.h: New file, from GNU libc with modifications.
75696         * lib/spawni.c: New file, from GNU libc with modifications.
75697         * m4/posix_spawn.m4: New file.
75699         New module 'spawn'.
75700         * modules/spawn: New file.
75701         * lib/spawn.in.h: New file, from GNU libc with modifications.
75702         * m4/spawn_h.m4: New file.
75703         * doc/posix-headers/spawn.texi: Mention the new module.
75705 2008-09-28  Bruno Haible  <bruno@clisp.org>
75707         * modules/sched-tests: New file.
75708         * tests/test-sched.c: New file.
75710         New module 'sched'.
75711         * modules/sched: New file.
75712         * lib/sched.in.h: New file.
75713         * m4/sched_h.m4: New file.
75714         * doc/posix-headers/sched.texi: Mention the new module.
75716 2008-09-27  Eric Blake  <ebb9@byu.net>
75718         Fix previous patch, and tweak references to $0.
75719         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75720         (func_version, func_gnulib_dir): Don't call this program
75721         gnulib-tool.
75722         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75723         with using $0 in function.
75724         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75725         (func_fatal_error): Reuse the name the user invoked us with.
75727 2008-09-27  Bruno Haible  <bruno@clisp.org>
75729         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75730         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75731         (gl_ICONV_H): Not here.
75732         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75733         instead of assigning ICONV_H directly.
75735         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75737         WCHAR_H directly.
75739 2008-09-27  Bruno Haible  <bruno@clisp.org>
75741         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75742         * modules/arpa_inet (Depends-on): Add link-warning.
75743         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75744         * modules/unistd (Makefile.am): Likewise.
75746 2008-09-26  Bruno Haible  <bruno@clisp.org>
75748         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75749         variables.
75750         (func_version): Essentially copied from gnulib-tool.
75751         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75752         func_readlink): Copied from gnulib-tool.
75754 2008-09-26  Bruno Haible  <bruno@clisp.org>
75756         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75757         invoking git-version-gen.
75759 2008-09-26  Bruno Haible  <bruno@clisp.org>
75761         * posix-modules: Update to directory names changed on 2008-01-19.
75762         Remove commas in output before splitting into words. No more need to
75763         avoid 'ftruncate' since 2007-02-19.
75765 2008-09-26  Bruno Haible  <bruno@clisp.org>
75767         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75769 2008-09-26  Bruno Haible  <bruno@clisp.org>
75771         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75772         * modules/fwriteerror (Depends-on): Add errno.
75774 2008-09-26  Bruno Haible  <bruno@clisp.org>
75776         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75777         * tests/test-vc-list-files-cvs.sh: Likewise.
75779 2008-09-26  Bruno Haible  <bruno@clisp.org>
75781         * doc/posix-headers/sys_resource.texi: Reorder items.
75783 2008-09-26  Jim Meyering  <meyering@redhat.com>
75785         fts: tweak inode comparison function
75786         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75787         inode numbers, as documented.
75789         fts: sort dirent entries on inode number before traversing
75790         This avoids a quadratic, seek-related performance penalty when
75791         operating on a directory containing many entries (measurable at 10k;
75792         3.5 hours at 2 million entries with a cold cache) on certain types
75793         of file systems, including ext3 and ext4, but not tmpfs.
75794         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75795         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75796         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75797         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75798         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75799         (fts_build): Set the stat.st_ino member from D_INO.
75800         If it is likely to be useful, sort dirent entries on inode number.
75802         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75803         and the struct statfs.f_type member.
75804         * modules/fts (Depends-on): Add d-ino.
75806 2008-09-26  Bruno Haible  <bruno@clisp.org>
75808         * modules/sigpipe-die (Depends-on): Add sigpipe.
75810         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75811         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75812         and GNULIB_STDIO_H_SIGPIPE are set.
75813         * lib/stdio-write.c: New file.
75814         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75815         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75816         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75817         REPLACE_STDIO_WRITE_FUNCS.
75818         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75819         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75820         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75821         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75822         * modules/stdio (Files): Add lib/stdio-write.c.
75823         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75824         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75825         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75826         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75827         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75828         REPLACE_FPRINTF_POSIX.
75829         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75830         REPLACE_PRINTF_POSIX.
75831         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75832         REPLACE_VFPRINTF_POSIX.
75833         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75834         REPLACE_VPRINTF_POSIX.
75835         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75836         SIGPIPE issue.
75837         * doc/posix-functions/fputc.texi: Likewise.
75838         * doc/posix-functions/fputs.texi: Likewise.
75839         * doc/posix-functions/fwrite.texi: Likewise.
75840         * doc/posix-functions/printf.texi: Likewise.
75841         * doc/posix-functions/putc.texi: Likewise.
75842         * doc/posix-functions/putchar.texi: Likewise.
75843         * doc/posix-functions/puts.texi: Likewise.
75844         * doc/posix-functions/vfprintf.texi: Likewise.
75845         * doc/posix-functions/vprintf.texi: Likewise.
75847         * modules/safe-write (Depends-on): Add write.
75849         * modules/sigpipe-tests: New file.
75850         * tests/test-sigpipe.c: New file.
75851         * tests/test-sigpipe.sh: New file.
75853         * modules/write: New file.
75854         * lib/unistd.in.h: Include <sys/types.h>.
75855         (write): New declaration.
75856         * lib/write.c: New file.
75857         * m4/write.m4: New file.
75858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75859         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75860         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75861         GNULIB_WRITE, REPLACE_WRITE.
75862         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75863         and the SIGPIPE issue.
75865         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75866         (raise): New declaration.
75867         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75868         (ext_signal): New function.
75869         (rpl_raise): New function.
75870         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75871         GNULIB_SIGNAL_H_SIGPIPE.
75872         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75873         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75875         * modules/sigpipe: New file.
75876         * m4/sigpipe.m4: New file.
75878 2008-09-25  Derek Price  <derek@ximbiot.com>
75879             Bruno Haible  <bruno@clisp.org>
75881         * gnulib-tool (func_import): Report all license incompatibilities, not
75882         just the first one.
75884 2008-09-25  Bruno Haible  <bruno@clisp.org>
75886         * gnulib-tool (func_import): When computing the edits, consider not
75887         only the Makefile.ams that exist but also those that will be generated.
75889 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75891         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75892         fixes gnulib-tool --test warning about duplicate dependency.
75894 2008-09-25  Bruno Haible  <bruno@clisp.org>
75896         * gnulib-tool: Don't ask the user to perform edits in the generated
75897         Makefile.ams.
75898         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75899         apply to the Makefile.am being generated.
75900         (func_emit_tests_Makefile_am): Execute edits that apply to the
75901         Makefile.am being generated.
75902         (func_import): Setup list of Makefile.am edits before emitting the
75903         Makefile.ams, not at the end.
75904         (func_create_testdir): Update.
75905         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75907 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75909         * gnulib-tool (func_import): Store the --tests-base option in the
75910         comment in gnulib-cache.m4.
75912 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75914         * NEWS: Document increased portability that sys_select now provides.
75916         * lib/sys_select.in.h: Install select wrapper.
75917         * lib/sys_socket.in.h: Use more descriptive name when there is no
75918         select wrapper.
75919         * lib/winsock-select.c: New.
75920         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75921         Require gl_HEADER_SYS_SOCKET.
75922         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75923         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75924         * tests/test-sys_select.c: Add functional tests.
75926 2008-09-24  Eric Blake  <ebb9@byu.net>
75928         open, fopen: close fd leak in last patch
75929         * lib/open.c (rpl_open): Close fd before returning error.
75930         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75931         * doc/posix-functions/open.texi (open): Document that Irix also
75932         has the bug.
75933         * doc/posix-functions/fopen.texi (fopen): Likewise.
75934         Reported by Paolo Bonzini.
75936 2008-09-24  Bruno Haible  <bruno@clisp.org>
75938         Ensure that a filename ending in a slash cannot be used to access a
75939         non-directory.
75940         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75941         to check whether it's really a directory.
75942         * lib/fopen.c: Include fcntl.h, unistd.h.
75943         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75944         and fdopen().
75945         * modules/fopen (Depends-on): Add unistd.
75946         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75947         * tests/test-fopen.c (main): Likewise.
75948         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75949         * doc/posix-functions/fopen.texi: Likewise.
75950         Reported by Eric Blake.
75952 2008-09-23  Eric Blake  <ebb9@byu.net>
75954         c-stack: avoid compiler optimizations when provoking overflow
75955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75956         recursion harder to optimize, to ensure a stack overflow occurs.
75957         * tests/test-c-stack.c (recurse): Likewise.
75958         Borrowed from libsigsegv.
75960         c-stack: work around Irix sigaltstack bug
75961         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75962         whether sigaltstack uses wrong end of stack_t (copied in part from
75963         libsigsegv).
75964         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75965         Irix bug, without requiring an over-allocation.
75966         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75967         bug.
75969         fopen: document mingw bug on directories
75970         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75971         not allowing a stream visiting a directory, even though reading
75972         from such a stream is not portable.
75974 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75976         * lib/poll.c: Rewrite.
75977         * modules/poll: Depend on alloca.
75979 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75981         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75982         instead define prototypes for a full set of wrappers.  Ensure
75983         that Cygwin does not use the compatibility code, which is only
75984         for MinGW.
75985         * lib/winsock.c: New.
75986         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75987         * modules/sys_socket: Add lib/winsock.c.
75989         * modules/poll-tests: Add errno and perror.
75990         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75992 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75994         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75996 2008-09-23  Bruno Haible  <bruno@clisp.org>
75998         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75999         * doc/glibc-functions/*: Likewise.
76001 2008-09-23  Simon Josefsson  <simon@josefsson.org>
76003         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
76004         success.
76006 2008-09-22  Eric Blake  <ebb9@byu.net>
76007             Bruno Haible  <bruno@clisp.org>
76009         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
76010         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
76011         supply %A but mishandle pseudo-NaN.
76012         Reported by Simon Josefsson.
76014 2008-09-21  Bruno Haible  <bruno@clisp.org>
76016         * tests/test-lock.c (main): Tweak skip message.
76017         * tests/test-tls.c (main): Likewise.
76019 2008-09-21  Bruno Haible  <bruno@clisp.org>
76021         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
76022         whether 'struct sigaction' has sa_sigaction here...
76023         (gl_PREREQ_SIG_HANDLER_H): ... not here.
76024         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
76026 2008-09-21  Bruno Haible  <bruno@clisp.org>
76028         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
76029         section.
76030         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
76031         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
76032         the new section.
76033         (Support for obsolete systems lacking POSIX:2001): New section.
76034         (String handling <string.h>): Move strdup to the new section.
76035         Suggested by Simon Josefsson and Paolo Bonzini.
76037 2008-09-21  Bruno Haible  <bruno@clisp.org>
76039         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
76040         exponents in %e and %g results on 'long double'. Needed for mingw's
76041         improved *printf functions.
76042         * tests/test-vasprintf-posix.c (test_function): Likewise.
76043         * tests/test-snprintf-posix.h (test_function): Likewise.
76044         * tests/test-sprintf-posix.h (test_function): Likewise.
76045         Reported by Eric Blake.
76047 2008-09-21  Bruno Haible  <bruno@clisp.org>
76049         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
76050         * tests/test-sprintf-posix.h (test_function): Likewise.
76052 2008-09-21  Bruno Haible  <bruno@clisp.org>
76054         * modules/getpass (Depends-on): Add strdup-posix.
76056         New module 'strdup-posix'.
76057         * modules/strdup-posix: New file.
76058         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
76059         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
76060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76061         REPLACE_STRDUP.
76062         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
76063         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
76064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76065         strdup-posix.
76067         * modules/strdup (Depends-on): Remove malloc-posix.
76069 2008-09-20  Bruno Haible  <bruno@clisp.org>
76071         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
76072         Wildenhues.
76074 2008-09-20  Bruno Haible  <bruno@clisp.org>
76076         Ensure that wint_t gets defined on IRIX 5.3.
76077         * lib/wchar.in.h (wint_t): Define if not defined by the system.
76078         * lib/wctype.in.h (wint_t): Likewise.
76079         (__wctype_wint_t): Remove type.
76080         (isw*): Use wint_t instead of __wctype_wint_t.
76081         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
76082         * modules/wchar (Files): Add m4/wint_t.m4.
76083         (Makefile.am): Substitute HAVE_WINT_T.
76084         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
76085         * tests/test-wctype.c: Check that wint_t is defined.
76086         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
76087         * doc/posix-headers/wctype.texi: Likewise.
76088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76090 2008-09-18  Bruno Haible  <bruno@clisp.org>
76092         * gnulib-tool (func_exit): Update comment.
76094 2008-09-18  Simon Josefsson  <simon@josefsson.org>
76096         * modules/getaddrinfo (Depends-on): Remove strdup, this module
76097         assumes strdup exists and does not depend on strdup to return
76098         ENOMEM on out of memory conditions.
76100 2008-09-18  Bruno Haible  <bruno@clisp.org>
76102         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
76103         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
76104         digits for the exponent.
76106 2008-09-18  Jim Meyering  <meyering@redhat.com>
76107             Bruno Haible  <bruno@clisp.org>
76109         * lib/vasnprintf.c (decimal_point_char): Define also if
76110         NEED_PRINTF_INFINITE_LONG_DOUBLE.
76112 2008-09-16  Bruno Haible  <bruno@clisp.org>
76113         and Eric Blake  <ebb9@byu.net>
76115         vasnprintf: support Irix 5.3
76116         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
76117         that mishandle long double infinity.
76118         Reported by Tom G. Christensen.
76120 2008-09-16  Bruno Haible  <bruno@clisp.org>
76122         * doc/glibc-functions/scandir.texi: Mention the function is missing on
76123         Solaris 9.
76124         * doc/glibc-functions/alphasort.texi: Likewise.
76125         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
76127 2008-09-16  Jim Meyering  <meyering@redhat.com>
76129         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
76130         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
76131         a umask modification leak out of a subshell.  Otherwise, the
76132         opensolaris /bin/sh would be accepted and thus cause unwarranted
76133         failures in the coreutils test suite.
76135 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
76137         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
76138         to succeed.
76140 2008-09-16  Jim Meyering  <meyering@redhat.com>
76142         avoid spurious test failure when library is built without ACL support
76143         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
76144         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
76145         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
76146         * tests/test-copy-acl.sh: Likewise.
76148 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76150         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
76151         based on character occurrence counts.
76153 2008-09-15  Eric Blake  <ebb9@byu.net>
76155         tests: avoid some compiler warnings
76156         * tests/test-memchr.c (main): Pass NULL indirectly.
76157         * tests/test-closein.c (main): Avoid unused variable.
76159 2008-09-15  Bruno Haible  <bruno@clisp.org>
76161         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
76162         are missing on OpenBSD 4.0 individually.
76163         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76165 2008-09-15  Bruno Haible  <bruno@clisp.org>
76167         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
76168         * doc/posix-functions/strerror.texi: Mention also Cygwin.
76169         * doc/posix-functions/perror.texi: Likewise.
76170         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
76171         is missing.
76172         Reported by Eric Blake.
76174         * lib/errno.in.h: Use replacement values >= 2000.
76175         Reported by Eric Blake.
76177 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76179         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
76180         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
76181         limit.
76182         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
76183         compareseq was aborted.
76185 2008-09-14  Bruno Haible  <bruno@clisp.org>
76187         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
76188         yvec_edit_count.
76189         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
76190         (fstrcmp_bounded): Simplify result computation accordingly.
76192 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76194         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
76195         (fstrcmp): Define in terms of fstrcmp_bounded.
76196         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
76197         lower_bound argument.
76198         Return quickly if the result is certainly < lower_bound.
76199         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
76201 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76203         * lib/diffseq.h (EARLY_ABORT): New macro.
76204         (compareseq): Change return type to bool. Return true when EARLY_ABORT
76205         evaluates to true.
76207 2008-09-14  Bruno Haible  <bruno@clisp.org>
76209         * modules/perror-tests: New file.
76210         * tests/test-perror.sh: New file.
76211         * tests/test-perror.c: New file.
76213         New module 'perror'.
76214         * lib/stdio.in.h (perror): New declaration.
76215         * lib/perror.c: New file.
76216         * m4/perror.m4: New file.
76217         * modules/perror: New file.
76218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
76219         * doc/posix-functions/perror.texi: Mention the perror module.
76220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
76221         REPLACE_PERROR.
76222         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
76223         REPLACE_PERROR.
76225 2008-09-14  Bruno Haible  <bruno@clisp.org>
76227         * modules/stdio (Makefile.am): Reorder to match the order in
76228         lib/stdio.in.h.
76229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76231 2008-09-13  Bruno Haible  <bruno@clisp.org>
76233         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
76235 2008-09-13  Bruno Haible  <bruno@clisp.org>
76237         Extend strerror to cover the added errno values.
76238         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
76239         (rpl_strerror): Provide error messages for the added errno values and
76240         for the WSA* values.
76241         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
76242         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
76243         strerror.
76244         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
76245         * modules/strerror (Depends-on): Add errno.
76246         * doc/posix-functions/strerror.texi: Document the change.
76247         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
76248         and EOVERFLOW.
76250 2008-09-13  Bruno Haible  <bruno@clisp.org>
76252         * modules/EOVERFLOW: Remove file.
76253         * m4/eoverflow.m4: Remove file.
76254         * modules/EOVERFLOW-tests: Remove file.
76255         * tests/test-EOVERFLOW.c: Remove file.
76256         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
76257         * modules/ftell (Depends-on): Likewise.
76258         * modules/getdelim (Depends-on): Likewise.
76259         * modules/getugroups (Depends-on): Likewise.
76260         * modules/poll (Depends-on): Likewise.
76261         * modules/snprintf (Depends-on): Likewise.
76262         * modules/sprintf-posix (Depends-on): Likewise.
76263         * modules/vasnprintf (Depends-on): Likewise.
76264         * modules/vasprintf (Depends-on): Likewise.
76265         * modules/vfprintf-posix (Depends-on): Likewise.
76266         * modules/vsnprintf (Depends-on): Likewise.
76267         * modules/vsprintf-posix (Depends-on): Likewise.
76268         * modules/xvasprintf (Depends-on): Likewise.
76269         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76270         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
76271         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
76272         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
76273         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76274         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
76275         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
76276         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
76277         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76278         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
76279         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
76280         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
76281         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76282         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
76283         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
76284         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
76285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76286         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
76287         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
76288         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
76289         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76290         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
76291         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
76292         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
76293         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
76294         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76295         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
76296         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
76297         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
76298         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
76299         * MODULES.html.sh: Remove EOVERFLOW.
76300         * NEWS: Mention the change.
76302 2008-09-13  Bruno Haible  <bruno@clisp.org>
76304         * modules/errno-tests: New file.
76305         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
76307         * lib/errno.in.h: New file.
76308         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
76309         * modules/errno: New file.
76310         * doc/posix-headers/errno.texi: Update documentation.
76311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
76313 2008-09-13  Bruno Haible  <bruno@clisp.org>
76315         * tests/test-poll.c: Use #if for native Windows, rather than testing
76316         __MSVCRT__.
76318 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76319             Bruno Haible  <bruno@clisp.org>
76321         * lib/glob.c: Don't include <pwd.h> on native Windows.
76322         (WINDOWS32): New macro.
76323         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
76325 2008-09-13  Bruno Haible  <bruno@clisp.org>
76327         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
76328         (ETIMEDOUT): Remove macro.
76329         (glthread_cond_timedwait_multithreaded): New declaration.
76330         (glthread_cond_timedwait): Use it.
76331         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76332         (glthread_cond_timedwait_multithreaded): New function.
76334 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76336         * modules/poll-tests: Do not check for io.h.
76337         * tests/test-poll.c: Check for __MSVCRT__ instead.
76339 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76341         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76342         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76343         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76345 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76347         * modules/poll-tests: New.
76348         * tests/test-poll.c: New.
76350 2008-09-12  Eric Blake  <ebb9@byu.net>
76352         frexp: test for NetBSD failure on -0.0
76353         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76354         not all, bugs from NetBSD 3.0 have been fixed.
76355         * doc/posix-functions/frexp.texi (frexp): Document bug.
76356         Reported by Thomas Klausner.
76358         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76359         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76360         literal -0.0.
76361         Reported by Jonathan C. Patschke <jp@centtech.com>.
76363 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76365         * lib/glthread/cond.h: Use dummy implementation also if
76366         USE_WIN32_THREADS.
76368 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76370         * modules/fnmatch-posix (License): Change to LGPLv2+.
76371         * modules/fnmatch-gnu (License): Likewise.
76373 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76375         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76377 2008-09-11  Jim Meyering  <meyering@redhat.com>
76379         * users.txt: Add gtk-vnc.
76381 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76383         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76384         rotate amounts.
76386         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76387         required for 16-bit and 8-bit rotates.
76388         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76389         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76390         UINT8_MAX instead of hard-coded constants.
76391         Suggested by Paul Eggert.
76393 2008-09-07  Bruno Haible  <bruno@clisp.org>
76395         * tests/test-striconveh.c (main): Check behaviour when converting from
76396         UTF-7.
76398         Make striconveh work better with stateful encodings.
76399         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76400         that iconv does not increment the inptr when returning -1/EINVAL.
76402 2008-09-07  Bruno Haible  <bruno@clisp.org>
76404         * build-aux/config.rpath: Update according to libtool-2.2.6.
76405         * build-aux/config.libpath: Likewise.
76407 2008-09-06  Bruno Haible  <bruno@clisp.org>
76409         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76410         * lib/freadptr.c (freadptr): Likewise.
76411         * lib/freadseek.c (freadptrinc): Likewise.
76412         Reported by Simon Josefsson.
76414 2008-09-06  Bruno Haible  <bruno@clisp.org>
76416         * modules/freadptr (License): Change to LGPLv2+.
76417         * modules/freadseek (License): Likewise.
76418         Suggested by Eric Blake.
76420         * modules/memchr2 (License): Change to LGPLv2+.
76421         Approved by Eric Blake.
76423 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76424             Bruno Haible  <bruno@clisp.org>
76426         Make gnulib-tool work with native 'sed' on AIX.
76427         * gnulib-tool (sed_noop): New variable.
76428         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76429         func_add_or_update, func_create_testdir): Use it to initialize sed
76430         script variables.
76431         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76433 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76434             Bruno Haible  <bruno@clisp.org>
76436         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76437         also works after #include directives.
76439 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76441         getdate.y: reject an out-of-range timezone value
76442         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76443         the range [-24...+24].  When specified with only one or two digits,
76444         * tests/test-getdate.c: Tests for the fix.
76445         * doc/getdate.texi: Document this change.
76447 2008-09-03  Bruno Haible  <bruno@clisp.org>
76449         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76451 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76453         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76454         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76455         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76456         Blake <ebb9@byu.net>.
76458         * tests/test-bitrotate.c: Add more test vectors.
76460 2008-09-02  Eric Blake  <ebb9@byu.net>
76462         vasnprintf-posix: handle large precision via %.*d
76463         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76464         when handling it ourselves.
76465         * tests/test-vasnprintf-posix.c (test_function): Add test.
76466         * tests/test-snprintf-posix.h (test_function): Likewise.
76467         * tests/test-sprintf-posix.h (test_function): Likewise.
76468         * tests/test-vasprintf-posix.c (test_function): Likewise.
76469         Reported by Alain Guibert.
76471 2008-09-01  Eric Blake  <ebb9@byu.net>
76473         c-stack: make configure-time check more robust
76474         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76475         successful sigaction call.
76476         Reported by Tom G. Christensen.
76478 2008-09-01  Bruno Haible  <bruno@clisp.org>
76480         New module 'findprog-lgpl'.
76481         * modules/findprog-lgpl: New file.
76482         * lib/findprog-lgpl.c: New file.
76483         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76484         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76485         to decide whether to use strdup or xstrdup, concatenated_filename or
76486         xconcatenated_filename.
76488 2008-09-01  Bruno Haible  <bruno@clisp.org>
76490         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76491         'xconcat-filename' (GPL).
76492         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76493         (License): Change to LGPLv2+.
76494         * modules/xconcat-filename: New file.
76495         * lib/concat-filename.h (concatenated_filename): Change specification.
76496         (xconcatenated_filename): New declaration.
76497         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76498         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76499         memory situations.
76500         * lib/xconcat-filename.c: New file.
76501         * NEWS: Mention the change.
76502         * lib/findprog.c: Include concat-filename.h, not filename.h.
76503         (find_in_path): Use xconcatenated_filename instead of
76504         concatenated_filename.
76505         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76506         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76507         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76508         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76509         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76510         instead of concatenated_filename.
76511         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76512         (execute_java_class): Use xconcatenated_filename instead of
76513         concatenated_filename.
76514         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76515         * modules/javacomp (Depends-on): Likewise.
76516         * modules/javaexec (Depends-on): Likewise.
76518 2008-09-01  Bruno Haible  <bruno@clisp.org>
76520         Split module 'filename' into 'filename' and 'concat-filename'.
76521         * modules/filename: Keep only lib/filename.h.
76522         (License): Change to LGPLv2+.
76523         * modules/concat-filename: New file, extracted from modules/filename.
76524         * lib/filename.h (concatenated_filename): Remove declaration.
76525         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76526         * lib/concat-filename.c: Include concat-filename.h.
76527         * NEWS: Mention the change.
76529 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76531         * lib/bitrotate.h (rotl8, rotr8): Add.
76533         * modules/bitrotate (configure.ac): Need
76534         AC_REQUIRE([AC_C_INLINE]).
76535         (Description): Mention stdint.h.  Reported by Bruno Haible
76536         <bruno@clisp.org>.
76538         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76539         Paolo Bonzini <bonzini@gnu.org>.
76541 2008-08-31  Bruno Haible  <bruno@clisp.org>
76543         Assume Solaris specific bi-arch conventions on Solaris systems.
76544         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76545         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76546         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76547         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76548         like acl_libdirstem.
76549         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76550         acl_libdirstem.
76551         * NEWS: Mention the change.
76552         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76554 2008-08-31  Jim Meyering  <meyering@redhat.com>
76556         * lib/strftime.h: Add comments describing the two added arguments.
76558         remove duplicate #include directives
76559         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76560         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76562 2008-08-31  Bruno Haible  <bruno@clisp.org>
76564         New module 'sigpipe-die'.
76565         * modules/sigpipe-die: New file.
76566         * lib/sigpipe-die.h: New file.
76567         * lib/sigpipe-die.c: New file.
76568         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76570 2008-08-31  Bruno Haible  <bruno@clisp.org>
76572         Don't override previously installed signal handlers.
76573         * lib/fatal-signal.c (saved_sigactions): New variable.
76574         (uninstall_handlers): Reset the signal to the saved handler, not
76575         to SIG_DFL (except when ignored).
76576         (install_handlers): Save the previous handlers.
76578 2008-08-30  Bruno Haible  <bruno@clisp.org>
76580         * gnulib-tool (func_reset_sigpipe): New function.
76581         (func_get_automake_snippet, func_modules_transitive_closure,
76582         func_import): Invoke it before a join command that reads from stdin,
76583         to avoid "echo: write error: Broken pipe" error messages on stderr.
76584         Reported by Sam Steingold <sds@gnu.org>.
76586 2008-08-30  Bruno Haible  <bruno@clisp.org>
76588         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76589         Code copied from m4/open.m4.
76590         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76591         access and the filename ends in a slash. Code copied from lib/open.c.
76592         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76593         * tests/test-fopen.c (main): Check against bug with trailing slash.
76595 2008-08-29  Bruno Haible  <bruno@clisp.org>
76597         Avoid some "gcc -pedantic" warnings.
76598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76599         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76600         * lib/dirent.in.h: Likewise.
76601         * lib/fcntl.in.h: Likewise.
76602         * lib/float.in.h: Likewise.
76603         * lib/iconv.in.h: Likewise.
76604         * lib/inttypes.in.h: Likewise.
76605         * lib/locale.in.h: Likewise.
76606         * lib/math.in.h: Likewise.
76607         * lib/netinet_in.in.h: Likewise.
76608         * lib/search.in.h: Likewise.
76609         * lib/signal.in.h: Likewise.
76610         * lib/stdarg.in.h: Likewise.
76611         * lib/stdint.in.h: Likewise.
76612         * lib/stdio.in.h: Likewise.
76613         * lib/stdlib.in.h: Likewise.
76614         * lib/string.in.h: Likewise.
76615         * lib/strings.in.h: Likewise.
76616         * lib/sys_select.in.h: Likewise.
76617         * lib/sys_socket.in.h: Likewise.
76618         * lib/sys_stat.in.h: Likewise.
76619         * lib/sys_time.in.h: Likewise.
76620         * lib/sysexits.in.h: Likewise.
76621         * lib/time.in.h: Likewise.
76622         * lib/unistd.in.h: Likewise.
76623         * lib/wchar.in.h: Likewise.
76624         * lib/wctype.in.h: Likewise.
76625         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76626         * modules/fchdir (Makefile.am): Likewise.
76627         * modules/fcntl (Makefile.am): Likewise.
76628         * modules/float (Makefile.am): Likewise.
76629         * modules/iconv_open (Makefile.am): Likewise.
76630         * modules/inttypes (Makefile.am): Likewise.
76631         * modules/locale (Makefile.am): Likewise.
76632         * modules/math (Makefile.am): Likewise.
76633         * modules/netinet_in (Makefile.am): Likewise.
76634         * modules/search (Makefile.am): Likewise.
76635         * modules/signal (Makefile.am): Likewise.
76636         * modules/stdarg (Makefile.am): Likewise.
76637         * modules/stdint (Makefile.am): Likewise.
76638         * modules/stdio (Makefile.am): Likewise.
76639         * modules/stdlib (Makefile.am): Likewise.
76640         * modules/string (Makefile.am): Likewise.
76641         * modules/strings (Makefile.am): Likewise.
76642         * modules/sys_select (Makefile.am): Likewise.
76643         * modules/sys_socket (Makefile.am): Likewise.
76644         * modules/sys_stat (Makefile.am): Likewise.
76645         * modules/sys_time (Makefile.am): Likewise.
76646         * modules/sysexits (Makefile.am): Likewise.
76647         * modules/time (Makefile.am): Likewise.
76648         * modules/unistd (Makefile.am): Likewise.
76649         * modules/wchar (Makefile.am): Likewise.
76650         * modules/wctype (Makefile.am): Likewise.
76651         Reported by Reuben Thomas <rrt@sc3d.org>.
76653 2008-08-29  Bruno Haible  <bruno@clisp.org>
76655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76656         any more.
76658 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76660         * MODULES.html.sh (Misc): Add bitrotate.
76662         * modules/bitrotate: New file.
76664         * lib/bitrotate.h: New file.
76666         * modules/bitrotate-tests: New file.
76668         * tests/test-bitrotate.c: New file.
76670         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76671         on the bitrotate module.
76673         * lib/arctwo.c: Use new bitrotate module.
76675 2008-08-29  Jim Meyering  <meyering@redhat.com>
76677         bootstrap: merge changes from coreutils
76678         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76679         of copied files.  Remove a kludge, now that this is fixed.
76680         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76681         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76682         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76684 2008-08-29  Bruno Haible  <bruno@clisp.org>
76686         * MODULES.html.sh: Remove --cvs-urls option.
76688 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76690         maint.mk: adjust to file name change
76691         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76693 2008-08-28  Jim Meyering  <meyering@redhat.com>
76695         * modules/getndelim2 (License): Relicense to LGPLv2+.
76696         Approved by Richard Stallman for the version of 1995, and by
76697         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76699 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76701         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76702         dummy if one is not available.  Do not touch them if
76703         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76704         (getc_maybe_unlocked): New.
76705         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76707 2008-08-26  Eric Blake  <ebb9@byu.net>
76709         doc/INSTALL: resync from autoconf
76710         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76711         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76712         moving...
76713         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76714         * INSTALL: Regenerate.
76715         * INSTALL.ISO: New file.
76716         * INSTALL.UTF-8: Likewise.
76718 2008-08-26  Jim Meyering  <meyering@redhat.com>
76720         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76721         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76722         these definitions conditional, so that they may be overridden, too.
76724 2008-08-26  Bruno Haible  <bruno@clisp.org>
76726         Generate INSTALL file variants with prettier quotes.
76727         * doc/Makefile (INSTALL_PRELUDE): New macro.
76728         (INSTALL): Use it.
76729         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76731 2008-08-26  Bruno Haible  <bruno@clisp.org>
76733         Run makeinfo in an English locale.
76734         * doc/Makefile (MAKEINFO): New variable.
76736 2008-08-26  Bruno Haible  <bruno@clisp.org>
76738         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76739         Suggested by Eric Blake.
76741 2008-08-25  Bruno Haible  <bruno@clisp.org>
76743         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76745 2008-08-25  Eric Blake  <ebb9@byu.net>
76747         c-stack: test that stack overflow can be caught
76748         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76749         that platform allows handling stack overflow; at least OS/2 EMX
76750         has sigaltstack, but crashes before transferring control to
76751         handler on stack overflow.
76752         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76753         check for HAVE_STACK_OVERFLOW_HANDLING.
76754         Reported by Elbert Pol.
76756 2008-08-25  Bruno Haible  <bruno@clisp.org>
76758         * doc/posix-functions/strftime.texi: Fix description of strftime
76759         module.
76761 2008-08-24  Bruno Haible  <bruno@clisp.org>
76763         * tests/uniwidth/test-uc_width2.c: New file.
76764         * tests/uniwidth/test-uc_width2.sh: New file.
76765         * modules/uniwidth/width-tests (Files): Add the new files.
76766         (TESTS): Add uniwidth/test-uc_width2.sh.
76767         (TESTS_ENVIRONMENT): New variable.
76768         (check_PROGRAMS): Add test-uc_width2.
76769         (test_uc_width2_SOURCES): New variable.
76771         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76772         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76773         not 0x00AB.
76774         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76776 2008-08-22  Eric Blake  <ebb9@byu.net>
76778         test-lock, test-tls: mention why a test is skipped
76779         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76780         skipped.
76781         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76783         count-one-bits: relax license
76784         * modules/count-one-bits (License): Relicense to LGPLv2+.
76785         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76787 2008-08-22  Andreas Schwab  <schwab@suse.de>
76789         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76790         Remove spurious space in assignment.
76792 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76794         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76795         Paul Eggert <eggert@CS.UCLA.EDU>.
76797 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76799         * modules/gettext: Add m4/threadlib.m4.
76801 2008-08-19  Eric Blake  <ebb9@byu.net>
76803         test-c-stack: fix compilation failure on FreeBSD 5.0
76804         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76805         headers before <sys/resource.h>.
76806         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76807         the bug.
76808         Reported by Nelson H. F. Beebe.
76810         strverscmp: migrate from "strverscmp.h" to <string.h>
76811         * modules/string (Makefile.am): Add new hooks.
76812         * modules/strverscmp (Files): Remove strverscmp.h.
76813         (Depends-on): Add string.
76814         (configure.ac): Add indicator.
76815         (Include): Mention new header.
76816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76817         defaults.
76818         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76819         results.
76820         * lib/strverscmp.h: Delete.
76821         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76822         * tests/test-strverscmp.c (includes): Adjust client.
76823         * lib/check-version.c (includes): Likewise.
76824         * NEWS: Document the change.
76826         strverscmp: add unit test
76827         * modules/strverscmp-tests: New file.
76828         * tests/test-strverscmp.c: Likewise.
76830 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76832         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76833         regarding Windows crypto stuff, from Mono.
76835 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76837         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76838         if present, for intel RND.  Return error on failures.
76840 2008-08-18  Ben Pfaff  <blp@gnu.org>
76842         gitlog-to-changelog: give better diagnostic for failed pipe-open
76843         * build-aux/gitlog-to-changelog: Improve error message: suggest
76844         that the version of Git may be too old.
76846 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76848         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76849         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76851 2008-08-18  Bruno Haible  <bruno@clisp.org>
76853         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76854         pthread_in_use().
76856 2008-08-18  Bruno Haible  <bruno@clisp.org>
76858         * lib/glthread/threadlib.c: Include <pthread.h>.
76860 2008-08-18  Bruno Haible  <bruno@clisp.org>
76862         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76863         glthread_recursive_lock_* macros.
76864         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76865         Fix syntax error.
76867 2008-08-18  Bruno Haible  <bruno@clisp.org>
76869         * lib/glthread/thread.c: Avoid forcing a context switch right after
76870         thread creation.
76872 2008-08-17  Bruno Haible  <bruno@clisp.org>
76874         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76875         * lib/glthread/thread.h: Provide Win32 specific implementation.
76876         * modules/thread (Files): Add lib/glthread/thread.c.
76877         (Depends-on): Add lock.
76878         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76880 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76882         New module 'yield'.
76883         * modules/yield: New file.
76884         * lib/glthread/yield.h: New file.
76885         * m4/yield.m4: New file.
76886         * MODULES.html.sh (Multithreading): Add yield.
76888 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76890         New module 'thread'.
76891         * modules/thread: New file.
76892         * lib/glthread/thread.h: New file.
76893         * m4/thread.m4: New file.
76894         * MODULES.html.sh (Multithreading): Add thread.
76896 2008-08-17  Bruno Haible  <bruno@clisp.org>
76898         * lib/glthread/lock.h: Include <stdlib.h> always.
76899         * lib/glthread/tls.h: Likewise.
76900         * lib/glthread/cond.h: Likewise.
76902 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76904         New module 'cond'.
76905         * modules/cond: New file.
76906         * lib/glthread/cond.h: New file.
76907         * lib/glthread/cond.c: New file.
76908         * m4/cond.m4: New file.
76909         * MODULES.html.sh (Multithreading): Add cond.
76911 2008-08-16  Eric Blake  <ebb9@byu.net>
76913         c-stack: fix regression on Irix 5.3 from 2008-06-21
76914         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76915         sa_sigaction...
76916         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76917         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76918         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76919         * modules/signal (Makefile.am): Use the value.
76920         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76921         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76922         * doc/posix-headers/signal.texi (signal.h): Document this
76923         portability issue.
76924         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76925         Reported by Tom G. Christensen.
76927 2008-08-17  Bruno Haible  <bruno@clisp.org>
76929         New module 'threadlib'.
76930         * modules/threadlib: New file.
76931         * lib/glthread/threadlib.c: New file, extracted from
76932         lib/glthread/lock.c.
76933         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76934         functions.
76935         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76936         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76937         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76938         macros.
76939         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76940         (gl_DISABLE_THREADS): Remove macro.
76941         * modules/lock (Files): Remove build-aux/config.rpath.
76942         (Depends-on): Remove havelib. Add threadlib.
76943         (configure.ac-early): Remove section.
76944         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76945         * modules/tls (Depends-on): Remove lock. Add threadlib.
76946         (Link): New section, copied from threadlib.
76947         * MODULES.html.sh (Multithreading): Add threadlib.
76949 2008-08-14  Bruno Haible  <bruno@clisp.org>
76951         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76952         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76953         glthread_rwlock_unlock, glthread_rwlock_destroy,
76954         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76955         glthread_recursive_lock_destroy): Define as macros always.
76956         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76957         glthread_lock_lock.
76958         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76959         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76960         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76961         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76962         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76963         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76964         (glthread_recursive_lock_lock_func): Renamed from
76965         glthread_recursive_lock_lock.
76966         (glthread_recursive_lock_unlock_func): Renamed from
76967         glthread_recursive_lock_unlock.
76968         (glthread_recursive_lock_destroy_func): Renamed from
76969         glthread_recursive_lock_destroy.
76971 2008-08-14  Bruno Haible  <bruno@clisp.org>
76973         * lib/glthread/lock.h: Renamed from lib/lock.h.
76974         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76975         * lib/glthread/tls.h: Renamed from lib/tls.h.
76976         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76977         * lib/fstrcmp.c: Update includes.
76978         * lib/strsignal.c: Update includes.
76979         * modules/lock (Files, Makefile.am): Update.
76980         (Include): Change to "glthread/lock.h".
76981         * modules/tls (Files, Makefile.am): Update.
76982         (Include): Change to "glthread/tls.h".
76983         * tests/test-lock.c: Update includes.
76984         * tests/test-tls.c: Update includes.
76985         * NEWS: Mention the renamed header files.
76987 2008-08-11  Jim Meyering  <meyering@redhat.com>
76989         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76991 2008-08-11  Eric Blake  <ebb9@byu.net>
76993         test-c-stack: avoid C99-ism
76994         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76995         before statement.
76996         Reported by Alain Guibert.
76998 2008-08-10  Jim Meyering  <meyering@redhat.com>
77000         ensure that return value of uinttostr et al are not ignored
77001         * lib/inttostr.h (__GNUC_PREREQ): Define.
77002         (__attribute_warn_unused_result__): Define.
77003         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
77005 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
77007         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
77008         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
77010 2008-08-07  Jim Meyering  <meyering@redhat.com>
77012         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
77014         * modules/mkstemp (License): Relicense under LGPLv2+.
77015         * modules/tempname (License): Likewise.
77017 2008-08-06  Bruno Haible  <bruno@clisp.org>
77019         * lib/poll.c (poll): Further micro-optimization.
77021 2008-08-06  Jim Meyering  <meyering@redhat.com>
77023         inet_pton.c: use locale-independent tolower
77024         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
77025         (inet_pton6): Use c_tolower rather than tolower.
77026         * modules/inet_pton (Depends-on): Add c-ctype.
77028 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
77030         * lib/poll.c (poll): Avoid division when timeout is 0, cache
77031         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
77033 2008-08-06  Jim Meyering  <meyering@redhat.com>
77035         * modules/inet_pton (License): Relicense under LGPLv2+.
77037 2008-08-03  Bruno Haible  <bruno@clisp.org>
77039         Additional non-aborting API for lock and tls.
77040         * lib/lock.h: Include <errno.h>.
77041         (glthread_lock_init): New macro/function.
77042         (gl_lock_init): Define as wrapper around glthread_lock_init.
77043         (glthread_lock_lock): New macro/function.
77044         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
77045         (glthread_lock_unlock): New macro/function.
77046         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
77047         (glthread_lock_destroy): New macro/function.
77048         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
77049         (glthread_rwlock_init): New macro/function.
77050         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
77051         (glthread_rwlock_rdlock): New macro/function.
77052         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
77053         (glthread_rwlock_wrlock): New macro/function.
77054         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
77055         (glthread_rwlock_unlock): New macro/function.
77056         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
77057         (glthread_rwlock_destroy): New macro/function.
77058         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
77059         (glthread_recursive_lock_init): New macro/function.
77060         (gl_recursive_lock_init): Define as wrapper around
77061         glthread_recursive_lock_init.
77062         (glthread_recursive_lock_lock): New macro/function.
77063         (gl_recursive_lock_lock): Define as wrapper around
77064         glthread_recursive_lock_lock.
77065         (glthread_recursive_lock_unlock): New macro/function.
77066         (gl_recursive_lock_unlock): Define as wrapper around
77067         glthread_recursive_lock_unlock.
77068         (glthread_recursive_lock_destroy): New macro/function.
77069         (gl_recursive_lock_destroy): Define as wrapper around
77070         glthread_recursive_lock_destroy.
77071         (glthread_once): New macro/function.
77072         (gl_once): Define as wrapper around glthread_once.
77073         Update function declarations.
77074         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
77075         glthread_rwlock_init. Return error code.
77076         (glthread_rwlock_rdlock_multithreaded): Renamed from
77077         glthread_rwlock_rdlock. Return error code.
77078         (glthread_rwlock_wrlock_multithreaded): Renamed from
77079         glthread_rwlock_wrlock. Return error code.
77080         (glthread_rwlock_unlock_multithreaded): Renamed from
77081         glthread_rwlock_unlock. Return error code.
77082         (glthread_rwlock_destroy_multithreaded): Renamed from
77083         glthread_rwlock_destroy. Return error code.
77084         (glthread_recursive_lock_init_multithreaded): Renamed from
77085         glthread_recursive_lock_init. Return error code.
77086         (glthread_recursive_lock_lock_multithreaded): Renamed from
77087         glthread_recursive_lock_lock. Return error code.
77088         (glthread_recursive_lock_unlock_multithreaded): Renamed from
77089         glthread_recursive_lock_unlock. Return error code.
77090         (glthread_recursive_lock_destroy_multithreaded): Renamed from
77091         glthread_recursive_lock_destroy. Return error code.
77092         (glthread_once_call): Make static.
77093         (glthread_once_multithreaded): Renamed from glthread_once.
77094         * lib/tls.h: Include <errno.h>.
77095         (glthread_tls_key_init): New macro/function.
77096         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
77097         (glthread_tls_set): New macro/function.
77098         (gl_tls_set): Define as wrapper around glthread_tls_set.
77099         (glthread_tls_key_destroy): New macro/function.
77100         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
77101         Update function declarations.
77102         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
77103         glthread_tls_get.
77104         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77106 2008-08-04  Eric Blake  <ebb9@byu.net>
77108         gnumakefile: use space, not TAB, outside of targets
77109         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
77111 2008-08-02  Jim Meyering  <meyering@redhat.com>
77113         getdate.y: avoid locale-dependent date parsing failure
77114         In Turkish locales, getdate would fail to recognize keywords
77115         containing a lowercase "i".  The solution is not to rely on
77116         locale-sensitive case-conversion.
77117         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
77118         (lookup_word): Use c_toupper in place of toupper.
77119         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
77120         Reported by Vefa Bicakci <bicave@superonline.com> in
77121         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
77122         * modules/getdate (Depends-on): Add c-ctype.
77124 2008-08-02  Bruno Haible  <bruno@clisp.org>
77126         * gnulib-tool (func_import): When updating or creating a .gitignore
77127         file, prepend each added line with a slash, and ignore leading slashes
77128         from the existing lines.
77129         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
77131 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77133         Portability fix for GNU make 3.79.1.
77134         * top/GNUmakefile: Avoid 'else COND', which older GNU make
77135         versions do not understand.
77137 2008-08-01  Bruno Haible  <bruno@clisp.org>
77139         Work around bug of HP-UX 10.20 cc with -0.0 literal.
77140         * tests/test-isnanf.h (zero): New variable.
77141         (main): Avoid literal -0.0f.
77142         * tests/test-isnand.h (zero): New variable.
77143         (main): Avoid literal -0.0.
77144         * tests/test-isnanl.h (zero): New variable.
77145         (main): Avoid literal -0.0L.
77146         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
77147         (test_float, test_double, test_long_double): Avoid literals -0.0f,
77148         -0.0, -0.0L.
77149         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
77150         (test_signbitd): Avoid literal -0.0.
77151         (test_signbitl): Avoid literal -0.0L.
77152         * tests/test-ceilf1.c (zero): New variable.
77153         (main): Avoid literal -0.0f.
77154         * tests/test-ceill.c (zero): New variable.
77155         (main): Avoid literal -0.0L.
77156         * tests/test-floorf1.c (zero): New variable.
77157         (main): Avoid literal -0.0f.
77158         * tests/test-floorl.c (zero): New variable.
77159         (main): Avoid literal -0.0L.
77160         * tests/test-roundf1.c (zero): New variable.
77161         (main): Avoid literal -0.0f.
77162         * tests/test-round1.c (zero): New variable.
77163         (main): Avoid literal -0.0.
77164         * tests/test-roundl.c (zero): New variable.
77165         (main): Avoid literal -0.0L.
77166         * tests/test-truncf1.c (zero): New variable.
77167         (main): Avoid literal -0.0f.
77168         * tests/test-trunc1.c (zero): New variable.
77169         (main): Avoid literal -0.0.
77170         * tests/test-truncl.c (zero): New variable.
77171         (main): Avoid literal -0.0L.
77172         * tests/test-frexp.c (zero): New variable.
77173         (main): Avoid literal -0.0.
77174         * tests/test-frexpl.c (zero): New variable.
77175         (main): Avoid literal -0.0L.
77176         * tests/test-ldexpl.c (zero): New variable.
77177         (main): Avoid literal -0.0L.
77178         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77179         (zerod, zerol): New variables.
77180         (test_function): Avoid literals -0.0, -0.0L.
77181         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77182         (zerod, zerol): New variables.
77183         (test_function): Avoid literals -0.0, -0.0L.
77184         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77185         (zerod, zerol): New variables.
77186         (test_function): Avoid literals -0.0, -0.0L.
77187         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77188         (zerod, zerol): New variables.
77189         (test_function): Avoid literals -0.0, -0.0L.
77190         * tests/test-strtod.c (zero): New variable.
77191         (main): Avoid literal -0.0.
77192         Reported by Jonathan C. Patschke <jp@centtech.com>.
77194 2008-07-31  Jim Meyering  <meyering@redhat.com>
77196         sha256.h: correct definition of SHA224_DIGEST_SIZE
77197         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
77198         Reported by Paulie Pena IV <paulie4@gmail.com>.
77199         Define as 224 / 8, rather than as a literal.
77200         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
77201         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
77202         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
77204 2008-07-31  Bruno Haible  <bruno@clisp.org>
77206         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
77207         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
77208         Reported by Jonathan Patschke <jp@centtech.com>.
77210 2008-07-31  Bruno Haible  <bruno@clisp.org>
77212         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
77213         Reported by Paolo Bonzini <bonzini@gnu.org>.
77215 2008-07-30  Eric Blake  <ebb9@byu.net>
77217         test-strtod: allow compilation without -lm
77218         * tests/test-strtod.c (main): Avoid link dependence on fabs.
77219         Reported by Dennis Clarke <blastwave@gmail.com>.
77221 2008-07-28  Jim Meyering  <meyering@redhat.com>
77223         bootstrap: work also when there are no .po files in po/
77224         * build-aux/bootstrap (update_po_files): Complete the change
77225         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
77227 2008-07-27  Jim Meyering  <meyering@redhat.com>
77229         * users.txt: Add zile.
77231 2008-07-26  Ben Pfaff  <blp@gnu.org>
77233         Add missing dependencies on new m4/exponent[fdl].m4 files.
77234         * modules/isnanf-nolibm: Add m4/exponentf.m4.
77235         * modules/isnand-nolibm: Add m4/exponentd.m4.
77236         * modules/isnanl-nolibm: Add m4/exponentl.m4.
77237         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
77238         m4/isnan[fdl].m4, because the macros actually used moved.
77239         Reported by Jim Meyering.
77241 2008-07-14  Ben Pfaff  <blp@gnu.org>
77243         Add isinf module.
77244         * lib/isinf.c: New file.
77245         * lib/math.in.h: Define isinf macro if we have decided to replace
77246         it.
77247         * m4/isinf.m4: New file.
77248         * m4/math_h.m4: Initialize and substitute variables for isinf
77249         module.
77250         * modules/isinf: New file.
77251         * modules/isinf-tests: New file.
77252         * modules/math: Add substitutions for new module.
77253         * tests/test-isinf.c: New file.
77254         * doc/posix-functions/isinf.texi: Mention new module.
77255         * MODULES.html.sh: Mention new module.
77257 2008-07-14  Ben Pfaff  <blp@gnu.org>
77259         Factor out some macros for use by additional modules.
77260         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
77261         exponentf.m4.
77262         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
77263         exponentd.m4.
77264         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
77265         file exponentl.m4.
77266         * m4/exponentf.m4: New file.
77267         * m4/exponentd.m4: New file.
77268         * m4/exponentl.m4: New file.
77269         * modules/isnanf: Use new file m4/exponentf.m4.
77270         * modules/isnand: Use new file m4/exponentd.m4.
77271         * modules/isnanl: Use new file m4/exponentl.m4.
77273 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
77275         mktime.c: normalize tp->tm_isdst value to -1/0/1.
77276         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
77277         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
77278         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
77280         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
77281         readlink on platforms without PATH_MAX.
77283 2008-07-21  Eric Blake  <ebb9@byu.net>
77285         Warn, not fail, on stale version.
77286         * top/GNUmakefile (_curr-ver): Tone down previous patch.
77288         Don't allow installation with stale devel version number.
77289         * top/GNUmakefile (_is-install-target): New macro.
77290         (_curr-ver): Forbid installation with stale version number.
77292 2008-07-20  Bruno Haible  <bruno@clisp.org>
77294         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
77295         TESTS_ENVIRONMENT.
77296         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
77298 2008-07-20  Bruno Haible  <bruno@clisp.org>
77300         * lib/c-stack.h (c_stack_action): Add documentation.
77301         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
77303 2008-07-20  Bruno Haible  <bruno@clisp.org>
77305         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
77306         * modules/readlink (License): Likewise.
77308 2008-07-17  Eric Blake  <ebb9@byu.net>
77310         * modules/c-stack (Link): Fix typo.
77312         Make c-stack use libsigsegv, when available.
77313         * modules/c-stack (Depends-on): Add libsigsegv.
77314         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
77315         needed.
77316         * lib/c-stack.c (SIGSTKSZ): Define fallback.
77317         (segv_handler, overflow_handler, c_stack_action)
77318         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
77319         implementation when libsigsegv is available, but only when using
77320         the library is necessary.
77321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
77322         comment, explaining why XSI check fails on Linux.
77323         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
77324         * tests/test-c-stack2.sh: Tweak skip message.
77325         * NEWS: Document new link-time requirements.
77327 2008-07-16  Eric Blake  <ebb9@byu.net>
77329         c-stack: Expose false positives when not using libsigsegv.
77330         * modules/c-stack-tests (Files): Expand test.
77331         * tests/test-c-stack.c (main): Add means to conditionally trigger
77332         non-overflow SIGSEGV.
77333         * tests/test-c-stack2.sh: New file.
77335 2008-07-14  Bruno Haible  <bruno@clisp.org>
77337         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77338         Reported by Eric Blake.
77340 2008-07-14  Sam Steingold  <sds@gnu.org>
77341             Bruno Haible  <bruno@clisp.org>
77343         New module libsigsegv.
77344         * modules/libsigsegv: New file.
77345         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77346         modifications.
77347         * MODULES.html.sh (Signal handling): New section.
77349 2008-07-14  Bruno Haible  <bruno@clisp.org>
77351         * modules/unictype/ctype-* (Description): Add the word "function".
77352         Improves the resulting doc in MODULES.html.
77354 2008-07-12  Ben Pfaff  <blp@gnu.org>
77356         Add longlong module.
77357         * modules/longlong: New file.
77359 2008-07-12  Bruno Haible  <bruno@clisp.org>
77361         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77362         to empty.
77364 2008-07-10  Ben Pfaff  <blp@gnu.org>
77366         Add isnan module.
77367         * doc/posix-functions/isnan.texi: Mention new module.
77368         * lib/math.in.h: Define isnan macro if we have decided to replace
77369         it.
77370         * m4/isnan.m4: New file.
77371         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77372         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77373         also.
77374         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77375         redundancy.
77376         * m4/math_h.m4: Initialize and substitute variables for isnan
77377         module.
77378         * modules/isnan: New file.
77379         * modules/isnan-tests: New file.
77380         * modules/math: Add substitutions for new module.
77381         * tests/test-isnan.c: New file.
77382         * MODULES.html.sh: Mention new module.
77384 2008-07-10  Ben Pfaff  <blp@gnu.org>
77386         Add isnanf module.
77387         * lib/isnanf.m4: New file.
77388         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77389         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77390         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77391         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77392         * modules/isnanf: New file.
77393         * modules/isnanf-tests: New file.
77394         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77395         files.
77396         * tests/test-isnanf-nolibm.c: factored most of its contents into
77397         new file tests/test-isnanf.h.
77398         * tests/test-isnanf.h: New file.
77399         * tests/test-isnanf.c: New file.
77400         * MODULES.html.sh: Mention new module.
77401         * doc/glibc-functions/isnanf.texi: Mention new module.
77403 2008-07-10  Ben Pfaff  <blp@gnu.org>
77405         Add isnand module.
77406         * lib/isnand.h: New file.
77407         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77408         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77409         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77410         functionality also.
77411         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77412         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77413         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77414         * modules/isnand: New file.
77415         * modules/isnand-tests: New file.
77416         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77417         files.
77418         * tests/test-isnand-nolibm.c: factored most of its contents into
77419         new file tests/test-isnand.h.
77420         * tests/test-isnand.h: New file.
77421         * tests/test-isnand.c: New file.
77422         * MODULES.html.sh: Mention new module.
77424 2008-07-10  Ben Pfaff  <blp@gnu.org>
77426         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77427         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77428         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77429         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77430         * modules/isnanf-nolibm: Update references to renamed files.
77431         * modules/isnand-nolibm: Likewise.
77432         * modules/isnanf-nolibm-tests: Likewise.
77433         * modules/isnand-nolibm-tests: Likewise.
77434         * lib/frexp.c: Likewise.
77435         * lib/isfinite.c: Likewise.
77436         * lib/signbitd.c: Likewise.
77437         * lib/signbitf.c: Likewise.
77438         * lib/vasnprintf.c: Likewise.
77439         * tests/test-ceilf1.c: Likewise.
77440         * tests/test-ceilf2.c: Likewise.
77441         * tests/test-floorf1.c: Likewise.
77442         * tests/test-floorf2.c: Likewise.
77443         * tests/test-frexp.c: Likewise.
77444         * tests/test-round1.c: Likewise.
77445         * tests/test-round2.c: Likewise.
77446         * tests/test-roundf1.c: Likewise.
77447         * tests/test-strtod.c: Likewise.
77448         * tests/test-trunc1.c: Likewise.
77449         * tests/test-trunc2.c: Likewise.
77450         * tests/test-truncf1.c: Likewise.
77451         * tests/test-truncf2.c: Likewise.
77452         * NEWS: Mention the renamed header files.
77454 2008-07-11  Jim Meyering  <meyering@redhat.com>
77456         vc-list-files: make the last-resort awk code more portable
77457         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77458         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77459         does not support it.
77461 2008-07-10  Eric Blake  <ebb9@byu.net>
77463         Work with tar's bootstrap.
77464         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77465         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77466         an m4 comment.
77468 2008-07-09  Jim Meyering  <meyering@redhat.com>
77470         posix-shell.m4: fix typo that made this test malfunction
77471         * m4/posix-shell.m4: Remove capitalization in variable name.
77473 2008-07-08  Bruno Haible  <bruno@clisp.org>
77475         * m4/onceonly.m4: Update comments.
77476         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77478 2008-07-04  Jim Meyering  <meyering@redhat.com>
77480         * users.txt: Add vc-dwim.
77481         (bison, coreutils): Use the gitweb URL.
77483 2008-07-03  Jim Meyering  <meyering@redhat.com>
77485         * users.txt: Add libffcall.  From Sam Steingold.
77487 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77489         getdate.y: do not ignore TZ with relative day, month or year offset
77490         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77491         relative-date-handling, since otherwise, the latter would clobber the
77492         sole output (an updated Start value) of the tz-handling block.
77493         * tests/test-getdate.c: Tests for the fix
77495 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77497         Recognize 'foo_LIBRARIES += libgnu.a'.
77498         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77499         makefile snippet has already specified an installation location,
77500         also using '+='.
77502 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77504         getdate.y: factor out common actions
77505         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77506         Use them in place of open-coded actions.
77508 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77510         Add self-test for getdate module.
77511         * modules/getdate-tests: New file.
77512         * tests/test-getdate.c: New file.
77514 2008-06-29  Bruno Haible  <bruno@clisp.org>
77516         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77517         .gitignore.
77518         Reported by Sylvain Beucler <beuc@beuc.net>.
77520 2008-06-29  Bruno Haible  <bruno@clisp.org>
77522         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77523         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77525 2008-06-29  Bruno Haible  <bruno@clisp.org>
77527         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77528         EXTRA_DIST.
77529         Reported by Sylvain Beucler <beuc@beuc.net>.
77531 2008-06-26  Jim Meyering  <meyering@redhat.com>
77533         make several modules depend on the "open" module
77534         This provides slightly increased consistency when opening-for-write
77535         the name of a non-directory spelled with a trailing slash.
77536         * modules/chdir-safer: Likewise.
77537         * modules/chown: Likewise.
77538         * modules/clean-temp: Likewise.
77539         * modules/copy-file: Likewise.
77540         * modules/fchdir: Likewise.
77541         * modules/fcntl-safer: Likewise.
77542         * modules/pipe: Likewise.
77543         * modules/utime: Likewise.
77544         Prompted by Eric Blake and Bruno Haible.
77546 2008-06-24  Andreas Schwab  <schwab@suse.de>
77548         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77549         literals can be used as initializers for global variables.
77551 2008-06-23  Eric Blake  <ebb9@byu.net>
77553         Make gnulib-cache.m4 easier to diff.
77554         * gnulib-tool (func_import): Allow newlines when reading cached
77555         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77557 2008-06-23  Bruno Haible  <bruno@clisp.org>
77559         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77560         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77561         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77562         m4/signalblocking.m4.
77563         (gl_PREREQ_SIGACTION): Don't invoke it.
77564         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77565         gl_PREREQ_SIG_HANDLER_H.
77566         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77567         Don't check for sigaction here.
77569 2008-06-23  Bruno Haible  <bruno@clisp.org>
77571         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77572         (install_handlers): Don't set the SA_RESETHAND flag.
77574 2008-06-23  Bruno Haible  <bruno@clisp.org>
77576         * m4/sigaction.m4: Comment fixes.
77577         * lib/signal.in.h: Likewise.
77579 2008-06-23  Eric Blake  <ebb9@byu.net>
77581         Fix typo.
77582         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77584         Avoid SA_ namespace.
77585         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77586         Reported by Ralf Wildenhues.
77588         Avoid test failure due to SA_RESTORER.
77589         * tests/test-sigaction.c (SA_MASK): New macro.
77590         (main): Avoid failing due to extension flags being set.
77591         Reported by Jim Meyering.
77593         Revert use of sig-handler.h in sigprocmask.c.
77594         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77595         it requires the existence of struct sigaction.
77596         * lib/sigprocmask.c (handler_t): Restore typedef.
77597         (rpl_signal, old_handlers): Use local type.
77599 2008-06-22  Bruno Haible  <bruno@clisp.org>
77601         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77602         conditionally.
77603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77605 2008-06-22  Bruno Haible  <bruno@clisp.org>
77607         * doc/posix-functions/siginterrupt.texi: Move note.
77609         * lib/signal.in.h (SA_RESTART): New macro.
77610         * lib/sigaction.c: Update comment.
77612         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77614         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77615         (gl_PREREQ_SIGPROCMASK): Invoke it.
77616         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77618         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77620         * lib/sigprocmask.c: Update a comment.
77622 2008-06-21  Eric Blake  <ebb9@byu.net>
77624         Use sigaction module rather than signal().
77625         * modules/c-stack (Depends-on): Add sigaction.
77626         * modules/fatal-signal (Depends-on): Likewise.
77627         * modules/nanosleep (Depends-on): Likewise.
77628         * modules/sigprocmask (Files): Add sig-handler.h.
77629         * modules/sigaction (Files): Likewise.
77630         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77631         Eggert.
77632         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77633         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77634         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77635         (init_fatal_signals): Likewise.
77636         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77637         (siginterrupt): Delete fallback.
77638         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77639         instead.
77640         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77641         siginterrupt.
77643         New module sigaction, for mingw.
77644         * modules/sigaction: New module...
77645         * modules/sigaction-tests: ...and its test.
77646         * m4/sigaction.m4: New file.
77647         * lib/sigaction.c: Likewise.
77648         * tests/test-sigaction.c: Likewise.
77649         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77650         * modules/signal (Makefile.am): Likewise.
77651         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77652         needed.
77653         * doc/posix-headers/signal.texi (signal.h): Mention provided
77654         types.
77655         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77656         that sigaction is preferable.
77657         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77658         module.
77659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77660         sigaction.
77662         Improve robustness of sigprocmask by overriding signal.
77663         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77664         is in use.
77665         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77666         (SIGKILL, SIGSTOP): Provide fallbacks.
77667         (rpl_signal): Implement.
77668         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77669         signal can be called inside handlers.
77671         Fix nanosleep module on mingw.
77672         * modules/nanosleep (Depends-on): Add sys_select.
77673         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77675         Fix licensing of sigprocmask.
77676         * modules/raise (License): Relicense as LGPL.
77678 2008-06-21  Bruno Haible  <bruno@clisp.org>
77680         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77681         result if it contains question marks.
77682         Reported by Michael Geng <linux@michaelgeng.de>.
77684 2008-06-19  Bruno Haible  <bruno@clisp.org>
77686         Fix CVS-ism.
77687         * doc/gnulib.texi: Include updated-stamp.texi.
77688         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77689         (updated-stamp.texi): New rule.
77690         (gnulib.info): Depend on it.
77691         * doc/.gitignore: Add updated-stamp.texi.
77692         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77694 2008-06-19  Bruno Haible  <bruno@clisp.org>
77696         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77697         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77699 2008-06-19  Eric Blake  <ebb9@byu.net>
77701         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77702         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77703         Reported by Stepan Kasal.
77705 2008-06-18  Bruno Haible  <bruno@clisp.org>
77707         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77708         Reported by Eric Blake.
77710 2008-06-18  Eric Blake  <ebb9@byu.net>
77712         Work around cygwin 1.5.25 strsignal bug.
77713         * tests/test-strsignal.c: Allow for const char *.
77714         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77716 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77718         * users.txt: Update URL to article and add author/date
77719         information.
77721 2008-06-17  Bruno Haible  <bruno@clisp.org>
77723         New macro gl_DISABLE_THREADS.
77724         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77725         if the user did not pass --enable-threads or --disable-threads option.
77726         (gl_DISABLE_THREADS): New macro.
77727         Reported by Eric Blake <ebb9@byu.net>.
77729 2008-06-17  Bruno Haible  <bruno@clisp.org>
77731         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77732         when the macro ignores it.
77733         Based on a patch by Eric Blake <ebb9@byu.net>.
77735 2008-06-17  Bruno Haible  <bruno@clisp.org>
77737         * modules/tls (License): Change to LGPLv2+.
77738         Reported by Eric Blake.
77740 2008-06-17  Eric Blake  <ebb9@byu.net>
77742         Simplify c-stack prerequisites.
77743         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77745         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77746         check.
77747         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77748         <sys/resource.h>.
77750         Move c-stack test into testsuite.
77751         * modules/c-stack-tests: New file.
77752         * lib/c-stack.c [DEBUG]: Move test program...
77753         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77754         fail test if sigaltstack is lacking.
77755         * tests/test-c-stack.sh: New driver file.
77757 2008-06-16  Eric Blake  <ebb9@byu.net>
77759         Use raise module consistently.
77760         * modules/fatal-signal (Depends-on): Add raise.
77761         * modules/sigprocmask (Depends-on): Likewise.
77762         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77763         * lib/sigprocmask.c (sigprocmask): Likewise.
77764         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77765         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77767         Fix compliance bug in sigpending.
77768         * lib/sigprocmask.c (sigpending): Return pending array via
77769         parameter, not return value.
77771 2008-06-14  Eric Blake  <ebb9@byu.net>
77773         Improve obstack-printf test code.
77774         * tests/test-obstack-printf.c (test_function): Fix comment, and
77775         simplify usage of obstack_* in macros.  Add a test for coverage.
77776         Reported by Bruno Haible.
77778 2008-06-14  Bruno Haible  <bruno@clisp.org>
77780         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77781         array size as a constant, not as a const variable.
77782         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77783         AC_USE_SYSTEM_EXTENSIONS.
77784         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77785         Test whether the obstack_printf function actually exists.
77786         * modules/obstack-printf (Depends-on): Add extensions.
77787         (Include): Remove obstack.h.
77788         * modules/obstack-printf-posix (Depends-on): Add extensions.
77789         (Include): Remove obstack.h.
77791 2008-06-13  Eric Blake  <ebb9@byu.net>
77793         Add obstack-printf and obstack-printf-posix modules.
77794         * modules/obstack-printf: New file.
77795         * modules/obstack-printf-posix: Likewise.
77796         * MODULES.html.sh (Misc): Mention them.
77797         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77798         Likewise.
77799         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77800         Likewise.
77801         * modules/stdio (Makefile.am): Accomodate new modules.
77802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77803         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77804         Declare.
77805         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77806         functions.
77807         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77808         (gl_REPLACE_OBSTACK_PRINTF): New macros
77809         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77810         * tests/test-obstack-printf.c: New file.
77811         * modules/obstack-printf-tests: Likewise.
77812         * modules/obstack-printf-posix-tests: Likewise.
77814 2008-06-11  Bruno Haible  <bruno@clisp.org>
77816         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77817         * lib/open.c: Include errno.h.
77818         (open): Fail when attempting to write to a file that has a trailing
77819         slash.
77820         * tests/test-open.c (main): Test against trailing slash bug.
77821         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77823 2008-06-10  Bruno Haible  <bruno@clisp.org>
77825         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77826         for $? to work inside the trap command, with various /bin/sh-s.
77827         * tests/test-vc-list-files-cvs.sh: Likewise.
77829 2008-06-10  Bruno Haible  <bruno@clisp.org>
77831         * lib/acl-internal.h: Don't include gettext.h here.
77832         * lib/set-mode-acl.c: Include gettext.h here.
77833         * lib/copy-acl.c: Likewise.
77835 2008-06-10  Bruno Haible  <bruno@clisp.org>
77837         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77838         * lib/wait-process.c (wait_subprocess): Likewise.
77839         * lib/execute.h (execute): Add termsigp argument.
77840         * lib/execute.c (execute): Likewise.
77841         * lib/csharpcomp.c (compile_csharp_using_pnet,
77842         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77843         * lib/csharpexec.c (execute_csharp_using_pnet,
77844         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77845         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77846         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77847         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77848         is_jikes_present): Update.
77849         * lib/javaexec.c (execute_java_class): Update.
77850         * lib/javaversion.c (execute_and_read_line): Update.
77851         * NEWS: Document the changes.
77852         Reported by Eric Blake.
77854 2008-06-10  Eric Blake  <ebb9@byu.net>
77856         Add missing include.
77857         * tests/test-strstr.c (includes): Add <signal.h>.
77858         * tests/test-strcasestr.c (includes): Likewise.
77859         * tests/test-memmem.c (includes): Likewise.
77861 2008-06-10  Bruno Haible  <bruno@clisp.org>
77863         * lib/wait-process.c (wait_subprocess): Add an assertion.
77865 2008-06-10  Bruno Haible  <bruno@clisp.org>
77867         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77869 2008-06-10  Bruno Haible  <bruno@clisp.org>
77871         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77872         using alarm().
77873         * tests/test-strcasestr.c (main): Likewise.
77874         * tests/test-strstr.c (main): Likewise.
77876 2008-06-09  Bruno Haible  <bruno@clisp.org>
77878         Work around the Solaris 10 ACE ACLs ABI change.
77879         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77880         declare if ACL_NO_TRIVIAL is present.
77881         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77882         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77883         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77884         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77885         define if ACL_NO_TRIVIAL is present.
77886         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77887         and use the current ABI.
77888         (file_has_acl): Use same #if condition as elsewhere.
77889         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77890         in use, and use the current ABI.
77891         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77892         Reported by Jim Meyering.
77894 2008-06-09  Eric Blake  <ebb9@byu.net>
77896         Work around environments that (stupidly) ignore SIGALRM.
77897         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77898         before using alarm().
77899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77900         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77901         Reported by Ian Beckwith <ianb@erislabs.net>.
77903         Produce autobuild blurb earlier in log.
77904         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77906 2008-06-09  Jim Meyering  <meyering@redhat.com>
77907         and Ondřej Vašík  <ovasik@redhat.com>
77909         utimens.c: correct kernel bug work-around
77910         Ondřej Vašík found that the invalid return value of 280 indicates
77911         failure, not success, and the kernel bug we're trying to work
77912         around affects not just the utimensat call, but also the fallback
77913         futimens call.
77914         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77915         not success.
77916         [HAVE_FUTIMENS]: Use the same work-around, here.
77918 2008-06-09  Jim Meyering  <meyering@redhat.com>
77920         add more guards around definition of ACE_-related code
77921         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77922         ALLOW and ACE_OWNER are also defined.
77924 2008-06-08  Bruno Haible  <bruno@clisp.org>
77926         * lib/acl-internal.h: Add me as co-author.
77927         * lib/file-has-acl.c: Likewise.
77928         * lib/set-mode-acl.c: Likewise.
77929         * lib/copy-acl.c: Likewise.
77931 2008-06-08  Bruno Haible  <bruno@clisp.org>
77933         Add support for AIX ACLs.
77934         * lib/acl-internal.h (acl_nontrivial): New declaration.
77935         * lib/file-has-acl.c (acl_nontrivial): New function.
77936         (file_has_acl): Add implementation using AIX 4 ACL API.
77937         * lib/set-mode-acl.c (qset_acl): Likewise.
77938         * lib/copy-acl.c (qcopy_acl): Likewise.
77940 2008-06-08  Bruno Haible  <bruno@clisp.org>
77942         Add support for HP-UX ACLs.
77943         * lib/acl-internal.h (acl_nontrivial): New declaration.
77944         * lib/file-has-acl.c (acl_nontrivial): New function.
77945         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77946         * lib/set-mode-acl.c (qset_acl): Likewise.
77947         * lib/copy-acl.c (qcopy_acl): Likewise.
77949 2008-06-08  Bruno Haible  <bruno@clisp.org>
77951         Add support for Cygwin ACLs.
77952         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77953         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77954         the chmod_or_fchmod call.
77955         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77957 2008-06-08  Bruno Haible  <bruno@clisp.org>
77959         Fix bug with setuid modes in Solaris 10+ code.
77960         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77961         succeeded, when the mode contains some special bits.
77963 2008-06-08  Bruno Haible  <bruno@clisp.org>
77965         Add support for Solaris 7..10 ACLs.
77966         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77967         declarations.
77968         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77969         functions.
77970         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77971         * lib/set-mode-acl.c (qset_acl): Likewise.
77972         * lib/copy-acl.c (qcopy_acl): Likewise.
77974 2008-06-08  Bruno Haible  <bruno@clisp.org>
77976         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77977         declaration.
77978         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77979         (acl_access_nontrivial): Remove MacOS X case.
77980         (file_has_acl): Use acl_extended_nontrivial.
77981         * lib/copy-acl.c (qcopy_acl): Likewise.
77983 2008-06-08  Bruno Haible  <bruno@clisp.org>
77985         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77987 2008-06-08  Jim Meyering  <meyering@redhat.com>
77989         * modules/acl (Maintainer): Add Bruno Haible.
77991 2008-06-07  Bruno Haible  <bruno@clisp.org>
77993         Improve support for Tru64 ACLs.
77994         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77995         ACL on OSF/1.
77997 2008-06-07  Bruno Haible  <bruno@clisp.org>
77999         Add support for MacOS X ACLs.
78000         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
78001         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
78002         * lib/set-mode-acl.c (qset_acl): Likewise.
78003         * lib/copy-acl.c (qcopy_acl): Likewise.
78005 2008-06-07  Bruno Haible  <bruno@clisp.org>
78007         Fix memory leak introduced on 2008-05-22.
78008         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
78009         use.
78011 2008-06-07  Bruno Haible  <bruno@clisp.org>
78013         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
78014         to construct an empty ACL.
78016 2008-06-07  Bruno Haible  <bruno@clisp.org>
78018         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
78019         precisely.
78020         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
78022 2008-06-07  Bruno Haible  <bruno@clisp.org>
78024         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
78025         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
78027 2008-06-07  Bruno Haible  <bruno@clisp.org>
78029         * doc/posix-functions/_setjmp.texi: Explain the use of this function
78030         regardless of POSIX.
78031         * doc/posix-functions/_longjmp.texi: Likewise.
78032         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
78033         SystemV platform in this case.
78035 2008-06-06  Eric Blake  <ebb9@byu.net>
78037         Document abort() bugs.
78038         * doc/posix-functions/abort.texi (abort): Mention anomalies.
78040         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
78041         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
78042         sigsetjmp.
78043         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
78044         siglongjmp, but only as a macro.
78045         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
78046         is obsolete.
78047         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
78049         Tweak documentation to cover cygwin argz bugs.
78050         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
78051         argz bug fix; no code change needed since no cygwin releases
78052         occurred between the last fix and the bug being tested.
78053         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
78054         module and recently fixed cygwin bugs.
78055         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
78056         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
78057         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
78058         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
78059         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
78060         Likewise.
78061         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
78062         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
78063         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
78064         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
78065         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
78066         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
78067         Likewise.
78069         Avoid gcc warning on cygwin.
78070         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
78071         !ACL_NO_TRIVIAL]: Avoid unused variable.
78073 2008-06-05  Eric Blake  <ebb9@byu.net>
78075         Be tolerant of UNKNOWN version in gnulib-tool test dir.
78076         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
78077         git-version-gen fails to come up with a version.
78078         Reported by Simon Josefsson.
78080 2008-06-05  Jim Meyering  <meyering@redhat.com>
78081             Paul Eggert  <eggert@cs.ucla.edu>
78083         utimens.c: work around a probable Linux kernel bug
78084         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
78085         appears to be a kernel bug that causes utimensat to return 280
78086         instead of 0, indicating success.
78088 2008-06-04  Bruno Haible  <bruno@clisp.org>
78090         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
78091         2008-06-01 commit.
78093 2008-06-04  Bruno Haible  <bruno@clisp.org>
78095         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
78096         * lib/file-has-acl.c (acl_access_nontrivial): New function.
78097         (file_has_acl): Use it. Save errno afterwards.
78098         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
78100 2008-06-03  Bruno Haible  <bruno@clisp.org>
78102         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
78103         draft code. Simplify #ifs.
78104         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
78105         Put Solaris code after POSIX-draft code. Fix comments regarding
78106         Solaris 10, HP-UX. Mention Cygwin.
78107         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
78109 2008-06-03  Eric Blake  <ebb9@byu.net>
78111         Provide fallback for older kernels.
78112         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
78113         Provide runtime fallback if kernel lacks support.
78114         Reported by Mike Frysinger.
78116 2008-06-02  Bruno Haible  <bruno@clisp.org>
78118         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
78119         it exists.
78121 2008-06-02  Bruno Haible  <bruno@clisp.org>
78123         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
78124         * lib/copy-acl.c (qcopy_acl): Update comment.
78126 2008-06-02  Bruno Haible  <bruno@clisp.org>
78128         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
78129         like ACL APIs.
78131 2008-06-02  Bruno Haible  <bruno@clisp.org>
78133         * tests/test-file-has-acl.sh: Use different code for Cygwin.
78134         * tests/test-set-mode-acl.sh: Likewise.
78135         * tests/test-copy-acl.sh: Likewise.
78136         * tests/test-copy-file.sh: Likewise.
78138 2008-06-02  Bruno Haible  <bruno@clisp.org>
78140         * tests/test-file-has-acl.sh: Remove unused code.
78142 2008-06-01  Bruno Haible  <bruno@clisp.org>
78144         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
78145         (copy_acl): Just a wrapper around qcopy_acl that emits the error
78146         messages.
78147         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
78149 2008-06-01  Bruno Haible  <bruno@clisp.org>
78151         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
78152         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
78153         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
78154         APIs.
78155         * modules/acl-tests (configure.ac): Remove tests now contained in
78156         m4/acl.m4.
78158 2008-06-02  Jim Meyering  <meyering@redhat.com>
78160         announce-gen: use a better key-server host name
78161         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
78162         it may be more consistently reliable.  Suggested by Werner Koch
78163         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
78165 2008-06-01  Bruno Haible  <bruno@clisp.org>
78167         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
78168         Reported by Voroskoi Andras <voroskoi@gmail.com>.
78170 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
78172         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
78174 2008-06-01  Bruno Haible  <bruno@clisp.org>
78176         New ACL tests.
78177         * tests/test-file-has-acl.sh: New file.
78178         * tests/test-file-has-acl.c: New file.
78179         * tests/test-set-mode-acl.sh: New file.
78180         * tests/test-set-mode-acl.c: New file.
78181         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
78182         * tests/test-copy-acl.c: New file.
78183         * modules/acl-tests: New file, based on modules/copy-file-tests.
78184         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
78185         (Depends-on): Add acl-tests.
78186         (configure.ac): Remove checks.
78187         (Makefile.am): Don't create test-sameacls program here any more.
78189 2008-06-01  Bruno Haible  <bruno@clisp.org>
78191         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
78192         * tests/test-sameacls.c: Include progname.h.
78193         (main): Invoke set_program_name. Portability fixes for MacOS X,
78194         Solaris, HP-UX.
78196 2008-06-01  Bruno Haible  <bruno@clisp.org>
78198         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
78199         function.
78200         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
78202 2008-06-01  Bruno Haible  <bruno@clisp.org>
78204         * modules/rpmatch (Depends-on): Add strdup.
78206 2008-06-01  Bruno Haible  <bruno@clisp.org>
78208         * lib/pipe.c: Include unistd-safer.h.
78209         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
78210         * modules/pipe (Depends-on): Add unistd-safer.
78212 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78214         * modules/autobuild (configure.ac): Call AB_INIT.
78216 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78218         * tests/test-getaddrinfo.c: Don't print debug messages by default.
78219         Suggested by Bruno Haible <bruno@clisp.org>.
78221 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78223         * tests/test-base64.c: Cast size_t to unsigned long when invoking
78224         printf.  Use %lu instead of %d.  Reported by Bruno Haible
78225         <bruno@clisp.org>.
78227 2008-05-29  Eric Blake  <ebb9@byu.net>
78229         Prefer new POSIX 200x interfaces over futimesat.
78230         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
78231         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
78232         when available.
78233         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
78235 2008-05-28  Bruno Haible  <bruno@clisp.org>
78237         * modules/stpcpy (License): Change to LGPLv2+.
78238         Requested by David Lutterkort <dlutter@redhat.com>.
78240 2008-05-27  Bruno Haible  <bruno@clisp.org>
78242         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
78243         current mingw.
78244         Reported by Jose E. Marchesi <jemarch@gnu.org>.
78246 2008-05-27  Bruno Haible  <bruno@clisp.org>
78248         * modules/iconv_open (Link): New section, from module 'iconv'.
78249         * modules/striconv (Link): Likewise.
78250         * modules/striconveh (Link): Likewise.
78251         * modules/xstriconv (Link): Likewise.
78252         * modules/unicodeio (Link): Likewise.
78253         * modules/propername (Link): Likewise.
78254         Reported by Jim Meyering.
78256 2008-05-26  Jim Meyering  <meyering@redhat.com>
78258         sha256: do not artificially restrict buffer length to be < 2^32
78259         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
78260         uint32_t to size_t.
78261         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
78262         to match.
78264         avoid unaligned access errors, e.g., on sparc
78265         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
78266         direct access through a possibly-unaligned uint64* pointer.
78267         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
78268         direct access through a possibly-unaligned uint32* pointer.
78269         Prompted by this patch from Tom "spot" Callaway:
78270         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
78272         sha512.c: fix typo in comment
78273         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
78275 2008-05-25  Bruno Haible  <bruno@clisp.org>
78277         * lib/set-mode-acl.c: Renamed from lib/acl.c.
78278         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
78279         (Makefile.am): Update lib_SOURCES.
78281 2008-05-25  Bruno Haible  <bruno@clisp.org>
78283         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
78285 2008-05-25  Jim Meyering  <meyering@redhat.com>
78287         useless-if-before-free: freed expr may have white-space differences
78288         * build-aux/useless-if-before-free: Recognize cases in which the
78289         freed expression differs from the tested one in embedded white
78290         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
78291         $1 was used, so we can't make any regexp shy.  Improved tests now
78292         detect this.
78294         useless-if-before-free: accept white space in the expression.
78295         * build-aux/useless-if-before-free: For now, any white space
78296         in the expression must be identical in the free argument.
78298         useless-if-before-free: efficiency tweak
78299         * build-aux/useless-if-before-free: Make the expression-matching
78300         regexp "shy".
78301         Make the *outer* regexp shy, not the expr-matching one.
78303         update code-in-comment to accept cast of free arg
78304         * build-aux/useless-if-before-free: Update regexp.
78306 2008-05-25  Bruno Haible  <bruno@clisp.org>
78308         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
78309         * modules/copy-file-tests (Files, Makefile.am): Update.
78310         * tests/test-copy-file.c (func_test_copy): Update.
78312 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
78314         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
78316 2008-05-23  Bruno Haible  <bruno@clisp.org>
78318         Improve support for ACLs on OSF/1.
78319         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
78320         Remove fallback for unknown flavors of ACLs.
78322 2008-05-22  Bruno Haible  <bruno@clisp.org>
78324         Add support for ACLs on OSF/1.
78325         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
78326         replacements.
78327         (acl_free_text): New macro fallback.
78328         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
78329         acl_free.
78330         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78331         acl_free_text function. Require AC_C_INLINE.
78333 2008-05-22  Bruno Haible  <bruno@clisp.org>
78335         Make copy_acl work on MacOS X 10.5.
78336         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78337         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78338         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78339         If MODE_INSIDE_ACL, don't assume that every system has the same text
78340         representation for ACLs as FreeBSD.
78341         * lib/copy-acl.c (copy_acl): Add support for platforms with
78342         !MODE_INSIDE_ACL.
78343         * lib/file-has-acl.c (file_has_acl): Likewise.
78344         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78345         FreeBSD, MacOS X, or IRIX, respectively.
78347 2008-05-22  Bruno Haible  <bruno@clisp.org>
78349         * lib/acl.h: Don't include <sys/acl.h>.
78350         (GETACLCNT): Move fallback to lib/acl-internal.h.
78351         * lib/acl-internal.h: Include <sys/acl.h> here.
78352         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78354 2008-05-22  Bruno Haible  <bruno@clisp.org>
78356         Split off copy_acl function to separate file.
78357         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78358         * lib/acl.c (copy_acl): Moved function to separate file.
78359         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78360         * modules/acl (Files): Add lib/copy-acl.c.
78361         (Makefiles.am): Augment lib_SOURCES.
78363 2008-05-22  Bruno Haible  <bruno@clisp.org>
78365         * modules/copy-file-tests: New file.
78366         * tests/test-copy-file.sh: New file.
78367         * tests/test-copy-file.c: New file.
78368         * tests/test-copy-file-sameacls.c: New file.
78370 2008-05-22  Eric Blake  <ebb9@byu.net>
78372         Avoid gcc warning.
78373         * tests/test-memcmp.c (main): Pass NULL indirectly.
78375 2008-05-21  Bruno Haible  <bruno@clisp.org>
78377         Add reference doc about ACLs.
78378         * doc/acl-resources.txt: New file.
78379         * doc/acl-cygwin.txt: New file.
78381 2008-05-21  Bruno Haible  <bruno@clisp.org>
78383         Avoid one more warning from gcc.
78384         * lib/vasnprintf.c (IF_LINT): Update comments.
78385         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78387 2008-05-21  Jim Meyering  <meyering@redhat.com>
78389         avoid a warning from gcc
78390         * lib/vasnprintf.c (IF_LINT): Define.
78391         (scale10_round_decimal_long_double):
78392         Use it to avoid a "may be used uninitialized" warning.
78393         (scale10_round_decimal_double): Likewise.
78395 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78397         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78398         declared.
78400 2008-05-20  Bruno Haible  <bruno@clisp.org>
78402         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78403         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78405 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78407         * modules/memcmp-tests: New file.
78408         * tests/test-memcmp.c: New file.
78410 2008-05-19  Bruno Haible  <bruno@clisp.org>
78412         * modules/propername (Notice, configure.ac): Put quoted "..." into
78413         --keyword option.
78414         * lib/propername.h: Update comments accordingly.
78415         Reported by Eric Blake.
78417 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78419         * modules/getpass-gnu (Depends-on): Add fseeko.
78421 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78423         * modules/base64-tests: New file.
78425 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78427         * lib/base64.c (base64_decode_ctx): If a decode context structure
78428         was passed in use it to ignore newlines.  If a context structure
78429         was _not_ passed in, continue to treat newlines as garbage (this
78430         is the historical behavior).  Formerly base64_decode.
78431         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78432         takes a decode context structure.
78433         * lib/base64.h (base64_decode): Macro for four-argument calls.
78434         (base64_decode_alloc): Likewise.
78435         * lib/base64.c (base64_decode_ctx): If a decode context structure
78436         was passed in use it to ignore newlines.  If a context structure
78437         was _not_ passed in, continue to treat newlines as garbage (this
78438         is the historical behavior).  Formerly base64_decode.
78439         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78440         takes a decode context structure.
78441         * lib/base64.h (base64_decode): Macro for four-argument calls.
78442         (base64_decode_alloc): Likewise.
78444 2008-05-19  Jim Meyering  <meyering@redhat.com>
78446         avoid a warning from gcc
78447         * lib/trim.c (IF_LINT): Define.
78448         (trim2): Use it to avoid a "may be used uninitialized" warning.
78450         Fix doc typo.
78451         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78453 2008-05-19  Bruno Haible  <bruno@clisp.org>
78455         * doc/glibc-functions/getpass.texi: Document limits of other
78456         implementations.
78458 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78459             Bruno Haible <bruno@clisp.org>
78461         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78463 2008-05-18  Bruno Haible  <bruno@clisp.org>
78465         * modules/propername: New file, from GNU gettext.
78466         * lib/propername.h: New file, from GNU gettext.
78467         * lib/propername.c: New file, from GNU gettext.
78468         * MODULES.html.sh (Internationalization functions): Add propername.
78470 2008-05-16  Jim Meyering  <meyering@redhat.com>
78471             Bruno Haible  <bruno@clisp.org>
78473         Avoid some warnings from "gcc -Wshadow".
78474         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78476 2008-05-15  Eric Blake  <ebb9@byu.net>
78478         Extend previous patch to cygwin 1.7.0.
78479         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78480         fast implementation in cygwin >= 1.7.0.
78481         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78484 2008-05-15  Bruno Haible  <bruno@clisp.org>
78486         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78487         implementation in glibc >= 2.9.
78488         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78491 2008-05-15  Bruno Haible  <bruno@clisp.org>
78493         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78494         (Unicode string functions): Add unilbrk/*.
78495         Reported by Karl Berry.
78497 2008-05-15  Eric Blake  <ebb9@byu.net>
78499         Fix violation of <stdbool.h> replacement in regex.
78500         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78501         * lib/regexec.c (re_search_internal): Likewise.
78502         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78504 2008-05-15  Jim Meyering  <meyering@redhat.com>
78506         avoid distracting test output when git or cvs is not found
78507         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78508         * tests/test-vc-list-files-git.sh: Likewise.
78510 2008-05-15  Eric Blake  <ebb9@byu.net>
78512         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78513         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78514         glibc version.
78515         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78516         * doc/posix-functions/strstr.texi (strstr): Likewise.
78517         * lib/str-two-way.h (MAX): Sychronize with glibc.
78519 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78521         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78522         opr.ctx_type.
78523         (calc_first): Initialize constraint field.
78524         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78525         Fix grammar.
78526         (duplicate_node): Merge constraint field for all node types.
78527         (calc_eclosure_iter): Look at constraint field for all node types.
78528         * lib/regex_internal.c (create_cd_newstate): Don't look at
78529         opr.ctx_type.
78531 2008-05-14  Bruno Haible  <bruno@clisp.org>
78533         Help GCC to do better code generation.
78534         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78535         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78536         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78537         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78538         Declare with attribute 'malloc' if supported.
78540 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78542         use "echo STR|wc -c" rather than unportable "expr length STR"
78543         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78544         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78546 2008-05-14  Jim Meyering  <meyering@redhat.com>
78548         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78549         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78550         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78551         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78552         via Collin Lasse.
78554 2008-05-14  Eric Blake  <ebb9@byu.net>
78556         Avoid quadratic growth in gl_LIBSOURCES.
78557         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78558         Suggested by Bruno Haible.
78560         Test xmemdup0.
78561         * modules/xmemdup0-tests: New file.
78562         * tests/test-xmemdup0.c: Likewise.
78564 2008-05-13  Eric Blake  <ebb9@byu.net>
78566         Split xmemdup0 into its own module.
78567         * modules/xmemdup0: New file.
78568         * lib/xmemdup0.h: Likewise.
78569         * lib/xmemdup0.c: Likewise.
78570         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78571         * lib/xalloc.h (xmemdup0): Remove.
78572         * lib/xmalloc.c (xmemdup0): Likewise.
78574 2008-05-13  Eric Blake  <ebb9@byu.net>
78575             Bruno Haible  <bruno@clisp.org>
78577         Reduce number of forks required during autoconf.
78578         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78579         and gl_LIBSOURCES_DIR.
78580         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78581         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78582         m4_syscmd per file.
78583         <m4_foreach_w>: Move...
78584         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78586 2008-05-13  Eric Blake  <ebb9@byu.net>
78588         * gnulib-tool: Fix various comment typos.
78590 2008-05-12  Bruno Haible  <bruno@clisp.org>
78592         Tailor the linebreaking algorithm.
78593         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78595 2008-05-12  Bruno Haible  <bruno@clisp.org>
78597         Update to Unicode 5.0.0.
78598         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78599         LBP_JV, LBP_JT. Redistribute values.
78600         (unilbrk_table): Change size.
78601         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78602         Unicode TR#14 rev. 22.
78603         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78604         LBP_JV, LBP_JT. Redistribute values.
78605         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78606         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78607         Update.
78608         * lib/unilbrk/lbrkprop1.h: Regenerated.
78609         * lib/unilbrk/lbrkprop2.h: Regenerated.
78610         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78611         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78612         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78613         Likewise.
78614         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78615         Likewise.
78616         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78617         result.
78618         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78619         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78620         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78621         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78622         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78623         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78625 2008-05-11  Bruno Haible  <bruno@clisp.org>
78627         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78629 2008-05-11  Bruno Haible  <bruno@clisp.org>
78631         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78632         * modules/unilbrk/gen-lbrk: New file.
78634 2008-05-11  Bruno Haible  <bruno@clisp.org>
78636         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78637         * m4/sha512.m4 (gl_SHA512): Likewise.
78639 2008-05-11  Jim Meyering  <meyering@redhat.com>
78641         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78642         * modules/crypto/sha256: New file.
78643         * modules/crypto/sha512: Likewise.
78644         * lib/sha256.c: Likewise.
78645         * lib/sha256.h: Likewise.
78646         * lib/sha512.c: Likewise.
78647         * lib/sha512.h: Likewise.
78648         * lib/u64.h: Likewise.
78649         * m4/sha256.m4: Likewise.
78650         * m4/sha512.m4: Likewise.
78651         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78653 2008-05-10  Bruno Haible  <bruno@clisp.org>
78655         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78656         (Input/Output <stdio.h>): Add xprintf.
78657         (Signal handling <signal.h>): Add strsignal.
78658         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78659         (Core language properties): Add func.
78660         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78661         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78662         strings.
78663         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78664         (Input/output): New section.
78665         (File system functions): Add openat-die, stat-macros.
78666         (Networking functions): Add sockets.
78667         (Unicode string functions): Add unictype/*.
78668         (Support for building libraries and executables): Add gperf.
78669         (Support for building documentation): Add agpl-3.0.
78670         (Misc): Add nocrash.
78672 2008-05-10  Bruno Haible  <bruno@clisp.org>
78674         * modules/unictype/gen-ctype: New file.
78676 2008-05-10  Jim Meyering  <meyering@redhat.com>
78678         Make chdir-safer.c more efficient on a system with no symlinks.
78679         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78680         also if ELOOP is zero.  Suggested by Bruno Haible.
78682         Make chdir-safer.c slightly safer.
78683         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78684         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78686         Avoid compile failure on systems without ELOOP (like mingw).
78687         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78688         Reported by Bruno Haible.
78690 2008-05-10  Bruno Haible  <bruno@clisp.org>
78692         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78693         (is_utf8_encoding): Use a case-insensitive comparison.
78694         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78695         streq.
78697 2008-05-10  Bruno Haible  <bruno@clisp.org>
78699         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78700         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78701         * lib/unilbrk/ulc-common.h (iconv_string_length,
78702         iconv_string_keeping_offsets): Remove declarations.
78703         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78704         Don't include <iconv.h>, streq.h, xsize.h.
78705         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78706         conversion.
78707         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78708         <iconv.h>, streq.h, xsize.h.
78709         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78710         conversion.
78711         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78712         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78713         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78714         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78716 2008-05-10  Bruno Haible  <bruno@clisp.org>
78718         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78719         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78721         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78722         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78724         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78725         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78727         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78728         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78730         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78731         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78733         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78734         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78736         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78737         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78739         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78740         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78742 2008-05-10  Bruno Haible  <bruno@clisp.org>
78744         Split up 'linebreak' module.
78745         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78746         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78747         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78748         modifications.
78749         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78750         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78751         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78752         lib/linebreak.c.
78753         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78754         lib/linebreak.c.
78755         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78756         lib/linebreak.c.
78757         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78758         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78759         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78760         lib/linebreak.c.
78761         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78762         lib/linebreak.c.
78763         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78764         lib/linebreak.c.
78765         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78766         lib/linebreak.c.
78767         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78768         lib/linebreak.c.
78769         * modules/unilbrk/base: New file.
78770         * modules/unilbrk/tables: New file.
78771         * modules/unilbrk/u8-possible-linebreaks: New file.
78772         * modules/unilbrk/u16-possible-linebreaks: New file.
78773         * modules/unilbrk/u32-possible-linebreaks: New file.
78774         * modules/unilbrk/ulc-common: New file.
78775         * modules/unilbrk/ulc-possible-linebreaks: New file.
78776         * modules/unilbrk/u8-width-linebreaks: New file.
78777         * modules/unilbrk/u16-width-linebreaks: New file.
78778         * modules/unilbrk/u32-width-linebreaks: New file.
78779         * modules/unilbrk/ulc-width-linebreaks: New file.
78780         * lib/linebreak.h: Remove file.
78781         * lib/linebreak.c: Remove file.
78782         * m4/linebreak.m4: Remove file.
78783         * modules/linebreak: Remove file.
78784         * NEWS: Mention the changes.
78786 2008-05-09  Eric Blake  <ebb9@byu.net>
78788         Add xmemdup0.
78789         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78790         implementation.
78791         * lib/xmalloc.c (xmemdup0): New C implementation.
78793 2008-05-08  Bruno Haible  <bruno@clisp.org>
78795         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78797 2008-05-07  Eric Blake  <ebb9@byu.net>
78799         Support cross-compilation of <wctype.h>.
78800         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78801         AC_CACHE_CHECK.
78803 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78805         * build-aux/vc-list-files: Add support for bzr.
78807 2008-05-03  Jim Meyering  <meyering@redhat.com>
78809         avoid failed assertion with tight malloc
78810         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78812 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78814         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78815         are needed from arpa/inet.h.
78816         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78817         Reported by Bruno Haible.
78819 2008-05-02  Jim Meyering  <meyering@redhat.com>
78821         avoid compilation error on FreeBSD 6
78822         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78824 2008-05-01  Jim Meyering  <meyering@redhat.com>
78826         useless-if-before-free: correct --help's exit status description
78827         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78828         for one or more matches, etc.  Reported by Bruno Haible.
78830         vc-list-files: make the stand-alone gnulib test work
78831         * modules/vc-list-files-tests (configure.ac):
78832         Define and AC_SUBST abs_aux_dir.
78833         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78834         $(abs_top_srcdir) to each script and having each of them
78835         duplicate the work of setting PATH, set PATH here, using
78836         the new variable, abs_aux_dir instead.
78837         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78838         * tests/test-vc-list-files-git.sh: Likewise.
78839         Reported by Bruno Haible.
78841 2008-05-01  Bruno Haible  <bruno@clisp.org>
78843         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78844         reallocation. Rename 'done' to 'found_delimiter'.
78846 2008-05-01  Jim Meyering  <meyering@redhat.com>
78848         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78849         * build-aux/vc-list-files: Use `...`, not $(...).
78851 2008-04-30  Jim Meyering  <meyering@redhat.com>
78853         add tests for vc-list-files
78854         * modules/vc-list-files-tests: New module.
78855         * tests/test-vc-list-files-cvs.sh: New file.
78856         * tests/test-vc-list-files-git.sh: New file.
78858         avoid a warning from gcc
78859         * lib/getndelim2.c (IF_LINT): Define.
78860         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78862         vc-list-files: work properly with build-aux/cvsu, too
78863         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78864         to all cvs-based clauses.
78866         vc-list-files: work properly in the CVS+awk case, too
78867         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78869         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78870         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78871         take more than one file argument, so .  Add quotes, just in case $dir
78872         ever contains a shell meta-character.  Prompted by Soren Hansen in
78873         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78875 2008-04-29  Eric Blake  <ebb9@byu.net>
78877         Optimize getndelim2 to use block operations when possible.
78878         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78879         freadseek, and memchr2.
78880         * lib/getndelim2.c (getndelim2): Use them for block reads.
78882 2008-04-29  Bruno Haible  <bruno@clisp.org>
78884         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78885         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78886         * modules/inet_ntop (Depends-on): Add extensions.
78887         * modules/inet_pton (Depends-on): Likewise.
78888         Reported by Simon Josefsson.
78890 2008-04-29  Jim Meyering  <meyering@redhat.com>
78892         When the is more than one match in a block, match all of them.
78893         * build-aux/useless-if-before-free: Iterate through each block
78894         until there are no more matches.
78896         Fix broken useless-if-before-free script.
78897         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78898         the expression to match cast of argument to free-like function.
78900 2008-04-29  Eric Blake  <ebb9@byu.net>
78902         Use new header.
78903         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78905 2008-04-29  Jim Meyering  <meyering@redhat.com>
78907         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78908         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78909         by gnulib to exist and to declare e.g., inet_ntop.
78910         Don't include "inet_ntop.h", now removed.
78912         * m4/arpa_inet_h.m4: Remove trailing blanks.
78914 2008-04-29  Eric Blake  <ebb9@byu.net>
78916         Silence valgrind on safe reads beyond potential array bounds.
78917         * lib/rawmemchr.valgrind: New file.
78918         * lib/strchrnul.valgrind: Likewise.
78919         * modules/rawmemchr (Files): Distribute new file.
78920         * modules/strchrnul (Files): Likewise.
78921         Suggested by Bruno Haible.
78923 2008-04-29  Bruno Haible  <bruno@clisp.org>
78925         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78926         (inet_ntop, inet_pton): Change portability warning's wording.
78927         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78928         Invoke gl_CHECK_NEXT_HEADERS.
78929         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78930         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78931         set ARPA_INET_H.
78932         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78933         * modules/arpa_inet (Description): No longer only for systems that
78934         lack it.
78935         (Depends-on): Add include_next.
78936         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78937         HAVE_ARPA_INET_H.
78939 2008-04-29  Jim Meyering  <meyering@redhat.com>
78941         * modules/mkdir (License): Re-license as LGPLv2+.
78943 2008-04-29  Bruno Haible  <bruno@clisp.org>
78945         * modules/rawmemchr (Maintainer): Set to Eric.
78946         * modules/strchrnul (Maintainer): Likewise.
78948 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78950         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78951         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78953         * modules/arpa_inet (arpa/inet.h): Use them.
78955 2008-04-28  Eric Blake  <ebb9@byu.net>
78957         Test getndelim2.
78958         * modules/getndelim2-tests: New file.
78959         * tests/test-getndelim2.c: Likewise.
78960         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78961         stream.
78962         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78964         * MODULES.html.sh: Document new module.
78966 2008-04-20  Bruno Haible  <bruno@clisp.org>
78968         * lib/c-stack.c (die): Use raise.
78969         * modules/c-stack (Depends-on): Add raise.
78971 2008-04-28  Bruno Haible  <bruno@clisp.org>
78973         Expect rpmatch to be declared.
78974         * lib/yesno.c (rpmatch): Remove declaration.
78976         Declare rpmatch.
78977         * lib/stdlib.in.h (rpmatch): New declaration.
78978         * lib/rpmatch.c: Include <stdlib.h> first.
78979         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78980         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78982         HAVE_RPMATCH.
78983         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78984         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78985         (Include): Set to <stdlib.h>.
78986         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78987         HAVE_RPMATCH.
78988         * NEWS: Document the change.
78990 2008-04-28  Bruno Haible  <bruno@clisp.org>
78992         Change rpmatch to use nl_langinfo when appropriate.
78993         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78994         (N_): New macro.
78995         (localized_pattern): New function/macro.
78996         (try): Remove match, nomatch arguments. Copy the pattern into safe
78997         memory before caching it.
78998         (rpmatch): Use localized_pattern. Add translator comments.
78999         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
79000         Suggested by Eric Blake.
79001         * modules/rpmatch (Depends-on): Add stdbool.
79003 2008-04-28  Eric Blake  <ebb9@byu.net>
79005         Add rawmemchr module, matching glibc.
79006         * modules/string (Makefile.am): New indicator.
79007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
79008         * lib/string.in.h (rawmemchr): Declare when appropriate.
79009         * modules/rawmemchr: New file.
79010         * m4/rawmemchr.m4: Likewise.
79011         * lib/rawmemchr.c: Likewise.
79012         * modules/rawmemchr-tests: Likewise.
79013         * tests/test-rawmemchr.c: Likewise.
79014         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
79015         module.
79016         * modules/strchrnul (Depends-on): Add rawmemchr.
79017         * lib/strchrnul.c (strchrnul): Optimize a corner case.
79019         Whitespace cleanup.
79020         * tests/test-strchrnul.c: Reindent.
79021         * lib/strchrnul.c: Likewise.
79023         Optimize and test strchrnul.
79024         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
79025         * modules/strchrnul-tests: New file.
79026         * tests/test-strchrnul.c: Likewise.
79028         Remove intprops dependency.
79029         * modules/memchr (Depends-on): Remove intprops.
79030         * modules/memrchr (Depends-on): Likewise.
79031         * modules/memchr2 (Depends-on): Likewise.
79032         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
79033         * lib/memrchr.c (__memrchr): Likewise.
79034         * lib/memrchr2.c (memchr2): Likewise.
79035         Reported by Simon Josefsson.
79037 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79039         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
79040         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79042 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79044         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
79046         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
79048         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
79050         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
79051         declarations.
79052         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
79054         * m4/inet_pton.m4: Don't check for header files.
79056         * m4/inet_ntop.m4: Don't check for header files.
79058 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79060         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
79061         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
79062         trigger for cygwin).
79063         Reported by Bruno Haible  <bruno@clisp.org>.
79065 2008-04-28  Bruno Haible  <bruno@clisp.org>
79067         * doc/posix-functions/strdup.texi: Mention mingw problem.
79069 2008-04-27  Bruno Haible  <bruno@clisp.org>
79071         * modules/stat-time-tests (Depends-on): Add sleep.
79072         * tests/test-stat-time.c (force_unlink): New function.
79073         (cleanup): Use it.
79074         (test_mtime): Remove the ctime related tests.
79075         (test_ctime): New function, containing the ctime related tests.
79076         (main): Call test_ctime, except on native Windows platforms.
79078 2008-04-27  Bruno Haible  <bruno@clisp.org>
79080         * lib/rpmatch.c (rpmatch): Add some comments.
79081         Reported by James Youngman <jay@gnu.org>.
79083 2008-04-27  Bruno Haible  <bruno@clisp.org>
79085         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
79086         quiet NaNs.
79088 2008-04-27  Bruno Haible  <bruno@clisp.org>
79090         Make test-yesno.sh work on mingw.
79091         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
79092         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
79093         (main): Set stdin to binary mode.
79094         * modules/yesno-tests (Depends-on): Add binary-io.
79096 2008-04-27  Bruno Haible  <bruno@clisp.org>
79098         Fix 'isfinite' on x86, x86_64, ia64 platforms.
79099         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
79100         argument that lie outside the IEEE 854 domain.
79101         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
79102         (gl_ISFINITE): Use it.
79103         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
79105 2008-04-27  Bruno Haible  <bruno@clisp.org>
79107         Allow local renaming in config.h.
79108         * lib/memrchr.c (memrchr): Don't undefine outside libc.
79110 2008-04-27  Bruno Haible  <bruno@clisp.org>
79112         * lib/memchr.c (__memchr): Change type of 'i'.
79113         * lib/memchr2.c (memchr2): Likewise.
79115 2008-04-26  Eric Blake  <ebb9@byu.net>
79116         and Bruno Haible  <bruno@clisp.org>
79118         Optimize and test memrchr.
79119         * modules/memrchr (Depends-on): Add intprops.
79120         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
79121         * modules/memrchr-tests: New file.
79122         * tests/test-memrchr.c: New file.
79124 2008-04-26  Bruno Haible  <bruno@clisp.org>
79126         Add tentative support for DragonFly BSD.
79127         * lib/stdio-impl.h: Add macros for DragonFly BSD.
79128         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
79129         fp.
79130         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79131         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
79132         * lib/fpurge.c (fpurge): Likewise.
79133         * lib/freadable.c (freaadable): Likewise.
79134         * lib/freadahead.c (freadahead): Likewise.
79135         * lib/freading.c (freading): Likewise.
79136         * lib/freadptr.c (freadptr): Likewise.
79137         * lib/freadseek.c (freadptrinc): Likewise.
79138         * lib/fseeko.c (fseeko): Likewise.
79139         * lib/fseterr.c (fseterr): Likewise.
79140         * lib/fwritable.c (fwritable): Likewise.
79141         * lib/fwriting.c (fwriting): Likewise.
79143 2008-04-26  Bruno Haible  <bruno@clisp.org>
79145         * lib/stdio-impl.h: New file.
79146         * lib/fbufmode.c: Include stdio-impl.h.
79147         (fbufmode): Use fp_, remove redundant #defines.
79148         * lib/fflush.c: Include stdio-impl.h.
79149         (clear_ungetc_buffer): Remove redundant #defines.
79150         * lib/fpurge.c: Include stdio-impl.h.
79151         (fpurge): Remove redundant #defines.
79152         * lib/freadable.c: Include stdio-impl.h.
79153         (freadable): Remove redundant #defines.
79154         * lib/freadahead.c: Include stdio-impl.h.
79155         (freadahead): Remove redundant #defines.
79156         * lib/freading.c: Include stdio-impl.h.
79157         (freading): Remove redundant #defines.
79158         * lib/freadptr.c: Include stdio-impl.h.
79159         (freadptr): Remove redundant #defines.
79160         * lib/freadseek.c: Include stdio-impl.h.
79161         (freadptrinc): Remove redundant #defines.
79162         * lib/fseeko.c: Include stdio-impl.h.
79163         (rpl_fseeko): Remove redundant #defines.
79164         * lib/fseterr.c: Include stdio-impl.h.
79165         (fseterr): Remove redundant #defines.
79166         * lib/fwritable.c: Include stdio-impl.h.
79167         (fwritable: Remove redundant #defines.
79168         * lib/fwriting.c: Include stdio-impl.h.
79169         (fwriting): Remove redundant #defines.
79170         * modules/fbufmode (Files): Add lib/stdio-impl.h.
79171         * modules/fflush (Files): Likewise.
79172         * modules/fpurge (Files): Likewise.
79173         * modules/freadable (Files): Likewise.
79174         * modules/freadahead (Files): Likewise.
79175         * modules/freading (Files): Likewise.
79176         * modules/freadptr (Files): Likewise.
79177         * modules/freadseek (Files): Likewise.
79178         * modules/fseeko (Files): Likewise.
79179         * modules/fseterr (Files): Likewise.
79180         * modules/fwritable (Files): Likewise.
79181         * modules/fwriting (Files): Likewise.
79183 2008-04-26  Bruno Haible  <bruno@clisp.org>
79185         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79186         restore_seek_optimization, update_fpos_cache): New functions, extracted
79187         from rpl_fflush.
79188         (rpl_fflush): Use them.
79189         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
79190         (gl_REPLACE_FFLUSH): Use it.
79192 2008-04-26  Bruno Haible  <bruno@clisp.org>
79194         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
79195         on Solaris.
79196         * tests/test-xstrtoimax.sh: Likewise.
79197         * tests/test-xstrtoumax.sh: Likewise.
79198         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79200 2008-04-26  Bruno Haible  <bruno@clisp.org>
79202         * modules/memchr-tests: New file.
79203         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
79205 2008-04-26  Eric Blake  <ebb9@byu.net>
79206             Bruno Haible  <bruno@clisp.org>
79208         * lib/memchr.c: Include intprops.h.
79209         (__memchr): Optimize parallel detection of matching bytes. Rename local
79210         variables. Add explanatory comments.
79212 2008-04-26  Bruno Haible  <bruno@clisp.org>
79214         Fix module 'memchr', broken since 2000-10-28.
79215         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
79217 2008-04-26  Bruno Haible  <bruno@clisp.org>
79219         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
79220         comments.
79222 2008-04-25  Eric Blake  <ebb9@byu.net>
79224         Use native fstatat on cygwin 1.7.0.
79225         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
79226         first.
79228 2008-04-23  Eric Blake  <ebb9@byu.net>
79230         Improve memchr2 performance.
79231         * lib/memchr2.c (memchr2): Further optimize parallel detection of
79232         NUL bytes.
79233         * modules/memchr2 (Depends-on): Use intprops.h.
79235 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79237         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
79238         an inline function instead of a CPP macro.  Patch by Ben Pfaff
79239         <blp@cs.stanford.edu>.
79241 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79243         * lib/arpa_inet.in.h: New file.
79245         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
79246         (Makefile.am): Sed in substitute header file.
79248         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
79249         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
79251         * modules/inet_ntop (configure.ac): Use
79252         gl_ARPA_INET_MODULE_INDICATOR.
79254         * modules/inet_pton (configure.ac): Use
79255         gl_ARPA_INET_MODULE_INDICATOR.
79257 2008-04-22  Jim Meyering  <meyering@redhat.com>
79259         * modules/verify (License): Re-license as LGPLv2+.
79261 2008-04-22  Simon Josefsson  <simon@josefsson.org>
79263         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
79264         parameter to void* as per POSIX standard (MinGW uses char*).
79266 2008-04-21  Bruno Haible  <bruno@clisp.org>
79268         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79269         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79270         Define to replacements if REPLACE_ISWCNTRL is 1.
79271         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
79272         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
79273         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
79274         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
79275         what it fixes.
79276         * doc/posix-functions/iswalpha.texi: Likewise.
79277         * doc/posix-functions/iswblank.texi: Likewise.
79278         * doc/posix-functions/iswcntrl.texi: Likewise.
79279         * doc/posix-functions/iswdigit.texi: Likewise.
79280         * doc/posix-functions/iswgraph.texi: Likewise.
79281         * doc/posix-functions/iswlower.texi: Likewise.
79282         * doc/posix-functions/iswprint.texi: Likewise.
79283         * doc/posix-functions/iswpunct.texi: Likewise.
79284         * doc/posix-functions/iswspace.texi: Likewise.
79285         * doc/posix-functions/iswupper.texi: Likewise.
79286         * doc/posix-functions/iswxdigit.texi: Likewise.
79287         Reported by Alain Guibert.
79289 2008-04-21  Bruno Haible  <bruno@clisp.org>
79291         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
79292         Patch by Alain Guibert.
79294 2008-04-21  Bruno Haible  <bruno@clisp.org>
79296         Fix test failures on mingw.
79297         * tests/test-xstrtol.c (print_no_progname): New function.
79298         (main): Install it in error_print_progname hook.
79299         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
79300         * tests/test-xstrtoimax.sh: Likewise.
79301         * tests/test-xstrtoumax.sh: Likewise.
79303 2008-04-21  Bruno Haible  <bruno@clisp.org>
79305         Fix test failure on mingw.
79306         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
79308 2008-04-21  Bruno Haible  <bruno@clisp.org>
79310         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
79311         Actually assign a value.
79313 2008-04-20  Bruno Haible  <bruno@clisp.org>
79315         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
79316         take 2.
79317         * lib/canonicalize.c (canonicalize_file_name): Elide if the
79318         'canonicalize-lgpl' module is also used.
79319         * lib/canonicalize-lgpl.c: Undo last change.
79320         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
79322 2008-04-20  Bruno Haible  <bruno@clisp.org>
79324         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
79325         config.h. Provide _mkdir based fallback for mingw.
79326         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
79327         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
79328         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
79329         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79330         rather than defining mkdir in config.h.
79331         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79332         (gl_SYS_STAT_H_DEFAULTS): New macro.
79333         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79334         HAVE_IO_H any more.
79335         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79336         HAVE_DECL_MKDIR and HAVE_IO_H.
79338 2008-04-20  Bruno Haible  <bruno@clisp.org>
79340         * lib/isapipe.c: Port to native Windows platforms.
79342 2008-04-20  Bruno Haible  <bruno@clisp.org>
79344         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79346 2008-04-21  Eric Blake  <ebb9@byu.net>
79348         Work around preprocessors that don't handle UINTMAX_MAX.
79349         * lib/memchr2.c (memchr2): Avoid embedded #if.
79350         Reported by Alain Guibert, fix suggested by Bruno Haible.
79352 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79354         * doc/posix-functions/strftime.texi (strftime): Explain better
79355         Windows incompatibility.  Suggested by Micah Cowan
79356         <micah@cowan.name>.
79358 2008-04-20  Bruno Haible  <bruno@clisp.org>
79360         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79361         unistr/u8-mblen.
79363 2008-04-20  Bruno Haible  <bruno@clisp.org>
79365         Fix test failure on platforms with non-GNU iconv.
79366         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79367         (U_TO_U8): Use it, rather than u16_to_u8.
79368         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79369         units at the end of the input string.
79370         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79372 2008-04-20  Bruno Haible  <bruno@clisp.org>
79374         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79375         when the resulting length is 0.
79376         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79378 2008-04-20  Bruno Haible  <bruno@clisp.org>
79380         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79381         works.
79382         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79384 2008-04-20  Bruno Haible  <bruno@clisp.org>
79386         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79387         * modules/tsearch-tests (configure.ac): Test for initstate function.
79389 2008-04-20  Bruno Haible  <bruno@clisp.org>
79391         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79392         for nlink_t if missing.
79393         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79395 2008-04-19  Bruno Haible  <bruno@clisp.org>
79397         Work around snprintf bug on Linux libc5.
79398         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79400         gl_SNPRINTF_SIZE1.
79401         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79402         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79403         that test failed.
79404         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79405         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79406         * modules/snprintf (Files): Add m4/printf.m4.
79407         * modules/vsnprintf (Files): Likewise.
79408         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79409         * doc/posix-functions/vsnprintf.texi: Likewise.
79411 2008-04-19  Bruno Haible  <bruno@clisp.org>
79413         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79414         from 0.0058 to less than 10^-7.
79416 2008-04-19  Bruno Haible  <bruno@clisp.org>
79418         Fix rounding when a precision is given.
79419         * lib/vasnprintf.c (is_borderline): New function.
79420         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79421         9...9x.
79422         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79423         %e, %g.
79424         * tests/test-vasprintf-posix.c (test_function): Likewise.
79425         * tests/test-snprintf-posix.h (test_function): Likewise.
79426         * tests/test-sprintf-posix.h (test_function): Likewise.
79427         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79428         * tests/test-printf-posix.h (test_function): Likewise.
79429         * tests/test-printf-posix.output: Update.
79430         Reported by John Darrington <john@darrington.wattle.id.au> via
79431         Ben Pfaff <blp@cs.stanford.edu>.
79433 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79435         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79436         Suggested by Bruno Haible <bruno@clisp.org>.
79438 2008-04-17  Bruno Haible  <bruno@clisp.org>
79440         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79441         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79442         implementation.
79443         Patch by Bruce Merry <bmerry@gmail.com>.
79445 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79447         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79448         doesn't work under Windows.
79450 2008-04-16  Bruno Haible  <bruno@clisp.org>
79452         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79453         New macros.
79454         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79455         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79456         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79457         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79458         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79459         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79460         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79461         macros.
79462         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79463         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79464         Northern Sotho, Uighur.
79466 2008-04-16  Bruno Haible  <bruno@clisp.org>
79468         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79469         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79470         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79471         Reported by Daniel Bergström <daniel@octocode.com>.
79473 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79474             Bruno Haible  <bruno@clisp.org>
79476         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79477         function.
79478         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79479         New functions, mostly extracted from gl_locale_name_default.
79480         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79482 2008-04-16  Eric Blake  <ebb9@byu.net>
79484         Adjust strtod detection to catch glibc 2.7 bug.
79485         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79486         Reported by John Gatewood Ham.
79488 2008-04-16  Bruno Haible  <bruno@clisp.org>
79490         Add tentative support for Linux libc5.
79491         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79492         * lib/fpurge.c (fpurge): Likewise.
79493         * lib/freadable.c (freadable): Likewise.
79494         * lib/freadahead.c (freadahead): Likewise.
79495         * lib/freading.c (freading): Likewise.
79496         * lib/freadptr.c (freadptr): Likewise.
79497         * lib/freadseek.c (freadptrinc): Likewise.
79498         * lib/fseeko.c (rpl_fseeko): Likewise.
79499         * lib/fseterr.c (fseterr): Likewise.
79500         * lib/fwritable.c (fwritable): Likewise.
79501         * lib/fwriting.c (fwriting): Likewise.
79502         Reported by Alain Guibert <alguibert+bts@free.fr>.
79504 2008-04-15  Bruno Haible  <bruno@clisp.org>
79506         * modules/mathl (configure.ac): Define module indicator.
79508 2008-04-15  Bruno Haible  <bruno@clisp.org>
79510         * lib/logl.c (logl): Remove unused variables.
79512 2008-04-15  Bruno Haible  <bruno@clisp.org>
79514         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79515         fails.
79517 2008-04-15  Bruno Haible  <bruno@clisp.org>
79519         * lib/trim.c (trim2): Fix argument of isspace() macro.
79521 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79523         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79524         to 0.
79525         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79527 2008-04-14  Bruno Haible  <bruno@clisp.org>
79529         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79530         AC_LANG_PROGRAM argument.
79531         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79532         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79534         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79535         * m4/math_h.m4 (gl_MATH_H): Likewise.
79536         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79537         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79538         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79539         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79540         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79541         * m4/regex.m4 (gl_REGEX): Likewise.
79542         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79543         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79545         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79546         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79547         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79548         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79549         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79551 2008-04-14  Jim Meyering  <meyering@redhat.com>
79553         test-strtod: fix typos: s/abs/fabs/
79554         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79556 2008-04-13  Bruno Haible  <bruno@clisp.org>
79558         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79559         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79560         module is also used and while not building the reloc-wrapper.
79562 2008-04-13  Bruno Haible  <bruno@clisp.org>
79564         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79566 2008-04-13  Bruno Haible  <bruno@clisp.org>
79568         Fix AIX compilation failure introduced on 2008-04-02.
79569         * tests/test-frexp.c (exp): Undefine before redefining.
79570         * tests/test-frexpl.c (exp): Likewise.
79572 2008-04-13  Bruno Haible  <bruno@clisp.org>
79574         Work around a HP-UX stdio bug.
79575         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79576         * tests/test-ftello.c (main): Likewise.
79577         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79578         * doc/posix-functions/ftello.texi: Likewise.
79580 2008-04-13  Bruno Haible  <bruno@clisp.org>
79582         Make test-signbit pass on HP-UX/hppa.
79583         * tests/test-signbit.c (minus_zerol): New variable.
79584         (test_signbitl): Use it.
79586 2008-04-13  Bruno Haible  <bruno@clisp.org>
79588         Make truncl work on OSF/1 4.0.
79589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79590         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79591         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79593         HAVE_DECL_TRUNCL.
79594         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79595         HAVE_DECL_TRUNCL.
79596         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79598 2008-04-13  Bruno Haible  <bruno@clisp.org>
79600         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79602 2008-04-13  Bruno Haible  <bruno@clisp.org>
79604         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79605         expression, so as to avoid HP-UX 11 cc compiler bug.
79607 2008-04-13  Bruno Haible  <bruno@clisp.org>
79609         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79611 2008-04-13  Bruno Haible  <bruno@clisp.org>
79613         * lib/git-merge-changelog.c: Remove empty declaration outside of
79614         functions.
79616 2008-04-13  Bruno Haible  <bruno@clisp.org>
79618         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79620 2008-04-13  Bruno Haible  <bruno@clisp.org>
79622         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79623         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79625         also if it exists but lacks definitions of the SHUT_* macros.
79626         * modules/sys_socket (Description): Update.
79627         Reported by Elbert Pol <e.pol@chello.nl>.
79629 2008-04-13  Bruno Haible  <bruno@clisp.org>
79631         * lib/localcharset.c (OS2): Don't redefine if already defined.
79632         Reported by Elbert Pol <e.pol@chello.nl>.
79634 2008-04-13  Bruno Haible  <bruno@clisp.org>
79636         * lib/binary-io.h [__EMX__]: Include <io.h>.
79637         Reported by Elbert Pol <e.pol@chello.nl>.
79639 2008-04-12  Bruno Haible  <bruno@clisp.org>
79641         * lib/fpucw.h: Enable the definitions also for x86_64.
79642         Needed for NetBSD/x86_64.
79643         Reported by Thomas Klausner <tk@giga.or.at>.
79645 2008-04-12  Bruno Haible  <bruno@clisp.org>
79647         * tests/test-strtod.c: Include isnand.h.
79648         (main): Use isnand instead of isnan.
79649         Reported by Jim Meyering.
79651 2008-04-12  Bruno Haible  <bruno@clisp.org>
79653         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79654         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79656 2008-04-12  Jim Meyering  <meyering@redhat.com>
79658         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79660 2008-04-12  Bruno Haible  <bruno@clisp.org>
79662         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79663         Reported by Elbert Pol <e.pol@chello.nl>.
79665 2008-04-12  Eric Blake  <ebb9@byu.net>
79667         Work around Solaris 10 math.h bug.
79668         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79669         (gl_MATH_H_DEFAULTS): Set up default.
79670         * modules/math (Makefile.am): Replace new indicators.
79671         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79672         * tests/test-math.c (main): Test this.
79673         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79674         * doc/posix-headers/math.texi (math.h): Mention bug.
79675         Reported by Nelson H. F. Beebe and Jim Meyering.
79677 2008-04-11  Bruno Haible  <bruno@clisp.org>
79679         Adapt to future versions of Apple GCC.
79680         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79681         Reported by Peter O'Gorman <peter@pogma.com>.
79683 2008-04-11  Bruno Haible  <bruno@clisp.org>
79685         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79687 2008-04-11  Bruno Haible  <bruno@clisp.org>
79689         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79691         * modules/getaddrinfo-tests (Makefile.am): Define
79692         test_getaddrinfo_LDADD.
79694 2008-04-11  Bruno Haible  <bruno@clisp.org>
79696         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79697         (init): Fix syntax error.
79698         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79699         is declared.
79701 2008-04-11  Bruno Haible  <bruno@clisp.org>
79703         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79704         * modules/glob (Depends-on): Add stdbool.
79706 2008-04-11  Bruno Haible  <bruno@clisp.org>
79708         * lib/trim.c: Include <string.h>.
79710 2008-04-11  Eric Blake  <ebb9@byu.net>
79712         Avoid compile failure on OS/2.
79713         * lib/regex_internal.h (internal_function): Disable optimization
79714         on OS/2 (__EMX__), where it caused compiler error.
79715         Reported by Elbert Pol.
79717 2008-04-11  Bruno Haible  <bruno@clisp.org>
79719         Flush the standard error stream before aborting. Needed on mingw.
79720         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79721         * tests/test-array_list.c (ASSERT): Likewise.
79722         * tests/test-array_oset.c (ASSERT): Likewise.
79723         * tests/test-avltree_list.c (ASSERT): Likewise.
79724         * tests/test-avltree_oset.c (ASSERT): Likewise.
79725         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79726         * tests/test-binary-io.c (ASSERT): Likewise.
79727         * tests/test-byteswap.c (ASSERT): Likewise.
79728         * tests/test-c-ctype.c (ASSERT): Likewise.
79729         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79730         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79731         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79732         * tests/test-c-strstr.c (ASSERT): Likewise.
79733         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79734         * tests/test-canonicalize.c (ASSERT): Likewise.
79735         * tests/test-carray_list.c (ASSERT): Likewise.
79736         * tests/test-ceilf1.c (ASSERT): Likewise.
79737         * tests/test-ceilf2.c (ASSERT): Likewise.
79738         * tests/test-ceill.c (ASSERT): Likewise.
79739         * tests/test-count-one-bits.c (ASSERT): Likewise.
79740         * tests/test-fbufmode.c (ASSERT): Likewise.
79741         * tests/test-fflush2.c (ASSERT): Likewise.
79742         * tests/test-floorf1.c (ASSERT): Likewise.
79743         * tests/test-floorf2.c (ASSERT): Likewise.
79744         * tests/test-floorl.c (ASSERT): Likewise.
79745         * tests/test-fopen.c (ASSERT): Likewise.
79746         * tests/test-fpending.c (ASSERT): Likewise.
79747         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79748         * tests/test-fpurge.c (ASSERT): Likewise.
79749         * tests/test-freadable.c (ASSERT): Likewise.
79750         * tests/test-freadahead.c (ASSERT): Likewise.
79751         * tests/test-freading.c (ASSERT): Likewise.
79752         * tests/test-freadptr.c (ASSERT): Likewise.
79753         * tests/test-freadptr2.c (ASSERT): Likewise.
79754         * tests/test-freadseek.c (ASSERT): Likewise.
79755         * tests/test-freopen.c (ASSERT): Likewise.
79756         * tests/test-frexp.c (ASSERT): Likewise.
79757         * tests/test-frexpl.c (ASSERT): Likewise.
79758         * tests/test-fseek.c (ASSERT): Likewise.
79759         * tests/test-fseeko.c (ASSERT): Likewise.
79760         * tests/test-fstrcmp.c (ASSERT): Likewise.
79761         * tests/test-ftell.c (ASSERT): Likewise.
79762         * tests/test-ftello.c (ASSERT): Likewise.
79763         * tests/test-func.c (ASSERT): Likewise.
79764         * tests/test-fwritable.c (ASSERT): Likewise.
79765         * tests/test-fwriting.c (ASSERT): Likewise.
79766         * tests/test-getdelim.c (ASSERT): Likewise.
79767         * tests/test-getline.c (ASSERT): Likewise.
79768         * tests/test-i-ring.c (ASSERT): Likewise.
79769         * tests/test-iconv-utf.c (ASSERT): Likewise.
79770         * tests/test-iconv.c (ASSERT): Likewise.
79771         * tests/test-isfinite.c (ASSERT): Likewise.
79772         * tests/test-isnand.c (ASSERT): Likewise.
79773         * tests/test-isnanf.c (ASSERT): Likewise.
79774         * tests/test-isnanl.h (ASSERT): Likewise.
79775         * tests/test-ldexpl.c (ASSERT): Likewise.
79776         * tests/test-linked_list.c (ASSERT): Likewise.
79777         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79778         * tests/test-localename.c (ASSERT): Likewise.
79779         * tests/test-lseek.c (ASSERT): Likewise.
79780         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79781         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79782         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79783         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79784         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79785         * tests/test-mbschr.c (ASSERT): Likewise.
79786         * tests/test-mbscspn.c (ASSERT): Likewise.
79787         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79788         * tests/test-mbspbrk.c (ASSERT): Likewise.
79789         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79790         * tests/test-mbsrchr.c (ASSERT): Likewise.
79791         * tests/test-mbsspn.c (ASSERT): Likewise.
79792         * tests/test-mbsstr1.c (ASSERT): Likewise.
79793         * tests/test-mbsstr2.c (ASSERT): Likewise.
79794         * tests/test-mbsstr3.c (ASSERT): Likewise.
79795         * tests/test-memchr2.c (ASSERT): Likewise.
79796         * tests/test-memmem.c (ASSERT): Likewise.
79797         * tests/test-open.c (ASSERT): Likewise.
79798         * tests/test-printf-frexp.c (ASSERT): Likewise.
79799         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79800         * tests/test-printf-posix.c (ASSERT): Likewise.
79801         * tests/test-quotearg.c (ASSERT): Likewise.
79802         * tests/test-rbtree_list.c (ASSERT): Likewise.
79803         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79804         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79805         * tests/test-round1.c (ASSERT): Likewise.
79806         * tests/test-roundf1.c (ASSERT): Likewise.
79807         * tests/test-roundl.c (ASSERT): Likewise.
79808         * tests/test-signbit.c (ASSERT): Likewise.
79809         * tests/test-sleep.c (ASSERT): Likewise.
79810         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79811         * tests/test-snprintf.c (ASSERT): Likewise.
79812         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79813         * tests/test-stat-time.c (ASSERT): Likewise.
79814         * tests/test-strcasestr.c (ASSERT): Likewise.
79815         * tests/test-strerror.c (ASSERT): Likewise.
79816         * tests/test-striconv.c (ASSERT): Likewise.
79817         * tests/test-striconveh.c (ASSERT): Likewise.
79818         * tests/test-striconveha.c (ASSERT): Likewise.
79819         * tests/test-strsignal.c (ASSERT): Likewise.
79820         * tests/test-strstr.c (ASSERT): Likewise.
79821         * tests/test-strtod.c (ASSERT): Likewise.
79822         * tests/test-trunc1.c (ASSERT): Likewise.
79823         * tests/test-trunc2.c (ASSERT): Likewise.
79824         * tests/test-truncf1.c (ASSERT): Likewise.
79825         * tests/test-truncf2.c (ASSERT): Likewise.
79826         * tests/test-truncl.c (ASSERT): Likewise.
79827         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79828         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79829         * tests/test-vasnprintf.c (ASSERT): Likewise.
79830         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79831         * tests/test-vasprintf.c (ASSERT): Likewise.
79832         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79833         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79834         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79835         * tests/test-vsnprintf.c (ASSERT): Likewise.
79836         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79837         * tests/test-wcwidth.c (ASSERT): Likewise.
79838         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79839         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79840         * tests/test-xvasprintf.c (ASSERT): Likewise.
79841         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79842         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79843         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79844         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79845         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79846         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79847         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79848         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79849         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79850         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79851         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79852         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79853         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79854         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79855         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79856         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79857         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79858         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79859         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79860         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79861         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79862         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79863         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79864         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79865         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79866         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79867         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79868         * tests/unictype/test-combining.c (ASSERT): Likewise.
79869         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79870         * tests/unictype/test-digit.c (ASSERT): Likewise.
79871         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79872         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79873         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79874         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79875         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79876         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79877         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79878         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79879         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79880         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79881         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79882         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79883         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79884         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79885         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79886         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79887         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79888         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79889         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79890         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79891         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79892         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79893         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79894         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79895         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79896         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79897         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79898         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79899         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79900         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79901         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79902         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79903         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79904         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79905         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79906         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79907         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79908         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79909         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79910         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79911         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79912         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79913         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79914         Reported by Eric Blake.
79916 2008-04-11  Bruno Haible  <bruno@clisp.org>
79918         * lib/wchar.in.h: Tweak comment.
79920 2008-04-11  Bruno Haible  <bruno@clisp.org>
79922         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79923         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79924         gl_COMMON.
79925         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79927 2008-04-11  Bruno Haible  <bruno@clisp.org>
79929         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79931 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79933         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79934         of attempting to use non-existing /dev/*random.  Based on patch
79935         from Adam Strzelecki <ono@java.pl> in
79936         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79938 2008-04-08  Bruno Haible  <bruno@clisp.org>
79940         Add tentative support for emx+gcc.
79941         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79942         * lib/fpurge.c (fpurge): Likewise.
79943         * lib/freadable.c (freadable): Likewise.
79944         * lib/freadahead.c (freadahead): Likewise.
79945         * lib/freading.c (freading): Likewise.
79946         * lib/freadptr.c (freadptr): Likewise.
79947         * lib/freadseek.c (freadptrinc): Likewise.
79948         * lib/fseeko.c (rpl_fseeko): Likewise.
79949         * lib/fseterr.c (fseterr): Likewise.
79950         * lib/fwritable.c (fwritable): Likewise.
79951         * lib/fwriting.c (fwriting): Likewise.
79952         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79954 2008-04-09  Eric Blake  <ebb9@byu.net>
79956         Avoid some autoconf warnings.
79957         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79958         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79959         * m4/afs.m4 (gl_AFS): Likewise.
79960         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79961         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79962         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79963         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79964         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79965         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79966         (AC_CHECK_DECLS_ONCE): Likewise.
79967         Rename file...
79968         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79969         gnulib-tool requires autoconf 2.59 or better.
79970         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79972 2008-04-08  Eric Blake  <ebb9@byu.net>
79974         Use 'git describe --match' if present (added in git 1.5.5).
79975         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79976         if possible.
79978 2008-04-08  Bruno Haible  <bruno@clisp.org>
79980         Add tentative support for OpenServer.
79981         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79982         _ptr, _cnt.
79983         * lib/fpurge.c (fpurge): Likewise.
79984         * lib/freadable.c (freadable): Likewise.
79985         * lib/freadahead.c (freadahead): Likewise.
79986         * lib/freading.c (freading): Likewise.
79987         * lib/freadptr.c (freadptr): Likewise.
79988         * lib/freadseek.c (freadptrinc): Likewise.
79989         * lib/fseeko.c (rpl_fseeko): Likewise.
79990         * lib/fseterr.c (fseterr): Likewise.
79991         * lib/fwritable.c (fwritable): Likewise.
79992         * lib/fwriting.c (fwriting): Likewise.
79993         Reported by Roger Cornelius <rac@tenzing.org> and
79994         Brian K. White <brian@aljex.com>.
79996 2008-04-06  Jim Meyering  <meyering@redhat.com>
79998         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
80000 2008-04-06  Bruno Haible  <bruno@clisp.org>
80002         Avoid possible error with non-ASCII bytes in UTF-8 locales.
80003         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
80004         * tests/test-printf-posix.sh: Likewise.
80005         * tests/test-vfprintf-posix.sh: Likewise.
80006         * tests/test-vprintf-posix.sh: Likewise.
80007         * tests/test-xprintf-posix.sh: Likewise.
80009 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80011         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
80012         hide error from 'ls', needed on OS/2.
80013         Report by Elbert Pol <elbert.pol@gmail.com>.
80015 2008-04-04  Eric Blake  <ebb9@byu.net>
80017         Make test-fseeko.c failures meaningful.
80018         * tests/test-fseeko.c: Print line number on failure.
80019         * tests/test-fseek.c: Likewise.
80020         Reported by Nelson H. F. Beebe.
80022         Improve strtod bug detection check.
80023         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
80024         required for Solaris 10.
80025         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
80027 2008-04-04  Bruno Haible  <bruno@clisp.org>
80029         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
80030         by m4/setenv.m4.
80032 2008-04-03  Eric Blake  <ebb9@byu.net>
80034         Ensure sane .version contents.
80035         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
80036         version string.
80037         * build-aux/git-version-gen: Improve documentation.
80039         Make GNU make output nicer.
80040         * top/GNUmakefile [!_have-Makefile]: Add dependency on
80041         MAKECMDGOALS to enforce message for all command line targets.  Set
80042         srcdir for use in maint.mk.
80044         Another maintainer tweak.
80045         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
80046         a target that regenerates version.
80048 2008-04-03  Jim Meyering  <meyering@redhat.com>
80050         vc-list-files: don't cause coreutils "make po-check" failure
80051         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
80053 2008-04-03  Eric Blake  <ebb9@byu.net>
80055         Allow VPATH usage of vc-list-files.
80056         * build-aux/vc-list-files (scriptversion): Add timestamp.
80057         (options): Add --help, --version, -C.
80058         (CVS): Support installed cvsu.
80060 2008-04-02  Bruno Haible  <bruno@clisp.org>
80062         Avoid some "statement with no effect" warnings from gcc.
80063         * tests/test-wctype.c (main): Explicitly ignore unused values.
80064         Reported by Jim Meyering.
80066 2008-04-02  Jim Meyering  <meyering@redhat.com>
80068         Avoid some warnings from "gcc -Wshadow".
80069         * tests/test-frexp.c (exp): Define to a different identifier.
80070         * tests/test-frexpl.c (exp): Likewise.
80072 2008-04-03  Jim Meyering  <meyering@redhat.com>
80074         bootstrap: remove dangling *.[ch] symlinks from lib
80075         * build-aux/bootstrap [dangling symlink removal]: Move find's
80076         -depth option to precede all others, to avoid a warning.
80077         Remove *.[ch] files too, and from "$source_base" (usually lib/).
80079 2008-04-02  Bruno Haible  <bruno@clisp.org>
80081         Avoid some warnings from "gcc -Wshadow".
80082         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
80083         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
80084         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
80085         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
80086         Reported by Jim Meyering.
80088 2008-04-01  Bruno Haible  <bruno@clisp.org>
80090         Fix test to work on IRIX 6.5 with cc.
80091         * tests/test-math.c (numeric_equal): New function.
80092         (main): Use it.
80094 2008-04-01  Bruno Haible  <bruno@clisp.org>
80096         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
80098 2008-04-01  Bruno Haible  <bruno@clisp.org>
80100         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
80101         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80102         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
80103         (Depends-on): Remove math.
80105         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
80106         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80107         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
80108         (Depends-on): Remove math.
80110         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
80111         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80112         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
80113         (Depends-on): Remove math.
80114         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
80115         (Depends-on): Remove math.
80117         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
80118         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80119         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
80120         (Depends-on): Remove math.
80121         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
80122         (Depends-on): Remove math.
80124         * tests/test-round1.c: Include nan.h.
80125         (main): Use NaNd instead of NAN.
80126         * modules/round-tests (Files): Add tests/nan.h.
80128         * tests/test-trunc1.c: Include nan.h.
80129         (main): Use NaNd instead of NAN.
80130         * modules/trunc-tests (Files): Add tests/nan.h.
80132         * tests/test-roundf1.c: Include nan.h.
80133         (main): Use NaNf instead of NAN.
80134         * modules/roundf-tests (Files): Add tests/nan.h.
80136         * tests/test-truncf1.c: Include nan.h.
80137         (main): Use NaNf instead of NAN.
80138         * modules/truncf-tests (Files): Add tests/nan.h.
80140         * tests/test-ceilf1.c: Include nan.h.
80141         (main): Use NaNf instead of NAN.
80142         * modules/ceilf-tests (Files): Add tests/nan.h.
80144         * tests/test-floorf1.c: Include nan.h.
80145         (main): Use NaNf instead of NAN.
80146         * modules/floorf-tests (Files): Add tests/nan.h.
80148         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
80149         (main): Use NaNf instead of NAN.
80150         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
80152         * tests/test-isnand.c: Include nan.h instead of <math.h>.
80153         (main): Use NaNd instead of NAN.
80154         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
80156         * tests/test-frexp.c: Include nan.h.
80157         (main): Use NaNd instead of NAN.
80158         * modules/frexp-tests (Files): Add tests/nan.h.
80160         * lib/isnan.c: Don't include <math.h>.
80161         (FUNC): Don't use NAN macro.
80162         * modules/isnand-nolibm (Depends-on): Remove math.
80163         * modules/isnanf-nolibm (Depends-on): Remove math.
80164         * modules/isnanl (Depends-on): Remove math.
80165         * modules/isnanl-nolibm (Depends-on): Remove math.
80167         * tests/nan.h: New file.
80169 2008-04-01  Eric Blake  <ebb9@byu.net>
80171         Fix typos.
80172         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
80173         values to be the right type.
80175         For now, cater to gnulib strtod inaccuracies.
80176         * tests/test-strtod.c (main): Allow 1-ulp error on expected
80177         fractional results.  While not as nice from a QoI perspective, it
80178         is a quicker patch than correctly implementing decimal to binary
80179         rounding.
80181 2008-03-31  Eric Blake  <ebb9@byu.net>
80183         Guarantee a definition of NAN.
80184         * lib/math.in.h (NAN): Define if missing.
80185         * tests/test-math.c (main): Test it.
80186         * doc/posix-headers/math.texi (math.h): Document this.
80187         * lib/isnan.c (rpl_isnand): Use it.
80188         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
80189         * tests/test-floorf1.c (NaN): Likewise.
80190         * tests/test-frexp.c (NaN): Likewise.
80191         * tests/test-isnand.c (NaN): Likewise.
80192         * tests/test-isnanf.c (NaN): Likewise.
80193         * tests/test-round1.c (NaN): Likewise.
80194         * tests/test-roundf1.c (NaN): Likewise.
80195         * tests/test-snprintf-posix.h (NaN): Likewise.
80196         * tests/test-sprintf-posix.h (NaN): Likewise.
80197         * tests/test-trunc1.c (NaN): Likewise.
80198         * tests/test-truncf1.c (NaN): Likewise.
80199         * tests/test-vasnprintf-posix.c (NaN): Likewise.
80200         * tests/test-vasprintf-posix.c (NaN): Likewise.
80201         * modules/isnand-nolibm (Depends-on): Add math.
80202         * modules/isnanf-nolibm (Depends-on): Likewise.
80203         * modules/isnanl (Depends-on): Likewise.
80204         * modules/isnanl-nolibm (Depends-on): Likewise.
80205         * modules/snprintf-posix-tests (Depends-on): Likewise.
80206         * modules/sprintf-posix-tests (Depends-on): Likewise.
80207         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
80208         * modules/vsprintf-posix-tests (Depends-on): Likewise.
80209         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
80210         * modules/vasprintf-posix-tests (Depends-on): Likewise.
80212 2008-03-31  Bruno Haible  <bruno@clisp.org>
80214         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
80215         * doc/posix-functions/strtod.texi: Likewise.
80217 2008-03-31  Bruno Haible  <bruno@clisp.org>
80219         * tests/test-strtod.c (main): Don't use C99 syntax.
80221 2008-03-31  Bruno Haible  <bruno@clisp.org>
80223         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
80224         Reported by Eric Blake.
80226 2008-03-31  Jim Meyering  <meyering@redhat.com>
80228         Don't compare actual signbit return values.
80229         * tests/test-strtod.c (main): Rather, compare only their
80230         zero/non-zero nature.
80232 2008-03-31  Eric Blake  <ebb9@byu.net>
80234         More strtod documentation.
80235         * doc/posix-functions/strtod.texi (strtod): Interpret more test
80236         failures as distinct bugs.
80238 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80240         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
80241         Problem reported by Erik Benada in
80242         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
80244 2008-03-30  Bruno Haible  <bruno@clisp.org>
80246         * tests/test-strtod.c: Add comments about which assertion fails on which
80247         platform.
80248         * doc/posix-functions/strtod.texi: Add info about many more platforms.
80250 2008-03-30  Eric Blake  <ebb9@byu.net>
80252         Test signbit behavior on zeros.
80253         * tests/test-signbit.c (test_signbitf): Add tests for zero.
80254         (test_signbitd, test_signbitl): Likewise.
80256         More strtod touchups.
80257         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
80258         sign of negative underflow, for now.  Use .5, not .1.
80259         * doc/posix-functions/strtod.texi (strtod): Mention these
80260         limitations.
80261         Reported by Jim Meyering.
80263 2008-03-30  Bruno Haible  <bruno@clisp.org>
80265         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
80266         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
80268 2008-03-30  Bruno Haible  <bruno@clisp.org>
80270         Avoid failure when attempting to return empty iconv results on some
80271         platforms.
80272         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
80273         allocation, don't report ENOMEM when the resulting string is empty.
80275 2008-03-30  Bruno Haible  <bruno@clisp.org>
80277         Fix buffer overrun.
80278         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
80279         Don't consider the width for tmp_length. Check count against tmp_length
80280         before doing the padding. Ensure enough allocation during padding.
80282 2008-03-30  Eric Blake  <ebb9@byu.net>
80284         strtod touchups.
80285         * lib/strtod.c (strtod): Avoid compiler warnings.
80286         Reported by Jim Meyering.
80288 2008-03-30  Bruno Haible  <bruno@clisp.org>
80290         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
80291         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
80292         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
80293         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
80294         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
80295         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
80296         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
80297         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
80299         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
80300         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
80301         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
80302         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
80303         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
80304         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
80305         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
80306         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
80308         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
80309         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
80310         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
80311         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
80312         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
80313         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
80314         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
80315         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
80317         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
80318         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
80320         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
80321         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
80323         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
80324         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
80326         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
80327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
80328         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80330         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80332         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80334         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80336         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80338         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80340         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80342         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80343         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80345         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80346         (Depends-on): Add EOVERFLOW.
80347         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80348         (Depends-on): Add EOVERFLOW.
80349         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80350         (Depends-on): Add EOVERFLOW.
80351         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80352         (Depends-on): Add EOVERFLOW.
80353         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80354         (Depends-on): Add EOVERFLOW.
80355         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80356         (Depends-on): Add EOVERFLOW.
80357         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80358         (Depends-on): Add EOVERFLOW.
80359         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80360         (Depends-on): Add EOVERFLOW.
80362         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80364         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80366         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80368         * modules/snprintf (Depends-on): Add EOVERFLOW.
80370         * lib/poll.c (EOVERFLOW): Remove fallback.
80371         * modules/poll (Depends-on): Add EOVERFLOW.
80373         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80374         * modules/getugroups (Depends-on): Add EOVERFLOW.
80376         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80377         * modules/getdelim (Depends-on): Add EOVERFLOW.
80379         * lib/ftell.c (EOVERFLOW): Remove fallback.
80380         * modules/ftell (Depends-on): Add EOVERFLOW.
80382         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80384         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80386         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80388         * modules/EOVERFLOW-tests: New file.
80389         * tests/test-EOVERFLOW.c: New file.
80391         * modules/EOVERFLOW: New file.
80392         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80394 2008-03-30  Bruno Haible  <bruno@clisp.org>
80396         Fix bug introduced on 2007-06-10.
80397         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80398         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80400 2008-03-30  Bruno Haible  <bruno@clisp.org>
80402         Improve freadseek's efficiency after ungetc.
80403         * lib/freadseek.c: Include freadahead.h.
80404         (freadptrinc): New function, extracted from freadseek.
80405         (freadseek): Use it in a loop. Use freadahead to determine the number
80406         of loop iterations.
80407         * modules/freadseek (Depends-on): Add freadahead.
80408         (configure.ac): Require AC_C_INLINE.
80410 2008-03-30  Bruno Haible  <bruno@clisp.org>
80412         * lib/freadseek.c (freadseek): Don't ignore the return value of
80413         freadptr.
80415 2008-03-29  Eric Blake  <ebb9@byu.net>
80417         Add hex float support.
80418         * modules/strtod (Depends-on): Add c-ctype.
80419         (Link): Mention POW_LIB.
80420         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80421         whitespace between 'e' and exponent.
80422         * tests/test-strtod.c (main): Enable hex float tests.
80423         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80424         now provides.
80426         Document various strtod bugs, with some fixes.
80427         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80428         "-0x", "inf", "nan", and hex constants.
80429         * doc/posix-functions/atof.texi (atof): Likewise.
80430         * modules/stdlib (Makefile.am): Support strtod.
80431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80432         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80433         detect additional strtod bugs.
80434         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80435         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80436         bool where appropriate.  Parse 'inf' and 'nan'.
80437         * tests/test-strtod.c: New file.
80438         * modules/strtod (Depends-on): Add stdbool, stdlib.
80439         (configure.ac): Turn on module indicator.
80440         * modules/strtod-tests: New module.
80442 2008-03-29  Eric Blake  <ebb9@byu.net>
80444         Fix ftell on mingw.
80445         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80446         * modules/ftell-tests (Depends-on): Add binary-io.
80447         * modules/ftello-tests (Depends-on): Likewise.
80448         * tests/test-ftell.c (main): Enhance test to cover behavior after
80449         ungetc.  Enforce binary mode.
80450         * tests/test-ftello.c (main): Likewise.
80452         Pass test-freadseek on cygwin.
80453         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80454         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80455         ungetc buffer.
80457         * tests/test-fflush2.c (main): Fix typo.
80459 2008-03-29  Bruno Haible  <bruno@clisp.org>
80461         * tests/test-fflush2.c (main): Temporarily disable the contents of
80462         this test.
80463         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80464         Reported by Eric Blake.
80466 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80468         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80469         (GC_SHA224_DIGEST_SIZE): Add.
80471         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80472         (gc_hash_digest_length): Likewise.
80473         (gc_hash_buffer): Likewise.
80475 2008-03-25  Bruno Haible  <bruno@clisp.org>
80477         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80478         detail which gettext release to use.
80479         Reported by Simon Josefsson.
80481 2008-03-26  Jim Meyering  <meyering@redhat.com>
80483         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80484         * modules/gnumakefile (clean-GNUmakefile): Also, use
80485         test ... && ... || : syntax rather than if-then ... fi.
80487         gnumakefile: Don't double-quote-expand $(VPATH) value.
80488         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80490 2008-03-24  Eric Blake  <ebb9@byu.net>
80492         Alter GNUmakefile to install into top directory.
80493         * modules/maintainer-makefile: Split, and add dependency...
80494         * modules/gnumakefile: to this new module.
80495         * build-aux/GNUmakefile: Move...
80496         * top/GNUmakefile: ...here.
80497         * build-aux/maint.mk: Move...
80498         * top/maint.mk: ...here.
80499         * MODULES.html.sh (Support for maintaining...): Document new
80500         module.
80502 2008-03-23  Bruno Haible  <bruno@clisp.org>
80504         * gnulib-tool: New options --vc-files, --no-vc-files.
80505         (func_usage): Document them.
80506         (vc_files): New variable.
80507         (func_import): Consider vc_files.
80508         (func_create_testdir): Set vc_files to empty.
80509         Suggested by Jim Meyering and Karl Berry.
80511 2008-03-23  Bruno Haible  <bruno@clisp.org>
80513         Fix regex compilation error on HP-UX 11.
80514         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80515         * modules/regex (Files): Add m4/mbstate_t.m4.
80516         Reported by Ton Voon <ton.voon@altinity.com>.
80518 2008-03-23  Bruno Haible  <bruno@clisp.org>
80520         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80522 2008-03-23  Eric Blake  <ebb9@byu.net>
80523             Bruno Haible  <bruno@clisp.org>
80525         Install files from top/ in the destination directory.
80526         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80527         augmentation also for the files from top/.
80528         (func_import, func_create_testdir): Rewrite file names:
80529         top/filename -> filename.
80531 2008-03-23  Bruno Haible  <bruno@clisp.org>
80533         Tweak "gnulib --version" output.
80534         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80536 2008-03-23  Bruno Haible  <bruno@clisp.org>
80538         Tweak "gnulib --version" output.
80539         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80540         rather than contents of ChangeLog, when possible.
80542 2008-03-21  Eric Blake  <ebb9@byu.net>
80544         More --version tweaks.
80545         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80546         date of last ChangeLog entry.
80548 2008-03-21  Jim Meyering  <meyering@redhat.com>
80550         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80552 2008-03-20  Eric Blake  <ebb9@byu.net>
80554         VPATH fix.
80555         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80557 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80559         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80560         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80562 2008-03-20  Eric Blake  <ebb9@byu.net>
80564         Sync GNUmakefile with coreutils.
80565         * build-aux/GNUmakefile (have-Makefile): Rename...
80566         (_have-Makefile): ...to this, for namespace consideration.
80567         (GNUmakefile.cfg): Include, if present.
80568         (_autoreconf): Define a default.
80569         (_is-dist-target): New rule for rebuilds to pick up intra-release
80570         version.
80571         (maint-cfg.mk): Rename...
80572         (cfg.mk): ...to this.
80574 2008-03-18  Jim Meyering  <meyering@redhat.com>
80576         New script and module: mktempd
80577         * MODULES.html.sh (maint+release support): Add mktempd.
80578         * build-aux/mktempd: New file.
80579         * modules/mktempd: New file.
80581 2008-03-15  Jim Meyering  <meyering@redhat.com>
80583         Undo last change.
80584         * lib/sha1.c, lib/md5.c: 63 != ~63.
80585         Reported by Andreas Schwab.
80587         sha1.c, md5.c: Hoist a redundant expression.
80588         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80589         "ctx->buflen" only once, before calling *_process_block.
80590         * lib/md5.c (md5_process_bytes): Likewise.
80592 2008-03-14  Eric Blake  <ebb9@byu.net>
80594         Bump copyright year in files generated by gnulib-tool.
80595         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80596         gnulib-tool, rather than hard-coding it.
80598         Fix 'gnulib-tool --version' output to work with git.
80599         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80600         (startup): ...here.
80601         (func_version): Use it to invoke git-version-gen, rather than
80602         relying on CVS keyword expansion.  Modernize wording.
80603         (cvsdatestamp, last_checkin_date, version): Kill unused
80604         variables.
80606 2008-03-12  Jim Meyering  <meyering@redhat.com>
80608         Recognize optional cast of the argument to free.
80609         * build-aux/useless-if-before-free: Update regexps.
80611         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80613 2008-03-11  Bruno Haible  <bruno@clisp.org>
80615         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80616         by a single package.
80617         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80618         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80619         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80620         Reported by Sam Steingold <sds@gnu.org>.
80622 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80624         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80625         repositories.
80627 2008-03-11  Bruno Haible  <bruno@clisp.org>
80629         Avoid conflicts between local macro definitions.
80630         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80631         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80633 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80634             Bruno Haible  <bruno@clisp.org>
80636         Make va_copy work with some version of xlc on AIX 5.1.
80637         * lib/stdarg.in.h: New file.
80638         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80639         On AIX, use a <stdarg.h> file substitute.
80640         * modules/stdarg (Files): Add lib/stdarg.in.h.
80641         (Depends-on): Add include_next.
80642         (Makefile.am): Build a stdarg.h substitute if requested.
80643         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80645 2008-03-10  Bruno Haible  <bruno@clisp.org>
80647         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80649         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80651 2008-03-10  Bruno Haible  <bruno@clisp.org>
80653         * modules/stdlib (Depends-on): Add include_next, remove
80654         absolute-header.
80656 2008-03-09  Bruno Haible  <bruno@clisp.org>
80658         * lib/freadahead.h (freadahead): Document more precisely.
80659         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80660         the sum of both buffer sizes.
80661         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80662         * NEWS: Document the change.
80664 2008-03-09  Bruno Haible  <bruno@clisp.org>
80666         Extend freadptr to return also the buffer size.
80667         * lib/freadptr.h (freadptr): Add sizep argument.
80668         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80669         (freadptr): Add sizep argument. Determine buffer size like freadahead
80670         does.
80671         * tests/test-freadptr.c: Don't include freadahead.h.
80672         (main): Adapt for new calling convention of freadptr.
80673         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80674         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80675         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80676         tests/test-freadptr2.sh.
80677         (Depends): Remove freadahead.
80678         (TESTS): Add test-freadptr2.sh.
80679         (check_PROGRAMS): Add test-freadptr2.
80681 2008-03-09  Bruno Haible  <bruno@clisp.org>
80683         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80684         Report and solution by Simon Josefsson.
80686 2008-03-06  Bruno Haible  <bruno@clisp.org>
80688         Make fflush after ungetc work on BSD platforms.
80689         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80690         * tests/test-fflush2.c: New file.
80691         * tests/test-fflush2.sh: New file.
80692         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80693         tests/test-fflush2.c.
80694         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80695         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80697 2008-03-06  Eric Blake  <ebb9@byu.net>
80699         Likewise for ftello.
80700         * modules/ftello (Dependencies): Add extensions.
80701         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80703 2008-03-06  Bruno Haible  <bruno@clisp.org>
80705         * modules/fseeko (Dependencies): Add extensions.
80706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80707         Needed on glibc systems.
80709 2008-03-06  Bruno Haible  <bruno@clisp.org>
80711         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80712         email address.
80713         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80715 2008-03-06  Bruno Haible  <bruno@clisp.org>
80717         * users.txt: Add libgnupdf.
80719 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80721         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80722         (Header File Substitutes, Function Substitutes,
80723         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80724         (Build robot for gnulib): Fix typo.
80726 2008-03-06  Bruno Haible  <bruno@clisp.org>
80728         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80729         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80731 2008-03-06  Bruno Haible  <bruno@clisp.org>
80733         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80734         * doc/gnulib.texi: Include it.
80736 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80738         * modules/func (License): Change license to unlimited; there was
80739         no LGPL parts in the module anyway.
80741 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80743         * modules/__func__: Renamed to modules/func.
80744         * modules/__func__-tests: Renamed to modules/func-tests.
80745         * tests/test-__func__.c: Renamed to tests/test-func.c.
80746         * m4/__func__.m4: Renamed to m4/func.m4.
80747         * doc/gnulib.texi (__func__): Section renamed to func.
80748         Suggested by Eric Blake <ebb9@byu.net>.
80750 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80752         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80753         about __func__.  Make example self-contained.  Suggested by Eric
80754         Blake <ebb9@byu.net>.
80756         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80757         Suggested by Eric Blake <ebb9@byu.net>.
80759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80761         * modules/__func__: New file.
80762         * modules/__func__-tests: New file.
80763         * tests/test-__func__.c: New file.
80764         * m4/__func__.m4: New file.
80765         * doc/gnulib.texi (__func__): Document __func__ module.
80767 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80769         * modules/byteswap (License): Re-license as LGPLv2+.
80771 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80773         * doc/Makefile: Add pdf target.
80775 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80777         * modules/inline (License): Use 'unlimited', since there are only
80778         *.m4 files in this module.
80780 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80781             Bruno Haible  <bruno@clisp.org>
80783         Add support for HP C 7.1 on OpenVMS 8.3.
80784         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80786 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80788         Update VMS specifics.
80789         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80791 2008-03-02  Jim Meyering  <meyering@redhat.com>
80793         Remove the last dependency on the "free" module.
80794         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80795         Reported by Bob Proulx.
80797         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80799         Remove useless "if" tests before free.  Deprecate "free" module.
80800         * doc/posix-functions/free.texi: Mention that this
80801         module is no longer useful.
80802         * modules/free (Notice): Say this module is obsolete.
80803         * modules/readutmp (Depends-on): Remove free.
80804         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80805         * lib/putenv.c (putenv): Likewise.
80806         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80807         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80808         * tests/test-c-strcasestr.c (main): Likewise.
80809         * tests/test-c-strstr.c (main): Likewise.
80810         * tests/test-mbscasestr1.c (main): Likewise.
80811         * tests/test-mbscasestr2.c (main): Likewise.
80812         * tests/test-mbsstr1.c (main): Likewise.
80813         * tests/test-mbsstr2.c (main): Likewise.
80814         * tests/test-memmem.c (main): Likewise.
80815         * tests/test-strcasestr.c (main): Likewise.
80816         * tests/test-striconv.c (main): Likewise.
80817         * tests/test-striconveh.c (main): Likewise.
80818         * tests/test-striconveha.c (main): Likewise.
80819         * tests/test-strstr.c (main): Likewise.
80821         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80823         bootstrap: sync from coreutils again
80824         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80826 2008-03-01  Jim Meyering  <meyering@redhat.com>
80828         bootstrap: sync from coreutils
80829         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80830         also when the target doesn't exist.
80832 2008-03-01  Eric Blake  <ebb9@byu.net>
80834         Fix bugs in last patch.
80835         * lib/memchr2.c (memchr2): Fix typo.
80836         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80837         extension.
80838         Reported by Bruce Korb.
80840         New module 'memchr2'.
80841         * modules/memchr2: New file.
80842         * modules/memchr2-tests: Likewise.
80843         * lib/memchr2.h: Likewise.
80844         * lib/memchr2.c: Likewise, based on memchr.c.
80845         * tests/test-memchr2.c: New test.
80846         * MODULES.html.sh (String handling): Add memchr2.
80848 2008-02-29  Bruno Haible  <bruno@clisp.org>
80850         * modules/freadseek-tests: New file.
80851         * tests/test-freadseek.sh: New file.
80852         * tests/test-freadseek.c: New file.
80854         New module 'freadseek'.
80855         * modules/freadseek: New file.
80856         * lib/freadseek.h: New file.
80857         * lib/freadseek.c: New file.
80858         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80860 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80862         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80863         wydawca.
80865         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80866         program_invocation_name and program_invocation_short_name are
80867         present.
80869 2008-02-28  Bruno Haible  <bruno@clisp.org>
80871         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80872         * tests/test-freadptr.sh: Also test non-seekable stdin.
80874 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80876         * build-aux/bootstrap (source_base, m4_base)
80877         (doc_base, tests_base): New variables.
80878         (gnulib_tool_options): Do not hardcode base directories, use
80879         the above variables instead.
80881 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80883         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80885 2008-02-28  Bruno Haible  <bruno@clisp.org>
80887         * modules/freadptr-tests: New file.
80888         * tests/test-freadptr.sh: New file.
80889         * tests/test-freadptr.c: New file.
80891         New module 'freadptr'.
80892         * modules/freadptr: New file.
80893         * lib/freadptr.h: New file.
80894         * lib/freadptr.c: New file.
80895         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80897 2008-02-26  Karl Berry  <karl@freefriends.org>
80899         Sync from Libtool:
80900         * libltdl/argz.c (argz_add, argz_count): New functions.
80901         * libltdl/argz.in.h: Declare them.
80902         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80904 2008-02-22  Bruno Haible  <bruno@clisp.org>
80906         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80907         is a pointer type.  Needed for HP-UX 10.
80908         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80909         * doc/posix-functions/gmtime_r.texi: Likewise.
80910         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80912 2008-02-24  Bruno Haible  <bruno@clisp.org>
80914         * modules/environ-tests: New file.
80915         * tests/test-environ.c: New file.
80917         New module 'environ'.
80918         * modules/environ: New file.
80919         * lib/unistd.in.h (environ): New declaration.
80920         * m4/environ.m4: New file.
80921         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80922         after use.
80923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80924         HAVE_DECL_ENVIRON.
80925         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80926         HAVE_DECL_ENVIRON.
80927         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80928         wrong claim that 'environ' is missing on some systems.
80929         * modules/execute (Depends-on): Add environ.
80930         * lib/execute.c (environ): Remove fallback declaration.
80931         * modules/pipe (Depends-on): Add environ.
80932         * lib/pipe.c (environ): Remove fallback declaration.
80933         * modules/setenv (Depends-on): Add environ.
80934         * lib/setenv.c (environ): Remove fallback declaration.
80935         * modules/unsetenv (Depends-on): Add environ.
80936         * lib/unsetenv.c (environ): Remove fallback declaration.
80937         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80938         m4/environ.m4.
80939         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80940         (gl_PREREQ_UNSETENV): Likewise.
80942 2008-02-24  Bruno Haible  <bruno@clisp.org>
80944         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80946 2008-02-20  Bob Proulx  <bob@proulx.com>
80948         Enable use of older two part flavor 'git describe'.
80949         * build-aux/git-version-gen: If using the older two part flavor of
80950         git version then recreate the third part now present in the
80951         newer three part flavor of git describe.
80953 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80955         * lib/fts.c (fts_build): Typo correction to comment.
80957 2008-02-17  Bruno Haible  <bruno@clisp.org>
80959         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80960         generating no-op conflicts.
80962 2008-02-17  Bruno Haible  <bruno@clisp.org>
80964         Speed up by 10%.
80965         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80966         result_entries, rather than an index-based loop.
80968 2008-02-17  Bruno Haible  <bruno@clisp.org>
80970         Speed up by 25%.
80971         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80972         'hashcode_cached'.
80973         (entry_create): New function.
80974         (entry_hashcode): Use the cached hashcode if possible.
80975         (read_changelog_file, try_split_merged_entry): Use entry_create.
80977 2008-02-17  Bruno Haible  <bruno@clisp.org>
80979         Speed up from O(n^2) to O(n) for long ChangeLog files.
80980         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80981         (read_changelog_file): Change implementation of entries_reversed list
80982         to rbtreehash.
80983         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80985 2008-02-17  Bruno Haible  <bruno@clisp.org>
80987         New option --split-merged-entry.
80988         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80989         (find_paragraph_end, try_split_merged_entry): New functions.
80990         (long_options): Add option --split-merged-entry.
80991         (usage): Document option --split-merged-entry.
80992         (main): Implement option --split-merged-entry.
80993         Reported by Eric Blake.
80995 2008-02-17  Bruno Haible  <bruno@clisp.org>
80997         * lib/git-merge-changelog.c: Include c-strstr.h.
80998         (main): Support the "git pull --rebase" situation.
80999         * modules/git-merge-changelog (Depends-on): Add c-strstr.
81000         Reported by Eric Blake.
81002 2008-02-16  Eric Blake  <ebb9@byu.net>
81004         Avoid doubling \ in common case of "c-maybe" quoting style.
81005         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
81006         eliding outer quotes.
81007         * lib/quotearg.h: Document this.
81008         * tests/test-quotearg.c (result_strings, inputs, results_g)
81009         (flag_results, locale_results): Test it by adding a new string to
81010         each test group.
81011         (compare_strings): Test new string.
81013 2008-02-13  Eric Blake  <ebb9@byu.net>
81015         Avoid trigraph quoting in default output.
81016         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
81017         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
81018         unless explicitly requested.
81019         * tests/test-quotearg.c (flag_results, main): Add additional tests.
81021 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
81023         Don't rely on signed integer overflowing to negative value.
81024         * lib/getugroups.c (getugroups): Include <limits.h>.
81025         Instead, compare against INT_MAX, and increment only if the test passes.
81027 2008-02-13  Jim Meyering  <meyering@redhat.com>
81028         and Eric Blake  <ebb9@byu.net>
81030         Avoid shadowing warning and compile errors on Linux.
81031         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
81032         forwarding macros on Linux.
81033         (dcgettext): Define a stub, for Linux.
81034         (results_g, main): Avoid warnings.
81036 2008-02-12  Eric Blake  <ebb9@byu.net>
81038         Silence warning in last patch.
81039         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
81041         Quotearg part 4: add tests, fix c-maybe colon quoting.
81042         * lib/quotearg.h: Improve documentation.
81043         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
81044         escapes when adding outer quotes.  When quoting trigraphs, use
81045         valid C notation.  When quoting NUL, omit extra characters if next
81046         character is not digit.  Alter prototype.
81047         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
81048         callers.
81049         * modules/quotearg-tests: New module.
81050         * tests/test-quotearg.c: New test.
81052 2008-02-07  Eric Blake  <ebb9@byu.net>
81054         Quotearg part 3: add flag to control outer quote elision.
81055         * lib/quotearg.h (c_maybe_quoting_style): New style.
81056         (enum quoting_flags): Better documentation of flags.
81057         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
81058         c-maybe style.
81059         (quotearg_buffer_restyled): Handle new flag to elide outer
81060         quotes.
81062         Quotearg part 2: add flag that can control NUL elision.
81063         * lib/quotearg.h (set_quoting_flags): New prototype.
81064         * lib/quotearg.c (struct quoting_options): Add flag field.
81065         (set_quoting_flags): New function.
81066         (quotearg_buffer_restyled): Add flags parameter.
81067         (quotearg_alloc_mem): Set the flag if length cannot be returned.
81068         (quotearg_n_options): Set the flag, since length cannot be
81069         returned.
81070         (quoting_options_from_style): Default flags correctly.
81072         Quotearg part 1: more wrappers, restore quotearg_char state.
81073         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
81074         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
81075         (quotearg_colon_mem): New wrappers.
81076         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
81077         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
81078         functions.
81079         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
81080         (quotearg_colon_mem): New functions.
81082 2008-02-11  Bruno Haible  <bruno@clisp.org>
81084         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
81085         library in the current directory: it does not work with parallel make.
81086         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81088 2008-02-11  Bruno Haible  <bruno@clisp.org>
81090         * .gitattributes: New file.
81092 2008-02-11  Jim Meyering  <meyering@redhat.com>
81094         useless-if-before-free: Fix reversed exit values.
81095         * build-aux/useless-if-before-free: Use correct values
81096         for EXIT_MATCH and EXIT_NO_MATCH.
81098         * build-aux/useless-if-before-free: Close stdout carefully.
81100 2008-02-10  Bruno Haible  <bruno@clisp.org>
81102         New module 'git-merge-changelog'.
81103         * modules/git-merge-changelog: New file.
81104         * lib/git-merge-changelog.c: New file.
81106 2008-02-10  Jim Meyering  <meyering@redhat.com>
81108         useless-if-before-free: New option: --list (-l).
81110         useless-if-before-free: Don't exit immediately upon open failure.
81111         * build-aux/useless-if-before-free: Exit 2 for errors.
81112         Upon failure to open a file, don't exit immediately.
81113         Rather, just warn and continue with any remaining files.
81115 2008-02-10  Bruno Haible  <bruno@clisp.org>
81117         New abstract list operation 'node_set_value'.
81118         * lib/gl_list.h (gl_list_node_set_value): New function.
81119         (struct gl_list_implementation): New field node_set_value.
81120         * lib/gl_list.c (gl_list_node_set_value): New function.
81121         * lib/gl_array_list.c (gl_array_node_set_value): New function.
81122         (gl_array_list_implementation): Update.
81123         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
81124         (gl_carray_list_implementation): Update.
81125         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
81126         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
81127         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
81128         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
81129         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
81130         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
81131         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
81132         Update.
81133         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
81134         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
81135         (gl_sublist_list_implementation): Update.
81137 2008-02-10  Bruno Haible  <bruno@clisp.org>
81139         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
81140         Needed when ELEMENT is #defined to 'some_type *'.
81142 2008-02-10  Jim Meyering  <meyering@redhat.com>
81144         New script and module: useless-if-before-free
81145         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
81146         * build-aux/useless-if-before-free: New file.
81147         * modules/useless-if-before-free: New file.
81149         * build-aux/gitlog-to-changelog: Use committer date, not author date.
81151         xstrtol_error: Fix typo.
81152         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
81153         s/exit_failure/exit_status/.
81155 2008-02-09  Jim Meyering  <meyering@redhat.com>
81157         New script and module: gitlog-to-changelog
81158         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
81159         * modules/gitlog-to-changelog: New file.
81160         * build-aux/gitlog-to-changelog: New file.
81162 2008-02-08  Jim Meyering  <meyering@redhat.com>
81164         Avoid two "parameter unused" warnings.
81165         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
81166         Mark "st" as used.
81168         Use "git COMMAND", not "git-COMMAND".
81169         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
81170         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
81171         * build-aux/git-version-gen: Use "git status", not "git-status".
81173 2008-02-07  Bruno Haible  <bruno@clisp.org>
81175         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
81176         Avoids a crash on Windows Vista.
81177         Reported by Adam Strzelecki <ono@java.pl> via
81178         Simon Josefsson <simon@josefsson.org>.
81180 2008-02-06  Bruno Haible  <bruno@clisp.org>
81182         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
81183         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
81184         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
81185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
81186         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81187         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81188         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
81189         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
81190         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81192         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81193         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81194         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81195         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81196         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81197         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
81198         left-adjust flag.
81199         * tests/test-snprintf-posix.h (test_function): Likewise.
81200         * tests/test-sprintf-posix.h (test_function): Likewise.
81201         * tests/test-vasprintf-posix.c (test_function): Likewise.
81202         * doc/posix-functions/fprintf.texi: Update.
81203         * doc/posix-functions/printf.texi: Update.
81204         * doc/posix-functions/snprintf.texi: Update.
81205         * doc/posix-functions/sprintf.texi: Update.
81206         * doc/posix-functions/vfprintf.texi: Update.
81207         * doc/posix-functions/vprintf.texi: Update.
81208         * doc/posix-functions/vsnprintf.texi: Update.
81209         * doc/posix-functions/vsprintf.texi: Update.
81210         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81212 2008-02-06  Bruno Haible  <bruno@clisp.org>
81214         Fix bug introduced on 2008-01-26.
81215         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
81217 2008-02-06  Bruno Haible  <bruno@clisp.org>
81219         Fix bug introduced on 2007-06-10.
81220         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
81221         !NEED_PRINTF_FLAG_ZERO.
81223 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
81225         getloadavg: use libperfstat on AIX5
81226         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
81228 2008-02-03  Bruno Haible  <bruno@clisp.org>
81230         * lib/diffseq.h: Add comments about required #includes.
81231         Reported by Michael Biggs <gnulib@doubleplum.net>.
81233 2008-02-01  Bruno Haible  <bruno@clisp.org>
81235         * users.txt: Add gnuit.
81237 2008-01-31  Bruno Haible  <bruno@clisp.org>
81239         * lib/md4.c (set_uint32): Mark as inline.
81240         * lib/md5.c (set_uint32): Likewise.
81241         * lib/sha1.c (set_uint32): Likewise.
81242         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
81243         * m4/md5.m4 (gl_MD5): Likewise.
81244         * m4/sha1.m4 (gl_SHA1): Likewise.
81246 2008-01-31  Jim Meyering  <meyering@redhat.com>
81248         Use "sizeof VAR", rather than a literal "4".
81249         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
81250         * lib/md4.c (md4_read_ctx): Likewise.
81251         * lib/sha1.c (sha1_read_ctx): Likewise.
81253 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81255         * tests/test-sha1.c: New file, based on test-md5.c.
81257         * modules/crypto/sha1-tests: New file.
81259 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81261         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
81263 2008-01-31  Jim Meyering  <meyering@redhat.com>
81265         Prefer "sizeof v" over the equivalent "4".
81266         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
81267         * lib/md5.c (set_uint32): Likewise.
81268         * lib/sha1.c (set_uint32): Likewise.
81270 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81272         * lib/sha1.c (set_uint32): Mark function as static.
81274 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81276         md2: clarify comments to say that alignment is not required.
81277         * lib/md2.h: Remove warning about alignment in comment.
81278         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
81279         never been required.
81281 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81283         md4: adapt alignment constraint fix from sha1.
81284         * lib/md4.c (set_uint32): New function, from sha1.c
81285         (md4_read_ctx): Use it.
81286         (md4_finish_ctx): Doc fix.
81287         * lib/md4.h: Doc fix.
81289 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81291         md5: adapt alignment constraint fix from sha1.
81292         * lib/md5.c (set_uint32): New function, from sha1.c
81293         (md5_read_ctx): Use it.
81294         (md5_finish_ctx): Doc fix.
81295         * lib/md5.h: Doc fix.
81297 2008-01-30  Peter Palfrader  <weasel@debian.org>
81299         sha1: remove the result buffer alignment constraint
81300         * lib/sha1.c (set_uint32): New function.
81301         (sha1_read_ctx): Rewrite to remove the result buffer alignment
81302         constraint.
81303         (sha1_finish_ctx): Remove comment warning about alignment constraint.
81304         * lib/sha1.h: Likewise.
81306 2008-01-30  Andreas Schwab  <schwab@suse.de>
81307             Bruno Haible  <bruno@clisp.org>
81309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
81310         correct definition of LDBL_MIN_EXP.
81312 2008-01-30  Karl Berry  <karl@gnu.org>
81314         * config/srclist-update: try to preserve x bit on updates.
81315         * config/srclistvars.sh: update for karl.
81317 2008-01-29  Jim Meyering  <meyering@redhat.com>
81319         vasnprintf.c: Avoid warning about unused label
81320         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
81321         "overflow" label definition and associated code with the
81322         same cpp condition that guards the sole use of that label.
81324 2008-01-26  Bruno Haible  <bruno@clisp.org>
81326         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
81327         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
81328         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
81329         * lib/isnanl-nolibm.h (isnanl): Likewise.
81330         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81332 2008-01-26  Bruno Haible  <bruno@clisp.org>
81334         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81335         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81337 2008-01-26  Bruno Haible  <bruno@clisp.org>
81339         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81340         GCC >= 4.0 built-in.
81341         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81343 2008-01-26  Bruno Haible  <bruno@clisp.org>
81345         Rename isnan, applicable to 'double' only, to isnand.
81346         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81347         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81348         (configure.ac): Update.
81349         (Include): Replace "isnan.h" with "isnand.h".
81350         * m4/isnand.m4: Renamed from m4/isnan.m4.
81351         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81352         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81353         instead of isnan.c.
81354         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81355         instead of HAVE_ISNAN_IN_LIBC.
81356         (isnand): Renamed from isnan.
81357         * lib/isnand.c: New file.
81358         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81359         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81360         (Makefile.am): Update.
81361         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81362         Include isnand.h instead of isnan.h.
81363         (main): Test isnand instead of isnan.
81364         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81365         isnan-nolibm.
81366         * modules/frexp (Depends-on): Likewise.
81367         * modules/frexp-tests (Depends-on): Likewise.
81368         * modules/frexp-nolibm (Depends-on): Likewise.
81369         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81370         * modules/isfinite (Depends-on): Likewise.
81371         * modules/round-tests (Depends-on): Likewise.
81372         * modules/signbit (Depends-on): Likewise.
81373         * modules/signbit-tests (Depends-on): Likewise.
81374         * modules/snprintf-posix (Depends-on): Likewise.
81375         * modules/sprintf-posix (Depends-on): Likewise.
81376         * modules/trunc-tests (Depends-on): Likewise.
81377         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81378         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81379         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81380         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81381         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81382         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81383         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81384         * modules/vasnprintf-posix (Depends-on): Likewise.
81385         * modules/vasprintf-posix (Depends-on): Likewise.
81386         * modules/vfprintf-posix (Depends-on): Likewise.
81387         * modules/vsnprintf-posix (Depends-on): Likewise.
81388         * modules/vsprintf-posix (Depends-on): Likewise.
81389         * lib/frexp.c: Include isnand.h instead of isnan.h.
81390         (ISNAN): Set to isnand instead of isnan.
81391         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81392         (gl_isfinited): Use isnand instead of isnan.
81393         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81394         (gl_signbitd): Use isnand instead of isnan.
81395         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81396         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81397         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81398         (main): Use isnand instead of isnan.
81399         * tests/test-round1.c: Include isnand.h.
81400         (main): Use isnand instead of isnan.
81401         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81402         (ISNAN): Set to isnand instead of isnan.
81403         * tests/test-trunc1.c: Include isnand.h.
81404         (main): Use isnand instead of isnan.
81405         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81406         (equal): Use isnand instead of isnan.
81407         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81408         isnand-nolibm.
81409         * NEWS: Mention the change.
81411 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81412             Bruno Haible  <bruno@clisp.org>
81414         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81415         the GCC builtins for signbits are present and set
81416         REPLACE_SIGNBIT_USING_GCC if so.
81417         * lib/math.in.h (signbit): Define using GCC builtins if
81418         REPLACE_SIGNBIT_USING_GCC is set.
81419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81420         REPLACE_SIGNBIT_USING_GCC.
81421         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81423 2008-01-25  Jim Meyering  <meyering@redhat.com>
81425         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81426         * lib/poll.c: Include <config.h>, not "config.h".
81427         * tests/test-getaddrinfo.c: Likewise.
81429 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81431         * modules/sockets-tests: New file.
81433 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81435         * modules/sockets: New module, can be used to call WSA_Startup and
81436         WSA_Cleanup when needed.
81438         * lib/sockets.h, lib/sockets.c: New files.
81440         * m4/sockets.m4: New file.
81442         * tests/test-sockets.c: New file.
81444 2008-01-19  Bruno Haible  <bruno@clisp.org>
81446         * doc/posix-headers: Renamed from doc/headers.
81447         * doc/posix-functions: Renamed from doc/functions.
81448         * doc/gnulib.texi: Update.
81450 2008-01-19  Bruno Haible  <bruno@clisp.org>
81452         * doc/glibc-functions/strcasestr.texi: Include contents of
81453         doc/functions/strcasestr.texi, fixing the list of platforms.
81454         * doc/functions/strcasestr.texi: Remove file.
81456 2008-01-19  Bruno Haible  <bruno@clisp.org>
81458         * doc/glibc-functions/memmem.texi: Include contents of
81459         doc/functions/memmem.texi.
81460         * doc/functions/memmem.texi: Remove file.
81462 2008-01-18  Bruno Haible  <bruno@clisp.org>
81464         * doc/glibc-functions/*.texi: New files.
81465         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81466         to use the new files.
81468 2008-01-17  Bruno Haible  <bruno@clisp.org>
81470         * tests/test-gethostname.c (main): Fix printf statement.
81472 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81474         * modules/gethostname-tests: New file.
81476         * tests/test-gethostname.c: New file.
81478 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81480         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81481         used by the UNAME case.  Reported by Bruno Haible
81482         <bruno@clisp.org>.
81484 2008-01-17  Eric Blake  <ebb9@byu.net>
81486         Convert c-strcasestr to be more efficient.
81487         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81488         (Depends-on): Add c-strcase, remove malloca, strnlen.
81489         * tests/test-c-strcasestr.c (main): Enhance test.
81490         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81492 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81494         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81495         Use it in creating po/Makevars.
81497 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81499         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81500         Applications that requires it should initialize libgcrypt
81501         manually.
81503 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81505         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81507 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81509         Fix problem with getdate on mingw32 reported by Simon Josefsson
81510         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81511         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81512         tzname", when deciding whether to declare tzname.
81513         * lib/strftime.c (tzname): Likewise.
81515 2008-01-15  Bruno Haible  <bruno@clisp.org>
81517         Work around a MacOS X 10.5 bug in frexpl().
81518         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81519         * doc/functions/frexpl.texi: Document the bug.
81520         Reported by Elias Pipping <pipping@gentoo.org>.
81522 2008-01-14  Eric Blake  <ebb9@byu.net>
81524         Touch up previous patch.
81525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81526         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81528         Convert strcasestr module to use Two-Way algorithm.
81529         * modules/strcasestr-simple: New module, based on the old
81530         strcasestr, but with Two-Way rather than KMP.
81531         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81532         * lib/string.in.h (rpl_strcasestr): Declare.
81533         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81534         performance.
81535         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81536         * modules/string (Makefile.am): Support strcasestr.
81537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81538         * modules/strcasestr-tests (Depends-on): Check for alarm.
81539         * tests/test-strcasestr.c: Augment test.
81540         * lib/str-two-way.h: Clean up stray macro.
81541         * NEWS: Document new module.
81542         * MODULES.html.sh (string handling): Likewise.
81543         * doc/functions/strcasestr.texi: New file.
81544         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81545         here, since it is not a POSIX function.
81547 2008-01-14  Colin Watson  <cjwatson@debian.org>
81548             Bruno Haible  <bruno@clisp.org>
81550         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81551         works fine; if not, set REPLACE_STRSIGNAL.
81552         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81554         REPLACE_STRSIGNAL.
81555         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81556         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81557         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81559 2008-01-14  Bruno Haible  <bruno@clisp.org>
81561         * modules/strsignal (Include): Change to <string.h>.
81563 2008-01-14  Colin Watson  <cjwatson@debian.org>
81565         * modules/argp (Notice): Add a notice recommending to change
81566         XGETTEXT_OPTIONS.
81567         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81569 2008-01-13  Colin Watson  <cjwatson@debian.org>
81571         * modules/strsignal-tests: New file.
81572         * tests/test-strsignal.c: New file.
81574         * lib/strsignal.c: New file, from glibc with modifications.
81575         * lib/siglist.h: New file, from glibc with modifications.
81576         * lib/string.in.h (strsignal): New declaration.
81577         * m4/strsignal.m4: New file.
81578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81579         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81580         * modules/strsignal: New file.
81581         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81582         HAVE_DECL_STRSIGNAL.
81584 2008-01-13  Bruno Haible  <bruno@clisp.org>
81586         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81587         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81588         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81589         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81591 2008-01-13  Bruno Haible  <bruno@clisp.org>
81593         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81594         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81595         * lib/argp.h (__attribute__): Likewise.
81596         * lib/c-stack.c (__attribute__): Likewise.
81597         * lib/error.h (__attribute__): Likewise.
81598         * lib/fts.c (__attribute__): Likewise.
81599         * lib/openat.h (__attribute__): Likewise.
81600         * lib/stdio.in.h (__attribute__): Likewise.
81601         * lib/string.in.h (__attribute__): Likewise.
81602         * lib/utimens.c (__attribute__): Likewise.
81603         * lib/vasnprintf.h (__attribute__): Likewise.
81604         * lib/xalloc.h (__attribute__): Likewise.
81605         * lib/xprintf.h (__attribute__): Likewise.
81606         * lib/xstrtol.h (__attribute__): Likewise.
81607         * lib/xvasprintf.h (__attribute__): Likewise.
81609 2008-01-12  Bruno Haible  <bruno@clisp.org>
81611         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81612         * doc/glibc-headers/a.out.texi: New file.
81613         * doc/glibc-headers/aliases.texi: New file.
81614         * doc/glibc-headers/alloca.texi: New file.
81615         * doc/glibc-headers/ar.texi: New file.
81616         * doc/glibc-headers/argp.texi: New file.
81617         * doc/glibc-headers/argz.texi: New file.
81618         * doc/glibc-headers/byteswap.texi: New file.
81619         * doc/glibc-headers/crypt.texi: New file.
81620         * doc/glibc-headers/endian.texi: New file.
81621         * doc/glibc-headers/envz.texi: New file.
81622         * doc/glibc-headers/err.texi: New file.
81623         * doc/glibc-headers/error.texi: New file.
81624         * doc/glibc-headers/execinfo.texi: New file.
81625         * doc/glibc-headers/fpu_control.texi: New file.
81626         * doc/glibc-headers/fstab.texi: New file.
81627         * doc/glibc-headers/fts.texi: New file.
81628         * doc/glibc-headers/getopt.texi: New file.
81629         * doc/glibc-headers/ieee754.texi: New file.
81630         * doc/glibc-headers/ifaddrs.texi: New file.
81631         * doc/glibc-headers/libintl.texi: New file.
81632         * doc/glibc-headers/mcheck.texi: New file.
81633         * doc/glibc-headers/mntent.texi: New file.
81634         * doc/glibc-headers/obstack.texi: New file.
81635         * doc/glibc-headers/paths.texi: New file.
81636         * doc/glibc-headers/printf.texi: New file.
81637         * doc/glibc-headers/pty.texi: New file.
81638         * doc/glibc-headers/resolv.texi: New file.
81639         * doc/glibc-headers/shadow.texi: New file.
81640         * doc/glibc-headers/sysexits.texi: New file.
81641         * doc/glibc-headers/ttyent.texi: New file.
81643 2008-01-12  Jim Meyering  <meyering@redhat.com>
81645         announce-gen: emit Gnulib's git-based version string.
81646         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81647         New option --gnulib-version=V, where V is expected to be
81648         the output of running git describe in the gnulib directory.
81649         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81650         not useful, and plan to stop publishing an xdelta file with each
81651         coreutils release.
81653         * build-aux/announce-gen: Also check for lzma-compressed files.
81655 2008-01-11  Bruno Haible  <bruno@clisp.org>
81657         * tests/test-memmem.c (main): Increase maximum allowed time.
81658         * tests/test-strstr.c (main): Likewise.
81660 2008-01-11  Bruno Haible  <bruno@clisp.org>
81662         * doc/functions/memmem.texi: Add more precisions about platforms.
81663         * doc/functions/strstr.texi: Likewise.
81665 2008-01-10  Eric Blake  <ebb9@byu.net>
81667         * m4/strstr.m4: Delete cruft from copy-n-paste.
81668         Reported by Bruno Haible.
81670 2008-01-10  Bruno Haible  <bruno@clisp.org>
81672         Make c-strstr rely on strstr.
81673         * lib/c-strstr.c: Don't include str-kmp.h.
81674         (c_strstr): Define in terms of strstr.
81675         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81676         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81678 2008-01-10  Bruno Haible  <bruno@clisp.org>
81680         * doc/gnulib.texi (String Functions in C Locale): New section.
81681         * doc/c-ctype.texi: New file.
81682         * doc/c-strcase.texi: New file.
81683         * doc/c-strcaseeq.texi: New file.
81684         * doc/c-strcasestr.texi: New file.
81685         * doc/c-strstr.texi: New file.
81686         * doc/c-strtod.texi: New file.
81687         * doc/c-strtold.texi: New file.
81689 2008-01-10  Eric Blake  <ebb9@byu.net>
81691         * lib/relocatable.h: Fix a comment.
81693 2008-01-10  Eric Blake  <ebb9@byu.net>
81695         Share two-way algorithm.
81696         * lib/str-two-way.h: New file, merged from...
81697         * lib/memmem.c: ...here...
81698         * lib/strstr.c: ...and here.
81699         * modules/memmem (Files): Use it.
81700         * modules/strstr (Files): Likewise.
81702         Avoid quadratic strstr implementations.
81703         * lib/strstr.c: New file.
81704         * m4/strstr.m4: Likewise.
81705         * modules/strstr: Likewise.
81706         * modules/strstr-tests: Likewise.
81707         * tests/test-strstr.c: Likewise.
81708         * lib/string.in.h (rpl_strstr): Declare.
81709         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81711         * modules/string (Makefile.am): Likewise.
81712         * MODULES.html.sh (string handling): Mention new module.
81713         * doc/functions/strstr.texi (strstr): Document the bug.
81715 2008-01-10  Bruno Haible  <bruno@clisp.org>
81717         * lib/relocatable.h (relocate): State whether result is freshly
81718         allocated or not.
81719         * lib/relocatable.c (relocate): Return a freshly allocated string
81720         instead of a pointer to a privately held string.
81721         Reported by Sylvain Beucler <beuc@gnu.org>.
81723 2008-01-10  Colin Watson  <cjwatson@debian.org>
81725         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81726         s/S_ISNLK/S_ISLNK/.
81728 2008-01-09  Bruno Haible  <bruno@clisp.org>
81730         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81731         and other files.
81732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81733         if it's only a guess.
81734         * modules/memmem: Simplify by depending on memmem-simple.
81736 2008-01-09  Bruno Haible  <bruno@clisp.org>
81738         Work around OpenBSD 4.0 tdelete() bug.
81739         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81740         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81741         macros and don't redefine the enum values.
81742         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81743         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81744         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81746 2008-01-09  Bruno Haible  <bruno@clisp.org>
81748         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81749         (main): Don't perform the tests if setlocale did not install a UTF-8
81750         locale. Needed on OpenBSD 4.0.
81751         * modules/wcwidth-tests (Depends-on): Add localcharset.
81753 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81755         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81756         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81757         * NEWS: announce this.
81758         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81760 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81761         and Eric Blake  <ebb9@byu.net>
81763         Add memmem-simple module.
81764         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81765         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81766         * modules/memmem-simple: New file.
81767         * modules/memmem (Description): Tweak.
81768         * MODULES.html.sh (string handling): Mention new module.
81769         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81770         addressed by memmem-simple.
81771         * NEWS: Document the difference.
81773 2008-01-09  Eric Blake  <ebb9@byu.net>
81775         Give gcc some memmem optimization hints.
81776         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81777         (strcasestr): Declare as pure.
81778         * modules/memmem (Maintainer): Claim my implementation.
81780 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81782         Support AIX 6.1 and higher.
81783         * build-aux/config.libpath: Likewise.
81784         * build-aux/config.rpath: Likewise.
81786 2008-01-08  Jim Meyering  <meyering@redhat.com>
81787             Bruno Haible  <bruno@clisp.org>
81789         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81790         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81791         Reported by Peter Fales in
81792         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81794 2008-01-08  Bruno Haible  <bruno@clisp.org>
81796         * modules/unictype/category-of (Depends-on): Add
81797         unictype/category-none.
81798         * modules/unictype/category-and-tests (Depends-on): Add
81799         unictype/category-{L,N,Lu,Nd}.
81800         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81801         * modules/unictype/category-or-tests (Depends-on): Add
81802         unictype/category-{L,N}.
81803         * modules/unictype/category-name-tests (Depends-on): Add
81804         unictype/category-{Z,Nl}.
81805         Reported by Simon Josefsson.
81807 2008-01-08  Bruno Haible  <bruno@clisp.org>
81809         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81810         convention better.
81811         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81812         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81813         Reported by Peter Miller <millerp@canb.auug.org.au>.
81815 2008-01-08  Eric Blake  <ebb9@byu.net>
81817         Rewrite memmem to guarantee linear complexity without malloc.
81818         * lib/memmem.c (memmem): Use Two-Way rather than
81819         Knuth-Morris-Pratt, to allow O(1) space usage.
81820         (critical_factorization, two_way_short_needle)
81821         (two_way_long_needle): New functions.
81822         (knuth_morris_pratt): Delete.
81823         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81824         Add stdint.
81825         * tests/test-memmem.c (main): Add tests for periodic needle and
81826         sublinear performance.
81827         * doc/functions/memmem.texi (memmem): Document other deficiencies
81828         in cygwin and older glibc.
81830 2008-01-08  Bruno Haible  <bruno@clisp.org>
81832         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81833         augmentation.
81835 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81837         Add a configure time option: --disable-acl.
81838         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81839         AC_ARG_ENABLE(acl).
81841 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81843         * tests/test-localename.c: Don't include obsolete "setenv.h".
81845         * modules/localename-tests (Depends-on): Need unsetenv.
81847 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81849         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81851 2008-01-06  Colin Watson  <cjwatson@debian.org>
81853         * users.txt: Add man-db.
81855 2008-01-07  Bruno Haible  <bruno@clisp.org>
81857         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81858         previous section name.
81860 2008-01-07  Bruno Haible  <bruno@clisp.org>
81862         * lib/progname.c (set_program_name): Don't strip off a leading
81863         "lt-" prefix outside a .libs directory.
81864         Suggested by Paul Eggert.
81866 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81867             Bruno Haible  <bruno@clisp.org>
81869         Improve memory cleanup in 'relocatable' module.
81870         * lib/relocatable.h (compute_curr_prefix): Change return type to
81871         'char *'.
81872         * lib/relocatable.c (compute_curr_prefix): Change return type to
81873         'char *'. Free curr_installdir after use.
81874         (relocate): Free curr_prefix_better after use.
81875         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81877 2008-01-01  Bruno Haible  <bruno@clisp.org>
81879         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81880         failure on older glibc systems.
81881         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81883 2008-01-05  Eric Blake  <ebb9@byu.net>
81885         Avoid quadratic system memmem.
81886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81887         Reported by Ralf Wildenhues.
81889         Fix memmem test for mingw.
81890         * modules/memmem-tests (configure.ac): Check for alarm.
81891         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81892         it.
81893         * doc/functions/memmem.texi: New file.
81894         * doc/gnulib.texi (Function Substitutes): Add memmem.
81895         Reported by Bruno Haible.
81897 2008-01-04  Bruno Haible  <bruno@clisp.org>
81899         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81900         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81901         gl_HEADER_STRING_H_DEFAULTS.
81903 2008-01-04  Eric Blake  <ebb9@byu.net>
81905         Shorten duration of memmem test.
81906         * tests/test-memmem.c (main): Use alarm to declare failure if test
81907         is taking too long.
81908         Reported by Ralf Wildenhues.
81910 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81912         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81913         string, needed by strerror.
81915 2008-01-03  Colin Watson  <cjwatson@debian.org>
81916             Bruno Haible  <bruno@clisp.org>
81918         * doc/gnulib-tool.texi (Localization): New section.
81920 2008-01-02  Bruno Haible  <bruno@clisp.org>
81922         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81923         variables to 'unsigned char *' type.
81924         Reported by Paul Eggert.
81926 2008-01-02  Jim Meyering  <jim@meyering.net>
81928         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81930 2007-12-31  Jim Meyering  <jim@meyering.net>
81932         Avoid use of private FTS type name.
81933         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81935 2007-12-30  Karl Berry  <karl@gnu.org>
81937         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81938         work around defect in Texinfo and/or the standalone Info browser.
81940 2007-12-30  Bruno Haible  <bruno@clisp.org>
81942         Unify 5 copies of the KMP code.
81943         * lib/str-kmp.h: New file.
81944         * lib/c-strcasestr.c: Include str-kmp.h.
81945         (knuth_morris_pratt): Remove function.
81946         (c_strcasestr): Update.
81947         * lib/c-strstr.c: Include str-kmp.h.
81948         (knuth_morris_pratt): Remove function.
81949         (c_strcasestr): Update.
81950         * lib/mbscasestr.c: Include str-kmp.h.
81951         (knuth_morris_pratt_unibyte): Remove function.
81952         * lib/mbsstr.c: Include str-kmp.h.
81953         (knuth_morris_pratt_unibyte): Remove function.
81954         * lib/strcasestr.c: Include str-kmp.h.
81955         (knuth_morris_pratt): Remove function.
81956         (strcasestr): Update.
81957         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81958         * modules/c-strstr (Files): Likewise.
81959         * modules/mbscasestr (Files): Likewise.
81960         * modules/mbsstr (Files): Likewise.
81961         * modules/strcasestr (Files): Likewise.
81962         Suggested by Paul Eggert.
81964 2007-12-30  Bruno Haible  <bruno@clisp.org>
81966         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81967         defined.
81969 2007-12-30  Bruno Haible  <bruno@clisp.org>
81971         * lib/xmalloca.h: Include xalloc.h.
81972         (xnmalloca): New macro.
81974 2007-12-30  Bruno Haible  <bruno@clisp.org>
81976         * lib/malloca.h (nmalloca): New macro.
81977         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81978         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81979         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81980         knuth_morris_pratt_multibyte): Likewise.
81981         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81982         knuth_morris_pratt_multibyte): Likewise.
81983         * lib/memmem.c (knuth_morris_pratt): Likewise.
81984         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81986 2007-12-25  Bruno Haible  <bruno@clisp.org>
81988         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81989         * lib/glob.c: Don't include openat.h.
81990         (link_exists2_p): Add back the code that deals with the
81991         !GLOB_ALTDIRFUNC case.
81992         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81993         let it do the filename concatenation.
81994         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81995         * modules/glob (Depends-on): Remove openat.
81997 2007-12-31  Bruno Haible  <bruno@clisp.org>
81999         * modules/dirfd (License): Change to LGPLv2+.
82000         Approved by Jim Meyering.
82002 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
82004         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
82005         when multiplying M by sizeof (size_t).
82007 2007-12-10  Martin Lambers  <marlam@marlam.de>
82009         Override getpagesize on mingw.
82010         * lib/getpagesize.c: New file.
82011         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
82012         * modules/getpagesize (Files): Add lib/getpagesize.c.
82013         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
82014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82015         REPLACE_GETPAGESIZE.
82016         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
82018 2007-12-25  Bruno Haible  <bruno@clisp.org>
82020         * modules/localcharset (Notice): New field.
82021         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
82022         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
82024 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
82025             Bruno Haible  <bruno@clisp.org>
82027         Avoid using the syntax symbol() in formatted documentation.
82028         * MODULES.html.sh (func_module): When replacing symbol() with a
82029         hyperlink, remove the parentheses. Show an error if some remain.
82030         Recognize and render the '...' syntax.
82031         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
82032         Rework. Add paragraph about GCC's inlining.
82033         * doc/alloca.texi: Likewise.
82034         * doc/error.texi: Remove parentheses from symbol reference.
82035         * doc/gnulib-intro.texi: Likewise.
82036         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
82037         * modules/fnmatch (Description): Reword to say "the ... function".
82038         * modules/full-read (Description): Likewise.
82039         * modules/full-write (Description): Likewise.
82040         * modules/safe-read (Description): Likewise.
82041         * modules/safe-write (Description): Likewise.
82042         * modules/strchrnul (Description): Likewise.
82043         * modules/trim (Description): Likewise.
82044         * modules/error (Description): Remove parentheses from symbol
82045         references.
82046         * modules/verror (Description): Likewise.
82047         Reported by Karl Berry.
82049 2007-12-25  Bruno Haible  <bruno@clisp.org>
82051         Fixup after 2007-10-16 commit.
82052         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
82054 2007-12-24  Bruno Haible  <bruno@clisp.org>
82056         Make --enable-relocatable work with DESTDIR.
82057         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
82058         to compute installdir from destprog.
82059         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
82060         also set the RELOC_DESTDIR variable.
82061         Reported by Левашев Иван <octagram@bluebottle.com>.
82063 2007-12-24  Bruno Haible  <bruno@clisp.org>
82065         Fix link error due to xalloc_die().
82066         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
82067         of xreadlink.
82068         * lib/relocwrapper.c: Update comments.
82069         * build-aux/install-reloc: Remove xreadlink.c from file list.
82070         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
82071         xreadlink.c.
82072         Reported by Левашев Иван <octagram@bluebottle.com>.
82074 2007-12-24  Bruno Haible  <bruno@clisp.org>
82076         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
82077         * lib/setenv.h: Remove file.
82078         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
82079         lib/setenv.h.
82080         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
82081         (Depends-on): Add stdlib.
82082         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
82083         gl_FUNC_UNSETENV.
82084         (Include): Replace setenv.h with <stdlib.h>.
82085         * modules/unsetenv: New file.
82086         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
82087         * lib/unsetenv.c: Include <stdlib.h> first.
82088         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
82089         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
82090         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
82091         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
82092         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
82093         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
82094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
82095         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
82096         * doc/functions/unsetenv.texi: Update.
82097         * modules/xsetenv (Depends-on): Add unsetenv.
82098         * modules/getdate (Depends-on): Likewise.
82099         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
82100         * lib/xsetenv.c: Don't include setenv.h.
82101         * lib/getdate.y: Likewise.
82102         * lib/relocwrapper.c: Likewise.
82103         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
82104         (Depends-on): Add stdlib.
82105         * NEWS: Mention the changes.
82106         Reported by Левашев Иван <octagram@bluebottle.com>.
82108 2007-12-23  Bruno Haible  <bruno@clisp.org>
82110         * lib/memmem.c (memmem): Use lowercase variable names. Tab
82111         indentation.
82113 2007-12-23  Bruno Haible  <bruno@clisp.org>
82115         * lib/c-strcasestr.c: Add more comments.
82116         * lib/c-strstr.c: Likewise.
82117         * lib/mbscasestr.c: Likewise.
82118         * lib/mbsstr.c: Likewise.
82119         * lib/strcasestr.c: Likewise.
82120         * lib/memmem.c: Likewise.
82122 2007-12-23  Bruno Haible  <bruno@clisp.org>
82124         * tests/test-memmem.c: Include <string.h> first.
82126 2007-12-22  Bruno Haible  <bruno@clisp.org>
82128         * gnulib-tool (func_create_testdir): Change $auxdir while generating
82129         the contents of $testsbase.
82130         Reported by Ralf Wildenhues.
82132 2007-12-22  Bruno Haible  <bruno@clisp.org>
82134         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
82135         two variables local_ldadd_before, local_ldadd_last.
82137 2007-12-20  Eric Blake  <ebb9@byu.net>
82139         Work around circular library issue when cross-compiling.
82140         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
82141         that progname.o does not need to pull in rpl_memcmp.
82143 2007-12-19  Eric Blake  <ebb9@byu.net>
82145         Fix memmem to avoid O(n^2) worst-case complexity.
82146         * lib/memmem.c (knuth_morris_pratt): New function.
82147         (memmem): Use it if first few naive iterations fail.
82148         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
82149         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
82150         * modules/memchr (License): Likewise.
82151         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
82152         malloca.
82153         * tests/test-memmem.c: Rewrite, borrowing ideas from
82154         test-mbsstr1.c; the old version wouldn't even compile!
82155         * modules/memmem-tests: New file.
82156         * lib/string.in.h (rpl_memmem): Add declaration.
82157         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
82158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
82159         REPLACE_MEMMEM.
82161 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
82163         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
82164         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
82165         before any system include files, and undef after them all.  This
82166         should fix a problem on VMS reported by John E. Malmberg in
82167         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
82169 2007-12-17  Eric Blake  <ebb9@byu.net>
82171         Revert addition of verify, for BSD/OS.
82172         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
82173         can't handle large files, for the sake of obsolete platforms.
82174         * modules/fseeko (Depends-on): Remove verify.
82175         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
82176         * doc/functions/ftello.texi (ftello): Likewise.
82177         * doc/functions/fgetpos.texi (fgetpos): Likewise.
82178         Reported by Larry Jones.
82180 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
82182         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
82183         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
82185 2007-12-17  Jim Meyering  <meyering@redhat.com>
82187         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
82188         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
82189         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
82190         * modules/getcwd (Depends-on): Add openat.
82191         Reported by Petr Salinger.
82193 2007-12-17  Bruno Haible  <bruno@clisp.org>
82195         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
82196         avoid a segmentation fault of the configure test on x86_64 systems.
82198 2007-12-15  Jim Meyering  <meyering@redhat.com>
82200         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
82202 2007-12-13  Eric Blake  <ebb9@byu.net>
82204         Another fseek test.
82205         * tests/test-fseek.c (main): Also test ungetc handling.
82206         * tests/test-fseeko.c (main): Likewise.
82207         * modules/fseeko (Depends-on): Add verify.
82208         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
82209         large.
82210         Reported by Larry Jones.
82212         Fix fseeko on mingw.
82213         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
82214         seek.
82216         Beef up fseek tests.
82217         * tests/test-fseek.c (main): Also test eof handling.
82218         * tests/test-fseeko.c (main): Likewise.
82219         Reported by Larry Jones.
82221 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
82223         Fix fseeko on BSD-based platforms.
82224         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
82225         successful seek.
82227 2007-12-12  Eric Blake  <ebb9@byu.net>
82229         Allow circular dependency of separate libtests.a
82230         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
82231         when use_libtests.
82233 2007-12-11  Eric Blake  <ebb9@byu.net>
82235         Fix bug with -0.0L in previous patch.
82236         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
82237         * tests/test-isnan.c (main): Also test on zeroes.
82238         * tests/test-isnanf.c (main): Likewise.
82239         * tests/test-isnanl.h (main): Likewise.
82241         Detect pseudo-denormals on x86 even when cross-compiling.
82242         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
82243         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
82244         invalid bit patterns that happen to satisfy ==.
82246         Avoid link failures with separate libtests.a.
82247         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
82248         last, to satisfy circular dependencies.
82250 2007-12-11  Eric Blake  <ebb9@byu.net>
82251         and Bruno Haible  <bruno@clisp.org>
82253         Fix OpenBSD 4.0 <float.h> handling of long double.
82254         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
82255         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
82256         * doc/headers/float.texi (float.h): Document OpenBSD bug.
82258 2007-12-11  Jim Meyering  <meyering@redhat.com>
82260         * users.txt: Add libvirt.
82262         Support versions of autoconf prior to 2.59c.
82263         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
82264         if it is not already defined.
82266 2007-12-09  Bruno Haible  <bruno@clisp.org>
82268         Let 'gnulib-tool --import' collect sources needed for the tests in
82269         tests/ rather than in lib/.
82270         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
82271         argument. If true, add rules to generate libtests.a, and put libtests.a
82272         into $(LDADD). Consider source files in subdirectories and set
82273         uses_subdirs.
82274         (func_emit_initmacro_start, func_emit_initmacro_end,
82275         func_emit_initmacro_done): Pass all arguments explicitly.
82276         (func_import): Determine two module lists main_modules,
82277         testsrelated_modules. Determine use_libtests. Determine two variables
82278         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
82279         instead of just sed_transform_lib_file. Determine two variables
82280         main_files and testsrelated_files. Compute 'files' as the union of
82281         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
82282         func_add_or_update. In the generated gnulib-comp.m4, collect the
82283         object files for tests/ in different variables than those for lib/.
82284         Substitute LIBTESTS_LIBDEPS.
82285         (func_create_testdir): Combine the uses_subdirs results from
82286         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
82288 2007-12-09  Bruno Haible  <bruno@clisp.org>
82290         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
82291         the build-aux directory.
82293 2007-12-09  Bruno Haible  <bruno@clisp.org>
82295         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
82296         introduced on 2006-09-09.
82298 2007-12-07  Jim Meyering  <meyering@redhat.com>
82300         Let these macros work also with autoconf-2.59.
82301         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
82302         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
82303         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82305 2007-12-06  Jim Meyering  <meyering@redhat.com>
82307         Avoid a configure-time syntax error in gl_FUNC_ACL.
82308         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
82309         function in each branch, before testing the cache variable.
82311 2007-12-04  Eric Blake  <ebb9@byu.net>
82313         Make scripts executable.
82314         * build-aux/config.guess: Add execute permissions.
82315         * build-aux/config.sub: Likewise.
82316         * build-aux/gendocs.sh: Likewise.
82318         Fix frexp on mingw.
82319         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
82320         cross-compiling.
82321         * doc/functions/frexp.texi (frexp): Document the bug.
82323         Make cygwin fseeko check more reliable.
82324         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
82325         version numbers, rather than unrelated feature check.
82326         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
82327         * doc/functions/ftello.texi (ftello): Likewise.
82328         Reported by Bruno Haible.
82330         * m4/strerror.m4: Bump version number.
82332 2007-12-03  Bruno Haible  <bruno@clisp.org>
82334         * doc/functions/mprotect.texi: Mention the mingw problem.
82336 2007-12-03  Eric Blake  <ebb9@byu.net>
82338         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82339         REPLACE_STRERROR is initialized before this macro.
82341 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82343         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82344         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82345         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82346         put -lsec in even for programs other than 'ls'.  This fixes a problem
82347         for gettext reported by Bruno Haible in
82348         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82349         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82350         Add support for Solaris 10.  This isn't efficient, but should get the
82351         job done for now.
82353 2007-12-03  James Youngman  <jay@gnu.org>
82355         * doc/regexprops-generic.texi: change "an close-group" to "a
82356         close-group" and "illegal" to "not allowed".
82358 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82360         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82361         pr_byname.h. Needed for the rare case when the maintainer has done
82362         "make maintainer-clean" in the source directory and then attempts a
82363         build outside the source directory.
82364         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82365         scripts_byname.h.
82367 2007-12-02  Martin Lambers  <marlam@marlam.de>
82368             Bruno Haible  <bruno@clisp.org>
82370         * lib/getpagesize.h: Remove file.
82371         * lib/unistd.in.h: Include declaration of getpagesize here.
82372         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82373         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82374         HAVE_SYS_PARAM_H.
82375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82376         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82377         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82378         (Depends-on): Add unistd.
82379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82380         (Include): Use <unistd.h> instead of getpagesize.h.
82381         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82382         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82383         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82384         gl_GETPAGESIZE invocation, already handled by module dependency.
82385         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82387 2007-12-02  Bruno Haible  <bruno@clisp.org>
82389         * modules/strings-tests: New file.
82390         * tests/test-strings.c: New file.
82392         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82393         * lib/strings.in.h: New file.
82394         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82395         * m4/strings_h.m4: New file.
82396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82397         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82398         * modules/strings: New file.
82399         * modules/string (Makefile.am): Update.
82400         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82401         Reported by Karl Berry.
82403 2007-12-01  Eric Blake  <ebb9@byu.net>
82405         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82406         accommodate fix in cygwin 1.5.25.
82408 2007-12-01  Jim Meyering  <meyering@redhat.com>
82410         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82411         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82412         that would inhibit utf8-optimization of a regexp containing line-
82413         or buffer-anchors, e.g., `^', `$'.
82415 2007-11-30  Bruno Haible  <bruno@clisp.org>
82417         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82418         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82419         glthread_recursive_lock_init.
82420         * lib/lock.c (glthread_recursive_lock_init)
82421         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82422         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82424 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82426         New function qset_acl, like set_acl but with syscall semantics.
82427         * lib/acl.h (qset_acl): New decl.
82428         * lib/acl.c (qset_acl): New function.
82429         (set_acl): Use new function.  Use more-consistent diagnostics.
82431 2007-11-28  Jim Meyering  <meyering@redhat.com>
82433         * modules/physmem (License): Change from GPL to LGPLv2+.
82435 2007-11-26  Bruno Haible  <bruno@clisp.org>
82437         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82438         'long double' type has excess precision.
82439         Reported by Jim Meyering in
82440         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82442 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82444         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82445         Sync from <http://gnu.org/licenses>.
82446         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82447         with license text from same location.
82448         * doc/maintain.texi, doc/standards.texi:  Sync from
82449         <http://savannah.gnu.org/projects/gnustandards>.
82451 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82452         and Jim Meyering  <meyering@redhat.com>
82454         Adjust getdate' grammar to accept a slightly more regular language.
82455         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82456         Before, the former was rejected.
82457         * lib/getdate.y (digits_to_date_time): New function, factored
82458         out of ...
82459         (number): ...here.  Just call digits_to_date_time.
82460         (hybrid): New non-terminal to handle an <unsigned number,
82461         signed relative offset> sequence consistently.
82463 2007-11-18  Jim Meyering  <meyering@redhat.com>
82465         Pull my changes from coreutils:
82466         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82467         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82468         use of $gnulib_tool_option_extras, so that it's separated from the
82469         preceding argument.
82471         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82472         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82473         parent destination directories before copying a file into place.
82475 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82477         bootstrap: work also with 4-argument variant of AC_INIT
82478         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82480 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82482         Port test-getaddrinfo to Solaris.
82483         Problem reported by Bruno Haible in
82484         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82485         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82486         explanation of setting 'hints'.
82487         Don't reject an implementation merely because it returns EAI_SERVICE.
82488         (EAI_SERVICE): Define to 0 if not defined.
82490 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82492         The license of gnu-make and posix-shell is now "GPLed build tool".
82493         * modules/gnu-make (License): Likewise.
82494         * modules/posix-shell (License): Likewise.
82496         New module posix-shell, for determining a POSIX shell
82497         or perhaps something that is close enough to a POSIX shell.
82498         * m4/posix-shell.m4: New file.
82499         * modules/posix-shell: New file.
82501         * MODULES.html.sh: Mention new module.
82503         New module gnu-make, for determining whether we're using GNU Make.
82504         * m4/gnu-make.m4: New file.
82505         * modules/gnu-make: New file.
82506         * MODULES.html.sh: Mention new module.
82508 2007-11-14  Jim Meyering  <meyering@redhat.com>
82510         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82511         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82512         use this macro to create a function _definition_.
82513         Remove useless "#undef ARGMATCH_DIE".
82515 2007-11-14  Bruno Haible  <bruno@clisp.org>
82517         * lib/config.charset: Update for OpenBSD 4.1.
82518         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82520 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82522         Document 64-bit #if problems in stdint.texi.
82523         * doc/headers/stdint.texi (stdint.h): Mention problems with
82524         64-bit-#if, and how to work around them.
82526         Don't insist on 'long long int' support in the preprocessor.  It
82527         breaks too many things.  For example, PRIdMAX still uses a 'long
82528         long int' format with the latest Sun compiler, even though
82529         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82530         preprocessor problem.  This causes the latest coreutils to dump
82531         core on Solaris 10 sparc with the Sun C compiler.
82532         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82533         the troublesome expressions at configure-time, not at #if-time.
82534         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82535         preprocessor.
82536         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82537         compile-time C checks, done at 'configure'-time.
82538         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82539         * modules/inttypes (Makefile): Substitute the new symbols that
82540         gl_INTTYPES_H now generates.
82541         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82543 2007-11-12  Bruno Haible  <bruno@clisp.org>
82545         Tests for Unicode character classification functions.
82547         * modules/unictype/bidicategory-byname-tests: New file.
82548         * modules/unictype/bidicategory-name-tests: New file.
82549         * modules/unictype/bidicategory-of-tests: New file.
82550         * modules/unictype/bidicategory-test-tests: New file.
82551         * modules/unictype/block-list-tests: New file.
82552         * modules/unictype/block-of-tests: New file.
82553         * modules/unictype/block-test-tests: New file.
82554         * modules/unictype/category-C-tests: New file.
82555         * modules/unictype/category-Cc-tests: New file.
82556         * modules/unictype/category-Cf-tests: New file.
82557         * modules/unictype/category-Cn-tests: New file.
82558         * modules/unictype/category-Co-tests: New file.
82559         * modules/unictype/category-Cs-tests: New file.
82560         * modules/unictype/category-L-tests: New file.
82561         * modules/unictype/category-Ll-tests: New file.
82562         * modules/unictype/category-Lm-tests: New file.
82563         * modules/unictype/category-Lo-tests: New file.
82564         * modules/unictype/category-Lt-tests: New file.
82565         * modules/unictype/category-Lu-tests: New file.
82566         * modules/unictype/category-M-tests: New file.
82567         * modules/unictype/category-Mc-tests: New file.
82568         * modules/unictype/category-Me-tests: New file.
82569         * modules/unictype/category-Mn-tests: New file.
82570         * modules/unictype/category-N-tests: New file.
82571         * modules/unictype/category-Nd-tests: New file.
82572         * modules/unictype/category-Nl-tests: New file.
82573         * modules/unictype/category-No-tests: New file.
82574         * modules/unictype/category-P-tests: New file.
82575         * modules/unictype/category-Pc-tests: New file.
82576         * modules/unictype/category-Pd-tests: New file.
82577         * modules/unictype/category-Pe-tests: New file.
82578         * modules/unictype/category-Pf-tests: New file.
82579         * modules/unictype/category-Pi-tests: New file.
82580         * modules/unictype/category-Po-tests: New file.
82581         * modules/unictype/category-Ps-tests: New file.
82582         * modules/unictype/category-S-tests: New file.
82583         * modules/unictype/category-Sc-tests: New file.
82584         * modules/unictype/category-Sk-tests: New file.
82585         * modules/unictype/category-Sm-tests: New file.
82586         * modules/unictype/category-So-tests: New file.
82587         * modules/unictype/category-Z-tests: New file.
82588         * modules/unictype/category-Zl-tests: New file.
82589         * modules/unictype/category-Zp-tests: New file.
82590         * modules/unictype/category-Zs-tests: New file.
82591         * modules/unictype/category-and-not-tests: New file.
82592         * modules/unictype/category-and-tests: New file.
82593         * modules/unictype/category-byname-tests: New file.
82594         * modules/unictype/category-name-tests: New file.
82595         * modules/unictype/category-none-tests: New file.
82596         * modules/unictype/category-of-tests: New file.
82597         * modules/unictype/category-or-tests: New file.
82598         * modules/unictype/category-test-withtable-tests: New file.
82599         * modules/unictype/combining-class-tests: New file.
82600         * modules/unictype/ctype-alnum-tests: New file.
82601         * modules/unictype/ctype-alpha-tests: New file.
82602         * modules/unictype/ctype-blank-tests: New file.
82603         * modules/unictype/ctype-cntrl-tests: New file.
82604         * modules/unictype/ctype-digit-tests: New file.
82605         * modules/unictype/ctype-graph-tests: New file.
82606         * modules/unictype/ctype-lower-tests: New file.
82607         * modules/unictype/ctype-print-tests: New file.
82608         * modules/unictype/ctype-punct-tests: New file.
82609         * modules/unictype/ctype-space-tests: New file.
82610         * modules/unictype/ctype-upper-tests: New file.
82611         * modules/unictype/ctype-xdigit-tests: New file.
82612         * modules/unictype/decimal-digit-tests: New file.
82613         * modules/unictype/digit-tests: New file.
82614         * modules/unictype/mirror-tests: New file.
82615         * modules/unictype/numeric-tests: New file.
82616         * modules/unictype/property-alphabetic-tests: New file.
82617         * modules/unictype/property-ascii-hex-digit-tests: New file.
82618         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82619         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82620         * modules/unictype/property-bidi-block-separator-tests: New file.
82621         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82622         * modules/unictype/property-bidi-common-separator-tests: New file.
82623         * modules/unictype/property-bidi-control-tests: New file.
82624         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82625         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82626         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82627         * modules/unictype/property-bidi-european-digit-tests: New file.
82628         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82629         * modules/unictype/property-bidi-left-to-right-tests: New file.
82630         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82631         * modules/unictype/property-bidi-other-neutral-tests: New file.
82632         * modules/unictype/property-bidi-pdf-tests: New file.
82633         * modules/unictype/property-bidi-segment-separator-tests: New file.
82634         * modules/unictype/property-bidi-whitespace-tests: New file.
82635         * modules/unictype/property-byname-tests: New file.
82636         * modules/unictype/property-combining-tests: New file.
82637         * modules/unictype/property-composite-tests: New file.
82638         * modules/unictype/property-currency-symbol-tests: New file.
82639         * modules/unictype/property-dash-tests: New file.
82640         * modules/unictype/property-decimal-digit-tests: New file.
82641         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82642         * modules/unictype/property-deprecated-tests: New file.
82643         * modules/unictype/property-diacritic-tests: New file.
82644         * modules/unictype/property-extender-tests: New file.
82645         * modules/unictype/property-format-control-tests: New file.
82646         * modules/unictype/property-grapheme-base-tests: New file.
82647         * modules/unictype/property-grapheme-extend-tests: New file.
82648         * modules/unictype/property-grapheme-link-tests: New file.
82649         * modules/unictype/property-hex-digit-tests: New file.
82650         * modules/unictype/property-hyphen-tests: New file.
82651         * modules/unictype/property-id-continue-tests: New file.
82652         * modules/unictype/property-id-start-tests: New file.
82653         * modules/unictype/property-ideographic-tests: New file.
82654         * modules/unictype/property-ids-binary-operator-tests: New file.
82655         * modules/unictype/property-ids-trinary-operator-tests: New file.
82656         * modules/unictype/property-ignorable-control-tests: New file.
82657         * modules/unictype/property-iso-control-tests: New file.
82658         * modules/unictype/property-join-control-tests: New file.
82659         * modules/unictype/property-left-of-pair-tests: New file.
82660         * modules/unictype/property-line-separator-tests: New file.
82661         * modules/unictype/property-logical-order-exception-tests: New file.
82662         * modules/unictype/property-lowercase-tests: New file.
82663         * modules/unictype/property-math-tests: New file.
82664         * modules/unictype/property-non-break-tests: New file.
82665         * modules/unictype/property-not-a-character-tests: New file.
82666         * modules/unictype/property-numeric-tests: New file.
82667         * modules/unictype/property-other-alphabetic-tests: New file.
82668         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82669         * modules/unictype/property-other-grapheme-extend-tests: New file.
82670         * modules/unictype/property-other-id-continue-tests: New file.
82671         * modules/unictype/property-other-id-start-tests: New file.
82672         * modules/unictype/property-other-lowercase-tests: New file.
82673         * modules/unictype/property-other-math-tests: New file.
82674         * modules/unictype/property-other-uppercase-tests: New file.
82675         * modules/unictype/property-paired-punctuation-tests: New file.
82676         * modules/unictype/property-paragraph-separator-tests: New file.
82677         * modules/unictype/property-pattern-syntax-tests: New file.
82678         * modules/unictype/property-pattern-white-space-tests: New file.
82679         * modules/unictype/property-private-use-tests: New file.
82680         * modules/unictype/property-punctuation-tests: New file.
82681         * modules/unictype/property-quotation-mark-tests: New file.
82682         * modules/unictype/property-radical-tests: New file.
82683         * modules/unictype/property-sentence-terminal-tests: New file.
82684         * modules/unictype/property-soft-dotted-tests: New file.
82685         * modules/unictype/property-space-tests: New file.
82686         * modules/unictype/property-terminal-punctuation-tests: New file.
82687         * modules/unictype/property-test-tests: New file.
82688         * modules/unictype/property-titlecase-tests: New file.
82689         * modules/unictype/property-unassigned-code-value-tests: New file.
82690         * modules/unictype/property-unified-ideograph-tests: New file.
82691         * modules/unictype/property-uppercase-tests: New file.
82692         * modules/unictype/property-variation-selector-tests: New file.
82693         * modules/unictype/property-white-space-tests: New file.
82694         * modules/unictype/property-xid-continue-tests: New file.
82695         * modules/unictype/property-xid-start-tests: New file.
82696         * modules/unictype/property-zero-width-tests: New file.
82697         * modules/unictype/scripts-tests: New file.
82698         * modules/unictype/syntax-c-ident-tests: New file.
82699         * modules/unictype/syntax-c-whitespace-tests: New file.
82700         * modules/unictype/syntax-java-ident-tests: New file.
82701         * modules/unictype/syntax-java-whitespace-tests: New file.
82702         * tests/unictype/test-bidi_byname.c: New file.
82703         * tests/unictype/test-bidi_name.c: New file.
82704         * tests/unictype/test-bidi_of.c: New file.
82705         * tests/unictype/test-bidi_test.c: New file.
82706         * tests/unictype/test-block_list.c: New file.
82707         * tests/unictype/test-block_of.c: New file.
82708         * tests/unictype/test-block_test.c: New file.
82709         * tests/unictype/test-categ_and.c: New file.
82710         * tests/unictype/test-categ_and_not.c: New file.
82711         * tests/unictype/test-categ_byname.c: New file.
82712         * tests/unictype/test-categ_name.c: New file.
82713         * tests/unictype/test-categ_none.c: New file.
82714         * tests/unictype/test-categ_of.c: New file.
82715         * tests/unictype/test-categ_or.c: New file.
82716         * tests/unictype/test-categ_test_withtable.c: New file.
82717         * tests/unictype/test-combining.c: New file.
82718         * tests/unictype/test-decdigit.c: New file.
82719         * tests/unictype/test-digit.c: New file.
82720         * tests/unictype/test-mirror.c: New file.
82721         * tests/unictype/test-numeric.c: New file.
82722         * tests/unictype/test-pr_byname.c: New file.
82723         * tests/unictype/test-pr_test.c: New file.
82724         * tests/unictype/test-predicate-part1.h: New file.
82725         * tests/unictype/test-predicate-part2.h: New file.
82726         * tests/unictype/test-scripts.c: New file.
82727         * tests/unictype/test-sy_c_ident.c: New file.
82728         * tests/unictype/test-sy_java_ident.c: New file.
82730         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82731         for Unicode 5.0.0.
82732         * tests/unictype/test-categ_Cc.c: Likewise.
82733         * tests/unictype/test-categ_Cf.c: Likewise.
82734         * tests/unictype/test-categ_Cn.c: Likewise.
82735         * tests/unictype/test-categ_Co.c: Likewise.
82736         * tests/unictype/test-categ_Cs.c: Likewise.
82737         * tests/unictype/test-categ_L.c: Likewise.
82738         * tests/unictype/test-categ_Ll.c: Likewise.
82739         * tests/unictype/test-categ_Lm.c: Likewise.
82740         * tests/unictype/test-categ_Lo.c: Likewise.
82741         * tests/unictype/test-categ_Lt.c: Likewise.
82742         * tests/unictype/test-categ_Lu.c: Likewise.
82743         * tests/unictype/test-categ_M.c: Likewise.
82744         * tests/unictype/test-categ_Mc.c: Likewise.
82745         * tests/unictype/test-categ_Me.c: Likewise.
82746         * tests/unictype/test-categ_Mn.c: Likewise.
82747         * tests/unictype/test-categ_N.c: Likewise.
82748         * tests/unictype/test-categ_Nd.c: Likewise.
82749         * tests/unictype/test-categ_Nl.c: Likewise.
82750         * tests/unictype/test-categ_No.c: Likewise.
82751         * tests/unictype/test-categ_P.c: Likewise.
82752         * tests/unictype/test-categ_Pc.c: Likewise.
82753         * tests/unictype/test-categ_Pd.c: Likewise.
82754         * tests/unictype/test-categ_Pe.c: Likewise.
82755         * tests/unictype/test-categ_Pf.c: Likewise.
82756         * tests/unictype/test-categ_Pi.c: Likewise.
82757         * tests/unictype/test-categ_Po.c: Likewise.
82758         * tests/unictype/test-categ_Ps.c: Likewise.
82759         * tests/unictype/test-categ_S.c: Likewise.
82760         * tests/unictype/test-categ_Sc.c: Likewise.
82761         * tests/unictype/test-categ_Sk.c: Likewise.
82762         * tests/unictype/test-categ_Sm.c: Likewise.
82763         * tests/unictype/test-categ_So.c: Likewise.
82764         * tests/unictype/test-categ_Z.c: Likewise.
82765         * tests/unictype/test-categ_Zl.c: Likewise.
82766         * tests/unictype/test-categ_Zp.c: Likewise.
82767         * tests/unictype/test-categ_Zs.c: Likewise.
82768         * tests/unictype/test-ctype_alnum.c: Likewise.
82769         * tests/unictype/test-ctype_alpha.c: Likewise.
82770         * tests/unictype/test-ctype_blank.c: Likewise.
82771         * tests/unictype/test-ctype_cntrl.c: Likewise.
82772         * tests/unictype/test-ctype_digit.c: Likewise.
82773         * tests/unictype/test-ctype_graph.c: Likewise.
82774         * tests/unictype/test-ctype_lower.c: Likewise.
82775         * tests/unictype/test-ctype_print.c: Likewise.
82776         * tests/unictype/test-ctype_punct.c: Likewise.
82777         * tests/unictype/test-ctype_space.c: Likewise.
82778         * tests/unictype/test-ctype_upper.c: Likewise.
82779         * tests/unictype/test-ctype_xdigit.c: Likewise.
82780         * tests/unictype/test-decdigit.h: Likewise.
82781         * tests/unictype/test-digit.h: Likewise.
82782         * tests/unictype/test-numeric.h: Likewise.
82783         * tests/unictype/test-pr_alphabetic.c: Likewise.
82784         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82785         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82786         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82787         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82788         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82789         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82790         * tests/unictype/test-pr_bidi_control.c: Likewise.
82791         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82792         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82793         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82794         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82795         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82796         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82797         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82798         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82799         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82800         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82801         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82802         * tests/unictype/test-pr_combining.c: Likewise.
82803         * tests/unictype/test-pr_composite.c: Likewise.
82804         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82805         * tests/unictype/test-pr_dash.c: Likewise.
82806         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82807         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82808         * tests/unictype/test-pr_deprecated.c: Likewise.
82809         * tests/unictype/test-pr_diacritic.c: Likewise.
82810         * tests/unictype/test-pr_extender.c: Likewise.
82811         * tests/unictype/test-pr_format_control.c: Likewise.
82812         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82813         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82814         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82815         * tests/unictype/test-pr_hex_digit.c: Likewise.
82816         * tests/unictype/test-pr_hyphen.c: Likewise.
82817         * tests/unictype/test-pr_id_continue.c: Likewise.
82818         * tests/unictype/test-pr_id_start.c: Likewise.
82819         * tests/unictype/test-pr_ideographic.c: Likewise.
82820         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82821         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82822         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82823         * tests/unictype/test-pr_iso_control.c: Likewise.
82824         * tests/unictype/test-pr_join_control.c: Likewise.
82825         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82826         * tests/unictype/test-pr_line_separator.c: Likewise.
82827         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82828         * tests/unictype/test-pr_lowercase.c: Likewise.
82829         * tests/unictype/test-pr_math.c: Likewise.
82830         * tests/unictype/test-pr_non_break.c: Likewise.
82831         * tests/unictype/test-pr_not_a_character.c: Likewise.
82832         * tests/unictype/test-pr_numeric.c: Likewise.
82833         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82834         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82835         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82836         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82837         * tests/unictype/test-pr_other_id_start.c: Likewise.
82838         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82839         * tests/unictype/test-pr_other_math.c: Likewise.
82840         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82841         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82842         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82843         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82844         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82845         * tests/unictype/test-pr_private_use.c: Likewise.
82846         * tests/unictype/test-pr_punctuation.c: Likewise.
82847         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82848         * tests/unictype/test-pr_radical.c: Likewise.
82849         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82850         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82851         * tests/unictype/test-pr_space.c: Likewise.
82852         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82853         * tests/unictype/test-pr_titlecase.c: Likewise.
82854         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82855         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82856         * tests/unictype/test-pr_uppercase.c: Likewise.
82857         * tests/unictype/test-pr_variation_selector.c: Likewise.
82858         * tests/unictype/test-pr_white_space.c: Likewise.
82859         * tests/unictype/test-pr_xid_continue.c: Likewise.
82860         * tests/unictype/test-pr_xid_start.c: Likewise.
82861         * tests/unictype/test-pr_zero_width.c: Likewise.
82862         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82863         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82865 2007-11-12  Bruno Haible  <bruno@clisp.org>
82867         Unicode character classification functions.
82868         * lib/unictype.h: New file.
82869         * modules/unictype/base: New file.
82870         * modules/unictype/category-L: New file.
82871         * modules/unictype/category-Lu: New file.
82872         * modules/unictype/category-Ll: New file.
82873         * modules/unictype/category-Lt: New file.
82874         * modules/unictype/category-Lm: New file.
82875         * modules/unictype/category-Lo: New file.
82876         * modules/unictype/category-M: New file.
82877         * modules/unictype/category-Mn: New file.
82878         * modules/unictype/category-Mc: New file.
82879         * modules/unictype/category-Me: New file.
82880         * modules/unictype/category-N: New file.
82881         * modules/unictype/category-Nd: New file.
82882         * modules/unictype/category-Nl: New file.
82883         * modules/unictype/category-No: New file.
82884         * modules/unictype/category-P: New file.
82885         * modules/unictype/category-Pc: New file.
82886         * modules/unictype/category-Pd: New file.
82887         * modules/unictype/category-Ps: New file.
82888         * modules/unictype/category-Pe: New file.
82889         * modules/unictype/category-Pi: New file.
82890         * modules/unictype/category-Pf: New file.
82891         * modules/unictype/category-Po: New file.
82892         * modules/unictype/category-S: New file.
82893         * modules/unictype/category-Sm: New file.
82894         * modules/unictype/category-Sc: New file.
82895         * modules/unictype/category-Sk: New file.
82896         * modules/unictype/category-So: New file.
82897         * modules/unictype/category-Z: New file.
82898         * modules/unictype/category-Zs: New file.
82899         * modules/unictype/category-Zl: New file.
82900         * modules/unictype/category-Zp: New file.
82901         * modules/unictype/category-C: New file.
82902         * modules/unictype/category-Cc: New file.
82903         * modules/unictype/category-Cf: New file.
82904         * modules/unictype/category-Cs: New file.
82905         * modules/unictype/category-Co: New file.
82906         * modules/unictype/category-Cn: New file.
82907         * modules/unictype/category-or: New file.
82908         * modules/unictype/category-of: New file.
82909         * modules/unictype/category-test: New file.
82910         * modules/unictype/category-test-withtable: New file.
82911         * modules/unictype/category-byname: New file.
82912         * modules/unictype/category-none: New file.
82913         * modules/unictype/category-and: New file.
82914         * modules/unictype/category-and-not: New file.
82915         * modules/unictype/category-name: New file.
82916         * modules/unictype/combining-class: New file.
82917         * modules/unictype/category-all: New file.
82918         * modules/unictype/bidicategory-all: New file.
82919         * modules/unictype/bidicategory-byname: New file.
82920         * modules/unictype/bidicategory-name: New file.
82921         * modules/unictype/bidicategory-of: New file.
82922         * modules/unictype/bidicategory-test: New file.
82923         * modules/unictype/decimal-digit: New file.
82924         * modules/unictype/digit: New file.
82925         * modules/unictype/numeric: New file.
82926         * modules/unictype/mirror: New file.
82927         * modules/unictype/property-white-space: New file.
82928         * modules/unictype/property-alphabetic: New file.
82929         * modules/unictype/property-other-alphabetic: New file.
82930         * modules/unictype/property-not-a-character: New file.
82931         * modules/unictype/property-default-ignorable-code-point: New file.
82932         * modules/unictype/property-other-default-ignorable-code-point: New
82933         file.
82934         * modules/unictype/property-deprecated: New file.
82935         * modules/unictype/property-logical-order-exception: New file.
82936         * modules/unictype/property-variation-selector: New file.
82937         * modules/unictype/property-private-use: New file.
82938         * modules/unictype/property-unassigned-code-value: New file.
82939         * modules/unictype/property-uppercase: New file.
82940         * modules/unictype/property-other-uppercase: New file.
82941         * modules/unictype/property-lowercase: New file.
82942         * modules/unictype/property-other-lowercase: New file.
82943         * modules/unictype/property-titlecase: New file.
82944         * modules/unictype/property-soft-dotted: New file.
82945         * modules/unictype/property-id-start: New file.
82946         * modules/unictype/property-other-id-start: New file.
82947         * modules/unictype/property-id-continue: New file.
82948         * modules/unictype/property-other-id-continue: New file.
82949         * modules/unictype/property-xid-start: New file.
82950         * modules/unictype/property-xid-continue: New file.
82951         * modules/unictype/property-pattern-white-space: New file.
82952         * modules/unictype/property-pattern-syntax: New file.
82953         * modules/unictype/property-join-control: New file.
82954         * modules/unictype/property-grapheme-base: New file.
82955         * modules/unictype/property-grapheme-extend: New file.
82956         * modules/unictype/property-other-grapheme-extend: New file.
82957         * modules/unictype/property-grapheme-link: New file.
82958         * modules/unictype/property-bidi-control: New file.
82959         * modules/unictype/property-bidi-left-to-right: New file.
82960         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82961         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82962         * modules/unictype/property-bidi-european-digit: New file.
82963         * modules/unictype/property-bidi-eur-num-separator: New file.
82964         * modules/unictype/property-bidi-eur-num-terminator: New file.
82965         * modules/unictype/property-bidi-arabic-digit: New file.
82966         * modules/unictype/property-bidi-common-separator: New file.
82967         * modules/unictype/property-bidi-block-separator: New file.
82968         * modules/unictype/property-bidi-segment-separator: New file.
82969         * modules/unictype/property-bidi-whitespace: New file.
82970         * modules/unictype/property-bidi-non-spacing-mark: New file.
82971         * modules/unictype/property-bidi-boundary-neutral: New file.
82972         * modules/unictype/property-bidi-pdf: New file.
82973         * modules/unictype/property-bidi-embedding-or-override: New file.
82974         * modules/unictype/property-bidi-other-neutral: New file.
82975         * modules/unictype/property-hex-digit: New file.
82976         * modules/unictype/property-ascii-hex-digit: New file.
82977         * modules/unictype/property-ideographic: New file.
82978         * modules/unictype/property-unified-ideograph: New file.
82979         * modules/unictype/property-radical: New file.
82980         * modules/unictype/property-ids-binary-operator: New file.
82981         * modules/unictype/property-ids-trinary-operator: New file.
82982         * modules/unictype/property-zero-width: New file.
82983         * modules/unictype/property-space: New file.
82984         * modules/unictype/property-non-break: New file.
82985         * modules/unictype/property-iso-control: New file.
82986         * modules/unictype/property-format-control: New file.
82987         * modules/unictype/property-dash: New file.
82988         * modules/unictype/property-hyphen: New file.
82989         * modules/unictype/property-punctuation: New file.
82990         * modules/unictype/property-line-separator: New file.
82991         * modules/unictype/property-paragraph-separator: New file.
82992         * modules/unictype/property-quotation-mark: New file.
82993         * modules/unictype/property-sentence-terminal: New file.
82994         * modules/unictype/property-terminal-punctuation: New file.
82995         * modules/unictype/property-currency-symbol: New file.
82996         * modules/unictype/property-math: New file.
82997         * modules/unictype/property-other-math: New file.
82998         * modules/unictype/property-paired-punctuation: New file.
82999         * modules/unictype/property-left-of-pair: New file.
83000         * modules/unictype/property-combining: New file.
83001         * modules/unictype/property-composite: New file.
83002         * modules/unictype/property-decimal-digit: New file.
83003         * modules/unictype/property-numeric: New file.
83004         * modules/unictype/property-diacritic: New file.
83005         * modules/unictype/property-extender: New file.
83006         * modules/unictype/property-ignorable-control: New file.
83007         * modules/unictype/property-test: New file.
83008         * modules/unictype/property-byname: New file.
83009         * modules/unictype/property-all: New file.
83010         * modules/unictype/scripts: New file.
83011         * modules/unictype/scripts-all: New file.
83012         * modules/unictype/block-of: New file.
83013         * modules/unictype/block-test: New file.
83014         * modules/unictype/block-list: New file.
83015         * modules/unictype/block-all: New file.
83016         * modules/unictype/syntax-c-whitespace: New file.
83017         * modules/unictype/syntax-java-whitespace: New file.
83018         * modules/unictype/syntax-c-ident: New file.
83019         * modules/unictype/syntax-java-ident: New file.
83020         * modules/unictype/ctype-alnum: New file.
83021         * modules/unictype/ctype-alpha: New file.
83022         * modules/unictype/ctype-cntrl: New file.
83023         * modules/unictype/ctype-digit: New file.
83024         * modules/unictype/ctype-graph: New file.
83025         * modules/unictype/ctype-lower: New file.
83026         * modules/unictype/ctype-print: New file.
83027         * modules/unictype/ctype-punct: New file.
83028         * modules/unictype/ctype-space: New file.
83029         * modules/unictype/ctype-upper: New file.
83030         * modules/unictype/ctype-xdigit: New file.
83031         * modules/unictype/ctype-blank: New file.
83032         * lib/unictype/bidi_byname.c: New file.
83033         * lib/unictype/bidi_name.c: New file.
83034         * lib/unictype/bidi_of.c: New file.
83035         * lib/unictype/bidi_test.c: New file.
83036         * lib/unictype/bitmap.h: New file.
83037         * lib/unictype/block_test.c: New file.
83038         * lib/unictype/blocks.c: New file.
83039         * lib/unictype/categ_C.c: New file.
83040         * lib/unictype/categ_Cc.c: New file.
83041         * lib/unictype/categ_Cf.c: New file.
83042         * lib/unictype/categ_Cn.c: New file.
83043         * lib/unictype/categ_Co.c: New file.
83044         * lib/unictype/categ_Cs.c: New file.
83045         * lib/unictype/categ_L.c: New file.
83046         * lib/unictype/categ_Ll.c: New file.
83047         * lib/unictype/categ_Lm.c: New file.
83048         * lib/unictype/categ_Lo.c: New file.
83049         * lib/unictype/categ_Lt.c: New file.
83050         * lib/unictype/categ_Lu.c: New file.
83051         * lib/unictype/categ_M.c: New file.
83052         * lib/unictype/categ_Mc.c: New file.
83053         * lib/unictype/categ_Me.c: New file.
83054         * lib/unictype/categ_Mn.c: New file.
83055         * lib/unictype/categ_N.c: New file.
83056         * lib/unictype/categ_Nd.c: New file.
83057         * lib/unictype/categ_Nl.c: New file.
83058         * lib/unictype/categ_No.c: New file.
83059         * lib/unictype/categ_P.c: New file.
83060         * lib/unictype/categ_Pc.c: New file.
83061         * lib/unictype/categ_Pd.c: New file.
83062         * lib/unictype/categ_Pe.c: New file.
83063         * lib/unictype/categ_Pf.c: New file.
83064         * lib/unictype/categ_Pi.c: New file.
83065         * lib/unictype/categ_Po.c: New file.
83066         * lib/unictype/categ_Ps.c: New file.
83067         * lib/unictype/categ_S.c: New file.
83068         * lib/unictype/categ_Sc.c: New file.
83069         * lib/unictype/categ_Sk.c: New file.
83070         * lib/unictype/categ_Sm.c: New file.
83071         * lib/unictype/categ_So.c: New file.
83072         * lib/unictype/categ_Z.c: New file.
83073         * lib/unictype/categ_Zl.c: New file.
83074         * lib/unictype/categ_Zp.c: New file.
83075         * lib/unictype/categ_Zs.c: New file.
83076         * lib/unictype/categ_and.c: New file.
83077         * lib/unictype/categ_and_not.c: New file.
83078         * lib/unictype/categ_byname.c: New file.
83079         * lib/unictype/categ_name.c: New file.
83080         * lib/unictype/categ_none.c: New file.
83081         * lib/unictype/categ_of.c: New file.
83082         * lib/unictype/categ_or.c: New file.
83083         * lib/unictype/categ_test.c: New file.
83084         * lib/unictype/combining.c: New file.
83085         * lib/unictype/ctype_alnum.c: New file.
83086         * lib/unictype/ctype_alpha.c: New file.
83087         * lib/unictype/ctype_blank.c: New file.
83088         * lib/unictype/ctype_cntrl.c: New file.
83089         * lib/unictype/ctype_digit.c: New file.
83090         * lib/unictype/ctype_graph.c: New file.
83091         * lib/unictype/ctype_lower.c: New file.
83092         * lib/unictype/ctype_print.c: New file.
83093         * lib/unictype/ctype_punct.c: New file.
83094         * lib/unictype/ctype_space.c: New file.
83095         * lib/unictype/ctype_upper.c: New file.
83096         * lib/unictype/ctype_xdigit.c: New file.
83097         * lib/unictype/decdigit.c: New file.
83098         * lib/unictype/digit.c: New file.
83099         * lib/unictype/identsyntaxmap.h: New file.
83100         * lib/unictype/mirror.c: New file.
83101         * lib/unictype/numeric.c: New file.
83102         * lib/unictype/pr_alphabetic.c: New file.
83103         * lib/unictype/pr_ascii_hex_digit.c: New file.
83104         * lib/unictype/pr_bidi_arabic_digit.c: New file.
83105         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
83106         * lib/unictype/pr_bidi_block_separator.c: New file.
83107         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
83108         * lib/unictype/pr_bidi_common_separator.c: New file.
83109         * lib/unictype/pr_bidi_control.c: New file.
83110         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
83111         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
83112         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
83113         * lib/unictype/pr_bidi_european_digit.c: New file.
83114         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
83115         * lib/unictype/pr_bidi_left_to_right.c: New file.
83116         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
83117         * lib/unictype/pr_bidi_other_neutral.c: New file.
83118         * lib/unictype/pr_bidi_pdf.c: New file.
83119         * lib/unictype/pr_bidi_segment_separator.c: New file.
83120         * lib/unictype/pr_bidi_whitespace.c: New file.
83121         * lib/unictype/pr_byname.c: New file.
83122         * lib/unictype/pr_byname.gperf: New file.
83123         * lib/unictype/pr_combining.c: New file.
83124         * lib/unictype/pr_composite.c: New file.
83125         * lib/unictype/pr_currency_symbol.c: New file.
83126         * lib/unictype/pr_dash.c: New file.
83127         * lib/unictype/pr_decimal_digit.c: New file.
83128         * lib/unictype/pr_default_ignorable_code_point.c: New file.
83129         * lib/unictype/pr_deprecated.c: New file.
83130         * lib/unictype/pr_diacritic.c: New file.
83131         * lib/unictype/pr_extender.c: New file.
83132         * lib/unictype/pr_format_control.c: New file.
83133         * lib/unictype/pr_grapheme_base.c: New file.
83134         * lib/unictype/pr_grapheme_extend.c: New file.
83135         * lib/unictype/pr_grapheme_link.c: New file.
83136         * lib/unictype/pr_hex_digit.c: New file.
83137         * lib/unictype/pr_hyphen.c: New file.
83138         * lib/unictype/pr_id_continue.c: New file.
83139         * lib/unictype/pr_id_start.c: New file.
83140         * lib/unictype/pr_ideographic.c: New file.
83141         * lib/unictype/pr_ids_binary_operator.c: New file.
83142         * lib/unictype/pr_ids_trinary_operator.c: New file.
83143         * lib/unictype/pr_ignorable_control.c: New file.
83144         * lib/unictype/pr_iso_control.c: New file.
83145         * lib/unictype/pr_join_control.c: New file.
83146         * lib/unictype/pr_left_of_pair.c: New file.
83147         * lib/unictype/pr_line_separator.c: New file.
83148         * lib/unictype/pr_logical_order_exception.c: New file.
83149         * lib/unictype/pr_lowercase.c: New file.
83150         * lib/unictype/pr_math.c: New file.
83151         * lib/unictype/pr_non_break.c: New file.
83152         * lib/unictype/pr_not_a_character.c: New file.
83153         * lib/unictype/pr_numeric.c: New file.
83154         * lib/unictype/pr_other_alphabetic.c: New file.
83155         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
83156         * lib/unictype/pr_other_grapheme_extend.c: New file.
83157         * lib/unictype/pr_other_id_continue.c: New file.
83158         * lib/unictype/pr_other_id_start.c: New file.
83159         * lib/unictype/pr_other_lowercase.c: New file.
83160         * lib/unictype/pr_other_math.c: New file.
83161         * lib/unictype/pr_other_uppercase.c: New file.
83162         * lib/unictype/pr_paired_punctuation.c: New file.
83163         * lib/unictype/pr_paragraph_separator.c: New file.
83164         * lib/unictype/pr_pattern_syntax.c: New file.
83165         * lib/unictype/pr_pattern_white_space.c: New file.
83166         * lib/unictype/pr_private_use.c: New file.
83167         * lib/unictype/pr_punctuation.c: New file.
83168         * lib/unictype/pr_quotation_mark.c: New file.
83169         * lib/unictype/pr_radical.c: New file.
83170         * lib/unictype/pr_sentence_terminal.c: New file.
83171         * lib/unictype/pr_soft_dotted.c: New file.
83172         * lib/unictype/pr_space.c: New file.
83173         * lib/unictype/pr_terminal_punctuation.c: New file.
83174         * lib/unictype/pr_test.c: New file.
83175         * lib/unictype/pr_titlecase.c: New file.
83176         * lib/unictype/pr_unassigned_code_value.c: New file.
83177         * lib/unictype/pr_unified_ideograph.c: New file.
83178         * lib/unictype/pr_uppercase.c: New file.
83179         * lib/unictype/pr_variation_selector.c: New file.
83180         * lib/unictype/pr_white_space.c: New file.
83181         * lib/unictype/pr_xid_continue.c: New file.
83182         * lib/unictype/pr_xid_start.c: New file.
83183         * lib/unictype/pr_zero_width.c: New file.
83184         * lib/unictype/scripts.c: New file.
83185         * lib/unictype/sy_c_ident.c: New file.
83186         * lib/unictype/sy_c_whitespace.c: New file.
83187         * lib/unictype/sy_java_ident.c: New file.
83188         * lib/unictype/sy_java_whitespace.c: New file.
83190         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
83191         Unicode 5.0.0.
83192         * lib/unictype/blocks.h: Likewise.
83193         * lib/unictype/categ_C.h: Likewise.
83194         * lib/unictype/categ_Cc.h: Likewise.
83195         * lib/unictype/categ_Cf.h: Likewise.
83196         * lib/unictype/categ_Cn.h: Likewise.
83197         * lib/unictype/categ_Co.h: Likewise.
83198         * lib/unictype/categ_Cs.h: Likewise.
83199         * lib/unictype/categ_L.h: Likewise.
83200         * lib/unictype/categ_Ll.h: Likewise.
83201         * lib/unictype/categ_Lm.h: Likewise.
83202         * lib/unictype/categ_Lo.h: Likewise.
83203         * lib/unictype/categ_Lt.h: Likewise.
83204         * lib/unictype/categ_Lu.h: Likewise.
83205         * lib/unictype/categ_M.h: Likewise.
83206         * lib/unictype/categ_Mc.h: Likewise.
83207         * lib/unictype/categ_Me.h: Likewise.
83208         * lib/unictype/categ_Mn.h: Likewise.
83209         * lib/unictype/categ_N.h: Likewise.
83210         * lib/unictype/categ_Nd.h: Likewise.
83211         * lib/unictype/categ_Nl.h: Likewise.
83212         * lib/unictype/categ_No.h: Likewise.
83213         * lib/unictype/categ_P.h: Likewise.
83214         * lib/unictype/categ_Pc.h: Likewise.
83215         * lib/unictype/categ_Pd.h: Likewise.
83216         * lib/unictype/categ_Pe.h: Likewise.
83217         * lib/unictype/categ_Pf.h: Likewise.
83218         * lib/unictype/categ_Pi.h: Likewise.
83219         * lib/unictype/categ_Po.h: Likewise.
83220         * lib/unictype/categ_Ps.h: Likewise.
83221         * lib/unictype/categ_S.h: Likewise.
83222         * lib/unictype/categ_Sc.h: Likewise.
83223         * lib/unictype/categ_Sk.h: Likewise.
83224         * lib/unictype/categ_Sm.h: Likewise.
83225         * lib/unictype/categ_So.h: Likewise.
83226         * lib/unictype/categ_Z.h: Likewise.
83227         * lib/unictype/categ_Zl.h: Likewise.
83228         * lib/unictype/categ_Zp.h: Likewise.
83229         * lib/unictype/categ_Zs.h: Likewise.
83230         * lib/unictype/categ_of.h: Likewise.
83231         * lib/unictype/combining.h: Likewise.
83232         * lib/unictype/ctype_alnum.h: Likewise.
83233         * lib/unictype/ctype_alpha.h: Likewise.
83234         * lib/unictype/ctype_blank.h: Likewise.
83235         * lib/unictype/ctype_cntrl.h: Likewise.
83236         * lib/unictype/ctype_digit.h: Likewise.
83237         * lib/unictype/ctype_graph.h: Likewise.
83238         * lib/unictype/ctype_lower.h: Likewise.
83239         * lib/unictype/ctype_print.h: Likewise.
83240         * lib/unictype/ctype_punct.h: Likewise.
83241         * lib/unictype/ctype_space.h: Likewise.
83242         * lib/unictype/ctype_upper.h: Likewise.
83243         * lib/unictype/ctype_xdigit.h: Likewise.
83244         * lib/unictype/decdigit.h: Likewise.
83245         * lib/unictype/digit.h: Likewise.
83246         * lib/unictype/mirror.h: Likewise.
83247         * lib/unictype/numeric.h: Likewise.
83248         * lib/unictype/pr_alphabetic.h: Likewise.
83249         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
83250         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
83251         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
83252         * lib/unictype/pr_bidi_block_separator.h: Likewise.
83253         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
83254         * lib/unictype/pr_bidi_common_separator.h: Likewise.
83255         * lib/unictype/pr_bidi_control.h: Likewise.
83256         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
83257         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
83258         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
83259         * lib/unictype/pr_bidi_european_digit.h: Likewise.
83260         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
83261         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
83262         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
83263         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
83264         * lib/unictype/pr_bidi_pdf.h: Likewise.
83265         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
83266         * lib/unictype/pr_bidi_whitespace.h: Likewise.
83267         * lib/unictype/pr_combining.h: Likewise.
83268         * lib/unictype/pr_composite.h: Likewise.
83269         * lib/unictype/pr_currency_symbol.h: Likewise.
83270         * lib/unictype/pr_dash.h: Likewise.
83271         * lib/unictype/pr_decimal_digit.h: Likewise.
83272         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
83273         * lib/unictype/pr_deprecated.h: Likewise.
83274         * lib/unictype/pr_diacritic.h: Likewise.
83275         * lib/unictype/pr_extender.h: Likewise.
83276         * lib/unictype/pr_format_control.h: Likewise.
83277         * lib/unictype/pr_grapheme_base.h: Likewise.
83278         * lib/unictype/pr_grapheme_extend.h: Likewise.
83279         * lib/unictype/pr_grapheme_link.h: Likewise.
83280         * lib/unictype/pr_hex_digit.h: Likewise.
83281         * lib/unictype/pr_hyphen.h: Likewise.
83282         * lib/unictype/pr_id_continue.h: Likewise.
83283         * lib/unictype/pr_id_start.h: Likewise.
83284         * lib/unictype/pr_ideographic.h: Likewise.
83285         * lib/unictype/pr_ids_binary_operator.h: Likewise.
83286         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
83287         * lib/unictype/pr_ignorable_control.h: Likewise.
83288         * lib/unictype/pr_iso_control.h: Likewise.
83289         * lib/unictype/pr_join_control.h: Likewise.
83290         * lib/unictype/pr_left_of_pair.h: Likewise.
83291         * lib/unictype/pr_line_separator.h: Likewise.
83292         * lib/unictype/pr_logical_order_exception.h: Likewise.
83293         * lib/unictype/pr_lowercase.h: Likewise.
83294         * lib/unictype/pr_math.h: Likewise.
83295         * lib/unictype/pr_non_break.h: Likewise.
83296         * lib/unictype/pr_not_a_character.h: Likewise.
83297         * lib/unictype/pr_numeric.h: Likewise.
83298         * lib/unictype/pr_other_alphabetic.h: Likewise.
83299         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
83300         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
83301         * lib/unictype/pr_other_id_continue.h: Likewise.
83302         * lib/unictype/pr_other_id_start.h: Likewise.
83303         * lib/unictype/pr_other_lowercase.h: Likewise.
83304         * lib/unictype/pr_other_math.h: Likewise.
83305         * lib/unictype/pr_other_uppercase.h: Likewise.
83306         * lib/unictype/pr_paired_punctuation.h: Likewise.
83307         * lib/unictype/pr_paragraph_separator.h: Likewise.
83308         * lib/unictype/pr_pattern_syntax.h: Likewise.
83309         * lib/unictype/pr_pattern_white_space.h: Likewise.
83310         * lib/unictype/pr_private_use.h: Likewise.
83311         * lib/unictype/pr_punctuation.h: Likewise.
83312         * lib/unictype/pr_quotation_mark.h: Likewise.
83313         * lib/unictype/pr_radical.h: Likewise.
83314         * lib/unictype/pr_sentence_terminal.h: Likewise.
83315         * lib/unictype/pr_soft_dotted.h: Likewise.
83316         * lib/unictype/pr_space.h: Likewise.
83317         * lib/unictype/pr_terminal_punctuation.h: Likewise.
83318         * lib/unictype/pr_titlecase.h: Likewise.
83319         * lib/unictype/pr_unassigned_code_value.h: Likewise.
83320         * lib/unictype/pr_unified_ideograph.h: Likewise.
83321         * lib/unictype/pr_uppercase.h: Likewise.
83322         * lib/unictype/pr_variation_selector.h: Likewise.
83323         * lib/unictype/pr_white_space.h: Likewise.
83324         * lib/unictype/pr_xid_continue.h: Likewise.
83325         * lib/unictype/pr_xid_start.h: Likewise.
83326         * lib/unictype/pr_zero_width.h: Likewise.
83327         * lib/unictype/scripts.h: Likewise.
83328         * lib/unictype/scripts_byname.gperf: Likewise.
83329         * lib/unictype/sy_c_ident.h: Likewise.
83330         * lib/unictype/sy_c_whitespace.h: Likewise.
83331         * lib/unictype/sy_java_ident.h: Likewise.
83332         * lib/unictype/sy_java_whitespace.h: Likewise.
83334         * lib/unictype/Makefile: New file.
83335         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83336         glibc.
83337         * lib/unictype/3level.h: New file, copied from glibc.
83338         * lib/unictype/3levelbit.h: New file.
83340 2007-11-11  Bruno Haible  <bruno@clisp.org>
83342         * modules/gperf: New file.
83343         * modules/iconv_open (Depends-on): Add it.
83344         (Makefile.am): Remove the GPERF definition.
83346 2007-11-11  Bruno Haible  <bruno@clisp.org>
83348         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83349         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83351 2007-11-11  Bruno Haible  <bruno@clisp.org>
83353         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83354         (usage): Remove function.
83356 2007-11-11  Bruno Haible  <bruno@clisp.org>
83358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83359         gl_FUNC_CEILF_LIBS.
83360         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83361         gl_FUNC_CEIL_LIBS.
83362         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83363         gl_FUNC_CEILL_LIBS.
83364         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83365         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83366         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83368 2007-11-11  Bruno Haible  <bruno@clisp.org>
83370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83371         roundf were declared but do not exist on functions.
83372         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83373         roundl were declared but do not exist on functions.
83374         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83375         HAVE_FLOORL_AND_CEILL, respectively.
83376         Needed for Sun C on Solaris 10.
83378 2007-11-11  Bruno Haible  <bruno@clisp.org>
83380         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83381         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83382         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83383         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83385         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83386         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83387         HAVE_DECL_ROUNDF.
83388         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83389         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83391         of HAVE_DECL_ROUND*.
83392         * modules/math (Makefile.am): Update.
83394 2007-11-10  Bruno Haible  <bruno@clisp.org>
83396         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83397         ptrdiff_t as m4/intl.m4.
83399 2007-11-10  Jim Meyering  <meyering@redhat.com>
83401         Avoid link failure for the argmatch test.
83402         * tests/test-argmatch.c (usage): Define function to avoid a link
83403         failure: argmatch_die requires a usage function.
83405 2007-11-09  Bruno Haible  <bruno@clisp.org>
83407         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83408         * doc/functions/vsnprintf.texi: Likewise.
83409         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83410         with a size argument < 2.
83412 2007-11-09  Bruno Haible  <bruno@clisp.org>
83414         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83415         buffer. Fixes an inefficiency introduced on 2007-11-03.
83417 2007-11-09  Bruno Haible  <bruno@clisp.org>
83419         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83420         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83422 2007-11-08  Jim Meyering  <meyering@redhat.com>
83424         Change cache variable name prefix "jm_" to "gl_" everywhere.
83425         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83426         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83427         * m4/uptime.m4: s/gl_/jm_/
83429 2007-11-07  Bruno Haible  <bruno@clisp.org>
83431         Update to GNU gettext 0.17.
83432         * m4/intl.m4: Update to GNU gettext 0.17.
83433         * m4/po.m4: Likewise.
83434         * modules/gettext (Files): Remove m4/ulonglong.m4.
83435         (configure.ac): Require gettext infrastructure from version 0.17.
83437 2007-11-06  Bruno Haible  <bruno@clisp.org>
83439         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83440         symbolic values are not defined in a public header.
83441         * lib/freadable.c (freadable) [QNX]: Likewise.
83442         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83443         * lib/freading.c (freading) [QNX]: Likewise.
83444         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83445         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83446         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83447         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83448         Reported by Alain Magloire.
83450         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83452 2007-11-05  Bruno Haible  <bruno@clisp.org>
83454         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83455         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83456         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83457         Reported by Eric Blake.
83459 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83460             Bruno Haible  <bruno@clisp.org>
83462         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83463         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83464         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83465         (malloc): Undefine also before including <stdlib.h>.
83466         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83467         Needed on OSF/1 4.0.
83469 2007-11-05  Jim Meyering  <meyering@redhat.com>
83471         git-version-gen: sync from coreutils.
83472         * build-aux/git-version-gen: Add comments.
83473         Change the first '-' to '.' in the snapshot version string,
83474         e.g., 6.9-377-08144 -> 6.9.377-08144
83475         Remove first parameter.
83476         Don't declare a version "-dirty" merely because a time
83477         stamp has changed.
83479 2007-11-04  Bruno Haible  <bruno@clisp.org>
83481         * lib/lock.h: Protect all macro definitions containing an 'if'
83482         statement through a "do { ... } while (0)".
83483         * lib/tls.h: Likewise.
83485 2007-11-04  Bruno Haible  <bruno@clisp.org>
83487         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83489 2007-11-04  Bruno Haible  <bruno@clisp.org>
83491         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83492         * modules/fprintf-posix (Depends-on): Add nocrash.
83493         * modules/snprintf-posix (Depends-on): Likewise.
83494         * modules/sprintf-posix (Depends-on): Likewise.
83495         * modules/vasnprintf-posix (Depends-on): Likewise.
83496         * modules/vasprintf-posix (Depends-on): Likewise.
83497         * modules/vfprintf-posix (Depends-on): Likewise.
83498         * modules/vsnprintf-posix (Depends-on): Likewise.
83499         * modules/vsprintf-posix (Depends-on): Likewise.
83500         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83501         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83502         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83503         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83506         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83508 2007-11-04  Bruno Haible  <bruno@clisp.org>
83510         * modules/nocrash: New file.
83511         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83512         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83514 2007-11-04  Bruno Haible  <bruno@clisp.org>
83516         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83517         precision handling.
83518         * tests/test-vasprintf-posix.c (test_function): Likewise.
83519         * tests/test-snprintf-posix.h (test_function): Likewise.
83520         * tests/test-sprintf-posix.h (test_function): Likewise.
83522         Fix *printf behaviour for large precisions on mingw and BeOS.
83523         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83524         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83526         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83528         gl_PRINTF_PRECISION and test its result. Invoke
83529         gl_PREREQ_VASNPRINTF_PRECISION.
83530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83537         * doc/functions/fprintf.texi: Update.
83538         * doc/functions/printf.texi: Update.
83539         * doc/functions/snprintf.texi: Update.
83540         * doc/functions/sprintf.texi: Update.
83541         * doc/functions/vfprintf.texi: Update.
83542         * doc/functions/vprintf.texi: Update.
83543         * doc/functions/vsnprintf.texi: Update.
83544         * doc/functions/vsprintf.texi: Update.
83546 2007-11-04  Bruno Haible  <bruno@clisp.org>
83548         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83550 2007-11-04  Bruno Haible  <bruno@clisp.org>
83552         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83553         Reported by Sylvain Beucler <beuc@gnu.org>.
83555 2007-11-03  Bruno Haible  <bruno@clisp.org>
83557         * tests/test-fprintf-posix2.sh: New file.
83558         * tests/test-fprintf-posix2.c: New file.
83559         * modules/fprintf-posix-tests (Files): Add them.
83560         (TESTS): Add test-fprintf-posix2.sh.
83561         (configure.ac): Check for getrlimit and setrlimit.
83562         (check_PROGRAMS): Add test-fprintf-posix2.
83564         * tests/test-printf-posix2.sh: New file.
83565         * tests/test-printf-posix2.c: New file.
83566         * modules/printf-posix-tests (Files): Add them.
83567         (TESTS): Add test-printf-posix2.sh.
83568         (configure.ac): Check for getrlimit and setrlimit.
83569         (check_PROGRAMS): Add test-printf-posix2.
83571         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83572         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83573         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83574         (decode_double): New function, copied from decode_long_double.
83575         (scale10_round_decimal_decoded): New function, extracted from
83576         scale10_round_decimal_long_double.
83577         (scale10_round_decimal_long_double): Use it.
83578         (scale10_round_decimal_double): New function.
83579         (floorlog10): New function.
83580         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83582         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83583         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83584         gl_PRINTF_ENOMEM and test its result. Invoke
83585         gl_PREREQ_VASNPRINTF_ENOMEM.
83586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83587         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83588         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83589         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83593         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83594         * modules/snprintf-posix (Depends-on): Likewise.
83595         * modules/sprintf-posix (Depends-on): Likewise.
83596         * modules/vasnprintf-posix (Depends-on): Likewise.
83597         * modules/vasprintf-posix (Depends-on): Likewise.
83598         * modules/vfprintf-posix (Depends-on): Likewise.
83599         * modules/vsnprintf-posix (Depends-on): Likewise.
83600         * modules/vsprintf-posix (Depends-on): Likewise.
83601         * doc/functions/fprintf.texi: Update.
83602         * doc/functions/printf.texi: Update.
83603         * doc/functions/snprintf.texi: Update.
83604         * doc/functions/sprintf.texi: Update.
83605         * doc/functions/vfprintf.texi: Update.
83606         * doc/functions/vprintf.texi: Update.
83607         * doc/functions/vsnprintf.texi: Update.
83608         * doc/functions/vsprintf.texi: Update.
83610 2007-11-03  Bruno Haible  <bruno@clisp.org>
83612         * modules/frexp-nolibm-tests: New file.
83614         * modules/frexp-nolibm: New file.
83615         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83617 2007-11-03  Bruno Haible  <bruno@clisp.org>
83619         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83620         value is C99 compliant.
83621         Needed for OSF/1 5.1.
83623 2007-11-03  Bruno Haible  <bruno@clisp.org>
83625         Fix out-of-memory handling of vasnprintf.
83626         * lib/printf-parse.c: Include <errno.h>.
83627         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83628         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83629         is already set.
83631 2007-11-02  Eric Blake  <ebb9@byu.net>
83633         Fix tests on cygwin.
83634         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83636 2007-11-01  Bruno Haible  <bruno@clisp.org>
83638         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83639         warning.
83640         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83641         needed for POSIX compatibility.
83643 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83645         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83646         for compatibility with GNU.
83648 2007-11-01  Bruno Haible  <bruno@clisp.org>
83650         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83651         (putenv): Renamed from rpl_putenv. Change argument type from
83652         'const char *' to 'char *'.
83653         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83654         of defining putenv in config.h, just set REPLACE_PUTENV.
83655         * modules/putenv (Depends-on): Add stdlib.
83656         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83657         (Include): Use <stdlib.h>.
83658         * lib/stdlib.in.h (putenv): New declaration.
83659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83660         REPLACE_PUTENV.
83661         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83662         REPLACE_PUTENV.
83663         Needed for MacOS X 10.5.0.
83664         Reported by Peter O'Gorman <peter@pogma.com>.
83666 2007-11-01  Jim Meyering  <meyering@redhat.com>
83668         Treat an empty date string exactly like "0".
83669         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83670         if the remaining date string (to be parsed) is empty, use "0".
83671         Reported by Mischa Molhoek and discussed in this thread:
83672         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83674 2007-10-31  Bruno Haible  <bruno@clisp.org>
83676         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83677         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83678         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83679         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83680         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83681         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83683 2007-10-31  Bruno Haible  <bruno@clisp.org>
83685         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83686         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83687         (AC_TYPE_LONG_LONG_INT): Use it.
83688         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83689         it as well.
83690         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83691         to m4/longlong.m4.
83692         * modules/stdint (Files): Remove m4/ulonglong.m4.
83693         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83694         m4/ulonglong.m4.
83695         * modules/strtoumax (Files): Likewise.
83697 2007-10-30  Bruno Haible  <bruno@clisp.org>
83699         * modules/xvasprintf-posix: New file.
83700         Suggested by Eric Blake.
83702 2007-10-30  Bruno Haible  <bruno@clisp.org>
83704         * modules/xprintf-posix-tests: New file.
83705         * tests/test-xprintf-posix.sh: New file.
83706         * tests/test-xprintf-posix.c: New file.
83707         * tests/test-xfprintf-posix.c: New file.
83709         * modules/xprintf-posix: New file.
83711 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83713         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83714         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83715         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83717 2007-10-29  Bruno Haible  <bruno@clisp.org>
83719         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83720         contain the special marker '_cv_'.
83721         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83722         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83723         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83724         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83725         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83726         Reported by Ralf Wildenhues.
83728 2007-10-29  Bruno Haible  <bruno@clisp.org>
83730         * gnulib-tool (func_import): When --lgpl is not specified, set
83731         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83732         GPLv3.
83733         Reported by Simon Josefsson.
83735 2007-10-28  Bruno Haible  <bruno@clisp.org>
83737         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83738         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83739         HAVE_DECL_ISFINITE.
83740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83741         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83742         HAVE_DECL_ISFINITE.
83744 2007-10-28  Bruno Haible  <bruno@clisp.org>
83746         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83747         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83749 2007-10-28  Bruno Haible  <bruno@clisp.org>
83751         Fix link errors with Sun C 5.0 on Solaris 10.
83752         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83753         function is declared but not present in the compiler's libm.
83754         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83755         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83756         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83757         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83758         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83759         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83760         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83762         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83763         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83764         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83765         HAVE_DECL_FLOORL.
83767 2007-10-28  Bruno Haible  <bruno@clisp.org>
83769         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83770         gl_FUNC_FLOORL. Cache the result.
83771         (gl_FUNC_FLOORL): Use it.
83772         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83773         gl_FUNC_CEILL. Cache the result.
83774         (gl_FUNC_CEILL): Use it.
83776         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83777         gl_FUNC_FLOOR. Cache the result.
83778         (gl_FUNC_FLOOR): Use it.
83779         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83780         gl_FUNC_CEIL. Cache the result.
83781         (gl_FUNC_CEIL): Use it.
83783         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83784         gl_FUNC_FLOORF. Cache the result.
83785         (gl_FUNC_FLOORF): Use it.
83786         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83787         gl_FUNC_CEILF. Cache the result.
83788         (gl_FUNC_CEILF): Use it.
83790 2007-10-28  Bruno Haible  <bruno@clisp.org>
83792         * gnulib-tool: Allow specifying the LGPL version number through
83793         --lgpl=2 or --lgpl=3.
83794         (func_usage): Document --lgpl with argument.
83795         Handle --lgpl=... arguments.
83796         (func_import): Recognize also gl_LGPL calls with an argument. When
83797         --lgpl=2 is used and the module's license is just LGPL, report an
83798         error. Set sed_transform_lib_file according to the lgpl variable. In
83799         the generated files, use --lgpl or gl_LGPL invocations with argument,
83800         if necessary.
83801         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83802         an LGPv2+ license.
83803         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83804         gl_LGPL macro.
83806 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83807             Bruno Haible  <bruno@clisp.org>
83809         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83810         (u16_uctomb_aux): Likewise.
83811         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83812         !HAVE_INLINE.
83813         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83815 2007-10-28  Bruno Haible  <bruno@clisp.org>
83817         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83818         Invoke AM_GETTEXT_OPTION if it exists.
83819         * modules/vasprintf: Likewise.
83820         * modules/verror: Likewise.
83821         * modules/xprintf: Likewise.
83822         * modules/xvasprintf: Likewise.
83824 2007-10-27  Ben Pfaff  <blp@gnu.org>
83826         * lib/math.in.h: Define isfinite macro and prototypes for
83827         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83828         implementations.
83829         * m4/math_h.m4: New substitutions for isfinite module.
83830         * lib/isfinite.c: New file.
83831         * m4/isfinite.m4: New file.
83832         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83833         * modules/isfinite: New file.
83834         * modules/isfinite-tests: New file.
83835         * tests/tests-isfinite.c: New file.
83836         * doc/functions/isfinite.texi: Mention isfinite module.
83837         * MODULES.html.sh: Mention new module.
83839 2007-10-27  Ben Pfaff  <blp@gnu.org>
83841         Ralf Wildenhues reported that Tru64 4.0D declares the round
83842         functions but does not have definitions.
83843         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83844         cannot be found in any library, set the output variable to
83845         "missing" instead of "".
83846         * m4/round.m4: Also use our substitute if we cannot find round in
83847         any library, even if it is declared.
83848         * m4/roundf.m4: Likewise for roundf.
83849         * m4/roundl.m4: Likewise for roundl.
83850         * lib/math.in.h: Undefine roundf, round, roundl before defining
83851         their replacements, to allow for hypothetical systems where these
83852         may be defined as macros but not available in libraries.
83854 2007-10-27  Bruno Haible  <bruno@clisp.org>
83856         * doc/gnulib.texi: Invoke @firstparagraphindent.
83857         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83858         changes in gnulib.
83859         (Source changes): New section.
83861 2007-10-26  Bruno Haible  <bruno@clisp.org>
83863         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83864         borrowed from autoconf.
83866 2007-10-26  Bruno Haible  <bruno@clisp.org>
83868         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83869         strerror returned the empty string. Needed on HP-UX 11.00.
83871 2007-10-24  Micah Cowan  <micah@cowan.name>
83873         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83874         * build-aux/bootstrap: Remove support for now-unnecessary option,
83875         --cvs-user, and envvars CVS_USER, CVS_RSH.
83877 2007-10-24  Jim Meyering  <meyering@redhat.com>
83879         Avoid diagnostics from sha1sum when there is no cached checksum.
83880         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83881         if the po.s1 file hasn't been created yet.
83883         * build-aux/bootstrap: Sync from coreutils:
83884         2007-10-24  Jim Meyering  <meyering@redhat.com>
83885         Get gnulib from the git repository, not from an obsolete cvs one.
83886         * build-aux/bootstrap: Suggestion from Micah Cowan.
83887         2007-10-04  Jim Meyering  <jim@meyering.net>
83888         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83889         (update_po_files): Work also when there are no .po files in po/.
83891 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83893         * README: Append ".git" to git and cg examples.
83894         Problem reported by Benoit Sigoure.
83896 2007-10-23  Micah Cowan  <micah@cowan.name>
83898         * users.txt: Add wget.
83900 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83902         Fix linking of some unistdio tests on FreeBSD.
83903         * modules/unistdio/u16-vsnprintf-tests
83904         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83905         * modules/unistdio/u16-vsprintf-tests
83906         (test_u16_vsnprintf1_LDADD): Likewise.
83907         * modules/unistdio/u32-vsnprintf-tests
83908         (test_u32_vsnprintf1_LDADD): Likewise.
83909         * modules/unistdio/u32-vsprintf-tests
83910         (test_u32_vsprintf1_LDADD): Likewise.
83911         * modules/unistdio/u8-vsnprintf-tests
83912         (test_u8_vsnprintf1_LDADD): Likewise.
83913         * modules/unistdio/u8-vsprintf-tests
83914         (test_u8_vsprintf1_LDADD): Likewise.
83915         * modules/unistdio/ulc-vsnprintf-tests
83916         (test_ulc_vsnprintf1_LDADD): Likewise.
83917         * modules/unistdio/ulc-vsprintf-tests
83918         (test_ulc_vsprintf1_LDADD): Likewise.
83920         Fix linking of some uniconv tests on FreeBSD.
83921         * modules/uniconv/u16-conv-from-enc-tests
83922         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83923         * modules/uniconv/u16-conv-to-enc-tests
83924         (test_u16_conv_to_enc_LDADD): Likewise.
83925         * modules/uniconv/u16-strconv-from-enc-tests
83926         (test_u16_strconv_from_enc_LDADD): Likewise.
83927         * modules/uniconv/u16-strconv-to-enc-tests
83928         (test_u16_strconv_to_enc_LDADD): Likewise.
83929         * modules/uniconv/u32-conv-from-enc-tests
83930         (test_u32_conv_from_enc_LDADD): Likewise.
83931         * modules/uniconv/u32-conv-to-enc-tests
83932         (test_u32_conv_to_enc_LDADD): Likewise.
83933         * modules/uniconv/u32-strconv-from-enc-tests
83934         (test_u32_strconv_from_enc_LDADD): Likewise.
83935         * modules/uniconv/u32-strconv-to-enc-tests
83936         (test_u32_strconv_to_enc_LDADD): Likewise.
83937         * modules/uniconv/u8-conv-from-enc-tests
83938         (test_u8_conv_from_enc_LDADD): Likewise.
83939         * modules/uniconv/u8-conv-to-enc-tests
83940         (test_u8_conv_to_enc_LDADD): Likewise.
83941         * modules/uniconv/u8-strconv-from-enc-tests
83942         (test_u8_strconv_from_enc_LDADD): Likewise.
83943         * modules/uniconv/u8-strconv-to-enc-tests
83944         (test_u8_strconv_to_enc_LDADD): Likewise.
83946 2007-10-22  Bruno Haible  <bruno@clisp.org>
83948         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83949         size.
83951 2007-10-22  Eric Blake  <ebb9@byu.net>
83953         Tweak x*printf documentation.
83954         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83955         variable name and comments.
83956         Suggested by Bruno Haible.
83958 2007-10-22  Bruno Haible  <bruno@clisp.org>
83960         * lib/acl.c (copy_acl): Fix file name in comment.
83962 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83964         Fix Tru64 problem with stdbool.h.
83965         * lib/stdbool.in.h (false, true):
83966         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83967         Don't declare as an enum in this situation; it runs afoul of Tru64.
83968         Problem reported by Steven M. Schweda in
83969         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83971 2007-10-22  Eric Blake  <ebb9@byu.net>
83973         Also wrap vf?printf.
83974         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83975         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83976         (xvprintf, xvfprintf): New functions.
83978 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83980         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83981         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83983         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83984         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83986 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83988         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83989         by Bruno Haible.
83991 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83993         * lib/getloadavg.c
83994         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83995         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83997         * tests/test-i-ring.c: Work for C89.
83999 2007-10-22  Bruno Haible  <bruno@clisp.org>
84001         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
84002         -1u, in preprocessor expression, so that we don't test for the bug
84003         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
84004         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
84006 2007-10-22  Eric Blake  <ebb9@byu.net>
84008         * tests/test-yesno.sh: Silence stderr during test.
84010 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84012         * modules/crypto/gc-camellia: New file.
84014         * m4/gc-camellia.m4: New file.
84016         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
84018         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
84020 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84022         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
84023         --help to stdout.  Reported by sms@antinode.org (Steven
84024         M. Schweda).
84026 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84028         * users.txt: Fix link to libksba.
84030 2007-10-21  Ben Pfaff  <blp@gnu.org>
84032         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
84033         round.c roundf implementation that depends on floorf and ceilf to
84034         be tested unconditionally.
84036 2007-10-21  Ben Pfaff  <blp@gnu.org>
84038         * m4/check-libm-func.m4: Removed.
84039         * m4/check-math-lib.m4: New file.
84040         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
84041         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
84042         definition and lack of AC_LIBOBJ([roundf]).
84043         * m4/roundl.m4: Ditto, and similarly for roundl.
84044         * modules/round: Reference new m4 file.
84045         * modules/roundf: Ditto.
84046         * modules/roundl: Ditto.
84047         * tests/test-round2.c (main): Use ROUND instead of round.
84048         Bug report from Bruno Haible.
84050 2007-10-21  Bruno Haible  <bruno@clisp.org>
84052         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
84053         context.
84055 2007-10-21  Bruno Haible  <bruno@clisp.org>
84057         * tests/test-wcwidth.c (main): Allow negative result for some control
84058         characters.
84060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
84061         Needed on OSF/1 5.1.
84063 2007-10-21  Bruno Haible  <bruno@clisp.org>
84065         * tests/test-floorf1.c: Include isnanf.h.
84066         (main): Use isnanf() instead of isnan().
84067         * tests/test-ceilf1.c: Include isnanf.h.
84068         (main): Use isnanf() instead of isnan().
84069         * tests/test-truncf1.c: Include isnanf.h.
84070         (main): Use isnanf() instead of isnan().
84071         * tests/test-roundf1.c: Include isnanf.h.
84072         (main): Use isnanf() instead of isnan().
84074 2007-10-21  Eric Blake  <ebb9@byu.net>
84076         * users.txt: Update URL for m4.
84078 2007-10-21  Bruno Haible  <bruno@clisp.org>
84080         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
84082 2007-10-21  Bruno Haible  <bruno@clisp.org>
84084         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
84085         Git's management files if the CVS files are not present.
84087 2007-10-20  Bruno Haible  <bruno@clisp.org>
84089         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
84090         gcc-3.4.x.
84092 2007-10-20  Ben Pfaff  <blp@gnu.org>
84094         * lib/math.in.h: Declare round, roundf, roundl if we are providing
84095         implementations.
84096         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
84097         * lib/round.c: New file.
84098         * lib/roundf.c: New file.
84099         * lib/roundl.c: New file.
84100         * m4/round.m4: New file.
84101         * m4/roundf.m4: New file.
84102         * m4/roundl.m4: New file.
84103         * m4/check-libm-func-m4: New file.
84104         * modules/math: Replace round, roundf, roundl related @VARS@ in
84105         math.in.h.
84106         * modules/round: New file.
84107         * modules/round-tests: New file.
84108         * modules/roundf: New file.
84109         * modules/roundf-tests: New file.
84110         * modules/roundl: New file.
84111         * modules/roundl-tests: New file.
84112         * tests/test-round1.c: New file.
84113         * tests/test-round2.c: New file.
84114         * tests/test-roundf1.c: New file.
84115         * tests/test-roundf2.c: New file.
84116         * tests/test-roundl.c: New file.
84117         * doc/functions/round.texi: Mention round module.
84118         * doc/functions/roundf.texi: Mention roundf module.
84119         * doc/functions/roundl.texi: Mention roundl module.
84120         * MODULES.html.sh: Mention new modules.
84121         Thanks to Bruno Haible for suggestions.
84123 2007-10-20  Jim Meyering  <meyering@redhat.com>
84125         * lib/xprintf.c: Include <config.h> unconditionally.
84127         Change xprintf's license to GPL.
84128         * modules/xprintf (License): s/LGPL/GPL/, since this module
84129         depends on modules (exit and exitfail) which are GPL.
84130         Suggestion from Bruno Haible.
84132         xprintf fixes.
84133         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
84134         Use a clearer diagnostic.
84135         Patch from Bruno Haible.
84137 2007-10-20  Bruno Haible  <bruno@clisp.org>
84139         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
84140         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
84141         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84143 2007-10-20  Bruno Haible  <bruno@clisp.org>
84145         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
84146         precision in the comparison result > x - 1 or similar.
84147         * tests/test-ceilf2.c (correct_result_p): Likewise.
84148         * tests/test-truncf2.c (correct_result_p): Likewise.
84149         * tests/test-trunc2.c (correct_result_p): Likewise.
84150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84152 2007-10-20  Bruno Haible  <bruno@clisp.org>
84154         * modules/ceil: New file.
84155         * m4/ceil.m4: New file.
84156         * doc/functions/ceil.texi: Mention the 'ceil' module.
84158 2007-10-20  Bruno Haible  <bruno@clisp.org>
84160         * modules/floor: New file.
84161         * m4/floor.m4: New file.
84162         * doc/functions/floor.texi: Mention the 'floor' module.
84164 2007-10-20  Bruno Haible  <bruno@clisp.org>
84166         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
84167         of %a.
84168         * modules/floorf-tests (Depends-on): Likewise.
84169         * modules/truncf-tests (Depends-on): Likewise.
84170         * modules/trunc-tests (Depends-on): Likewise.
84171         Reported by Ben Pfaff.
84173 2007-10-19  Jim Meyering  <meyering@redhat.com>
84175         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
84176         Don't bother testing specific errno values.  Just test ferror.
84178         New module: xprintf
84179         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
84181 2007-10-19  Bruno Haible  <bruno@clisp.org>
84183         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
84184         syntax.
84185         * modules/javaexec (Makefile.am): Likewise.
84186         * modules/relocatable-prog (Makefile.am): Likewise.
84187         Suggested by Jim Meyering.
84189 2007-10-18  Bruno Haible  <bruno@clisp.org>
84191         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
84192         Reported by Jim Meyering.
84194 2007-10-18  Eric Blake  <ebb9@byu.net>
84196         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
84198 2007-10-18  Bruno Haible  <bruno@clisp.org>
84200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
84201         the format string into writable memory. Needed in Fortify conditions.
84203 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
84204             Bruno Haible  <bruno@clisp.org>
84206         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
84207         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
84208         * modules/trim (Depends-on): Add mbchar.
84209         (configure.ac): Add gl_FUNC_MBRTOWC.
84210         (Makefile.am): Augment lib_SOURCES.
84212 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84214         Modify glob.c to use fstatat and dirfd, to simplify it.
84215         Suggested by Eric Blake.
84216         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
84217         Don't include <stdbool.h>; not used.
84218         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
84219         (link_exists_p): Simplify implementation, since we can now assume
84220         dirfd and fstatat.
84221         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
84223 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84225         * gnulib-tool (func_get_dependencies): Fix sed script to
84226         match only tests.
84228 2007-10-17  Bruno Haible  <bruno@clisp.org>
84230         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
84231         allow locale names without encoding suffix.
84232         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
84233         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84235 2007-10-16  Bruno Haible  <bruno@clisp.org>
84237         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
84238         * lib/getgroups.c (getgroups): Likewise.
84239         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
84241 2007-10-16  Bruno Haible  <bruno@clisp.org>
84243         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
84244         * modules/malloc-posix (License): Likewise.
84245         * modules/realloc-posix (License): Likewise.
84246         * modules/calloc-posix (License): Likewise.
84247         * modules/intprops (License): Change from GPL to LGPL, with
84248         Paul Eggert's approval.
84250 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84252         Merge glibc changes into lib/glob.c.
84254         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
84255         2007-10-15 04:59:03 UTC.  Here are the changes:
84257         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
84259         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
84261         * lib/glob.c: Add some branch prediction throughout.
84263         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
84265         [BZ #5103]
84266         * lib/glob.c (glob): Recognize patterns starting \/.
84268         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
84270         [BZ #3996]
84271         * lib/glob.c (attribute_hidden): Define if not defined.
84272         (glob): Unescape dirname, filename or username when needed and not
84273         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
84274         is NULL.  Handle unescaped [ in pattern without closing ].
84275         Don't pass GLOB_CHECK down to recursive glob for directories.
84276         (__glob_pattern_type): New function.
84277         (__glob_pattern_p): Implement using __glob_pattern_type.
84278         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
84279         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
84280         Remove unreachable code.
84282         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
84284         * lib/glob.c (glob_in_dir): Add some comments and asserts to
84285         explain why there are no leaks.
84287         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
84289         [BZ #3253]
84290         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
84291         time, rather allocate increasingly bigger arrays of pointers, if
84292         possible with alloca, if too large with malloc.
84294 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84296         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
84297         Problem reported by H.Merijn Brand in
84298         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
84299         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
84300         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
84302 2007-10-15  Bruno Haible  <bruno@clisp.org>
84304         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
84305         with explicit rpl_ prefix.
84306         * lib/fopen.c (fopen): Likewise.
84307         * lib/freopen.c (freopen): Likewise.
84308         * lib/iconv.c (iconv): Likewise.
84309         * lib/iconv_close.c (iconv_close): Likewise.
84311 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84313         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
84315 2007-10-15  Bruno Haible  <bruno@clisp.org>
84317         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
84318         <stddef.h> instead of <stdlib.h> since we only need NULL.
84319         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84321 2007-10-15  Bruno Haible  <bruno@clisp.org>
84323         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
84324         Replace paragraph talking about LIBOBJS.
84325         Reported by Colin Watson <cjwatson@debian.org>.
84327 2007-10-15  Bruno Haible  <bruno@clisp.org>
84329         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84330         <stdlib.h> before using NULL.
84332 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84334         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84335         Reported by Albert Chin <china@thewrittenword.com>.
84337 2007-10-14  Bruno Haible  <bruno@clisp.org>
84339         * modules/iconv_open-utf-tests: New file.
84340         * tests/test-iconv-utf.c: New file.
84342         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84343         * modules/iconv_open-utf: New file.
84344         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84345         (iconv, iconv_close): New declarations.
84346         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84347         be defined.
84348         (iconv_open): Add special handling of conversion between UTF-8 and
84349         UTF-{16,32}{BE,LE}.
84350         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84351         * lib/iconv_close.c: New file.
84352         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84353         gl_FUNC_ICONV_OPEN.
84354         (gl_FUNC_ICONV_OPEN): Use it.
84355         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84356         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84357         and REPLACE_ICONV_UTF.
84358         * modules/iconv_open (Depends-on): Add c-strcase.
84359         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84360         ICONV_CONST.
84361         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84363 2007-10-13  Albert Chin  <china@thewrittenword.com>
84364             Bruno Haible  <bruno@clisp.org>
84366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84367         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84369 2007-10-13  Bruno Haible  <bruno@clisp.org>
84371         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84372         defined, use the ISO C99 inline semantics.
84373         * lib/argp.h (ARGP_EI): Likewise.
84375 2007-10-13  Bruno Haible  <bruno@clisp.org>
84377         Handle 'inline' change in gcc 4.3.0.
84378         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84379         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84380         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84381         argp_fmtstream_point): Disable 'extern' declaration if the function
84382         definition is going to be provided inline.
84383         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84384         semantics, not the ISO C99 inline semantics.
84385         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84386         'extern' declaration if the function definition is going to be provided
84387         inline.
84388         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84389         the GNU C inline semantics, not the ISO C99 inline semantics. With
84390         GCC 4.2, avoid a warning.
84392 2007-10-13  Bruno Haible  <bruno@clisp.org>
84394         * lib/freading.h (freading): Enable the use of __freading for
84395         glibc >= 2.7.
84396         * lib/freading.c (freading): Likewise.
84398 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84400         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84401         "warning: C99 inline functions are not supported; using GNU89".
84403 2007-10-12  Bruno Haible  <bruno@clisp.org>
84405         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84406         of 2.
84407         * tests/test-ceilf2.c: New file.
84408         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84410         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84411         * modules/ceilf-tests: Update.
84413 2007-10-12  Bruno Haible  <bruno@clisp.org>
84415         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84416         of 2.
84417         * tests/test-floorf2.c: New file.
84418         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84420         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84421         * modules/floorf-tests: Update.
84423 2007-10-12  Bruno Haible  <bruno@clisp.org>
84425         * tests/test-trunc2.c: New file.
84426         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84428         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84429         * modules/trunc-tests: Update.
84431 2007-10-12  Bruno Haible  <bruno@clisp.org>
84433         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84434         of 2.
84435         * tests/test-truncf2.c: New file.
84436         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84438         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84439         * modules/truncf-tests: Update.
84441 2007-10-11  Eric Blake  <ebb9@byu.net>
84443         Don't claim strerror is broken on Interix.
84444         * doc/functions/strerror.texi (strerror): Known broken systems are
84445         now Solaris 8, and not Interix.
84446         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84447         Interix on cross-compile.
84448         Reported by Martin Koeppe in
84449         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84451 2007-10-11  Bruno Haible  <bruno@clisp.org>
84453         * modules/i-ring-tests: New file.
84454         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84455         instead of assert.
84457 2007-10-11  Bruno Haible  <bruno@clisp.org>
84459         * modules/filenamecat-tests: New file.
84460         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84461         * lib/filenamecat.c: Remove test code.
84463 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84465         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84467         * lib/strerror.c: Include <string.h> always, to test interface,
84468         and to remove the need for the dummy.
84469         Include intprops.h to compute width instead of doing it ourselves
84470         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84471         (strerror): Define it to return NULL if there's no system strerror.
84472         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84473         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84474         ancient pre-strerror Unix systems well any more.  Saying "unknown
84475         system error" is enough.
84476         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84477         simpler strerror.c implementation.
84478         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84479         Simplify the tests to reflect the simpler strerror implementation.
84480         * modules/strerror (Depends-on): Add intprops.
84482 2007-10-09  Eric Blake  <ebb9@byu.net>
84484         Silence test-fpending.
84485         * modules/fpending-tests (Files): Add wrapper script.
84486         * tests/test-fpending.sh: New file.
84488 2007-10-09  Bruno Haible  <bruno@clisp.org>
84490         * MODULES.html.sh (func_module): Don't create a hyperlink for
84491         function names like 'printf_frexp'.
84492         (Misc): Add crc, memxor.
84493         (Characteristics of floating types): New section.
84494         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84495         isnanf-nolibm, signbit, trunc, truncf, truncl.
84496         (Enhancements for ISO C 99 functions): New subsection Input/output.
84497         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84498         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84499         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84500         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84501         (Enhancements for POSIX:2001 functions): Add chdir-long.
84502         (File system functions): Add areadlink, chdir-safer, read-file.
84503         Remove cycle-check.
84504         (File system as inode set): New section.
84505         (Date and time): Add gethrxtime.
84506         (Multithreading): Add openmp.
84507         (Internationalization functions): Add localename.
84508         (Unicode string functions): Add unistr/u*-mbsnlen.
84509         (Support for maintaining and releasing projects): Add git-version-gen.
84510         (Lone files): Remove directories.
84512 2007-10-08  Ben Pfaff  <blp@gnu.org>
84514         * lib/xmalloca.h: Fix typo in comment.
84516 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84518         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84519         when avoiding problems with integer overflow.  Use a portable test
84520         instead.
84522 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84524         * modules/dummy (License): Change to LGPLv2+.
84525         * modules/float (License): Likewise
84526         * modules/realloc (License): Likewise
84527         * modules/stdlib (License): Likewise
84529 2007-10-07  Bruno Haible  <bruno@clisp.org>
84531         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84532         * floor.c (TWO_MANT_DIG): Likewise.
84533         * ceil.c (TWO_MANT_DIG): Likewise.
84534         Reported by Ben Pfaff.
84536 2007-10-07  Bruno Haible  <bruno@clisp.org>
84538         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84539         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84540         * lib/frexp.c (FUNC): Likewise.
84541         * lib/printf-frexp.h (printf_frexp): Likewise.
84542         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84543         * lib/printf-frexp.c (FUNC): Likewise.
84544         Suggested by Jim Meyering.
84546 2007-10-07  Jim Meyering  <meyering@redhat.com>
84548         Make xnanosleep's integer overflow test more robust.
84549         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84550         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84552 2007-10-07  Bruno Haible  <bruno@clisp.org>
84554         * NEWS: Mention the license change.
84556         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84557         abbreviations in the modules files.
84559         Change copyright notice from GPLv2+ to GPLv3+.
84560         * README: Change copyright notice.
84561         * MODULES.html.sh: Likewise.
84562         * build-aux/bootstrap.conf: Likewise.
84563         * build-aux/config.libpath: Likewise.
84564         * build-aux/csharpcomp.sh.in: Likewise.
84565         * build-aux/csharpexec.sh.in: Likewise.
84566         * build-aux/install-reloc: Likewise.
84567         * build-aux/javacomp.sh.in: Likewise.
84568         * build-aux/javaexec.sh.in: Likewise.
84569         * build-aux/ldd.sh.in: Likewise.
84570         * build-aux/reloc-ldflags: Likewise.
84571         * build-aux/relocatable.sh.in: Likewise.
84572         * build-aux/x-to-1.in: Likewise.
84573         * check-module: Likewise.
84574         * config/srclistvars.sh: Likewise.
84575         * gnulib-tool: Likewise.
84576         * lib/acl-internal.h: Likewise.
84577         * lib/acl.c: Likewise.
84578         * lib/acl.h: Likewise.
84579         * lib/acl_entries.c: Likewise.
84580         * lib/areadlink-with-size.c: Likewise.
84581         * lib/areadlink.c: Likewise.
84582         * lib/areadlink.h: Likewise.
84583         * lib/argmatch.c: Likewise.
84584         * lib/argmatch.h: Likewise.
84585         * lib/argp-ba.c: Likewise.
84586         * lib/argp-eexst.c: Likewise.
84587         * lib/argp-fmtstream.c: Likewise.
84588         * lib/argp-fmtstream.h: Likewise.
84589         * lib/argp-fs-xinl.c: Likewise.
84590         * lib/argp-help.c: Likewise.
84591         * lib/argp-namefrob.h: Likewise.
84592         * lib/argp-parse.c: Likewise.
84593         * lib/argp-pin.c: Likewise.
84594         * lib/argp-pv.c: Likewise.
84595         * lib/argp-pvh.c: Likewise.
84596         * lib/argp-xinl.c: Likewise.
84597         * lib/argp.h: Likewise.
84598         * lib/at-func.c: Likewise.
84599         * lib/atanl.c: Likewise.
84600         * lib/backupfile.c: Likewise.
84601         * lib/backupfile.h: Likewise.
84602         * lib/basename.c: Likewise.
84603         * lib/binary-io.h: Likewise.
84604         * lib/byteswap.in.h: Likewise.
84605         * lib/c-stack.c: Likewise.
84606         * lib/c-stack.h: Likewise.
84607         * lib/c-strcasestr.c: Likewise.
84608         * lib/c-strcasestr.h: Likewise.
84609         * lib/c-strstr.c: Likewise.
84610         * lib/c-strstr.h: Likewise.
84611         * lib/c-strtod.c: Likewise.
84612         * lib/calloc.c: Likewise.
84613         * lib/canon-host.c: Likewise.
84614         * lib/canon-host.h: Likewise.
84615         * lib/canonicalize-lgpl.c: Likewise.
84616         * lib/canonicalize.c: Likewise.
84617         * lib/canonicalize.h: Likewise.
84618         * lib/ceil.c: Likewise.
84619         * lib/ceilf.c: Likewise.
84620         * lib/ceill.c: Likewise.
84621         * lib/chdir-long.c: Likewise.
84622         * lib/chdir-long.h: Likewise.
84623         * lib/chdir-safer.c: Likewise.
84624         * lib/chdir-safer.h: Likewise.
84625         * lib/chown.c: Likewise.
84626         * lib/classpath.c: Likewise.
84627         * lib/classpath.h: Likewise.
84628         * lib/clean-temp.c: Likewise.
84629         * lib/clean-temp.h: Likewise.
84630         * lib/cloexec.c: Likewise.
84631         * lib/close-stream.c: Likewise.
84632         * lib/closein.c: Likewise.
84633         * lib/closein.h: Likewise.
84634         * lib/closeout.c: Likewise.
84635         * lib/closeout.h: Likewise.
84636         * lib/concat-filename.c: Likewise.
84637         * lib/copy-file.c: Likewise.
84638         * lib/copy-file.h: Likewise.
84639         * lib/count-one-bits.h: Likewise.
84640         * lib/crc.c: Likewise.
84641         * lib/crc.h: Likewise.
84642         * lib/creat-safer.c: Likewise.
84643         * lib/csharpcomp.c: Likewise.
84644         * lib/csharpcomp.h: Likewise.
84645         * lib/csharpexec.c: Likewise.
84646         * lib/csharpexec.h: Likewise.
84647         * lib/cycle-check.c: Likewise.
84648         * lib/cycle-check.h: Likewise.
84649         * lib/diacrit.c: Likewise.
84650         * lib/diacrit.h: Likewise.
84651         * lib/diffseq.h: Likewise.
84652         * lib/dirchownmod.c: Likewise.
84653         * lib/dirent.in.h: Likewise.
84654         * lib/dirfd.c: Likewise.
84655         * lib/dirfd.h: Likewise.
84656         * lib/dirname.c: Likewise.
84657         * lib/dirname.h: Likewise.
84658         * lib/dummy.c: Likewise.
84659         * lib/dup-safer.c: Likewise.
84660         * lib/dup2.c: Likewise.
84661         * lib/eealloc.h: Likewise.
84662         * lib/error.c: Likewise.
84663         * lib/error.h: Likewise.
84664         * lib/euidaccess.c: Likewise.
84665         * lib/exclude.c: Likewise.
84666         * lib/exclude.h: Likewise.
84667         * lib/execute.c: Likewise.
84668         * lib/execute.h: Likewise.
84669         * lib/exitfail.c: Likewise.
84670         * lib/exitfail.h: Likewise.
84671         * lib/expl.c: Likewise.
84672         * lib/fatal-signal.c: Likewise.
84673         * lib/fatal-signal.h: Likewise.
84674         * lib/fbufmode.c: Likewise.
84675         * lib/fbufmode.h: Likewise.
84676         * lib/fchdir.c: Likewise.
84677         * lib/fchmodat.c: Likewise.
84678         * lib/fchownat.c: Likewise.
84679         * lib/fcntl--.h: Likewise.
84680         * lib/fcntl-safer.h: Likewise.
84681         * lib/fcntl.in.h: Likewise.
84682         * lib/fd-safer.c: Likewise.
84683         * lib/fflush.c: Likewise.
84684         * lib/file-has-acl.c: Likewise.
84685         * lib/file-set.c: Likewise.
84686         * lib/file-type.c: Likewise.
84687         * lib/file-type.h: Likewise.
84688         * lib/fileblocks.c: Likewise.
84689         * lib/filemode.c: Likewise.
84690         * lib/filemode.h: Likewise.
84691         * lib/filename.h: Likewise.
84692         * lib/filenamecat.c: Likewise.
84693         * lib/filenamecat.h: Likewise.
84694         * lib/findprog.c: Likewise.
84695         * lib/findprog.h: Likewise.
84696         * lib/float.in.h: Likewise.
84697         * lib/floor.c: Likewise.
84698         * lib/floorf.c: Likewise.
84699         * lib/floorl.c: Likewise.
84700         * lib/fopen-safer.c: Likewise.
84701         * lib/fopen.c: Likewise.
84702         * lib/fpending.c: Likewise.
84703         * lib/fpending.h: Likewise.
84704         * lib/fprintf.c: Likewise.
84705         * lib/fprintftime.h: Likewise.
84706         * lib/fpucw.h: Likewise.
84707         * lib/fpurge.c: Likewise.
84708         * lib/fpurge.h: Likewise.
84709         * lib/freadable.c: Likewise.
84710         * lib/freadable.h: Likewise.
84711         * lib/freadahead.c: Likewise.
84712         * lib/freadahead.h: Likewise.
84713         * lib/freading.c: Likewise.
84714         * lib/freading.h: Likewise.
84715         * lib/free.c: Likewise.
84716         * lib/freopen.c: Likewise.
84717         * lib/frexp.c: Likewise.
84718         * lib/frexpl.c: Likewise.
84719         * lib/fseek.c: Likewise.
84720         * lib/fseterr.c: Likewise.
84721         * lib/fseterr.h: Likewise.
84722         * lib/fstatat.c: Likewise.
84723         * lib/fstrcmp.c: Likewise.
84724         * lib/fstrcmp.h: Likewise.
84725         * lib/fsusage.c: Likewise.
84726         * lib/fsusage.h: Likewise.
84727         * lib/ftell.c: Likewise.
84728         * lib/ftello.c: Likewise.
84729         * lib/fts-cycle.c: Likewise.
84730         * lib/fts.c: Likewise.
84731         * lib/fts_.h: Likewise.
84732         * lib/full-read.c: Likewise.
84733         * lib/full-read.h: Likewise.
84734         * lib/full-write.c: Likewise.
84735         * lib/full-write.h: Likewise.
84736         * lib/fwritable.c: Likewise.
84737         * lib/fwritable.h: Likewise.
84738         * lib/fwriteerror.c: Likewise.
84739         * lib/fwriteerror.h: Likewise.
84740         * lib/fwriting.c: Likewise.
84741         * lib/fwriting.h: Likewise.
84742         * lib/gcd.c: Likewise.
84743         * lib/gcd.h: Likewise.
84744         * lib/getcwd.c: Likewise.
84745         * lib/getdate.h: Likewise.
84746         * lib/getdate.y: Likewise.
84747         * lib/getdomainname.c: Likewise.
84748         * lib/getdomainname.h: Likewise.
84749         * lib/getgroups.c: Likewise.
84750         * lib/gethostname.c: Likewise.
84751         * lib/gethrxtime.c: Likewise.
84752         * lib/gethrxtime.h: Likewise.
84753         * lib/getloadavg.c: Likewise.
84754         * lib/getndelim2.c: Likewise.
84755         * lib/getndelim2.h: Likewise.
84756         * lib/getnline.c: Likewise.
84757         * lib/getnline.h: Likewise.
84758         * lib/getopt.c: Likewise.
84759         * lib/getopt.in.h: Likewise.
84760         * lib/getopt1.c: Likewise.
84761         * lib/getopt_int.h: Likewise.
84762         * lib/getpagesize.h: Likewise.
84763         * lib/getsubopt.c: Likewise.
84764         * lib/gettime.c: Likewise.
84765         * lib/getugroups.c: Likewise.
84766         * lib/getugroups.h: Likewise.
84767         * lib/getusershell.c: Likewise.
84768         * lib/gl_anyavltree_list1.h: Likewise.
84769         * lib/gl_anyavltree_list2.h: Likewise.
84770         * lib/gl_anyhash_list1.h: Likewise.
84771         * lib/gl_anyhash_list2.h: Likewise.
84772         * lib/gl_anylinked_list1.h: Likewise.
84773         * lib/gl_anylinked_list2.h: Likewise.
84774         * lib/gl_anyrbtree_list1.h: Likewise.
84775         * lib/gl_anyrbtree_list2.h: Likewise.
84776         * lib/gl_anytree_list1.h: Likewise.
84777         * lib/gl_anytree_list2.h: Likewise.
84778         * lib/gl_anytree_oset.h: Likewise.
84779         * lib/gl_anytreehash_list1.h: Likewise.
84780         * lib/gl_anytreehash_list2.h: Likewise.
84781         * lib/gl_array_list.c: Likewise.
84782         * lib/gl_array_list.h: Likewise.
84783         * lib/gl_array_oset.c: Likewise.
84784         * lib/gl_array_oset.h: Likewise.
84785         * lib/gl_avltree_list.c: Likewise.
84786         * lib/gl_avltree_list.h: Likewise.
84787         * lib/gl_avltree_oset.c: Likewise.
84788         * lib/gl_avltree_oset.h: Likewise.
84789         * lib/gl_avltreehash_list.c: Likewise.
84790         * lib/gl_avltreehash_list.h: Likewise.
84791         * lib/gl_carray_list.c: Likewise.
84792         * lib/gl_carray_list.h: Likewise.
84793         * lib/gl_linked_list.c: Likewise.
84794         * lib/gl_linked_list.h: Likewise.
84795         * lib/gl_linkedhash_list.c: Likewise.
84796         * lib/gl_linkedhash_list.h: Likewise.
84797         * lib/gl_list.c: Likewise.
84798         * lib/gl_list.h: Likewise.
84799         * lib/gl_oset.c: Likewise.
84800         * lib/gl_oset.h: Likewise.
84801         * lib/gl_rbtree_list.c: Likewise.
84802         * lib/gl_rbtree_list.h: Likewise.
84803         * lib/gl_rbtree_oset.c: Likewise.
84804         * lib/gl_rbtree_oset.h: Likewise.
84805         * lib/gl_rbtreehash_list.c: Likewise.
84806         * lib/gl_rbtreehash_list.h: Likewise.
84807         * lib/gl_sublist.c: Likewise.
84808         * lib/gl_sublist.h: Likewise.
84809         * lib/group-member.c: Likewise.
84810         * lib/group-member.h: Likewise.
84811         * lib/hard-locale.c: Likewise.
84812         * lib/hard-locale.h: Likewise.
84813         * lib/hash-pjw.c: Likewise.
84814         * lib/hash-pjw.h: Likewise.
84815         * lib/hash-triple.c: Likewise.
84816         * lib/hash.c: Likewise.
84817         * lib/hash.h: Likewise.
84818         * lib/human.c: Likewise.
84819         * lib/human.h: Likewise.
84820         * lib/i-ring.c: Likewise.
84821         * lib/i-ring.h: Likewise.
84822         * lib/idcache.c: Likewise.
84823         * lib/imaxabs.c: Likewise.
84824         * lib/imaxdiv.c: Likewise.
84825         * lib/inet_pton.c: Likewise.
84826         * lib/inet_pton.h: Likewise.
84827         * lib/intprops.h: Likewise.
84828         * lib/inttostr.c: Likewise.
84829         * lib/inttostr.h: Likewise.
84830         * lib/inttypes.in.h: Likewise.
84831         * lib/isapipe.c: Likewise.
84832         * lib/isdir.c: Likewise.
84833         * lib/isnan.c: Likewise.
84834         * lib/isnan.h: Likewise.
84835         * lib/isnanf.c: Likewise.
84836         * lib/isnanf.h: Likewise.
84837         * lib/isnanl-nolibm.h: Likewise.
84838         * lib/isnanl.c: Likewise.
84839         * lib/isnanl.h: Likewise.
84840         * lib/javacomp.c: Likewise.
84841         * lib/javacomp.h: Likewise.
84842         * lib/javaexec.c: Likewise.
84843         * lib/javaexec.h: Likewise.
84844         * lib/javaversion.c: Likewise.
84845         * lib/javaversion.h: Likewise.
84846         * lib/javaversion.java: Likewise.
84847         * lib/lbrkprop.h: Likewise.
84848         * lib/lchmod.h: Likewise.
84849         * lib/lchown.c: Likewise.
84850         * lib/ldexpl.c: Likewise.
84851         * lib/linebreak.c: Likewise.
84852         * lib/linebreak.h: Likewise.
84853         * lib/linebuffer.c: Likewise.
84854         * lib/linebuffer.h: Likewise.
84855         * lib/locale.in.h: Likewise.
84856         * lib/logl.c: Likewise.
84857         * lib/long-options.c: Likewise.
84858         * lib/long-options.h: Likewise.
84859         * lib/lstat.c: Likewise.
84860         * lib/lstat.h: Likewise.
84861         * lib/math.in.h: Likewise.
84862         * lib/mbchar.c: Likewise.
84863         * lib/mbchar.h: Likewise.
84864         * lib/mbfile.h: Likewise.
84865         * lib/mbiter.h: Likewise.
84866         * lib/mbscasecmp.c: Likewise.
84867         * lib/mbscasestr.c: Likewise.
84868         * lib/mbschr.c: Likewise.
84869         * lib/mbscspn.c: Likewise.
84870         * lib/mbslen.c: Likewise.
84871         * lib/mbsncasecmp.c: Likewise.
84872         * lib/mbsnlen.c: Likewise.
84873         * lib/mbspbrk.c: Likewise.
84874         * lib/mbspcasecmp.c: Likewise.
84875         * lib/mbsrchr.c: Likewise.
84876         * lib/mbssep.c: Likewise.
84877         * lib/mbsspn.c: Likewise.
84878         * lib/mbsstr.c: Likewise.
84879         * lib/mbstok_r.c: Likewise.
84880         * lib/mbswidth.c: Likewise.
84881         * lib/mbswidth.h: Likewise.
84882         * lib/mbuiter.h: Likewise.
84883         * lib/memcasecmp.c: Likewise.
84884         * lib/memcasecmp.h: Likewise.
84885         * lib/memchr.c: Likewise.
84886         * lib/memcmp.c: Likewise.
84887         * lib/memcoll.c: Likewise.
84888         * lib/memcoll.h: Likewise.
84889         * lib/memcpy.c: Likewise.
84890         * lib/memrchr.c: Likewise.
84891         * lib/mkancesdirs.c: Likewise.
84892         * lib/mkdir-p.c: Likewise.
84893         * lib/mkdir-p.h: Likewise.
84894         * lib/mkdir.c: Likewise.
84895         * lib/mkdirat.c: Likewise.
84896         * lib/mkdtemp.c: Likewise.
84897         * lib/mkstemp-safer.c: Likewise.
84898         * lib/mkstemp.c: Likewise.
84899         * lib/modechange.c: Likewise.
84900         * lib/modechange.h: Likewise.
84901         * lib/mountlist.c: Likewise.
84902         * lib/mountlist.h: Likewise.
84903         * lib/mpsort.c: Likewise.
84904         * lib/nanosleep.c: Likewise.
84905         * lib/obstack.c: Likewise.
84906         * lib/obstack.h: Likewise.
84907         * lib/open-safer.c: Likewise.
84908         * lib/open.c: Likewise.
84909         * lib/openat-die.c: Likewise.
84910         * lib/openat-priv.h: Likewise.
84911         * lib/openat-proc.c: Likewise.
84912         * lib/openat.c: Likewise.
84913         * lib/openat.h: Likewise.
84914         * lib/pagealign_alloc.c: Likewise.
84915         * lib/pagealign_alloc.h: Likewise.
84916         * lib/physmem.c: Likewise.
84917         * lib/physmem.h: Likewise.
84918         * lib/pipe-safer.c: Likewise.
84919         * lib/pipe.c: Likewise.
84920         * lib/pipe.h: Likewise.
84921         * lib/posixtm.c: Likewise.
84922         * lib/posixtm.h: Likewise.
84923         * lib/posixver.c: Likewise.
84924         * lib/printf-frexp.c: Likewise.
84925         * lib/printf-frexp.h: Likewise.
84926         * lib/printf-frexpl.c: Likewise.
84927         * lib/printf-frexpl.h: Likewise.
84928         * lib/printf.c: Likewise.
84929         * lib/progname.c: Likewise.
84930         * lib/progname.h: Likewise.
84931         * lib/progreloc.c: Likewise.
84932         * lib/putenv.c: Likewise.
84933         * lib/quote.c: Likewise.
84934         * lib/quote.h: Likewise.
84935         * lib/quotearg.c: Likewise.
84936         * lib/quotearg.h: Likewise.
84937         * lib/raise.c: Likewise.
84938         * lib/readline.c: Likewise.
84939         * lib/readline.h: Likewise.
84940         * lib/readlink.c: Likewise.
84941         * lib/readtokens.c: Likewise.
84942         * lib/readtokens.h: Likewise.
84943         * lib/readtokens0.c: Likewise.
84944         * lib/readtokens0.h: Likewise.
84945         * lib/readutmp.c: Likewise.
84946         * lib/readutmp.h: Likewise.
84947         * lib/realloc.c: Likewise.
84948         * lib/relocwrapper.c: Likewise.
84949         * lib/rename-dest-slash.c: Likewise.
84950         * lib/rename.c: Likewise.
84951         * lib/rmdir.c: Likewise.
84952         * lib/rpmatch.c: Likewise.
84953         * lib/safe-read.c: Likewise.
84954         * lib/safe-read.h: Likewise.
84955         * lib/safe-write.c: Likewise.
84956         * lib/safe-write.h: Likewise.
84957         * lib/same-inode.h: Likewise.
84958         * lib/same.c: Likewise.
84959         * lib/same.h: Likewise.
84960         * lib/save-cwd.c: Likewise.
84961         * lib/save-cwd.h: Likewise.
84962         * lib/savedir.c: Likewise.
84963         * lib/savedir.h: Likewise.
84964         * lib/savewd.c: Likewise.
84965         * lib/savewd.h: Likewise.
84966         * lib/search.in.h: Likewise.
84967         * lib/setenv.c: Likewise.
84968         * lib/setenv.h: Likewise.
84969         * lib/settime.c: Likewise.
84970         * lib/sh-quote.c: Likewise.
84971         * lib/sh-quote.h: Likewise.
84972         * lib/sig2str.c: Likewise.
84973         * lib/sig2str.h: Likewise.
84974         * lib/signal.in.h: Likewise.
84975         * lib/signbitd.c: Likewise.
84976         * lib/signbitf.c: Likewise.
84977         * lib/signbitl.c: Likewise.
84978         * lib/sigprocmask.c: Likewise.
84979         * lib/sincosl.c: Likewise.
84980         * lib/sleep.c: Likewise.
84981         * lib/sprintf.c: Likewise.
84982         * lib/sqrtl.c: Likewise.
84983         * lib/stat-time.h: Likewise.
84984         * lib/stdio--.h: Likewise.
84985         * lib/stdio-safer.h: Likewise.
84986         * lib/stdlib--.h: Likewise.
84987         * lib/stdlib-safer.h: Likewise.
84988         * lib/stdlib.in.h: Likewise.
84989         * lib/stpcpy.c: Likewise.
84990         * lib/stpncpy.c: Likewise.
84991         * lib/strchrnul.c: Likewise.
84992         * lib/strcspn.c: Likewise.
84993         * lib/strerror.c: Likewise.
84994         * lib/strftime.c: Likewise.
84995         * lib/strftime.h: Likewise.
84996         * lib/striconveh.c: Likewise.
84997         * lib/striconveh.h: Likewise.
84998         * lib/striconveha.c: Likewise.
84999         * lib/striconveha.h: Likewise.
85000         * lib/stripslash.c: Likewise.
85001         * lib/strnlen1.c: Likewise.
85002         * lib/strnlen1.h: Likewise.
85003         * lib/strtod.c: Likewise.
85004         * lib/strtoimax.c: Likewise.
85005         * lib/strtok_r.c: Likewise.
85006         * lib/strtol.c: Likewise.
85007         * lib/strtoll.c: Likewise.
85008         * lib/strtoul.c: Likewise.
85009         * lib/strtoull.c: Likewise.
85010         * lib/sysexits.in.h: Likewise.
85011         * lib/tempname.c: Likewise.
85012         * lib/tempname.h: Likewise.
85013         * lib/timespec.h: Likewise.
85014         * lib/tls.c: Likewise.
85015         * lib/tls.h: Likewise.
85016         * lib/tmpdir.c: Likewise.
85017         * lib/tmpdir.h: Likewise.
85018         * lib/tmpfile-safer.c: Likewise.
85019         * lib/tmpfile.c: Likewise.
85020         * lib/trigl.c: Likewise.
85021         * lib/trigl.h: Likewise.
85022         * lib/trim.c: Likewise.
85023         * lib/trim.h: Likewise.
85024         * lib/trunc.c: Likewise.
85025         * lib/truncf.c: Likewise.
85026         * lib/truncl.c: Likewise.
85027         * lib/tsearch.c: Likewise.
85028         * lib/unicodeio.c: Likewise.
85029         * lib/unicodeio.h: Likewise.
85030         * lib/unistd--.h: Likewise.
85031         * lib/unistd-safer.h: Likewise.
85032         * lib/unistdio/ulc-fprintf.c: Likewise.
85033         * lib/unistdio/ulc-vfprintf.c: Likewise.
85034         * lib/unlinkdir.c: Likewise.
85035         * lib/unlinkdir.h: Likewise.
85036         * lib/unlocked-io.h: Likewise.
85037         * lib/unsetenv.c: Likewise.
85038         * lib/userspec.c: Likewise.
85039         * lib/utime.c: Likewise.
85040         * lib/utimecmp.c: Likewise.
85041         * lib/utimecmp.h: Likewise.
85042         * lib/utimens.c: Likewise.
85043         * lib/verify.h: Likewise.
85044         * lib/verror.c: Likewise.
85045         * lib/verror.h: Likewise.
85046         * lib/version-etc-fsf.c: Likewise.
85047         * lib/version-etc.c: Likewise.
85048         * lib/version-etc.h: Likewise.
85049         * lib/vfprintf.c: Likewise.
85050         * lib/vprintf.c: Likewise.
85051         * lib/vsprintf.c: Likewise.
85052         * lib/w32spawn.h: Likewise.
85053         * lib/wait-process.c: Likewise.
85054         * lib/wait-process.h: Likewise.
85055         * lib/wcwidth.c: Likewise.
85056         * lib/write-any-file.c: Likewise.
85057         * lib/xalloc-die.c: Likewise.
85058         * lib/xalloc.h: Likewise.
85059         * lib/xasprintf.c: Likewise.
85060         * lib/xgetcwd.c: Likewise.
85061         * lib/xgetcwd.h: Likewise.
85062         * lib/xgetdomainname.c: Likewise.
85063         * lib/xgetdomainname.h: Likewise.
85064         * lib/xgethostname.c: Likewise.
85065         * lib/xmalloc.c: Likewise.
85066         * lib/xmalloca.c: Likewise.
85067         * lib/xmalloca.h: Likewise.
85068         * lib/xmemcoll.c: Likewise.
85069         * lib/xnanosleep.c: Likewise.
85070         * lib/xreadlink.c: Likewise.
85071         * lib/xreadlink.h: Likewise.
85072         * lib/xsetenv.c: Likewise.
85073         * lib/xsetenv.h: Likewise.
85074         * lib/xstriconv.c: Likewise.
85075         * lib/xstriconv.h: Likewise.
85076         * lib/xstrndup.c: Likewise.
85077         * lib/xstrndup.h: Likewise.
85078         * lib/xstrtod.c: Likewise.
85079         * lib/xstrtod.h: Likewise.
85080         * lib/xstrtol-error.c: Likewise.
85081         * lib/xstrtol.c: Likewise.
85082         * lib/xstrtol.h: Likewise.
85083         * lib/xtime.h: Likewise.
85084         * lib/xvasprintf.c: Likewise.
85085         * lib/xvasprintf.h: Likewise.
85086         * lib/yesno.c: Likewise.
85087         * lib/yesno.h: Likewise.
85088         * posix-modules: Likewise.
85089         * tests/test-alloca-opt.c: Likewise.
85090         * tests/test-arcfour.c: Likewise.
85091         * tests/test-arctwo.c: Likewise.
85092         * tests/test-argmatch.c: Likewise.
85093         * tests/test-argp-2.sh: Likewise.
85094         * tests/test-argp.c: Likewise.
85095         * tests/test-arpa_inet.c: Likewise.
85096         * tests/test-array_list.c: Likewise.
85097         * tests/test-array_oset.c: Likewise.
85098         * tests/test-atexit.c: Likewise.
85099         * tests/test-avltree_list.c: Likewise.
85100         * tests/test-avltree_oset.c: Likewise.
85101         * tests/test-avltreehash_list.c: Likewise.
85102         * tests/test-base64.c: Likewise.
85103         * tests/test-binary-io.c: Likewise.
85104         * tests/test-byteswap.c: Likewise.
85105         * tests/test-c-ctype.c: Likewise.
85106         * tests/test-c-strcasecmp.c: Likewise.
85107         * tests/test-c-strcasestr.c: Likewise.
85108         * tests/test-c-strncasecmp.c: Likewise.
85109         * tests/test-c-strstr.c: Likewise.
85110         * tests/test-canonicalize-lgpl.c: Likewise.
85111         * tests/test-canonicalize.c: Likewise.
85112         * tests/test-carray_list.c: Likewise.
85113         * tests/test-ceilf.c: Likewise.
85114         * tests/test-ceill.c: Likewise.
85115         * tests/test-count-one-bits.c: Likewise.
85116         * tests/test-crc.c: Likewise.
85117         * tests/test-dirname.c: Likewise.
85118         * tests/test-fbufmode.c: Likewise.
85119         * tests/test-fcntl.c: Likewise.
85120         * tests/test-fflush.c: Likewise.
85121         * tests/test-floorf.c: Likewise.
85122         * tests/test-floorl.c: Likewise.
85123         * tests/test-fopen.c: Likewise.
85124         * tests/test-fprintf-posix.c: Likewise.
85125         * tests/test-fprintf-posix.h: Likewise.
85126         * tests/test-fpurge.c: Likewise.
85127         * tests/test-freadable.c: Likewise.
85128         * tests/test-freadahead.c: Likewise.
85129         * tests/test-freading.c: Likewise.
85130         * tests/test-freopen.c: Likewise.
85131         * tests/test-frexp.c: Likewise.
85132         * tests/test-frexpl.c: Likewise.
85133         * tests/test-fseek.c: Likewise.
85134         * tests/test-fseeko.c: Likewise.
85135         * tests/test-fseterr.c: Likewise.
85136         * tests/test-fstrcmp.c: Likewise.
85137         * tests/test-ftell.c: Likewise.
85138         * tests/test-ftello.c: Likewise.
85139         * tests/test-fwritable.c: Likewise.
85140         * tests/test-fwriting.c: Likewise.
85141         * tests/test-getaddrinfo.c: Likewise.
85142         * tests/test-getpass.c: Likewise.
85143         * tests/test-gettimeofday.c: Likewise.
85144         * tests/test-hmac-md5.c: Likewise.
85145         * tests/test-hmac-sha1.c: Likewise.
85146         * tests/test-iconv.c: Likewise.
85147         * tests/test-iconvme.c: Likewise.
85148         * tests/test-inttypes.c: Likewise.
85149         * tests/test-isnan.c: Likewise.
85150         * tests/test-isnanf.c: Likewise.
85151         * tests/test-isnanl-nolibm.c: Likewise.
85152         * tests/test-isnanl.c: Likewise.
85153         * tests/test-isnanl.h: Likewise.
85154         * tests/test-ldexpl.c: Likewise.
85155         * tests/test-linked_list.c: Likewise.
85156         * tests/test-linkedhash_list.c: Likewise.
85157         * tests/test-locale.c: Likewise.
85158         * tests/test-localename.c: Likewise.
85159         * tests/test-lock.c: Likewise.
85160         * tests/test-lseek.c: Likewise.
85161         * tests/test-malloca.c: Likewise.
85162         * tests/test-math.c: Likewise.
85163         * tests/test-mbscasecmp.c: Likewise.
85164         * tests/test-mbscasestr1.c: Likewise.
85165         * tests/test-mbscasestr2.c: Likewise.
85166         * tests/test-mbscasestr3.c: Likewise.
85167         * tests/test-mbscasestr4.c: Likewise.
85168         * tests/test-mbschr.c: Likewise.
85169         * tests/test-mbscspn.c: Likewise.
85170         * tests/test-mbsncasecmp.c: Likewise.
85171         * tests/test-mbspbrk.c: Likewise.
85172         * tests/test-mbspcasecmp.c: Likewise.
85173         * tests/test-mbsrchr.c: Likewise.
85174         * tests/test-mbsspn.c: Likewise.
85175         * tests/test-mbsstr1.c: Likewise.
85176         * tests/test-mbsstr2.c: Likewise.
85177         * tests/test-mbsstr3.c: Likewise.
85178         * tests/test-md5.c: Likewise.
85179         * tests/test-memmem.c: Likewise.
85180         * tests/test-netinet_in.c: Likewise.
85181         * tests/test-open.c: Likewise.
85182         * tests/test-printf-frexp.c: Likewise.
85183         * tests/test-printf-frexpl.c: Likewise.
85184         * tests/test-printf-posix.c: Likewise.
85185         * tests/test-printf-posix.h: Likewise.
85186         * tests/test-rbtree_list.c: Likewise.
85187         * tests/test-rbtree_oset.c: Likewise.
85188         * tests/test-rbtreehash_list.c: Likewise.
85189         * tests/test-read-file.c: Likewise.
85190         * tests/test-rijndael.c: Likewise.
85191         * tests/test-search.c: Likewise.
85192         * tests/test-signbit.c: Likewise.
85193         * tests/test-sleep.c: Likewise.
85194         * tests/test-snprintf-posix.c: Likewise.
85195         * tests/test-snprintf-posix.h: Likewise.
85196         * tests/test-snprintf.c: Likewise.
85197         * tests/test-sprintf-posix.c: Likewise.
85198         * tests/test-sprintf-posix.h: Likewise.
85199         * tests/test-stat-time.c: Likewise.
85200         * tests/test-stdbool.c: Likewise.
85201         * tests/test-stdint.c: Likewise.
85202         * tests/test-stdio.c: Likewise.
85203         * tests/test-stdlib.c: Likewise.
85204         * tests/test-stpncpy.c: Likewise.
85205         * tests/test-strcasestr.c: Likewise.
85206         * tests/test-striconv.c: Likewise.
85207         * tests/test-striconveh.c: Likewise.
85208         * tests/test-striconveha.c: Likewise.
85209         * tests/test-string.c: Likewise.
85210         * tests/test-sys_select.c: Likewise.
85211         * tests/test-sys_socket.c: Likewise.
85212         * tests/test-sys_stat.c: Likewise.
85213         * tests/test-sys_time.c: Likewise.
85214         * tests/test-sysexits.c: Likewise.
85215         * tests/test-time.c: Likewise.
85216         * tests/test-tls.c: Likewise.
85217         * tests/test-trunc.c: Likewise.
85218         * tests/test-truncf.c: Likewise.
85219         * tests/test-truncl.c: Likewise.
85220         * tests/test-unistd.c: Likewise.
85221         * tests/test-vasnprintf-posix.c: Likewise.
85222         * tests/test-vasnprintf-posix2.c: Likewise.
85223         * tests/test-vasnprintf.c: Likewise.
85224         * tests/test-vasprintf-posix.c: Likewise.
85225         * tests/test-vasprintf.c: Likewise.
85226         * tests/test-verify.c: Likewise.
85227         * tests/test-vfprintf-posix.c: Likewise.
85228         * tests/test-vprintf-posix.c: Likewise.
85229         * tests/test-vsnprintf-posix.c: Likewise.
85230         * tests/test-vsnprintf.c: Likewise.
85231         * tests/test-vsprintf-posix.c: Likewise.
85232         * tests/test-wchar.c: Likewise.
85233         * tests/test-wctype.c: Likewise.
85234         * tests/test-wcwidth.c: Likewise.
85235         * tests/test-xstrtol.c: Likewise.
85236         * tests/test-xvasprintf.c: Likewise.
85237         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
85238         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
85239         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85240         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85241         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85242         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
85243         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85244         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85245         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85246         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
85247         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85248         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85249         * tests/uniname/test-uninames.c: Likewise.
85250         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
85251         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
85252         * tests/unistdio/test-u16-printf1.h: Likewise.
85253         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
85254         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
85255         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
85256         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
85257         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
85258         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
85259         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
85260         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
85261         * tests/unistdio/test-u32-printf1.h: Likewise.
85262         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
85263         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
85264         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
85265         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
85266         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
85267         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
85268         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
85269         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
85270         * tests/unistdio/test-u8-printf1.h: Likewise.
85271         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
85272         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
85273         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
85274         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
85275         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
85276         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
85277         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
85278         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
85279         * tests/unistdio/test-ulc-printf1.h: Likewise.
85280         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
85281         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
85282         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
85283         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
85284         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
85285         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
85286         * tests/uniwidth/test-u16-strwidth.c: Likewise.
85287         * tests/uniwidth/test-u16-width.c: Likewise.
85288         * tests/uniwidth/test-u32-strwidth.c: Likewise.
85289         * tests/uniwidth/test-u32-width.c: Likewise.
85290         * tests/uniwidth/test-u8-strwidth.c: Likewise.
85291         * tests/uniwidth/test-u8-width.c: Likewise.
85292         * tests/uniwidth/test-uc_width.c: Likewise.
85293         * config/srclist-update: Likewise.
85294         (fixlicense): Update to GPLv3+.
85296         Change copyright notice from LGPLv2.1+ to LGPLv3+.
85297         * tests/test-tsearch.c: Change copyright notice.
85299         Change copyright notice from LGPLv2.0+ to LGPLv3+.
85300         * lib/c-strcaseeq.h: Change copyright notice.
85301         * lib/streq.h: Likewise.
85302         * lib/uniconv.h: Likewise.
85303         * lib/uniconv/u-conv-from-enc.h: Likewise.
85304         * lib/uniconv/u-conv-to-enc.h: Likewise.
85305         * lib/uniconv/u-strconv-from-enc.h: Likewise.
85306         * lib/uniconv/u-strconv-to-enc.h: Likewise.
85307         * lib/uniconv/u16-conv-from-enc.c: Likewise.
85308         * lib/uniconv/u16-conv-to-enc.c: Likewise.
85309         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
85310         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
85311         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
85312         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
85313         * lib/uniconv/u32-conv-from-enc.c: Likewise.
85314         * lib/uniconv/u32-conv-to-enc.c: Likewise.
85315         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
85316         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
85317         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
85318         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
85319         * lib/uniconv/u8-conv-from-enc.c: Likewise.
85320         * lib/uniconv/u8-conv-to-enc.c: Likewise.
85321         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
85322         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
85323         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
85324         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
85325         * lib/uniname.h: Likewise.
85326         * lib/uniname/uniname.c: Likewise.
85327         * lib/unistdio.h: Likewise.
85328         * lib/unistdio/u-asnprintf.h: Likewise.
85329         * lib/unistdio/u-asprintf.h: Likewise.
85330         * lib/unistdio/u-printf-args.c: Likewise.
85331         * lib/unistdio/u-printf-args.h: Likewise.
85332         * lib/unistdio/u-printf-parse.h: Likewise.
85333         * lib/unistdio/u-snprintf.h: Likewise.
85334         * lib/unistdio/u-sprintf.h: Likewise.
85335         * lib/unistdio/u-vasprintf.h: Likewise.
85336         * lib/unistdio/u-vsnprintf.h: Likewise.
85337         * lib/unistdio/u-vsprintf.h: Likewise.
85338         * lib/unistdio/u16-asnprintf.c: Likewise.
85339         * lib/unistdio/u16-asprintf.c: Likewise.
85340         * lib/unistdio/u16-printf-parse.c: Likewise.
85341         * lib/unistdio/u16-snprintf.c: Likewise.
85342         * lib/unistdio/u16-sprintf.c: Likewise.
85343         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85344         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85345         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85346         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85347         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85348         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85349         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85350         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85351         * lib/unistdio/u16-vasnprintf.c: Likewise.
85352         * lib/unistdio/u16-vasprintf.c: Likewise.
85353         * lib/unistdio/u16-vsnprintf.c: Likewise.
85354         * lib/unistdio/u16-vsprintf.c: Likewise.
85355         * lib/unistdio/u32-asnprintf.c: Likewise.
85356         * lib/unistdio/u32-asprintf.c: Likewise.
85357         * lib/unistdio/u32-printf-parse.c: Likewise.
85358         * lib/unistdio/u32-snprintf.c: Likewise.
85359         * lib/unistdio/u32-sprintf.c: Likewise.
85360         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85361         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85362         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85363         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85364         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85365         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85366         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85367         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85368         * lib/unistdio/u32-vasnprintf.c: Likewise.
85369         * lib/unistdio/u32-vasprintf.c: Likewise.
85370         * lib/unistdio/u32-vsnprintf.c: Likewise.
85371         * lib/unistdio/u32-vsprintf.c: Likewise.
85372         * lib/unistdio/u8-asnprintf.c: Likewise.
85373         * lib/unistdio/u8-asprintf.c: Likewise.
85374         * lib/unistdio/u8-printf-parse.c: Likewise.
85375         * lib/unistdio/u8-snprintf.c: Likewise.
85376         * lib/unistdio/u8-sprintf.c: Likewise.
85377         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85378         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85379         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85380         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85381         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85382         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85383         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85384         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85385         * lib/unistdio/u8-vasnprintf.c: Likewise.
85386         * lib/unistdio/u8-vasprintf.c: Likewise.
85387         * lib/unistdio/u8-vsnprintf.c: Likewise.
85388         * lib/unistdio/u8-vsprintf.c: Likewise.
85389         * lib/unistdio/ulc-asnprintf.c: Likewise.
85390         * lib/unistdio/ulc-asprintf.c: Likewise.
85391         * lib/unistdio/ulc-printf-parse.c: Likewise.
85392         * lib/unistdio/ulc-snprintf.c: Likewise.
85393         * lib/unistdio/ulc-sprintf.c: Likewise.
85394         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85395         * lib/unistdio/ulc-vasprintf.c: Likewise.
85396         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85397         * lib/unistdio/ulc-vsprintf.c: Likewise.
85398         * lib/unistr.h: Likewise.
85399         * lib/unistr/u-cpy-alloc.h: Likewise.
85400         * lib/unistr/u-cpy.h: Likewise.
85401         * lib/unistr/u-endswith.h: Likewise.
85402         * lib/unistr/u-move.h: Likewise.
85403         * lib/unistr/u-set.h: Likewise.
85404         * lib/unistr/u-startswith.h: Likewise.
85405         * lib/unistr/u-stpcpy.h: Likewise.
85406         * lib/unistr/u-stpncpy.h: Likewise.
85407         * lib/unistr/u-strcat.h: Likewise.
85408         * lib/unistr/u-strcpy.h: Likewise.
85409         * lib/unistr/u-strcspn.h: Likewise.
85410         * lib/unistr/u-strdup.h: Likewise.
85411         * lib/unistr/u-strlen.h: Likewise.
85412         * lib/unistr/u-strncat.h: Likewise.
85413         * lib/unistr/u-strncpy.h: Likewise.
85414         * lib/unistr/u-strnlen.h: Likewise.
85415         * lib/unistr/u-strpbrk.h: Likewise.
85416         * lib/unistr/u-strspn.h: Likewise.
85417         * lib/unistr/u-strstr.h: Likewise.
85418         * lib/unistr/u-strtok.h: Likewise.
85419         * lib/unistr/u16-check.c: Likewise.
85420         * lib/unistr/u16-chr.c: Likewise.
85421         * lib/unistr/u16-cmp.c: Likewise.
85422         * lib/unistr/u16-cpy-alloc.c: Likewise.
85423         * lib/unistr/u16-cpy.c: Likewise.
85424         * lib/unistr/u16-endswith.c: Likewise.
85425         * lib/unistr/u16-mblen.c: Likewise.
85426         * lib/unistr/u16-mbsnlen.c: Likewise.
85427         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85428         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85429         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85430         * lib/unistr/u16-mbtouc.c: Likewise.
85431         * lib/unistr/u16-mbtoucr.c: Likewise.
85432         * lib/unistr/u16-move.c: Likewise.
85433         * lib/unistr/u16-next.c: Likewise.
85434         * lib/unistr/u16-prev.c: Likewise.
85435         * lib/unistr/u16-set.c: Likewise.
85436         * lib/unistr/u16-startswith.c: Likewise.
85437         * lib/unistr/u16-stpcpy.c: Likewise.
85438         * lib/unistr/u16-stpncpy.c: Likewise.
85439         * lib/unistr/u16-strcat.c: Likewise.
85440         * lib/unistr/u16-strchr.c: Likewise.
85441         * lib/unistr/u16-strcmp.c: Likewise.
85442         * lib/unistr/u16-strcpy.c: Likewise.
85443         * lib/unistr/u16-strcspn.c: Likewise.
85444         * lib/unistr/u16-strdup.c: Likewise.
85445         * lib/unistr/u16-strlen.c: Likewise.
85446         * lib/unistr/u16-strmblen.c: Likewise.
85447         * lib/unistr/u16-strmbtouc.c: Likewise.
85448         * lib/unistr/u16-strncat.c: Likewise.
85449         * lib/unistr/u16-strncmp.c: Likewise.
85450         * lib/unistr/u16-strncpy.c: Likewise.
85451         * lib/unistr/u16-strnlen.c: Likewise.
85452         * lib/unistr/u16-strpbrk.c: Likewise.
85453         * lib/unistr/u16-strrchr.c: Likewise.
85454         * lib/unistr/u16-strspn.c: Likewise.
85455         * lib/unistr/u16-strstr.c: Likewise.
85456         * lib/unistr/u16-strtok.c: Likewise.
85457         * lib/unistr/u16-to-u32.c: Likewise.
85458         * lib/unistr/u16-to-u8.c: Likewise.
85459         * lib/unistr/u16-uctomb-aux.c: Likewise.
85460         * lib/unistr/u16-uctomb.c: Likewise.
85461         * lib/unistr/u32-check.c: Likewise.
85462         * lib/unistr/u32-chr.c: Likewise.
85463         * lib/unistr/u32-cmp.c: Likewise.
85464         * lib/unistr/u32-cpy-alloc.c: Likewise.
85465         * lib/unistr/u32-cpy.c: Likewise.
85466         * lib/unistr/u32-endswith.c: Likewise.
85467         * lib/unistr/u32-mblen.c: Likewise.
85468         * lib/unistr/u32-mbsnlen.c: Likewise.
85469         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85470         * lib/unistr/u32-mbtouc.c: Likewise.
85471         * lib/unistr/u32-mbtoucr.c: Likewise.
85472         * lib/unistr/u32-move.c: Likewise.
85473         * lib/unistr/u32-next.c: Likewise.
85474         * lib/unistr/u32-prev.c: Likewise.
85475         * lib/unistr/u32-set.c: Likewise.
85476         * lib/unistr/u32-startswith.c: Likewise.
85477         * lib/unistr/u32-stpcpy.c: Likewise.
85478         * lib/unistr/u32-stpncpy.c: Likewise.
85479         * lib/unistr/u32-strcat.c: Likewise.
85480         * lib/unistr/u32-strchr.c: Likewise.
85481         * lib/unistr/u32-strcmp.c: Likewise.
85482         * lib/unistr/u32-strcpy.c: Likewise.
85483         * lib/unistr/u32-strcspn.c: Likewise.
85484         * lib/unistr/u32-strdup.c: Likewise.
85485         * lib/unistr/u32-strlen.c: Likewise.
85486         * lib/unistr/u32-strmblen.c: Likewise.
85487         * lib/unistr/u32-strmbtouc.c: Likewise.
85488         * lib/unistr/u32-strncat.c: Likewise.
85489         * lib/unistr/u32-strncmp.c: Likewise.
85490         * lib/unistr/u32-strncpy.c: Likewise.
85491         * lib/unistr/u32-strnlen.c: Likewise.
85492         * lib/unistr/u32-strpbrk.c: Likewise.
85493         * lib/unistr/u32-strrchr.c: Likewise.
85494         * lib/unistr/u32-strspn.c: Likewise.
85495         * lib/unistr/u32-strstr.c: Likewise.
85496         * lib/unistr/u32-strtok.c: Likewise.
85497         * lib/unistr/u32-to-u16.c: Likewise.
85498         * lib/unistr/u32-to-u8.c: Likewise.
85499         * lib/unistr/u32-uctomb.c: Likewise.
85500         * lib/unistr/u8-check.c: Likewise.
85501         * lib/unistr/u8-chr.c: Likewise.
85502         * lib/unistr/u8-cmp.c: Likewise.
85503         * lib/unistr/u8-cpy-alloc.c: Likewise.
85504         * lib/unistr/u8-cpy.c: Likewise.
85505         * lib/unistr/u8-endswith.c: Likewise.
85506         * lib/unistr/u8-mblen.c: Likewise.
85507         * lib/unistr/u8-mbsnlen.c: Likewise.
85508         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85509         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85510         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85511         * lib/unistr/u8-mbtouc.c: Likewise.
85512         * lib/unistr/u8-mbtoucr.c: Likewise.
85513         * lib/unistr/u8-move.c: Likewise.
85514         * lib/unistr/u8-next.c: Likewise.
85515         * lib/unistr/u8-prev.c: Likewise.
85516         * lib/unistr/u8-set.c: Likewise.
85517         * lib/unistr/u8-startswith.c: Likewise.
85518         * lib/unistr/u8-stpcpy.c: Likewise.
85519         * lib/unistr/u8-stpncpy.c: Likewise.
85520         * lib/unistr/u8-strcat.c: Likewise.
85521         * lib/unistr/u8-strchr.c: Likewise.
85522         * lib/unistr/u8-strcmp.c: Likewise.
85523         * lib/unistr/u8-strcpy.c: Likewise.
85524         * lib/unistr/u8-strcspn.c: Likewise.
85525         * lib/unistr/u8-strdup.c: Likewise.
85526         * lib/unistr/u8-strlen.c: Likewise.
85527         * lib/unistr/u8-strmblen.c: Likewise.
85528         * lib/unistr/u8-strmbtouc.c: Likewise.
85529         * lib/unistr/u8-strncat.c: Likewise.
85530         * lib/unistr/u8-strncmp.c: Likewise.
85531         * lib/unistr/u8-strncpy.c: Likewise.
85532         * lib/unistr/u8-strnlen.c: Likewise.
85533         * lib/unistr/u8-strpbrk.c: Likewise.
85534         * lib/unistr/u8-strrchr.c: Likewise.
85535         * lib/unistr/u8-strspn.c: Likewise.
85536         * lib/unistr/u8-strstr.c: Likewise.
85537         * lib/unistr/u8-strtok.c: Likewise.
85538         * lib/unistr/u8-to-u16.c: Likewise.
85539         * lib/unistr/u8-to-u32.c: Likewise.
85540         * lib/unistr/u8-uctomb-aux.c: Likewise.
85541         * lib/unistr/u8-uctomb.c: Likewise.
85542         * lib/unitypes.h: Likewise.
85543         * lib/uniwidth.h: Likewise.
85544         * lib/uniwidth/cjk.h: Likewise.
85545         * lib/uniwidth/u16-strwidth.c: Likewise.
85546         * lib/uniwidth/u16-width.c: Likewise.
85547         * lib/uniwidth/u32-strwidth.c: Likewise.
85548         * lib/uniwidth/u32-width.c: Likewise.
85549         * lib/uniwidth/u8-strwidth.c: Likewise.
85550         * lib/uniwidth/u8-width.c: Likewise.
85551         * lib/uniwidth/width.c: Likewise.
85553 2007-10-07  Bruno Haible  <bruno@clisp.org>
85555         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85556         The file is still under LGPL (see modules/inttypes).
85558 2007-10-06  Bruno Haible  <bruno@clisp.org>
85560         * modules/trunc (Dependencies): Add 'extensions'.
85561         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85562         Reported by Ben Pfaff <blp@gnu.org>.
85564 2007-10-06  Bruno Haible  <bruno@clisp.org>
85566         * modules/freopen-tests: New file.
85567         * tests/test-freopen.c: New file.
85569         * modules/fopen-tests: New file.
85570         * tests/test-fopen.c: New file.
85572         * modules/fopen: New file.
85573         * lib/fopen.c: New file.
85574         * m4/fopen.m4: New file.
85575         * modules/freopen: New file.
85576         * lib/freopen.c: New file.
85577         * m4/freopen.m4: New file.
85578         * lib/stdio.in.h (fopen, freopen): New declarations.
85579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85580         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85581         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85582         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85583         * doc/functions/fopen.texi: Mention the 'fopen' module.
85584         * doc/functions/freopen.texi: Mention the 'freopen' module.
85586 2007-10-06  Bruno Haible  <bruno@clisp.org>
85588         * modules/open-tests: New file.
85589         * tests/test-open.c: New file.
85591         * modules/open: New file.
85592         * lib/open.c: New file.
85593         * m4/open.m4: New file.
85594         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85595         lib/open.c does.
85596         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85597         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85598         macros.
85599         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85600         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85601         REPLACE_OPEN.
85602         * doc/functions/open.texi: Mention the 'open' module.
85604 2007-10-04  Bruno Haible  <bruno@clisp.org>
85606         * modules/ceill-tests: New file.
85607         * tests/test-ceill.c: New file.
85609         * modules/ceill: New file.
85610         * lib/ceill.c: Replace entire file.
85611         * m4/ceill.m4: New file.
85612         * lib/math.in.h (ceill): Replace declaration.
85613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85614         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85615         * doc/functions/ceill.texi: Mention the 'ceill' module.
85616         * modules/mathl (Files): Remove lib/ceill.c.
85617         (Depends-on): Add ceill.
85619 2007-10-04  Bruno Haible  <bruno@clisp.org>
85621         * modules/ceilf-tests: New file.
85622         * tests/test-ceilf.c: New file.
85624         * modules/ceilf: New file.
85625         * lib/ceil.c: New file.
85626         * lib/ceilf.c: New file.
85627         * m4/ceilf.m4: New file.
85628         * lib/math.in.h (ceilf): New declaration.
85629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85630         HAVE_DECL_CEILF.
85631         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85632         HAVE_DECL_CEILF.
85633         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85635 2007-10-04  Bruno Haible  <bruno@clisp.org>
85637         * modules/floorl-tests: New file.
85638         * tests/test-floorl.c: New file.
85640         * modules/floorl: New file.
85641         * lib/floorl.c: Replace entire file.
85642         * m4/floorl.m4: New file.
85643         * lib/math.in.h (floorl): Replace declaration.
85644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85645         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85646         * doc/functions/floorl.texi: Mention the 'floorl' module.
85647         * modules/mathl (Files): Remove lib/floorl.c.
85648         (Depends-on): Add floorl.
85650 2007-10-04  Bruno Haible  <bruno@clisp.org>
85652         * modules/floorf-tests: New file.
85653         * tests/test-floorf.c: New file.
85655         * modules/floorf: New file.
85656         * lib/floor.c: New file.
85657         * lib/floorf.c: New file.
85658         * m4/floorf.m4: New file.
85659         * lib/math.in.h (floorf): New declaration.
85660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85661         HAVE_DECL_FLOORF.
85662         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85663         HAVE_DECL_FLOORF.
85664         * doc/functions/floorf.texi: Mention the 'floorf' module.
85666 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85667             Bruno Haible  <bruno@clisp.org>
85669         Advertise for the Git server instead of the CVS server.
85670         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85671         repository instead of the CVS one.
85672         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85673         about all VCS systems generically.
85674         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85676 2007-10-04  Bruno Haible  <bruno@clisp.org>
85678         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85679         means.
85680         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85682 2007-10-04  Bruno Haible  <bruno@clisp.org>
85684         * modules/truncl-tests: New file.
85685         * tests/test-truncl.c: New file.
85687         * modules/truncl: New file.
85688         * lib/truncl.c: New file.
85689         * m4/truncl.m4: New file.
85690         * lib/math.in.h (truncl): New declaration.
85691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85692         HAVE_DECL_TRUNCL.
85693         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85694         HAVE_DECL_TRUNCL.
85695         * doc/functions/truncl.texi: Mention the 'truncl' module.
85697 2007-10-04  Bruno Haible  <bruno@clisp.org>
85699         * modules/truncf-tests: New file.
85700         * tests/test-truncf.c: New file.
85702         * modules/truncf: New file.
85703         * lib/trunc.c: Make paramerizable through USE_* macros.
85704         * lib/truncf.c: New file.
85705         * m4/truncf.m4: New file.
85706         * lib/math.in.h (truncf): New declaration.
85707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85708         HAVE_DECL_TRUNCF.
85709         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85710         HAVE_DECL_TRUNCF.
85711         * doc/functions/truncf.texi: Mention the 'truncf' module.
85713 2007-10-03  Bruno Haible  <bruno@clisp.org>
85715         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85716         augmentation also for tests modules.
85717         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85718         * modules/atexit-tests (Makefile.am): Likewise.
85719         * modules/binary-io-tests (Makefile.am): Likewise.
85720         * modules/c-strcase-tests (Makefile.am): Likewise.
85721         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85722         * modules/canonicalize-tests (Makefile.am): Likewise.
85723         * modules/closein-tests (Makefile.am): Likewise.
85724         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85725         * modules/freadahead-tests (Makefile.am): Likewise.
85726         * modules/fseek-tests (Makefile.am): Likewise.
85727         * modules/fseeko-tests (Makefile.am): Likewise.
85728         * modules/ftell-tests (Makefile.am): Likewise.
85729         * modules/ftello-tests (Makefile.am): Likewise.
85730         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85731         * modules/isnanl-tests (Makefile.am): Likewise.
85732         * modules/lseek-tests (Makefile.am): Likewise.
85733         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85734         * modules/mbscasestr-tests (Makefile.am): Likewise.
85735         * modules/mbschr-tests (Makefile.am): Likewise.
85736         * modules/mbscspn-tests (Makefile.am): Likewise.
85737         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85738         * modules/mbspbrk-tests (Makefile.am): Likewise.
85739         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85740         * modules/mbsrchr-tests (Makefile.am): Likewise.
85741         * modules/mbsspn-tests (Makefile.am): Likewise.
85742         * modules/mbsstr-tests (Makefile.am): Likewise.
85743         * modules/printf-posix-tests (Makefile.am): Likewise.
85744         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85745         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85746         * modules/tsearch-tests (Makefile.am): Likewise.
85747         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85748         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85749         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85750         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85751         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85752         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85753         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85754         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85755         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85756         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85757         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85758         * modules/xstrtol-tests (Makefile.am): Likewise.
85759         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85760         * modules/yesno-tests (Makefile.am): Likewise.
85762 2007-10-03  Bruno Haible  <bruno@clisp.org>
85764         * modules/trunc-tests: New file.
85765         * tests/test-trunc.c: New file.
85767         * modules/trunc: New file.
85768         * lib/trunc.c: New file.
85769         * m4/trunc.m4: New file.
85770         * lib/math.in.h (trunc): New declaration.
85771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85772         HAVE_DECL_TRUNC.
85773         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85774         HAVE_DECL_TRUNC.
85775         * doc/functions/trunc.texi: Mention the 'trunc' module.
85777 2007-10-03  Bruno Haible  <bruno@clisp.org>
85779         * tests/test-fpending.c: New file, mostly copied
85780         from coreutils/lib/t-fpending.c.
85781         * modules/fpending-tests: New file.
85783 2007-10-03  Bruno Haible  <bruno@clisp.org>
85785         Port the stdio extensions to QNX (untested).
85786         * lib/fseterr.c (fseterr): Add support for QNX.
85787         * lib/fbufmode.c (fbufmode): Likewise.
85788         * lib/freadable.c (freadable): Likewise.
85789         * lib/fwritable.c (fwritable): Likewise.
85790         * lib/freading.c (freading): Likewise.
85791         * lib/fwriting.c (fwriting): Likewise.
85792         * lib/freadahead.c (freadahed): Likewise.
85793         * lib/fpurge.c (fpurge): Likewise.
85794         * lib/fseeko.c (rpl_fseeko): Likewise.
85796 2007-10-03  Bruno Haible  <bruno@clisp.org>
85797             Jim Meyering  <jim@meyering.net>
85798             Eric Blake  <ebb9@byu.net>
85800         * doc/relocatable.texi: Use @command instead of @program.
85802 2007-10-02  Jim Meyering  <jim@meyering.net>
85804         Perform one more "_.h" -> ".in.h" substitution.
85805         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85806         instead of unistd_.h here, too.
85808 2007-10-01  Bruno Haible  <bruno@clisp.org>
85810         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85811         Needed for the alloca-opt module.
85813 2007-09-30  Bruno Haible  <bruno@clisp.org>
85815         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85816         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85817         alloca_.h.
85818         * lib/argz.in.h: Renamed from lib/argz_.h.
85819         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85820         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85821         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85822         byteswap_.h.
85823         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85824         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85825         dirent_.h.
85826         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85827         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85828         fcntl_.h.
85829         * lib/float.in.h: Renamed from lib/float_.h.
85830         * modules/float (Files, Makefile.am): Use float.in.h instead of
85831         float_.h.
85832         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85833         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85834         fnmatch_.h.
85835         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85836         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85837         getopt_.h.
85838         * lib/glob.in.h: Renamed from lib/glob_.h.
85839         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85840         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85841         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85842         iconv_.h.
85843         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85844         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85845         inttypes_.h.
85846         * lib/locale.in.h: Renamed from lib/locale_.h.
85847         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85848         locale_.h.
85849         * lib/math.in.h: Renamed from lib/math_.h.
85850         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85851         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85852         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85853         of netinet_in_.h. Add dependency.
85854         * lib/poll.in.h: Renamed from lib/poll_.h.
85855         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85856         * lib/search.in.h: Renamed from lib/search_.h.
85857         * modules/search (Files, Makefile.am): Use search.in.h instead of
85858         search_.h.
85859         * lib/signal.in.h: Renamed from lib/signal_.h.
85860         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85861         _signal.h.
85862         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85863         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85864         stdbool_.h.
85865         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85866         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85867         stdint_.h.
85868         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85869         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85870         stdio_.h.
85871         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85872         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85873         stdlib_.h.
85874         * lib/string.in.h: Renamed from lib/string_.h.
85875         * modules/string (Files, Makefile.am): Use string.in.h instead of
85876         string_.h.
85877         * doc/gnulib-tool.texi (Initial import): Update.
85878         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85879         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85880         of sys_select_.h. Add dependency.
85881         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85882         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85883         of sys_socket_.h.
85884         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85885         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85886         sys_stat_.h.
85887         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85888         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85889         sys_time_.h.
85890         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85891         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85892         sysexits_.h.
85893         * lib/time.in.h: Renamed from lib/time_.h.
85894         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85895         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85896         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85897         unistd_.h.
85898         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85899         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85900         wchar_.h.
85901         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85902         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85903         wctype_.h.
85904         * build-aux/bootstrap (slurp): Update.
85905         * lib/.cppi-disable: Update.
85907 2007-09-30  Bruno Haible  <bruno@clisp.org>
85909         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85910         Needed on BeOS.
85912 2007-09-30  Bruno Haible  <bruno@clisp.org>
85914         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85916 2007-09-29  Bruno Haible  <bruno@clisp.org>
85918         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85920 2007-09-29  Bruno Haible  <bruno@clisp.org>
85922         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85923         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85924         * build-aux/install-reloc: Compile also areadlink.c.
85925         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85927 2007-09-29  Bruno Haible  <bruno@clisp.org>
85929         * gnulib-tool (func_emit_initmacro_done): Indentation.
85931 2007-09-29  Bruno Haible  <bruno@clisp.org>
85933         * README: Add CVS checkout update instructions.
85934         Info from Bob Proulx <bob@proulx.com>.
85936 2007-09-28  Eric Blake  <ebb9@byu.net>
85938         Provide move-if-change.
85939         * build-aux/move-if-change: New file, based on best practice
85940         rather than any canonical upstream location.
85942 2007-09-28  Jim Meyering  <jim@meyering.net>
85944         Fix canonicalize loop-detection corner case.
85945         Do not attempt to stat the symlink values stored via seen_triple.
85946         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85947         on linux-2.6.18, (but not 2.6.22).
85948         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85949         triple_compare.  The former compares dev,ino,filename, while the latter
85950         would actually stat dirname(filename) when dev and ino were equal.
85951         * lib/hash-triple.c: Install <string.h>.
85952         (STREQ): Define.
85953         (triple_compare_ino_str): New function.
85954         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85956 2007-09-28  Eric Blake  <ebb9@byu.net>
85958         Enforce that AC_REPLACE_FUNCS files exist.
85959         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85960         override check for typos.
85962         Fix test-closein on Solaris 10.
85963         * tests/test-closein.c (main): Don't assume stdin can be inherited
85964         closed on all systems.
85965         * tests/test-closein.sh: Likewise.
85966         Reported by Piotr Tarnowski.
85968 2007-09-28  Jim Meyering  <jim@meyering.net>
85970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85972 2007-09-27  Jim Meyering  <jim@meyering.net>
85974         canonicalize: Avoid a false-positive cycle failure.
85975         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85976         Sort.  Remove cycle-check.
85977         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85978         not cycle-check.h.
85979         (seen_triple): New function.
85980         (canonicalize_filename_mode): Use it instead of cycle-check.
85981         * tests/test-canonicalize.c: Add a test for this bug.
85982         * tests/test-canonicalize.sh: Set up and run the test.
85984         New module, file-set, from coreutils.
85985         * modules/file-set: Define it.
85986         * lib/file-set.c, lib/file-set.h: Implement.
85988         New module, hash-triple, from coreutils.
85989         * modules/hash-triple: Define it.
85990         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85992 2007-09-25  Eric Blake  <ebb9@byu.net>
85994         Fix strerror on Interix.
85995         * lib/string_.h (strerror): Declare replacement.
85996         * doc/functions/strerror.texi (strerror): Document the Interix
85997         shortcoming.
85998         * modules/string (Makefile.am): Support new hooks.
85999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
86000         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
86001         gl_FUNC_STRERROR_SEPARATE.
86002         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
86003         * lib/strerror.c (rpl_strerror): Provide replacement.
86004         * modules/strerror (Depends-on): Add string.
86005         (configure.ac): Detect use of module.
86006         * tests/test-strerror.c: New file.
86007         * modules/strerror-tests: New test module.
86008         * modules/argp (Depends-on): Add strerror.
86009         * modules/error (Depends-on): Likewise.
86010         Reported by Martin Koeppe.
86012 2007-09-24  Bruno Haible  <bruno@clisp.org>
86014         * README: Update git instructions.
86016 2007-09-24  Eric Blake  <ebb9@byu.net>
86018         Revert fpending breakage from 2007-09-08.
86019         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
86020         __fpending.c.
86022 2007-09-24  Jim Meyering  <jim@meyering.net>
86024         filenamecat.c: Add a test.
86025         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
86026         showing how the function works when DIR is the empty string.
86028 2007-09-21  Simon Josefsson  <simon@josefsson.org>
86030         * tests/test-canonicalize.sh: Turn on executable bit.
86032 2007-09-19  Eric Blake  <ebb9@byu.net>
86034         * README: Update CVS instructions.
86036 2007-09-18  Bruno Haible  <bruno@clisp.org>
86038         * modules/areadlink: New file.
86039         * lib/areadlink.h (areadlink): New declaration.
86040         * lib/areadlink.c: New file, based on lib/xreadlink.c.
86042 2007-09-17  Jim Meyering  <jim@meyering.net>
86044         * lib/savewd.c (ESTALE) [!defined]: Define.
86045         Reported to be required on Interix by Martin Koeppe.
86047 2007-09-17  Bruno Haible  <bruno@clisp.org>
86049         * gnulib-tool (func_version): Use $version.
86051 2007-09-16  Bruno Haible  <bruno@clisp.org>
86053         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
86054         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
86055         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
86056         Reported by Greg Schafer <gschafer@zip.com.au>.
86058 2007-09-15  Bruno Haible  <bruno@clisp.org>
86060         * gnulib-tool (sed): Try a little harder to make bash understand the
86061         alias.
86062         Reported by Bruce Korb <bruce.korb@gmail.com>.
86064 2007-09-13  Eric Blake  <ebb9@byu.net>
86066         * ChangeLog: Remove conflict markers.
86068 2007-09-13  Simon Josefsson  <simon@josefsson.org>
86070         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
86071         Reported by Bruno Haible <bruno@clisp.org>.
86073 2007-09-12  Bruno Haible  <bruno@clisp.org>
86075         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
86076         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
86077         is not defined.
86079 2007-09-12  Eric Blake  <ebb9@byu.net>
86081         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
86082         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
86083         Autoconf definition.
86084         * modules/euidaccess (Depends-on): Add extensions, for
86085         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
86086         * modules/fnmatch (Depends-on): Likewise.
86087         * modules/getaddrinfo (Depends-on): Likewise.
86088         * modules/getdelim (Depends-on): Likewise.
86089         * modules/getline (Depends-on): Likewise.
86090         * modules/getsubopt (Depends-on): Likewise.
86091         * modules/gettext (Depends-on): Likewise.
86092         * modules/group-member (Depends-on): Likewise.
86093         * modules/mbchar (Depends-on): Likewise.
86094         * modules/memmem (Depends-on): Likewise.
86095         * modules/mempcpy (Depends-on): Likewise.
86096         * modules/memrchr (Depends-on): Likewise.
86097         * modules/pagealign_alloc (Depends-on): Likewise.
86098         * modules/readutmp (Depends-on): Likewise.
86099         * modules/stpcpy (Depends-on): Likewise.
86100         * modules/stpncpy (Depends-on): Likewise.
86101         * modules/strchrnul (Depends-on): Likewise.
86102         * modules/strndup (Depends-on): Likewise.
86103         * modules/strsep (Depends-on): Likewise.
86104         * modules/strverscmp (Depends-on): Likewise.
86105         * modules/vasprintf (Depends-on): Likewise.
86106         * modules/wcwidth (Depends-on): Likewise.
86107         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
86108         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
86109         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
86110         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
86111         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
86112         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86113         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
86114         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
86115         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
86116         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
86117         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
86118         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
86119         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
86120         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
86121         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
86122         * m4/readutmp.m4 (gl_READUTMP): Likewise.
86123         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
86124         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
86125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86126         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
86127         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
86128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
86129         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
86130         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
86131         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
86132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
86133         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
86134         so that lock.m4 can be used in gettext without extensions module.
86136 2007-09-11  Bruno Haible  <bruno@clisp.org>
86138         * m4/isc-posix.m4: Remove file.
86139         Suggested by Eric Blake.
86141 2007-09-11  Eric Blake  <ebb9@byu.net>
86143         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
86145 2007-09-10  Bruno Haible  <bruno@clisp.org>
86147         * posix-modules: Fix typo in error message.
86148         Reported by Matt <mkraai@beckman.com>.
86150 2007-09-09  Bruno Haible  <bruno@clisp.org>
86152         * doc/functions/getdelim.texi: Update list of platforms lacking the
86153         function.
86154         * doc/functions/getline.texi: Likewise.
86156 2007-09-09  Jim Meyering  <jim@meyering.net>
86158         * lib/hash.c (hash_initialize): Detect calloc failure.
86159         Reported by Bruno Haible.
86161 2007-09-09  Bruno Haible  <bruno@clisp.org>
86163         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
86164         malloc or realloc fails.
86166 2007-09-09  Bruno Haible  <bruno@clisp.org>
86168         * modules/getcwd (Depends-on): Add malloc-posix.
86169         * modules/glob (Depends-on): Likewise.
86170         * modules/putenv (Depends-on): Likewise.
86171         * modules/strdup (Depends-on): Likewise.
86172         * modules/getdelim (Depends-on): Add realloc-posix.
86173         * modules/read-file (Depends-on): Likewise.
86175 2007-09-09  Bruno Haible  <bruno@clisp.org>
86177         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
86178         (gl_FUNC_MALLOC_POSIX): Require it.
86179         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
86180         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
86181         * modules/realloc (Files): Add m4/malloc.m4.
86182         * modules/calloc (Files): Likewise.
86184 2007-09-09  Bruno Haible  <bruno@clisp.org>
86186         * modules/malloc-posix: New file.
86187         * modules/malloc (Depends-on): Add malloc-posix.
86188         * lib/malloc.c: Include errno.h.
86189         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
86190         and a POSIX-compatible malloc into a single function. Set ENOMEM
86191         when returning NULL.
86192         * m4/malloc.m4: New file.
86193         * doc/functions/malloc.texi: Mention the malloc-posix module.
86194         * lib/stdlib_.h (malloc): New declaration.
86195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86196         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
86197         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
86198         and HAVE_MALLOC_POSIX.
86200 2007-09-09  Bruno Haible  <bruno@clisp.org>
86202         * modules/realloc-posix: New file.
86203         * modules/realloc (Depends-on): Add realloc-posix.
86204         * lib/realloc.c: Include errno.h.
86205         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
86206         and a POSIX-compatible realloc into a single function. Set ENOMEM
86207         when returning NULL.
86208         * m4/realloc.m4: New file.
86209         * doc/functions/realloc.texi: Mention the realloc-posix module.
86210         * lib/stdlib_.h (realloc): New declaration.
86211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86212         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
86213         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
86214         and HAVE_REALLOC_POSIX.
86216 2007-09-09  Bruno Haible  <bruno@clisp.org>
86218         * modules/calloc-posix: New file.
86219         * modules/calloc (Depends-on): Add calloc-posix.
86220         * lib/calloc.c: Include errno.h.
86221         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
86222         and a POSIX-compatible calloc into a single function. Set ENOMEM
86223         when returning NULL.
86224         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
86225         * doc/functions/calloc.texi: Mention the calloc-posix module.
86226         * lib/stdlib_.h (calloc): New declaration.
86227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86228         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
86229         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
86230         and HAVE_CALLOC_POSIX.
86232 2007-09-09  Bruno Haible  <bruno@clisp.org>
86234         Allow for modules to show an arbitrary notice.
86235         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
86236         * gnulib-tool: New option --extract-notice.
86237         (func_usage): Document it.
86238         (sed_extract_prog): Update.
86239         (func_get_notice): New function.
86240         (func_modules_notice): New function.
86241         (func_import, func_create_testdir): Invoke it.
86242         Suggested by Jim Meyering.
86244 2007-09-09  Bruno Haible  <bruno@clisp.org>
86246         * gnulib-tool: New options --verbose, --quiet.
86247         (func_usage): Document them.
86248         (verbose): New variable.
86249         (func_execute_command): New function.
86250         (func_import): Don't show the module list and the file list if
86251         $verbose < 0.
86252         (func_create_testdir): Likewise. Use func_execute_command.
86253         (func_create_megatestdir): Use func_execute_command.
86255 2007-09-08  Bruno Haible  <bruno@clisp.org>
86257         * gnulib-tool (func_import): Prefer rsync over wget when available,
86258         for fetching the PO files.
86260 2007-09-08  Bruno Haible  <bruno@clisp.org>
86262         * posix-modules: New file. Portions copied from gnulib-tool.
86263         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
86265 2007-09-08  Jim Meyering  <jim@meyering.net>
86267         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
86268         * lib/fpending.h: Rename from __fpending.h.
86269         * lib/fpending.c: Rename from __fpending.c.
86270         Include "fpending.h", not "__fpending.h".
86271         * lib/__fpending.h, lib/__fpending.c: Remove files.
86272         * modules/fpending (Files): Reflect new file names.
86273         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
86275 2007-09-08  Bruno Haible  <bruno@clisp.org>
86277         * m4/inttypes-h.m4: Remove stub file.
86279 2007-09-07  Simon Josefsson  <simon@josefsson.org>
86281         * doc/headers/stdint.texi: Discuss #include_next issue.
86283 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86285         * build-aux/bootstrap: Remove obsolete comment about wget --help.
86287 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86289         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
86290         in variable name.
86292 2007-09-03  Jim Meyering  <jim@meyering.net>
86294         New module: git-version-gen.
86295         * modules/git-version-gen: New file.
86297         Import changes from coreutils for bootstrap script.
86299         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
86301         bootstrap: uses rsync to download the .po files
86302         * build-aux/bootstrap (po_download_command_format): New global.
86303         (download_po_files): Use rsync.
86304         (update_po_files): Don't remove .po files after download,
86305         so future rsync runs can take advantage of the copies.
86307         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
86309         Solve the unnecessary-.po-file-regeneration problem once and for all.
86310         * build-aux/bootstrap (download_po_files): New function, renamed from
86311         get_translations.  Now, downloads, but doesn't update LINGUAS.
86312         (update_po_files): New function.
86314         bootstrap: Ignore more.
86315         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
86316         uniwidth to e.g., lib/.gitignore.
86317         (slurp): Handle the sys_stat_.h -> sys mapping, too.
86319         * build-aux/bootstrap: New setting: vc_ignore.
86320         (insert_sorted_if_absent): Create $file if absent.
86321         Adapt to new, possibly empty, list: $vc_ignore.
86323         bootstrap: generate more ignorable names
86324         * build-aux/bootstrap (slurp): When generating ignorable names,
86325         also map .sin to .sed, .gperf to .c, and .y to .c.
86327 2007-09-03  Jim Meyering  <jim@meyering.net>
86329         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86330         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86332 2007-09-02  Bruno Haible  <bruno@clisp.org>
86334         Fix mis-recognition of 'mcs' on QNX 6.
86335         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86336         output contains the string "Mono".
86337         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86338         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86340 2007-09-01  Bruno Haible  <bruno@clisp.org>
86342         Fix collision between uniwidth/* and linebreak modules.
86343         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86344         u32_width): Remove declarations.
86345         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86346         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86347         streq3, streq2, streq1, streq0): Remove functions.
86348         (STREQ): Remove macro.
86349         (is_cjk_encoding): Remove function.
86350         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86351         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86352         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86353         * NEWS: Document the change.
86355 2007-09-01  Bruno Haible  <bruno@clisp.org>
86357         * lib/streq.h: Add double-inclusion guard.
86359 2007-09-01  Karl Berry  <karl@gnu.org>
86361         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86363 2007-08-28  Jim Meyering  <jim@meyering.net>
86365         Rename mreadlink_with_size to areadlink_with_size.
86366         * NEWS: Document the change.
86367         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86368         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86369         * lib/mreadlink.h: Rename this to...
86370         * lib/areadlink.h: ...this.
86371         * modules/mreadlink-with-size: Rename this to...
86372         * modules/areadlink-with-size: ...this.
86373         * lib/canonicalize.c: Reflect the renaming.
86374         * modules/canonicalize: Likewise.
86376 2007-08-26  Bruno Haible  <bruno@clisp.org>
86378         * gnulib-tool (func_import): When deciding which files to remove,
86379         consider also dangling symbolic links.
86380         Reported by Eric Blake.
86382 2007-08-26  Bruno Haible  <bruno@clisp.org>
86384         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86386 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86388         * lib/readline.c: Don't include getline.h, the prototype is now
86389         found in stdio.h.
86391 2007-08-23  Jim Meyering  <jim@meyering.net>
86393         Getdelim touchup.
86394         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86395         around the funlockfile call, since funlockfile never sets errno.
86396         Don't set errno upon failed realloc.
86398 2007-08-22  Eric Blake  <ebb9@byu.net>
86400         Getline touchups.
86401         * lib/getdelim.c (getdelim): Revert regression that required *n to
86402         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86403         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86404         getdelim, rather than whether implementation is missing.
86405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86406         * lib/stdio_.h (getline): Also declare if replacement is
86407         required.
86408         * doc/functions/getdelim.texi: New file.
86409         * doc/functions/getline.texi: Likewise.
86410         * doc/gnulib.texi (Function Substitutes): Add new files.
86411         Reported by Bruno Haible.
86413 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86415         * users.txt: Add Guile.
86417 2007-08-22  Eric Blake  <ebb9@byu.net>
86419         * tests/test-getdelim.c (main): Use remove, not unlink.
86420         * tests/test-getline.c (main): Likewise.
86422         Move getline and getdelim into stdio.h, per POSIX 200x.
86423         * modules/getline (Files): Remove getline.h.
86424         (Depends-on): Add stdio.
86425         (configure.ac): Add module indicator.
86426         * modules/getdelim (Files): Remove getdelim.h.
86427         (Depends-on): Add stdio.
86428         (configure.ac): Add module indicator.
86429         * modules/stdio (Makefile.am): Work with new indicators.
86430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86432         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86433         * lib/getdelim.h: Delete.
86434         * lib/getline.h: Delete.
86435         * lib/stdio_.h (getdelim, getline): Declare.
86436         * modules/getdelim-tests: New module.
86437         * modules/getline-tests: Likewise.
86438         * tests/test-getdelim.c: New file.
86439         * tests/test-getline.c: Likewise.
86440         * NEWS: Document the change.
86441         * lib/getline.c: Update choice of header.
86442         * lib/csharpcomp.c: Likewise.
86443         * lib/getpass.c: Likewise.
86444         * lib/javacomp.c: Likewise.
86445         * lib/javaversion.c: Likewise.
86446         * lib/yesno.c: Likewise.
86447         * lib/getdelim.c: Likewise.
86448         (getdelim): Set errno on failure, and avoid memory leak.
86450 2007-08-19  Bruno Haible  <bruno@clisp.org>
86452         * modules/closein (Depends-on): Add freadahead.
86453         * lib/closein.c: Include freadahead.h.
86454         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86455         is zero.
86457 2007-08-19  Bruno Haible  <bruno@clisp.org>
86459         * modules/freadahead-tests: New file.
86460         * tests/test-freadahead.sh: New file.
86461         * tests/test-freadahead.c: New file.
86463         * modules/freadahead: New file.
86464         * lib/freadahead.h: New file.
86465         * lib/freadahead.c: New file.
86466         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86467         fbufmode, fpurge, freadable, fwritable.
86469 2007-08-19  Eric Blake  <ebb9@byu.net>
86471         Test yesno in combination with closein.
86472         * lib/yesno.c (yesno): Document use of stdin.
86473         * modules/yesno-tests (Files): New module.
86474         * tests/test-yesno.c (main): New file.
86475         * tests/test-yesno.sh: Likewise.
86477 2007-08-19  Bruno Haible  <bruno@clisp.org>
86479         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86480         * lib/fseeko.c (rpl_fseeko): Likewise.
86481         * lib/fseterr.c (fseterr): Likewise.
86483 2007-08-19  Bruno Haible  <bruno@clisp.org>
86485         * tests/test-lseek.c (main): Disable a test for BeOS.
86486         * doc/functions/lseek.texi: Document the BeOS bug.
86488 2007-08-19  Bruno Haible  <bruno@clisp.org>
86489             Eric Blake  <ebb9@byu.net>
86491         * lib/lseek.c: Include <sys/stat.h>.
86492         (rpl_lseek): Add workaround code also for Unix platforms.
86493         Needed for BeOS.
86494         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86495         * doc/functions/lseek.texi: Document BeOS definiency.
86497 2007-08-18  Bruno Haible  <bruno@clisp.org>
86499         * modules/fstrcmp-tests: New file.
86500         * tests/test-fstrcmp.c: New file.
86502 2007-08-18  Bruno Haible  <bruno@clisp.org>
86504         * modules/fstrcmp: New file, from GNU gettext with modifications.
86505         * lib/fstrcmp.h: New file, from GNU gettext.
86506         * lib/fstrcmp.c: New file, from GNU gettext.
86507         * MODULES.html.sh (String handling): Add fstrcmp.
86509 2007-08-18  Bruno Haible  <bruno@clisp.org>
86511         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86512         'bool'.
86513         (diag, compareseq): Remove const from the ctxt argument.
86514         (USE_HEURISTIC): Undefine at the end.
86516 2007-08-18  Jim Meyering  <jim@meyering.net>
86518         New file: lib/idcache.h
86519         * NEWS: Mention the addition.
86520         * modules/idcache (Files): Add lib/idcache.h
86521         * lib/idcache.c: Include "idcache.h".
86522         Don't include <sys/types.h>.
86523         Add a FIXME comment.
86524         Move file-scoped "static" declarations to the top.
86525         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86527 2007-08-17  Bruno Haible  <bruno@clisp.org>
86528         and Paul Eggert  <eggert@cs.ucla.edu>
86530         * MODULES.html.sh: Add diffseq.
86531         * modules/diffseq: New file.
86532         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86533         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86535 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86537         Import changes from coreutils for bootstrap script.
86539         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86541         * build-aux/bootstrap (slurp): Work even in environments where
86542         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86543         current code does not slurp files whose names start with ".", and
86544         this looks like it might be a troublesome area.
86546         2007-07-11  Jim Meyering  <jim@meyering.net>
86548         If there's a GPL vN copyright comment, require that N == 3.
86550         2007-07-08  Jim Meyering  <jim@meyering.net>
86552         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86553         * build-aux/bootstrap (mam_template): Move definition out of loop.
86555         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86557         * build-aux/bootstrap (symlink_to_dir): Rename function from
86558         symlink_to_gnulib.  Add a directory parameter.  Update all
86559         callers.
86560         (cp_mark_as_generated): Also check for -- and link to -- files in
86561         gl/.
86563         2007-07-08  Jim Meyering  <jim@meyering.net>
86565         Adapt to deeper hierarchy in gnulib.
86566         * build-aux/bootstrap (symlink_to_dir): If the destination
86567         directory doesn't exist, create it. This is required at least for
86568         "lib/uniwidth/cjk.h".
86570         2007-05-15  Jim Meyering  <jim@meyering.net>
86572         * build-aux/bootstrap: Now that generated Makefile.am files
86573         are no longer under version control, they must be created at
86574         bootstrap time.
86576 2007-08-14  Ben Pfaff  <blp@gnu.org>
86578         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86580 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86582         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86583         given the changes below.
86584         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86585         even on hosts that have padding bits beyond the supported 64.
86587 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86589         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86590         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86591         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86592         depends on it.
86593         (xstrtol_error): Remove.
86594         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86595         but with a different signature.
86596         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86597         * lib/xstrtol-error.c: Include exitfail.h.
86598         (xstrtol_fatal): New function, with a different signature from the
86599         old xstrtol_error, so that the caller need not worry about passing
86600         in an exit status, or about storage management of the option argument.
86601         (xstrtol_error): Now a static function.  Redo signature to
86602         implement xstrtol_fatal.  Output the correct number of hyphens in
86603         front of the option so that the caller need not worry about
86604         storage management.
86605         (N_): New macro.
86606         (_): Remove; not used now.
86607         * modules/xstrtol: Depend on getopt.
86608         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86609         of old STRTOL_FATAL_ERROR macro.
86610         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86611         of test program.
86612         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86613         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86615 2007-08-08  Eric Blake  <ebb9@byu.net>
86617         * lib/xstrtol-error.c: Add missing include.
86619         Move xstrtol messages into gnulib domain, when --pobase is used.
86620         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86621         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86622         * modules/xstrtol (Files): Distribute new file.
86623         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86624         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86625         * tests/test-xstrtol.c: ...into new file.
86626         * tests/test-xstrtoul.c: Also test xstrtoul.
86627         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86628         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86629         * tests/test-xstrtol.sh: Drive the tests.
86630         * tests/test-xstrtoimax.sh: Likewise.
86631         * tests/test-xstrtoumax.sh: Likewise.
86632         * modules/xstrtol-tests: New module.
86633         * modules/xstrtoimax-tests: Likewise.
86634         * modules/xstrtoumax-tests: Likewise.
86636 2007-08-08  Jim Meyering  <jim@meyering.net>
86638         New function: mfile_name_concat.
86639         * lib/filenamecat.c (mfile_name_concat): New function, just like
86640         file_name_concat, but return NULL upon failure rather than exiting
86641         with a diagnostic.
86642         * lib/filenamecat.h: Declare it.
86644 2007-08-07  Bruno Haible  <bruno@clisp.org>
86646         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86647         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86648         warning from gcc.
86649         Reported by Eric Blake.
86651 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86653         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86654         * modules/crypto/arcfour (License): Likewise.
86655         * modules/crypto/des-tests (License): Likewise.
86656         * modules/crypto/gc-arctwo-tests (License): Likewise.
86657         * modules/crypto/gc-des-tests (License): Likewise.
86658         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86659         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86660         * modules/crypto/gc-md2-tests (License): Likewise.
86661         * modules/crypto/gc-md4-tests (License): Likewise.
86662         * modules/crypto/gc-md5-tests (License): Likewise.
86663         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86664         * modules/crypto/gc-rijndael-tests (License): Likewise.
86665         * modules/crypto/gc-sha1-tests (License): Likewise.
86666         * modules/crypto/gc-tests (License): Likewise.
86667         * modules/crypto/hmac-md5 (License): Likewise.
86668         * modules/crypto/hmac-sha1 (License): Likewise.
86669         * modules/crypto/md2-tests (License): Likewise.
86670         * modules/crypto/md4-tests (License): Likewise.
86671         * modules/crypto/md5 (License): Likewise.
86672         * modules/crypto/rijndael (License): Likewise.
86673         * modules/crypto/sha1 (License): Likewise.
86674         * modules/memxor (License): Likewise.
86676 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86677         and Bruno Haible  <bruno@clisp.org>
86679         * NEWS: Describe interface changes to human, xstrtol.
86680         * lib/human.h: Include <xstrtol.h>.
86681         (human_options): Return enum strtol_error, not int.  Remove
86682         bool arg; take int * instead.
86683         * lib/human.c: Don't include "gettext.h".
86684         (_): Remove; no longer used.
86685         Don't include <xstrtol.h>, since human.h does it.
86686         (human_options): Adjust to abovementioned interface changes.
86687         Do not report error to stderr; that's now the caller's
86688         responsibility.
86689         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86690         interface change.
86691         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86692         Str, Argument_type_string.  All uses changed.  Put " argument"
86693         in diagnostics to make them clearer.  Change wording of suffix
86694         message for clarity.
86695         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86696         Argument_type_string.
86697         (STRTOL_FATAL_WARN): Remove; no longer used.
86698         * modules/human (Depends-on): Remove gettext-h.
86700 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86702         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86704 2007-07-31  Bruno Haible  <bruno@clisp.org>
86706         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86707         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86708         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86710 2007-07-31  Bruno Haible  <bruno@clisp.org>
86712         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86713         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86715 2007-07-30  Bruno Haible  <bruno@clisp.org>
86717         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86718         * modules/c-ctype (License): Likewise.
86719         * modules/c-strcase (License): Likewise.
86720         * modules/check-version (License): Likewise.
86721         * modules/iconv (License): Likewise.
86722         * modules/iconv_open (License): Likewise.
86723         * modules/read-file (License): Likewise.
86724         * modules/striconv (License): Likewise.
86725         * modules/strverscmp (License): Likewise.
86726         * modules/vasprintf (License): Likewise.
86727         * modules/crypto/des (License): Likewise.
86728         * modules/crypto/gc (License): Likewise.
86729         * modules/crypto/gc-arcfour (License): Likewise.
86730         * modules/crypto/gc-arctwo (License): Likewise.
86731         * modules/crypto/gc-des (License): Likewise.
86732         * modules/crypto/gc-hmac-md5 (License): Likewise.
86733         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86734         * modules/crypto/gc-md2 (License): Likewise.
86735         * modules/crypto/gc-md4 (License): Likewise.
86736         * modules/crypto/gc-md5 (License): Likewise.
86737         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86738         * modules/crypto/gc-random (License): Likewise.
86739         * modules/crypto/gc-rijndael (License): Likewise.
86740         * modules/crypto/gc-sha1 (License): Likewise.
86741         * modules/crypto/md2 (License): Likewise.
86742         * modules/crypto/md4 (License): Likewise.
86744 2007-07-30  Jim Meyering  <jim@meyering.net>
86746         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86747         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86748         it has valid stat data.  This bug would cause du not to count the
86749         sizes of inaccessible directories.
86750         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86751         in <http://bugzilla.redhat.com/250077>.
86753 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86754             Bruno Haible  <bruno@clisp.org>
86756         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86757         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86758         #include_next, gives a diagnostic about it, but reports no error in
86759         the exit code.
86760         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86762 2007-07-24  Ben Pfaff  <blp@gnu.org>
86764         Improve name: "count-one-bits" is better than "popcount".
86765         * MODULES.html.sh: Update name.
86766         * lib/popcount.h: Renamed lib/count-one-bits.h.
86767         (popcount): Renamed count_one_bits.
86768         (popcountl): Renamed count_one_bits_l.
86769         (popcountll): Renamed count_one_bits_ll.
86770         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86771         * modules/popcount: Renamed module/count-one-bits.
86772         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86773         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86775 2007-07-23  Ben Pfaff  <blp@gnu.org>
86777         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86778         better code generation, and add U to large constants to avoid
86779         warnings, in non-GCC case.
86780         Suggested by Bruno Haible.
86782 2007-07-23  Ben Pfaff  <blp@gnu.org>
86784         * lib/popcount.h: Use verify_true instead of if...abort.
86785         * modules/popcount: Depend on verify module.
86786         Suggested by Jim Meyering.
86788 2007-07-23  Bruno Haible  <bruno@clisp.org>
86790         * gnulib-tool (func_import): Create a .cvsignore file also when the
86791         directory is not yet in CVS but the toplevel directory is. When
86792         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86793         Reported by Karl Berry.
86795 2007-07-22  Ben Pfaff  <blp@gnu.org>
86797         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86798         case.
86799         Suggested by Eric Blake.
86801 2007-07-22  Ben Pfaff  <blp@gnu.org>
86803         New module: popcount.
86804         * MODULES.html.sh: Add popcount.
86805         * modules/popcount: New file.
86806         * modules/popcount-tests: New file.
86807         * tests/test-popcount.c: New file.
86808         * lib/popcount.h: New file.
86809         * m4/popcount.m4: New file.
86811 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86813         * build-aux/announce-gen: Update to GPLv3.
86815         * build-aux/config.guess: Update from config.
86817 2007-07-21  Bruno Haible  <bruno@clisp.org>
86819         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86820         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86822 2007-07-20  Jim Meyering  <jim@meyering.net>
86824         * check-module: Diagnose a self-dependency.
86826 2007-07-19  Bruno Haible  <bruno@clisp.org>
86828         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86829         empty.
86830         Reported by Eric Blake.
86832 2007-07-18  Bruno Haible  <bruno@clisp.org>
86834         * gnulib-tool: New options --po-base, --po-domain.
86835         (func_usage): Document them.
86836         (pobase, po_domain): New variables.
86837         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86838         DEFAULT_TEXT_DOMAIN.
86839         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86840         (func_import): Consider pobase and po_domain. Create a po/ directory.
86841         (func_create_testdir): Set pobase and po_domain to empty.
86842         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86843         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86845 2007-07-18  Bruno Haible  <bruno@clisp.org>
86847         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86848         EXTRA_DIST augmentation for files in build-aux/.
86850 2007-07-16  Bruno Haible  <bruno@clisp.org>
86852         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86853         * modules/getdelim (License): Likewise.
86855 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86857         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86858         * modules/d-type (License): Likewise.
86859         * modules/extensions (License): Likewise.
86860         * modules/fnmatch (License): Likewise.
86861         * modules/fseeko (License): Likewise.
86862         * modules/getaddrinfo (License): Likewise.
86863         * modules/getline (License): Likewise.
86864         * modules/getlogin_r (License): Likewise.
86865         * modules/getpass (License): Likewise.
86866         * modules/gettimeofday (License): Likewise.
86867         * modules/glob (License): Likewise.
86868         * modules/inet_ntop (License): Likewise.
86869         * modules/malloc (License): Likewise.
86870         * modules/malloca (License): Likewise.
86871         * modules/memmem (License): Likewise.
86872         * modules/mempcpy (License): Likewise.
86873         * modules/memset (License): Likewise.
86874         * modules/minmax (License): Likewise.
86875         * modules/mktime (License): Likewise.
86876         * modules/netinet_in (License): Likewise.
86877         * modules/pathmax (License): Likewise.
86878         * modules/poll (License): Likewise.
86879         * modules/regex (License): Likewise.
86880         * modules/snprintf (License): Likewise.
86881         * modules/stdbool (License): Likewise.
86882         * modules/stdint (License): Likewise.
86883         * modules/stdio (License): Likewise.
86884         * modules/strcase (License): Likewise.
86885         * modules/strcasestr (License): Likewise.
86886         * modules/strdup (License): Likewise.
86887         * modules/string (License): Likewise.
86888         * modules/strndup (License): Likewise.
86889         * modules/strnlen (License): Likewise.
86890         * modules/strpbrk (License): Likewise.
86891         * modules/strptime (License): Likewise.
86892         * modules/strsep (License): Likewise.
86893         * modules/sys_select (License): Likewise.
86894         * modules/sys_socket (License): Likewise.
86895         * modules/sys_stat (License): Likewise.
86896         * modules/sys_time (License): Likewise.
86897         * modules/time (License): Likewise.
86898         * modules/time_r (License): Likewise.
86899         * modules/timegm (License): Likewise.
86900         * modules/unistd (License): Likewise.
86901         * modules/vsnprintf (License): Likewise.
86902         * modules/wctype (License): Likewise.
86904 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86906         * modules/argz (License): LGPLv2+.
86908 2007-07-15  Karl Berry  <karl@gnu.org>
86910         * doc/gnulib.texi: revise node structure per new fdl.texi.
86912 2007-07-14  Bruno Haible  <bruno@clisp.org>
86914         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86915         the output file.
86916         * lib/uniname/uninames.h: Regenerated.
86918 2007-07-14  Karl Berry  <karl@gnu.org>
86920         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86921         omitting sectioning and index commands.
86923 2007-07-13  Bruno Haible  <bruno@clisp.org>
86925         New gnulib-tool option --more-symlinks.
86926         * gnulib-tool (func_usage): Document --more-symlinks.
86927         (do_copyrights): New variable.
86928         Recognize option --more-symlinks.
86929         (func_import): Don't add a copyright notice transform to
86930         sed_transform_lib_file if do_copyrights is empty.
86932 2007-07-13  Bruno Haible  <bruno@clisp.org>
86934         * lib/vasnprintf.c (decimal_point_char): Define also if
86935         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86936         && !NEED_PRINTF_DIRECTIVE_A.
86937         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86938         Gary V. Vaughan <gary@gnu.org>.
86940 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86942         * lib/inttypes_.h: Undo previous change, since it was fixed
86943         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86945 2007-07-13  Bruno Haible  <bruno@clisp.org>
86947         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86948         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86950 2007-07-13  Jim Meyering  <jim@meyering.net>
86952         df: Don't fail for Tru64's "file-on-file mount".
86953         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86954         so we fall through and use statfs instead.  Details here:
86955         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86956         Reported by Albert Chin.
86958 2007-07-13  Bruno Haible  <bruno@clisp.org>
86960         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86961         * modules/configmake (License): Likewise.
86962         * modules/gettext (License): Likewise.
86963         * modules/gettext-h (License): Likewise.
86964         * modules/include_next (License): Likewise.
86965         * modules/link-warning (License): Likewise.
86966         * modules/localcharset (License): Likewise.
86967         * modules/localename (License): Likewise.
86968         * modules/lock (License): Likewise.
86969         * modules/relocatable-lib-lgpl (License): Likewise.
86970         * modules/size_max (License): Likewise.
86971         * modules/vasnprintf (License): Likewise.
86972         * modules/wchar (License): Likewise.
86973         * modules/xsize (License): Likewise.
86975 2007-07-13  Bruno Haible  <bruno@clisp.org>
86977         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86978         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86980 2007-07-12  Bruno Haible  <bruno@clisp.org>
86982         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86983         in the modules files.
86985 2007-07-11  Karl Berry  <karl@gnu.org>
86987         * MODULES.html.sh (func_module): use
86988          sed -e '\|^'"${includefile}"'$|d'
86989          instead of /.../d, to avoid errors on $includefile's containing /.
86991 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86993         * gnulib-tool (func_import): Avoid duplication of --avoid
86994         statements
86995         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86996         names to `_' in variable names.
86998 2007-07-10  Eric Blake  <ebb9@byu.net>
87000         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
87001         * NEWS: Document this change.
87003 2007-07-08  Bruno Haible  <bruno@clisp.org>
87005         Update to Unicode 5.0.
87006         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
87007         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
87008         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
87009         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
87010         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
87011         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
87012         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
87013         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
87014         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
87015         U+10A3F, U+1D242..U+1D244.
87016         (nonspacing_table_ind): Update.
87017         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
87018         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
87020 2007-07-08  Bruno Haible  <bruno@clisp.org>
87022         Update to Unicode 5.0.
87023         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
87024         code transform. Extend the name index field of unicode_name_to_code and
87025         unicode_code_to_name from 16 to 24 bits.
87026         * lib/uniname/uniname.c (unicode_character_name,
87027         unicode_name_character): Add the range 0x12xxx to the code transform.
87028         * lib/uniname/uninames.h: Regenerated.
87029         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
87031 2007-07-07  Bruno Haible  <bruno@clisp.org>
87033         * modules/wcwidth-tests: New file.
87034         * tests/test-wcwidth.c: New file.
87036         Work around MacOS X wcwidth() bug.
87037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
87038         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
87039         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
87040         original wcwidth in non-UTF-8 locales.
87041         * modules/wcwidth (Depends-on): Add localcharset, streq,
87042         uniwidth/width.
87043         * doc/functions/wcwidth.texi: Update.
87045 2007-07-07  Bruno Haible  <bruno@clisp.org>
87047         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
87048         (wcwidth): New declaration.
87049         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
87050         macros.
87051         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
87052         here. Prepare for creating <wchar.h> unconditionally.
87053         * modules/wchar (Depends-on): Add link-warning.
87054         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
87055         REPLACE_WCWIDTH, and GL_LINK_WARNING.
87056         * lib/wcwidth.h: Remove file.
87057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
87058         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
87059         * modules/wcwidth (Files): Remove lib/wcwidth.h.
87060         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
87061         (Include): Replace wcwidth.h with <wchar.h>.
87062         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
87063         * lib/mbchar.h: Don't include wcwidth.h.
87064         * lib/mbswidth.c: Likewise.
87065         * NEWS: Mention the change.
87067 2007-07-07  Bruno Haible  <bruno@clisp.org>
87069         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
87070         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
87071         definition with an external declaration.
87072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
87073         defined as a function. Remove AC_C_INLINE requirement.
87074         * modules/wcwidth (Files): Add lib/wcwidth.c.
87075         (Makefile.am): Remove redundant statement.
87077 2007-07-07  Bruno Haible  <bruno@clisp.org>
87079         * MODULES.html.sh (Unicode string functions): Add the new modules.
87081         * tests/uniwidth/test-u32-strwidth.c: New file.
87082         * modules/uniwidth/u32-strwidth-tests: New file.
87084         * lib/uniwidth/u32-strwidth.c: New file.
87085         * modules/uniwidth/u32-strwidth: New file.
87087         * tests/uniwidth/test-u16-strwidth.c: New file.
87088         * modules/uniwidth/u16-strwidth-tests: New file.
87090         * lib/uniwidth/u16-strwidth.c: New file.
87091         * modules/uniwidth/u16-strwidth: New file.
87093         * tests/uniwidth/test-u8-strwidth.c: New file.
87094         * modules/uniwidth/u8-strwidth-tests: New file.
87096         * lib/uniwidth/u8-strwidth.c: New file.
87097         * modules/uniwidth/u8-strwidth: New file.
87099         * tests/uniwidth/test-u32-width.c: New file.
87100         * modules/uniwidth/u32-width-tests: New file.
87102         * lib/uniwidth/u32-width.c: New file.
87103         * modules/uniwidth/u32-width: New file.
87105         * tests/uniwidth/test-u16-width.c: New file.
87106         * modules/uniwidth/u16-width-tests: New file.
87108         * lib/uniwidth/u16-width.c: New file.
87109         * modules/uniwidth/u16-width: New file.
87111         * tests/uniwidth/test-u8-width.c: New file.
87112         * modules/uniwidth/u8-width-tests: New file.
87114         * lib/uniwidth/u8-width.c: New file.
87115         * modules/uniwidth/u8-width: New file.
87117         * tests/uniwidth/test-uc_width.c: New file.
87118         * modules/uniwidth/width-tests: New file.
87120         * lib/uniwidth/width.c: New file, from GNU libiconv.
87121         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
87122         * modules/uniwidth/width: New file.
87124         * lib/uniwidth.h: New file, from GNU libiconv.
87125         * modules/uniwidth/base: New file.
87127 2007-07-07  Bruno Haible  <bruno@clisp.org>
87129         * lib/uniname.h: New file, from GNU gettext.
87130         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
87131         * lib/uniname/uninames.h: New file, from GNU gettext.
87132         * lib/uniname/uniname.c: New file, from GNU gettext.
87133         * tests/uniname/test-uninames.sh: New file.
87134         * tests/uniname/test-uninames.c: New file, from GNU gettext.
87135         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
87136         * modules/uniname/base: New file.
87137         * modules/uniname/uniname: New file.
87138         * modules/uniname/uniname-tests: New file.
87139         * MODULES.html.sh (Unicode string functions): Add the new modules.
87141 2007-07-06  Bruno Haible  <bruno@clisp.org>
87143         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
87145 2007-07-06  Bruno Haible  <bruno@clisp.org>
87147         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
87148         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
87149         includes <cygwin/sys_time.h> which includes <sys/select.h> which
87150         include <sys/time.h>.
87151         Reported by Eric Blake.
87153 2007-07-06  Eric Blake  <ebb9@byu.net>
87155         Fix testing canonicalize on cygwin.
87156         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87157         Revert patch from 2007-06-19.
87158         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
87159         canonicalize module is also in use.
87160         * tests/test-canonicalize.c: New file.
87161         * tests/test-canonicalize.sh: Likewise.
87162         * modules/canonicalize-tests: Likewise.
87164 2007-07-06  Jim Meyering  <jim@meyering.net>
87166         * lib/getugroups.c (getugroups): Detect getgrent failure.
87167         Adjust comment to reflect reality: this function may return -1.
87169 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
87171         * build-aux/bootstrap (TP_URL,get_translations): Update to use
87172         the new TP address.
87173         (usage): Fix typo
87174         (gnulib_mk): New variable.
87176 2007-07-05  Jim Meyering  <jim@meyering.net>
87178         Don't let endgrent clobber errno, no matter how improbable.
87179         * lib/getugroups.c (getugroups): Save and restore errno around
87180         endgrent call.
87182         Close the group DB even when failing with 2^31 or more members.
87183         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
87185 2007-07-04  Jim Meyering  <jim@meyering.net>
87187         * lib/getugroups.h: New file.
87188         * lib/getugroups.c: Include "getugroups.h".
87189         Remove uses of "register" keyword.
87190         Move local variable, "cp", down into scope where used.
87191         Give "username" parameter the "const" attribute.
87192         * modules/getugroups (Files): Add lib/getugroups.h
87194 2007-07-04  Karl Berry  <karl@gnu.org>
87196         * MODULES.html.sh (func_all_modules): Complete rename of
87197         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
87199 2007-07-02  Bruno Haible  <bruno@clisp.org>
87201         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
87202         mode, when inttypes.h comes from gnulib.
87203         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87205 2007-07-02  Simon Josefsson  <simon@josefsson.org>
87207         * NEWS: Mention lgpl module name change.
87209         * modules/lgpl-2.1: Renamed from lgpl.
87211         * NEWS: Mention gpl module name change.
87213         * modules/gpl-3.0: New file, based on gpl-2.0.
87215         * modules/gpl-2.0: Renamed from gpl.
87217         * modules/gpl: Fix filename, doc/gpl.texi is now found at
87218         doc/gpl-2.0.texi.
87220 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
87222         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
87223         #define __STDC_LIMIT_MACROS temporarily while including
87224         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
87225         Problem reported by Joel E. Denny in
87226         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
87228 2007-07-01  Bruno Haible  <bruno@clisp.org>
87230         * lib/unistdio.h: New file.
87231         * lib/unistdio/u-asnprintf.h: New file.
87232         * lib/unistdio/u-asprintf.h: New file.
87233         * lib/unistdio/u-printf-args.c: New file.
87234         * lib/unistdio/u-printf-args.h: New file.
87235         * lib/unistdio/u-printf-parse.h: New file.
87236         * lib/unistdio/u-snprintf.h: New file.
87237         * lib/unistdio/u-sprintf.h: New file.
87238         * lib/unistdio/u-vasprintf.h: New file.
87239         * lib/unistdio/u-vsnprintf.h: New file.
87240         * lib/unistdio/u-vsprintf.h: New file.
87241         * lib/unistdio/ulc-asnprintf.c: New file.
87242         * lib/unistdio/ulc-asprintf.c: New file.
87243         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
87244         * lib/unistdio/ulc-printf-parse.c: New file.
87245         * lib/unistdio/ulc-snprintf.c: New file.
87246         * lib/unistdio/ulc-sprintf.c: New file.
87247         * lib/unistdio/ulc-vasnprintf.c: New file.
87248         * lib/unistdio/ulc-vasprintf.c: New file.
87249         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
87250         * lib/unistdio/ulc-vsnprintf.c: New file.
87251         * lib/unistdio/ulc-vsprintf.c: New file.
87252         * lib/unistdio/u8-asnprintf.c: New file.
87253         * lib/unistdio/u8-asprintf.c: New file.
87254         * lib/unistdio/u8-printf-parse.c: New file.
87255         * lib/unistdio/u8-snprintf.c: New file.
87256         * lib/unistdio/u8-sprintf.c: New file.
87257         * lib/unistdio/u8-vasnprintf.c: New file.
87258         * lib/unistdio/u8-vasprintf.c: New file.
87259         * lib/unistdio/u8-vsnprintf.c: New file.
87260         * lib/unistdio/u8-vsprintf.c: New file.
87261         * lib/unistdio/u8-u8-asnprintf.c: New file.
87262         * lib/unistdio/u8-u8-asprintf.c: New file.
87263         * lib/unistdio/u8-u8-snprintf.c: New file.
87264         * lib/unistdio/u8-u8-sprintf.c: New file.
87265         * lib/unistdio/u8-u8-vasnprintf.c: New file.
87266         * lib/unistdio/u8-u8-vasprintf.c: New file.
87267         * lib/unistdio/u8-u8-vsnprintf.c: New file.
87268         * lib/unistdio/u8-u8-vsprintf.c: New file.
87269         * lib/unistdio/u16-asnprintf.c: New file.
87270         * lib/unistdio/u16-asprintf.c: New file.
87271         * lib/unistdio/u16-printf-parse.c: New file.
87272         * lib/unistdio/u16-snprintf.c: New file.
87273         * lib/unistdio/u16-sprintf.c: New file.
87274         * lib/unistdio/u16-vasnprintf.c: New file.
87275         * lib/unistdio/u16-vasprintf.c: New file.
87276         * lib/unistdio/u16-vsnprintf.c: New file.
87277         * lib/unistdio/u16-vsprintf.c: New file.
87278         * lib/unistdio/u16-u16-asnprintf.c: New file.
87279         * lib/unistdio/u16-u16-asprintf.c: New file.
87280         * lib/unistdio/u16-u16-snprintf.c: New file.
87281         * lib/unistdio/u16-u16-sprintf.c: New file.
87282         * lib/unistdio/u16-u16-vasnprintf.c: New file.
87283         * lib/unistdio/u16-u16-vasprintf.c: New file.
87284         * lib/unistdio/u16-u16-vsnprintf.c: New file.
87285         * lib/unistdio/u16-u16-vsprintf.c: New file.
87286         * lib/unistdio/u32-asnprintf.c: New file.
87287         * lib/unistdio/u32-asprintf.c: New file.
87288         * lib/unistdio/u32-printf-parse.c: New file.
87289         * lib/unistdio/u32-snprintf.c: New file.
87290         * lib/unistdio/u32-sprintf.c: New file.
87291         * lib/unistdio/u32-vasnprintf.c: New file.
87292         * lib/unistdio/u32-vasprintf.c: New file.
87293         * lib/unistdio/u32-vsnprintf.c: New file.
87294         * lib/unistdio/u32-vsprintf.c: New file.
87295         * lib/unistdio/u32-u32-asnprintf.c: New file.
87296         * lib/unistdio/u32-u32-asprintf.c: New file.
87297         * lib/unistdio/u32-u32-snprintf.c: New file.
87298         * lib/unistdio/u32-u32-sprintf.c: New file.
87299         * lib/unistdio/u32-u32-vasnprintf.c: New file.
87300         * lib/unistdio/u32-u32-vasprintf.c: New file.
87301         * lib/unistdio/u32-u32-vsnprintf.c: New file.
87302         * lib/unistdio/u32-u32-vsprintf.c: New file.
87303         * tests/unistdio/test-ulc-asnprintf1.c: New file.
87304         * tests/unistdio/test-ulc-asnprintf1.h: New file.
87305         * tests/unistdio/test-ulc-printf1.h: New file.
87306         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
87307         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
87308         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
87309         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
87310         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
87311         * tests/unistdio/test-ulc-vasprintf1.c: New file.
87312         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
87313         * tests/unistdio/test-ulc-vsprintf1.c: New file.
87314         * tests/unistdio/test-u8-asnprintf1.c: New file.
87315         * tests/unistdio/test-u8-asnprintf1.h: New file.
87316         * tests/unistdio/test-u8-printf1.h: New file.
87317         * tests/unistdio/test-u8-vasnprintf1.c: New file.
87318         * tests/unistdio/test-u8-vasnprintf2.c: New file.
87319         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
87320         * tests/unistdio/test-u8-vasnprintf3.c: New file.
87321         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
87322         * tests/unistdio/test-u8-vasprintf1.c: New file.
87323         * tests/unistdio/test-u8-vsnprintf1.c: New file.
87324         * tests/unistdio/test-u8-vsprintf1.c: New file.
87325         * tests/unistdio/test-u16-asnprintf1.c: New file.
87326         * tests/unistdio/test-u16-asnprintf1.h: New file.
87327         * tests/unistdio/test-u16-printf1.h: New file.
87328         * tests/unistdio/test-u16-vasnprintf1.c: New file.
87329         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87330         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87331         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87332         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87333         * tests/unistdio/test-u16-vasprintf1.c: New file.
87334         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87335         * tests/unistdio/test-u16-vsprintf1.c: New file.
87336         * tests/unistdio/test-u32-asnprintf1.c: New file.
87337         * tests/unistdio/test-u32-asnprintf1.h: New file.
87338         * tests/unistdio/test-u32-printf1.h: New file.
87339         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87340         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87341         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87342         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87343         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87344         * tests/unistdio/test-u32-vasprintf1.c: New file.
87345         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87346         * tests/unistdio/test-u32-vsprintf1.c: New file.
87347         * modules/unistdio/base: New file.
87348         * modules/unistdio/u-printf-args: New file.
87349         * modules/unistdio/ulc-asnprintf: New file.
87350         * modules/unistdio/ulc-asprintf: New file.
87351         * modules/unistdio/ulc-fprintf: New file.
87352         * modules/unistdio/ulc-printf-parse: New file.
87353         * modules/unistdio/ulc-snprintf: New file.
87354         * modules/unistdio/ulc-sprintf: New file.
87355         * modules/unistdio/ulc-vasnprintf: New file.
87356         * modules/unistdio/ulc-vasprintf: New file.
87357         * modules/unistdio/ulc-vfprintf: New file.
87358         * modules/unistdio/ulc-vsnprintf: New file.
87359         * modules/unistdio/ulc-vsprintf: New file.
87360         * modules/unistdio/u8-asnprintf: New file.
87361         * modules/unistdio/u8-asprintf: New file.
87362         * modules/unistdio/u8-printf-parse: New file.
87363         * modules/unistdio/u8-snprintf: New file.
87364         * modules/unistdio/u8-sprintf: New file.
87365         * modules/unistdio/u8-vasnprintf: New file.
87366         * modules/unistdio/u8-vasprintf: New file.
87367         * modules/unistdio/u8-vsnprintf: New file.
87368         * modules/unistdio/u8-vsprintf: New file.
87369         * modules/unistdio/u8-u8-asnprintf: New file.
87370         * modules/unistdio/u8-u8-asprintf: New file.
87371         * modules/unistdio/u8-u8-snprintf: New file.
87372         * modules/unistdio/u8-u8-sprintf: New file.
87373         * modules/unistdio/u8-u8-vasnprintf: New file.
87374         * modules/unistdio/u8-u8-vasprintf: New file.
87375         * modules/unistdio/u8-u8-vsnprintf: New file.
87376         * modules/unistdio/u8-u8-vsprintf: New file.
87377         * modules/unistdio/u16-asnprintf: New file.
87378         * modules/unistdio/u16-asprintf: New file.
87379         * modules/unistdio/u16-printf-parse: New file.
87380         * modules/unistdio/u16-snprintf: New file.
87381         * modules/unistdio/u16-sprintf: New file.
87382         * modules/unistdio/u16-vasnprintf: New file.
87383         * modules/unistdio/u16-vasprintf: New file.
87384         * modules/unistdio/u16-vsnprintf: New file.
87385         * modules/unistdio/u16-vsprintf: New file.
87386         * modules/unistdio/u16-u16-asnprintf: New file.
87387         * modules/unistdio/u16-u16-asprintf: New file.
87388         * modules/unistdio/u16-u16-snprintf: New file.
87389         * modules/unistdio/u16-u16-sprintf: New file.
87390         * modules/unistdio/u16-u16-vasnprintf: New file.
87391         * modules/unistdio/u16-u16-vasprintf: New file.
87392         * modules/unistdio/u16-u16-vsnprintf: New file.
87393         * modules/unistdio/u16-u16-vsprintf: New file.
87394         * modules/unistdio/u32-asnprintf: New file.
87395         * modules/unistdio/u32-asprintf: New file.
87396         * modules/unistdio/u32-printf-parse: New file.
87397         * modules/unistdio/u32-snprintf: New file.
87398         * modules/unistdio/u32-sprintf: New file.
87399         * modules/unistdio/u32-vasnprintf: New file.
87400         * modules/unistdio/u32-vasprintf: New file.
87401         * modules/unistdio/u32-vsnprintf: New file.
87402         * modules/unistdio/u32-vsprintf: New file.
87403         * modules/unistdio/u32-u32-asnprintf: New file.
87404         * modules/unistdio/u32-u32-asprintf: New file.
87405         * modules/unistdio/u32-u32-snprintf: New file.
87406         * modules/unistdio/u32-u32-sprintf: New file.
87407         * modules/unistdio/u32-u32-vasnprintf: New file.
87408         * modules/unistdio/u32-u32-vasprintf: New file.
87409         * modules/unistdio/u32-u32-vsnprintf: New file.
87410         * modules/unistdio/u32-u32-vsprintf: New file.
87411         * modules/unistdio/ulc-asnprintf-tests: New file.
87412         * modules/unistdio/ulc-vasnprintf-tests: New file.
87413         * modules/unistdio/ulc-vasprintf-tests: New file.
87414         * modules/unistdio/ulc-vsnprintf-tests: New file.
87415         * modules/unistdio/ulc-vsprintf-tests: New file.
87416         * modules/unistdio/u8-asnprintf-tests: New file.
87417         * modules/unistdio/u8-vasnprintf-tests: New file.
87418         * modules/unistdio/u8-vasprintf-tests: New file.
87419         * modules/unistdio/u8-vsnprintf-tests: New file.
87420         * modules/unistdio/u8-vsprintf-tests: New file.
87421         * modules/unistdio/u16-asnprintf-tests: New file.
87422         * modules/unistdio/u16-vasnprintf-tests: New file.
87423         * modules/unistdio/u16-vasprintf-tests: New file.
87424         * modules/unistdio/u16-vsnprintf-tests: New file.
87425         * modules/unistdio/u16-vsprintf-tests: New file.
87426         * modules/unistdio/u32-asnprintf-tests: New file.
87427         * modules/unistdio/u32-vasnprintf-tests: New file.
87428         * modules/unistdio/u32-vasprintf-tests: New file.
87429         * modules/unistdio/u32-vsnprintf-tests: New file.
87430         * modules/unistdio/u32-vsprintf-tests: New file.
87431         * MODULES.html.sh (Unicode string functions): Add the new modules.
87433 2007-07-01  Bruno Haible  <bruno@clisp.org>
87435         * lib/sprintf.c (sprintf): Limit the available length estimation,
87436         to avoid address wraparound.
87437         * lib/vsprintf.c (vsprintf): Likewise.
87438         * modules/sprintf-posix (Dependencies): Add stdint.
87439         * modules/vsprintf-posix (Dependencies): Likewise.
87441 2007-07-01  Bruno Haible  <bruno@clisp.org>
87443         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87444         Windows PATH as well. Conservative double-quoting. Comments.
87446 2007-07-01  Bruno Haible  <bruno@clisp.org>
87447             Eric Blake  <ebb9@byu.net>
87448             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87450         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87451         empty components in $PATH, denoting '.'.
87453 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87455         * gnulib-tool: Fix indentation.
87456         (func_create_megatestdir): Likewise.
87457         Report by Bruno Haible.
87459 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87461         Sync from Automake.
87462         * build-aux/gnupload: Fix shell portability issues with for loops.
87463         Report by Karl Berry.
87465 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87467         * build-aux/maint.mk (POURL): Use translationproject.org.
87469 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87470             Bruno Haible  <bruno@clisp.org>
87472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87473         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87474         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87475         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87476         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87478 2007-06-27  Bruno Haible  <bruno@clisp.org>
87480         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87481         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87483 2007-06-26  Karl Berry  <karl@gnu.org>
87485         * MODULES.html.sh: remove xreadlink-with-size.
87487 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87489         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87490         method that I hope also handles the double-include problem noted
87491         by Bruno Haible in
87492         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87494 2007-06-23  Bruno Haible  <bruno@clisp.org>
87496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87497         Don't let the 'mostlyclean' target fail if the last subdirectory could
87498         not be removed.
87499         Reported by Karl Berry.
87501 2007-06-23  Bruno Haible  <bruno@clisp.org>
87503         * gnulib-tool (echo): Add a speedier workaround for ksh.
87504         * tests/test-echo.sh: Likewise.
87506 2007-06-23  Bruno Haible  <bruno@clisp.org>
87508         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87509         * tests/test-echo.sh: Likewise.
87511 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87513         * gnulib-tool (IFS): Initialize early, so we don't set it to
87514         empty later.
87515         (self_abspathname): Rewrite algorithm to set it, reindent.
87516         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87517         (func_create_megatestdir): Merge some sed scripts.
87519 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87521         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87522         exposed by Sun Studio 11 cc on Solaris 8.
87524 2007-06-22  Bruno Haible  <bruno@clisp.org>
87526         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87527         backslashes.
87528         * tests/test-echo.sh: New file.
87530 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87532         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87533         simplify `sed_replace_build_aux' scripts, they are portable but
87534         echoing them with `echo' is not.
87535         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87537 2007-06-21  Karl Berry  <karl@gnu.org>
87539         * config/srclist.txt: guess we can't handle the licenses via
87540         srclist at the moment.
87542 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87544         * MODULES.html.sh: Add include_next.
87545         * modules/include_next: New file.
87547 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87550         INCLUDE_NEXT.
87551         (gl_CHECK_NEXT_HEADERS): New macro.
87552         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87553         the obsolescent gl_ABSOLUTE_HEADER.
87554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87555         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87556         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87558         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87559         * m4/math_h.m4 (gl_MATH_H): Likewise.
87560         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87561         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87562         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87563         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87564         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87565         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87566         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87567         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87570         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87571         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87572         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87573         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87574         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87575         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87576         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87577         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87578         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87579         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87580         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87581         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87582         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87583         * lib/float_.h: Likewise.
87584         * lib/inttypes_.h: Likewise.
87585         * lib/math_.h: Likewise.
87586         * lib/search_.h: Likewise.
87587         * lib/signal_.h: Likewise.
87588         * lib/stdint_.h: Likewise.
87589         * lib/stdio_.h: Likewise.
87590         * lib/stdlib_.h: Likewise.
87591         * lib/string_.h: Likewise.
87592         * lib/sys_stat_.h: Likewise.
87593         * lib/sys_time_.h: Likewise.
87594         * lib/time_.h: Likewise.
87595         * lib/unistd_.h: Likewise.
87596         * lib/wchar_.h: Likewise.
87597         * lib/wctype_.h: Likewise.
87598         * lib/dirent_.h: Likewise.
87599         * lib/iconv_.h: Likewise.
87600         * lib/locale_.h: Likewise.
87601         * lib/netinet_in_.h: Likewise.
87602         * lib/sys_select_.h: Likewise.
87603         * lib/sys_socket_.h: Likewise.
87604         * lib/sysexits_.h: Likewise.
87605         * modules/fcntl (Depends-on): Depend on include_next, not
87606         absolute_header.
87607         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87608         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87609         * modules/fchdir: Likewise.
87610         * modules/float: Likewise.
87611         * modules/iconv_open: Likewise.
87612         * modules/inttypes: Likewise.
87613         * modules/locale: Likewise.
87614         * modules/math: Likewise.
87615         * modules/netinet_in: Likewise.
87616         * modules/search: Likewise.
87617         * modules/signal: Likewise.
87618         * modules/stdint: Likewise.
87619         * modules/stdio: Likewise.
87620         * modules/stdlib: Likewise.
87621         * modules/string: Likewise.
87622         * modules/sys_select: Likewise.
87623         * modules/sys_socket: Likewise.
87624         * modules/sys_stat: Likewise.
87625         * modules/sys_time: Likewise.
87626         * modules/sysexits: Likewise.
87627         * modules/time: Likewise.
87628         * modules/unistd: Likewise.
87629         * modules/wchar: Likewise.
87630         * modules/wctype: Likewise.
87631         * modules/sys_stat: Change maintainer to "all".
87632         * modules/unistd: Likewise.
87634 2007-06-20  Karl Berry  <karl@gnu.org>
87636         * config/srclist.txt: track www changes in license files.
87638 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87640         * build-aux/bootstrap: Remove stray dot.
87641         Make sure build_aux settings are honored when linking
87642         gnulib_extra_files.
87644 2007-06-19  Eric Blake  <ebb9@byu.net>
87646         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87647         Allow compilation on cygwin.
87649 2007-06-19  Jim Meyering  <jim@meyering.net>
87651         xreadlink-with-size: Remove module.  No longer used.
87652         Ex-callers now use xreadlink or mreadlink-with-size.
87653         * modules/xreadlink-with-size: Remove module.
87654         * lib/xreadlink-with-size.c: Remove file.
87655         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87656         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87657         just before the function definition *is* accurate.
87659         Eliminate one way canonicalize_filename_mode could exit.
87660         * lib/canonicalize.c (canonicalize_filename_mode):
87661         Use mreadlink_with_size, not xreadlink_with_size.
87663 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87665         Detect porting problems to FreeBSD/arm, which has time_t wider than
87666         long int.  Original problem reported for GNU diff by Xin Li in
87667         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87668         * modules/getdate (Depends-on): Add intprops, verify.
87669         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87670         is an integer type no wider than long int.
87672 2007-06-18  Jim Meyering  <jim@meyering.net>
87674         New module: mreadlink-with-size.
87675         * MODULES.html.sh: Add mreadlink-with-size.
87676         * modules/mreadlink-with-size: New module
87677         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87678         not xreadlink-with-size.
87679         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87681 2007-06-16  Bruno Haible  <bruno@clisp.org>
87683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87684         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87685         Reported by Gary V. Vaughan <gary@gnu.org>.
87687 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87689         Revamp lchown so that it lives in unistd.h where it belongs.
87690         * lib/lchown.h: Remove.
87691         * lib/dirchownmod.c: Don't include lib/lchown.h.
87692         * lib/fchownat.c: Likewise.
87693         * lib/openat.c: Likewise.
87694         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87695         does not follow symlinks.
87696         (EOPNOTSUPP): Define if not defined.
87697         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87698         is defined to 0.
87699         (lchown): New decl.
87700         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87701         Do not check for lchown decl.
87702         Set REPLACE_LCHOWN.
87703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87704         REPLACE_LCHOWN.
87705         * modules/chown: Make it clear it follows symlinks.
87706         * modules/lchown: Make it clear it doesn't follow symlinks.
87707         (Files): Remove lib/lchown.h
87708         (Depends-on): Add unistd.
87709         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87710         (Include): Include <unistd.h>, not "lchown.h".
87711         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87712         REPLACE_LCHOWN.
87714 2007-06-15  Jim Meyering  <jim@meyering.net>
87716         Change license (GPL to LGPL) of fsusage and dependents.
87717         * modules/fsusage (License): Change to LGPL.
87718         * modules/full-read (License): Likewise.
87719         * modules/full-write (License): Likewise.
87720         * modules/safe-read (License): Likewise.
87721         * modules/safe-write (License): Likewise.
87723 2007-06-14  Ben Pfaff  <blp@gnu.org>
87725         Missing part of allocsa -> malloca transition.
87726         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87727         gl_MALLOCA.
87729 2007-06-12  Bruno Haible  <bruno@clisp.org>
87731         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87732         to ia64, x86_64, i386.
87733         Reported by Eric Blake.
87735 2007-06-12  Bruno Haible  <bruno@clisp.org>
87737         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87738         cross-compiling to x86_64.
87740 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87743         glitch reported by Ralf Wildenhues in
87744         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87746         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87747         Vin Shelton.
87749 2007-06-11  Bruno Haible  <bruno@clisp.org>
87751         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87752         replacement string.
87753         Reported by Eric Blake.
87755 2007-06-10  Bruno Haible  <bruno@clisp.org>
87757         Prepare vasnprintf code for use with Unicode strings.
87758         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87759         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87760         TYPE_U32_STRING.
87761         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87762         a_u32_string variants.
87763         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87764         * lib/printf-args.c: Don't include config.h and the specification
87765         header if PRINTF_FETCHARGS is already defined.
87766         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87767         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87768         TYPE_U16_STRING, TYPE_U32_STRING.
87769         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87770         u16_directive, u16_directives, u32_directive, u32_directives): New
87771         types.
87772         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87773         New declarations.
87774         * lib/printf-parse.c: Don't include config.h and the specification
87775         header if PRINTF_PARSE is already defined. Eliminate the set of
87776         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87777         them now. Include c-ctype.h.
87778         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87779         directive and CHAR_T_ONLY_ASCII.
87780         * lib/vasnprintf.c: Don't include config.h and the specification header
87781         if VASNPRINTF is already defined.
87782         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87783         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87784         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87785         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87786         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87787         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87788         code accordingly.
87789         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87790         pad_ourselves also in this case, with the 'c' and 's' directives, and
87791         with a different notion of "width".
87792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87794 2007-06-10  Bruno Haible  <bruno@clisp.org>
87796         * modules/unistr/u32-mbsnlen: New file.
87797         * lib/unistr/u32-mbsnlen.c: New file.
87799         * modules/unistr/u16-mbsnlen: New file.
87800         * lib/unistr/u16-mbsnlen.c: New file.
87802         * modules/unistr/u8-mbsnlen: New file.
87803         * lib/unistr/u8-mbsnlen.c: New file.
87805         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87806         declarations.
87808 2007-06-10  Bruno Haible  <bruno@clisp.org>
87810         * lib/string_.h (mbsnlen): New declaration.
87811         * lib/mbsnlen.c: New file.
87812         * m4/mbsnlen.m4: New file.
87813         * modules/mbsnlen: New file.
87814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87815         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87816         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87818 2007-06-10  Bruno Haible  <bruno@clisp.org>
87820         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87822 2007-06-10  Bruno Haible  <bruno@clisp.org>
87824         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87825         * lib/mbuiter.h: Likewise.
87827 2007-06-10  Bruno Haible  <bruno@clisp.org>
87829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87830         declaration.
87832 2007-06-10  Karl Berry  <karl@gnu.org>
87834         * config/srclist.txt: remove gettext entries, Bruno prefers
87835         to update individually.
87837 2007-06-10  Bruno Haible  <bruno@clisp.org>
87839         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87840         'maxlen'. Ensure only length + width bytes are allocated, not
87841         length + 1 + width.
87843 2007-06-09  Bruno Haible  <bruno@clisp.org>
87845         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87846         (CHAR_T): Remove macro.
87847         (VASNPRINTF): Update.
87849 2007-06-09  Bruno Haible  <bruno@clisp.org>
87851         * MODULES.html.sh (Unicode string functions): Add the new modules.
87853         * modules/uniconv/u32-conv-to-enc: New file.
87854         * lib/uniconv/u32-conv-to-enc.c: New file.
87855         * modules/uniconv/u32-conv-to-enc-tests: New file.
87856         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87858         * modules/uniconv/u16-conv-to-enc: New file.
87859         * lib/uniconv/u16-conv-to-enc.c: New file.
87860         * lib/uniconv/u-conv-to-enc.h: New file.
87861         * modules/uniconv/u16-conv-to-enc-tests: New file.
87862         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87864         * modules/uniconv/u8-conv-to-enc: New file.
87865         * lib/uniconv/u8-conv-to-enc.c: New file.
87866         * modules/uniconv/u8-conv-to-enc-tests: New file.
87867         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87869         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87870         u32_conv_to_encoding): New declarations.
87872 2007-06-09  Bruno Haible  <bruno@clisp.org>
87874         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87876 2007-06-09  Bruno Haible  <bruno@clisp.org>
87878         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87879         * modules/malloca: Renamed from modules/allocsa, updated.
87880         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87881         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87882         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87883         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87884         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87885         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87886         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87887         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87888         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87889         * modules/c-strcasestr (Depends-on): Update.
87890         * lib/c-strcasestr.c: Update.
87891         * modules/c-strstr (Depends-on): Update.
87892         * lib/c-strstr.c: Update.
87893         * modules/canonicalize-lgpl (Depends-on): Update.
87894         * lib/canonicalize-lgpl.c: Update.
87895         * modules/clean-temp (Depends-on): Update.
87896         * lib/clean-temp.c: Update.
87897         * modules/csharpcomp (Depends-on): Update.
87898         * lib/csharpcomp.c: Update.
87899         * modules/csharpexec (Depends-on): Update.
87900         * lib/csharpexec.c: Update.
87901         * modules/javacomp (Depends-on): Update.
87902         * lib/javacomp.c: Update.
87903         * modules/javaexec (Depends-on): Update.
87904         * lib/javaexec.c: Update.
87905         * modules/mbscasestr (Depends-on): Update.
87906         * lib/mbscasestr.c: Update.
87907         * modules/mbsstr (Depends-on): Update.
87908         * lib/mbsstr.c: Update.
87909         * modules/setenv (Depends-on): Update.
87910         * lib/setenv.c: Update.
87911         * modules/strcasestr (Depends-on): Update.
87912         * lib/strcasestr.c: Update.
87913         * modules/striconveha (Depends-on): Update.
87914         * lib/striconveha.c: Update.
87915         * modules/relocatable-prog-wrapper (Files): Update.
87916         * lib/relocwrapper.c: Update.
87917         * build-aux/install-reloc: Update.
87918         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87920 2007-06-08  Bruno Haible  <bruno@clisp.org>
87922         Port to uClibc.
87923         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87924         * lib/fpurge.c (fpurge): Likewise.
87925         * lib/freading.c (freading): Likewise.
87926         * lib/fseeko.c (rpl_fseeko): Likewise.
87927         * lib/fseterr.c (fseterr): Likewise.
87928         * lib/fwriting.c (fwriting): Likewise.
87929         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87931 2007-06-08  Bruno Haible  <bruno@clisp.org>
87933         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87934         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87935         * modules/gettext (Files): Add m4/intlmacosx.m4.
87937 2007-06-07  Bruno Haible  <bruno@clisp.org>
87939         * modules/localename-tests: New file.
87940         * tests/test-localename.c: New file.
87942         New module 'localename'.
87943         * lib/localename.h: New file.
87944         * lib/localename.c: New file, from GNU gettext.
87945         * m4/localename.m4: New file.
87946         * modules/localename: New file.
87948 2007-06-07  Bruno Haible  <bruno@clisp.org>
87950         Work around the lack of <wchar.h> on some builds of uClibc.
87951         * doc/headers/wchar.texi: Update.
87952         * lib/wchar_.h: Include <wchar.h> only if it exists.
87953         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87954         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87955         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87956         doesn't exist.
87957         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87958         * modules/mbfile (Depends-on): Add wchar.
87959         * modules/mbiter (Depends-on): Likewise.
87960         * modules/mbuiter (Depends-on): Likewise.
87961         Reported by Simon Josefsson.
87963 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87965         Work around problem reported by Steven M. Schweda in
87966         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87967         Tru64 5.1B with the Compaq compiler environment installed declares
87968         an 'isblank' function but does not define it in the C library.
87969         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87970         * lib/regex_internal.h (isblank): Likewise.
87971         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87972         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87974 2007-06-05  Bruno Haible  <bruno@clisp.org>
87976         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87977         ia64.
87978         * modules/printf-safe: New file.
87979         * modules/fprintf-posix (Depends-on): Add printf-safe.
87980         * modules/printf-posix (Depends-on): Likewise.
87981         * modules/snprintf-posix (Depends-on): Likewise.
87982         * modules/sprintf-posix (Depends-on): Likewise.
87983         * modules/vasnprintf-posix (Depends-on): Likewise.
87984         * modules/vasprintf-posix (Depends-on): Likewise.
87985         * modules/vfprintf-posix (Depends-on): Likewise.
87986         * modules/vprintf-posix (Depends-on): Likewise.
87987         * modules/vsnprintf-posix (Depends-on): Likewise.
87988         * modules/vsprintf-posix (Depends-on): Likewise.
87989         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87990         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87991         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87992         "no" on i386, x86_64, ia64.
87993         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87994         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87995         on i386, x86_64, ia64.
87996         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87997         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87998         on i386, x86_64, ia64.
87999         * tests/test-vasnprintf-posix.c: Include float.h.
88000         (LDBL80_WORDS): New macro.
88001         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88002         on i386, x86_64, ia64.
88003         * tests/test-vasprintf-posix.c: Include float.h.
88004         (LDBL80_WORDS): New macro.
88005         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88006         on i386, x86_64, ia64.
88007         * tests/test-snprintf-posix.c: Include float.h.
88008         * tests/test-sprintf-posix.c: Likewise.
88009         * tests/test-vsnprintf-posix.c: Likewise.
88010         * tests/test-vsprintf-posix.c: Likewise.
88012 2007-06-05  Bruno Haible  <bruno@clisp.org>
88014         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
88015         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
88016         non-IEEE numbers on i386, x86_64, ia64.
88017         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
88018         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
88019         * tests/test-isnanl.h: Include float.h.
88020         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
88022 2007-06-05  Bruno Haible  <bruno@clisp.org>
88024         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
88025         also the %a / %A. Handle the %a / %A code before this extra handling.
88027 2007-06-05  Bruno Haible  <bruno@clisp.org>
88029         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
88030         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
88032 2007-06-05  Bruno Haible  <bruno@clisp.org>
88034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
88035         typo in variable name.
88037 2007-06-05  Eric Blake  <ebb9@byu.net>
88039         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
88040         Reported by Simon Josefsson.
88042 2007-06-04  Bruno Haible  <bruno@clisp.org>
88044         Avoid test failures on some PowerPC platforms.
88045         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
88046         Define differently for PowerPC.
88047         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
88048         Reported by Gary V. Vaughan <gary@gnu.org>.
88050 2007-06-02  Bruno Haible  <bruno@clisp.org>
88052         Fix test-stdint failure on FreeBSD/ia64.
88053         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
88054         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
88055         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
88056         * doc/headers/stdint.texi: Update.
88058 2007-06-01  Bruno Haible  <bruno@clisp.org>
88060         * tests/test-binary-io.c (main): Pass a third argument to open().
88061         Reported by Gary V. Vaughan <gary@gnu.org>.
88063 2007-06-01  Bruno Haible  <bruno@clisp.org>
88065         * doc/functions/frexpl.texi: Update for mingw.
88067 2007-06-01  Bruno Haible  <bruno@clisp.org>
88069         * tests/test-lseek.c (main): Disable test of errno for invalid third
88070         argument.
88071         * doc/functions/lseek.texi: Update.
88072         Reported by Gary V. Vaughan <gary@gnu.org>.
88074 2007-05-28  Bruno Haible  <bruno@clisp.org>
88076         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
88078 2007-05-31  Eric Blake  <ebb9@byu.net>
88080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
88081         cross compiling.
88083 2007-05-30  Eric Blake  <ebb9@byu.net>
88084         and Bruno Haible  <bruno@clisp.org>
88086         Work around mingw test failures exposed by m4-1.4.9b.
88087         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
88088         * tests/test-unistd.c: Disable uid_t and git_t tests for the
88089         moment.
88091 2007-05-30  Bruno Haible  <bruno@clisp.org>
88093         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
88094         assuming that they are closed. Needed on HP-UX 11.
88096 2007-05-29  Bruno Haible  <bruno@clisp.org>
88098         Fix a problem with #include_next.
88099         * lib/dirent_.h: Split the double-inclusion guard.
88100         * lib/fcntl_.h: Likewise.
88101         * lib/float_.h: Likewise.
88102         * lib/iconv_.h: Likewise.
88103         * lib/inttypes_.h: Likewise.
88104         * lib/locale_.h: Likewise.
88105         * lib/math_.h: Likewise.
88106         * lib/netinet_in_.h: Likewise.
88107         * lib/search_.h: Likewise.
88108         * lib/signal_.h: Likewise.
88109         * lib/stdint_.h: Likewise.
88110         * lib/stdio_.h: Likewise.
88111         * lib/stdlib_.h: Likewise.
88112         * lib/string_.h: Likewise.
88113         * lib/sys_select_.h: Likewise.
88114         * lib/sys_socket_.h: Likewise.
88115         * lib/sys_stat_.h: Likewise.
88116         * lib/sys_time_.h: Likewise.
88117         * lib/sysexits_.h: Likewise.
88118         * lib/time_.h: Likewise.
88119         * lib/unistd_.h: Likewise.
88120         * lib/wchar_.h: Likewise.
88121         * lib/wctype_.h: Likewise.
88123 2007-05-29  Bruno Haible  <bruno@clisp.org>
88125         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
88126         for the moment.
88128 2007-05-29  Bruno Haible  <bruno@clisp.org>
88130         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
88131         invocation.
88132         Reported by Eric Blake.
88134 2007-05-29  Bruno Haible  <bruno@clisp.org>
88136         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
88137         compiling case.
88139 2007-05-29  Eric Blake  <ebb9@byu.net>
88140             Bruno Haible  <bruno@clisp.org>
88142         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
88143         cross compiles.
88145 2007-05-28  Eric Blake  <ebb9@byu.net>
88147         * modules/closein-tests (test_closein_LDADD): Support test on
88148         cygwin with libtool.
88150 2007-05-28  Bruno Haible  <bruno@clisp.org>
88152         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
88153         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
88154         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
88155         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
88156         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
88157         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
88158         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
88159         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
88160         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
88162 2007-05-28  Eric Blake  <ebb9@byu.net>
88164         Unconditionally include <config.h> in unit tests.
88165         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
88166         * tests/test-allocsa.c, tests/test-arcfour.c,
88167         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
88168         tests/test-array_list.c, tests/test-array_oset.c,
88169         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
88170         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
88171         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
88172         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
88173         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
88174         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
88175         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
88176         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
88177         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
88178         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
88179         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
88180         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
88181         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
88182         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
88183         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
88184         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
88185         test-md5.c, test-memmem.c, test-printf-posix.c,
88186         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
88187         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
88188         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
88189         test-strcasestr.c, test-striconv.c, test-striconveh.c,
88190         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
88191         test-vasnprintf-posix2.c, test-vasnprintf.c,
88192         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
88193         test-vfprintf-posix.c, test-vprintf-posix.c,
88194         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
88195         test-xvasprintf.c: Likewise.
88197 2007-05-28  Bruno Haible  <bruno@clisp.org>
88199         * gnulib-tool (func_import): Remember the --with-tests command-line
88200         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
88201         Reported by Eric Blake.
88203 2007-05-28  Bruno Haible  <bruno@clisp.org>
88205         * modules/ftell-tests: New file.
88206         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
88207         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
88209         * lib/ftell.c: New file.
88210         * modules/ftell: New file.
88211         * m4/ftell.m4: New file.
88212         * doc/functions/ftell.texi: Update.
88213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
88214         REPLACE_FTELL.
88215         * lib/stdio_.h (rpl_ftell): New declaration.
88216         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
88217         REPLACE_FTELL.
88219 2007-05-28  Eric Blake  <ebb9@byu.net>
88221         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
88223 2007-05-28  Bruno Haible  <bruno@clisp.org>
88225         * modules/fseek-tests: New file.
88226         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
88227         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
88229         * lib/fseek.c: New file.
88230         * modules/fseek: New file.
88231         * m4/fseek.m4: New file.
88232         * doc/functions/fseek.texi: Update.
88233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
88234         REPLACE_FSEEK.
88235         * lib/stdio_.h (rpl_fseek): New declaration.
88236         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
88237         REPLACE_FSEEK.
88239 2007-05-28  Bruno Haible  <bruno@clisp.org>
88241         * lib/stdio_.h (fflush): More comments.
88243 2007-05-28  Bruno Haible  <bruno@clisp.org>
88245         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
88246         runtime test.
88248 2007-05-28  Eric Blake  <ebb9@byu.net>
88250         Improve lseek module.
88251         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
88252         * lib/unistd_.h (lseek): Scale back link warning message.
88253         * tests/test-lseek.c: Beef up test.
88254         * tests/test-lseek.sh: Exercise more facets of lseek.
88255         Reported by Bruno Haible.
88257 2007-05-28  Bruno Haible  <bruno@clisp.org>
88259         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
88260         to define.
88262 2007-05-27  Bruno Haible  <bruno@clisp.org>
88264         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
88266 2007-05-27  Bruno Haible  <bruno@clisp.org>
88268         * modules/openmp: New file.
88269         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
88270         Noah Misch.
88272 2007-05-26  Bruno Haible  <bruno@clisp.org>
88274         * modules/chdir-long (Depends-on): Add fchdir.
88275         * modules/chdir-safer (Depends-on): Likewise.
88276         * modules/fts (Depends-on): Likewise.
88277         * modules/fts-lgpl (Depends-on): Likewise.
88278         * modules/openat (Depends-on): Likewise.
88279         * modules/savewd (Depends-on): Likewise.
88281 2007-05-24  Eric Blake  <ebb9@byu.net>
88283         Fix lseek on mingw.
88284         * modules/lseek: New module.
88285         * m4/lseek.m4: New file.
88286         * lib/lseek.c: New file.
88287         * modules/lseek-tests: New file.
88288         * tests/test-lseek.c: New file.
88289         * tests/test-lseek.sh: New file.
88290         * MODULES.html.sh: Document lseek module.
88291         * modules/fflush (Depends-on): Add lseek, fseeko.
88292         * modules/fseeko (Depends-on): Likewise.
88293         * modules/ftello (Depends-on): Likewise.
88294         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
88295         broken.
88296         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
88297         broken.
88298         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
88299         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
88300         * lib/ftello.c (rpl_ftello): Likewise.
88301         * tests/test-fseeko.c (main): Test this.
88302         * tests/test-fseeko.sh: Likewise.
88303         * tests/test-ftello.c (main): Likewise.
88304         * tests/test-ftello.sh: Likewise.
88305         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
88306         implies replacing fseek.
88307         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
88308         HAVE_FTELLO.
88309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
88310         * modules/unistd (Makefile.am): Likewise.
88311         * lib/unistd_.h (lseek): Declare a replacement.
88312         * doc/functions/lseek.texi (lseek): Document this fix.
88313         * doc/functions/fseek.texi (fseek): Likewise.
88314         * doc/functions/ftell.texi (ftell): Likewise.
88316 2007-05-24  Bruno Haible  <bruno@clisp.org>
88318         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
88319         in the printed representation of a NaN.
88320         * tests/test-vasprintf-posix.c (test_function): Likewise.
88321         * tests/test-snprintf-posix.h (test_function): Likewise.
88322         * tests/test-sprintf-posix.h (test_function): Likewise.
88323         Reported by Eric Blake.
88325 2007-05-23  Eric Blake  <ebb9@byu.net>
88327         Fix fseeko/ftello on cygwin 1.5.24.
88328         * doc/functions/fseeko.texi (fseeko): Document the fix.
88329         * doc/functions/ftello.texi (ftello): Document the fix.
88330         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88331         * doc/functions/stdout.text (stdout): New file.
88332         * doc/functions/stderr.text (stderr): New file.
88333         * doc/gnulib.texi (Function Substitutes): Use new files.
88334         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88335         prior to 1.7.0.
88336         * tests/test-ftello.c (main): Likewise for ftello.
88337         * tests/test-fseeko.sh: New file.
88338         * tests/test-ftello.sh: New file.
88339         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88340         with seekable stdin.
88341         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88342         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88343         (gl_REPLACE_FSEEKO): New macro.
88344         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88345         * modules/fseeko (Files): Distribute fseeko.c.
88346         * modules/ftello (Files): Distribute ftello.c.
88347         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88348         mode.
88349         * lib/ftello.c (rpl_ftello): New file.
88350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88351         fseeko, ftello.
88352         (gl_STDIN_LARGE_OFFSET): New macro.
88353         * modules/stdio (Makefile.am): Perform the replacement.
88354         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88356 2007-05-23  Bruno Haible  <bruno@clisp.org>
88358         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88359         GNULIB_POSIXCHECK is defined.
88361 2007-05-21  Bruno Haible  <bruno@clisp.org>
88363         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88364         Check also the output for NaN arguments. When cross-compiling, guess
88365         no on IRIX.
88366         * lib/vasnprintf.c: Update comments.
88367         * tests/test-vasnprintf-posix.c (strisnan): New function.
88368         (test_function): Use it.
88369         * tests/test-vasprintf-posix.c (strisnan): New function.
88370         (test_function): Use it.
88371         * tests/test-snprintf-posix.h (strisnan): New function.
88372         (test_function): Use it.
88373         * tests/test-sprintf-posix.h (strisnan): New function.
88374         (test_function): Use it.
88375         Reported by Eric Blake.
88377 2007-05-20  Bruno Haible  <bruno@clisp.org>
88379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88380         numbers that fails on BeOS.
88381         * doc/functions/frexpl.texi: Update.
88383 2007-05-20  Jim Meyering  <jim@meyering.net>
88385         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88386         forced upon us by glibc-2.6.
88388 2007-05-20  Bruno Haible  <bruno@clisp.org>
88390         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88391         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88392         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88393         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88394         NEED_PRINTF_INFINITE.
88395         (is_infinitel): New function.
88396         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88398         gl_PREREQ_VASNPRINTF_INFINITE.
88399         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88401         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88402         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88403         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88404         gl_PREREQ_VASNPRINTF_INFINITE.
88405         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88407         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88408         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88412         * doc/functions/fprintf.texi: Update.
88413         * doc/functions/printf.texi: Update.
88414         * doc/functions/snprintf.texi: Update.
88415         * doc/functions/sprintf.texi: Update.
88416         * doc/functions/vfprintf.texi: Update.
88417         * doc/functions/vprintf.texi: Update.
88418         * doc/functions/vsnprintf.texi: Update.
88419         * doc/functions/vsprintf.texi: Update.
88421 2007-05-20  Bruno Haible  <bruno@clisp.org>
88423         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88424         was not found in libc.
88425         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88427 2007-05-20  Bruno Haible  <bruno@clisp.org>
88429         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88430         printed as "-nan" instead of "nan".
88431         * tests/test-vasprintf-posix.c (test_function): Likewise.
88432         * tests/test-snprintf-posix.h (test_function): Likewise.
88433         * tests/test-sprintf-posix.h (test_function): Likewise.
88434         Needed for HP-UX 11.
88436 2007-05-20  Jim Meyering  <jim@meyering.net>
88438         Fix buggy test for the fchownat-deref bug.
88439         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88440         symlink required for the run-test.  Without it, this test would
88441         always declare that fchownat doesn't work, and client code would
88442         unnecessarily use the replacement function with fixed libc.
88443         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88444         Reported by Greg Schafer.
88446 2007-05-19  Bruno Haible  <bruno@clisp.org>
88448         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88449         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88450         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88451         Needed for IRIX 6.5 and Solaris 2.5.1.
88453 2007-05-19  Bruno Haible  <bruno@clisp.org>
88455         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88456         (test_function): Skip tests involving -0.0 on platforms where
88457         -0.0 = 0.0.
88458         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88459         (test_function): Skip tests involving -0.0 on platforms where
88460         -0.0 = 0.0.
88461         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88462         (test_function): Skip tests involving -0.0 on platforms where
88463         -0.0 = 0.0.
88464         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88465         (test_function): Skip tests involving -0.0 on platforms where
88466         -0.0 = 0.0.
88467         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88468         tests.
88469         * tests/test-printf-posix.h (test_function): Likewise.
88470         * tests/test-printf-posix.output: Remove all -0.0 related results.
88471         Needed for IRIX 6.5.
88473 2007-05-19  Bruno Haible  <bruno@clisp.org>
88475         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88476         printed as "nan0x7fffffff" instead of "nan".
88477         * tests/test-vasprintf-posix.c (test_function): Likewise.
88478         * tests/test-snprintf-posix.h (test_function): Likewise.
88479         * tests/test-sprintf-posix.h (test_function): Likewise.
88480         * tests/test-fprintf-posix.h (NaN): Remove macro.
88481         (test_function): Remove all NaN related tests.
88482         * tests/test-printf-posix.h (NaN): Remove macro.
88483         (test_function): Remove all NaN related tests.
88484         * tests/test-printf-posix.output: Remove all NaN related results.
88485         Needed for IRIX 6.5.
88487 2007-05-19  Bruno Haible  <bruno@clisp.org>
88489         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88490         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88492 2007-05-19  Bruno Haible  <bruno@clisp.org>
88494         * lib/float_.h: New file.
88495         * m4/float_h.m4: New file.
88496         * modules/float: New file.
88497         * modules/isnanl (Dependencies): Add float.
88498         * modules/isnanl-nolibm (Dependencies): Likewise.
88499         * modules/mathl (Dependencies): Likewise.
88500         * modules/printf-frexpl (Dependencies): Likewise.
88501         * modules/signbit (Dependencies): Likewise.
88502         * modules/vasnprintf (Dependencies): Likewise.
88503         * doc/headers/float.texi: Update.
88505 2007-05-19  Jim Meyering  <jim@meyering.net>
88507         * lib/utimens.c (gl_futimens): Rename from futimens,
88508         now that glibc-2.6 declares futimens.
88509         * lib/utimens.h: Likewise.
88511 2007-05-19  Bruno Haible  <bruno@clisp.org>
88513         Avoid test failures on mingw.
88514         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88515         * tests/test-printf-posix.sh: Likewise.
88516         * tests/test-vfprintf-posix.sh: Likewise.
88517         * tests/test-vprintf-posix.sh: Likewise.
88519 2007-05-19  Bruno Haible  <bruno@clisp.org>
88521         Fix *printf result for NaN, Inf, -0.0 on mingw.
88522         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88523         * lib/vasnprintf.c: Include math.h and isnan.h.
88524         (is_infinite_or_zero): New function.
88525         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88526         values in the %f, %F, %e, %E, %g, %G directives.
88527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88528         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88529         gl_PRINTF_INFINITE and test its result. Invoke
88530         gl_PREREQ_VASNPRINTF_INFINITE.
88531         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88532         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88533         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88534         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88535         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88537         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88538         * doc/functions/fprintf.texi: Update.
88539         * doc/functions/printf.texi: Update.
88540         * doc/functions/snprintf.texi: Update.
88541         * doc/functions/sprintf.texi: Update.
88542         * doc/functions/vfprintf.texi: Update.
88543         * doc/functions/vprintf.texi: Update.
88544         * doc/functions/vsnprintf.texi: Update.
88545         * doc/functions/vsprintf.texi: Update.
88547 2007-05-19  Bruno Haible  <bruno@clisp.org>
88549         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88550         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88551         Instead of multiplying with 10^k, set extra_zeroes to k.
88552         (scale10_round_long_double): Remove function.
88554 2007-05-18  Bruno Haible  <bruno@clisp.org>
88556         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88557         introduced on 2007-05-06.
88559 2007-05-18  Bruno Haible  <bruno@clisp.org>
88561         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88562         %g directives.
88563         * tests/test-vasprintf-posix.c (test_function): Likewise.
88564         * tests/test-snprintf-posix.h (test_function): Likewise.
88565         * tests/test-sprintf-posix.h (test_function): Likewise.
88567 2007-05-18  Bruno Haible  <bruno@clisp.org>
88569         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88570         (strmatch): New function.
88571         (test_function): Test the %f directive on numbers of various exponents.
88572         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88573         (strmatch): New function.
88574         (test_function): Test the %f directive on numbers of various exponents.
88575         * tests/test-snprintf-posix.h (strmatch): New function.
88576         (test_function): Test the %f directive on numbers of various exponents.
88577         * tests/test-sprintf-posix.h (strmatch): New function.
88578         (test_function): Test the %f directive on numbers of various exponents.
88579         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88580         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88581         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88582         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88584 2007-05-18  Bruno Haible  <bruno@clisp.org>
88586         Add support for 'long double' number output.
88587         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88588         * lib/vasnprintf.c: Include math.h and float+.h.
88589         (mp_limb_t): New type.
88590         (GMP_LIMB_BITS): New macro.
88591         (mp_twolimb_t): New type.
88592         (GMP_TWOLIMB_BITS): New macro.
88593         (mpn_t): New type.
88594         (multiply, divide, convert_to_decimal, decode_long_double,
88595         scale10_round_long_double, scale10_round_decimal_long_double,
88596         floorlog10l): New functions.
88597         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88598         for the %f, %F, %e, %E, %g, %G directives.
88599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88600         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88601         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88602         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88603         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88604         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88605         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88606         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88607         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88608         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88609         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88610         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88611         * modules/snprintf-posix (Depends-on): Likewise.
88612         * modules/sprintf-posix (Depends-on): Likewise.
88613         * modules/vasnprintf-posix (Depends-on): Likewise.
88614         * modules/vasprintf-posix (Depends-on): Likewise.
88615         * modules/vfprintf-posix (Depends-on): Likewise.
88616         * modules/vsnprintf-posix (Depends-on): Likewise.
88617         * modules/vsprintf-posix (Depends-on): Likewise.
88618         * modules/vasnprintf (Files): Add lib/float+.h.
88619         * doc/functions/fprintf.texi: Update.
88620         * doc/functions/printf.texi: Update.
88621         * doc/functions/snprintf.texi: Update.
88622         * doc/functions/sprintf.texi: Update.
88623         * doc/functions/vfprintf.texi: Update.
88624         * doc/functions/vprintf.texi: Update.
88625         * doc/functions/vsnprintf.texi: Update.
88626         * doc/functions/vsprintf.texi: Update.
88628 2007-05-18  Bruno Haible  <bruno@clisp.org>
88630         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88632 2007-05-18  Bruno Haible  <bruno@clisp.org>
88634         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88635         for printing 64-bit integers. Needed for mingw.
88637 2007-05-18  Bruno Haible  <bruno@clisp.org>
88639         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88640         gl_FUNC_FREXPL_WORKS.
88641         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88643 2007-05-18  Bruno Haible  <bruno@clisp.org>
88645         * modules/frexpl-nolibm-tests: New file.
88647         * modules/frexpl-nolibm: New file.
88648         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88650 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88652         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88653         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88654         GCC 4.2, which otherwise issues a lot of warnings.
88655         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88656         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88657         Likewise.
88658         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88659         * modules/iconv_open (iconv.h): Likewise.
88660         * modules/locale (locale.h): Likewise.
88661         * modules/netinet_in (netinet/in.h): Likewise.
88662         * modules/sys_select (sys_select.h): Likewise.
88663         * modules/sys_socket (sys/socket.h): Likewise.
88664         * modules/sys_stat (sys/stat.h): Likewise.
88665         * modules/sysexits (sysexits.h): Likewise.
88666         * modules/unistd (unistd.h): Likewise.
88668 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88670         * modules/closein-tests (Makefile.am): Distribute
88671         `test-closein.sh'.
88673 2007-05-17  Bruno Haible  <bruno@clisp.org>
88675         * tests/test-printf-posix.output: Renamed from
88676         tests/test-fprintf-posix.out.
88677         * modules/fprintf-posix-tests: Update.
88678         * modules/printf-posix-tests: Update.
88679         * modules/vfprintf-posix-tests: Update.
88680         * modules/vprintf-posix-tests: Update.
88681         * tests/test-fprintf-posix.sh: Update.
88682         * tests/test-printf-posix.sh: Update.
88683         * tests/test-vfprintf-posix.sh: Update.
88684         * tests/test-vprintf-posix.sh: Update.
88685         Reported by Ralf Wildenhues.
88687 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88689         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88690         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88691         GCC 4.2, which otherwise issues a lot of warnings.
88692         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88693         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88694         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88695         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88696         it should no longer be needed.
88697         * lib/string_.h: Likewise.
88698         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88699         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88700         * modules/inttypes (inttypes.h): Likewise.
88701         * modules/math (math.h): Likewise.
88702         * modules/search (search.h): Likewise.
88703         * modules/signal (signal.h): Likewise.
88704         * modules/stdint (stdint.h): Likewise.
88705         * modules/stdio (stdio.h): Likewise.
88706         * modules/stdlib (stdlib.h): Likewise.
88707         * modules/string (string.h): Likewise.
88708         * modules/sys_time (sys/time.h): Likewise.
88709         * modules/time (time.h): Likewise.
88710         * modules/wchar (wchar.h): Likewise.
88711         * modules/wctype (wtype.h): Likewise.
88713 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88715         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88717 2007-05-13  Bruno Haible  <bruno@clisp.org>
88719         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88720         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88721         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88722         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88723         (gl_PREREQ_STRTOK_R): Don't require it here.
88725 2007-05-13  Bruno Haible  <bruno@clisp.org>
88727         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88728         when used in C++ mode.
88730 2007-05-12  Bruno Haible  <bruno@clisp.org>
88732         * lib/linebuffer.h: Tweak doc.
88733         * lib/linebuffer.c: Likewise.
88735 2007-05-12  James Youngman  <jay@gnu.org>
88737         * lib/linebuffer.c (readlinebuffer_delim): New function,
88738         like readlinebuffer, but use a caller-specified delimiter.
88739         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88740         as the delimiter.
88741         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88743 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88745         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88746         * modules/openat (Files): Remove openat-die.c.
88747         (Depends-on): Add openat-die.
88748         * modules/openat-die: New module.
88750 2007-05-06  Bruno Haible  <bruno@clisp.org>
88752         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88753         Update with info about Cygwin.
88754         * doc/functions/fprintf.texi: Update.
88755         * doc/functions/printf.texi: Update.
88756         * doc/functions/snprintf.texi: Update.
88757         * doc/functions/sprintf.texi: Update.
88758         * doc/functions/vfprintf.texi: Update.
88759         * doc/functions/vprintf.texi: Update.
88760         * doc/functions/vsnprintf.texi: Update.
88761         * doc/functions/vsprintf.texi: Update.
88762         Reported by Eric Blake.
88764 2007-05-06  Bruno Haible  <bruno@clisp.org>
88766         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88767         padding ourselves for the floating-point directives.
88768         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88770         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88771         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88772         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88780         * tests/test-snprintf-posix.h (test_function): Also check the width
88781         and some flags in the %f directive.
88782         * tests/test-sprintf-posix.h (test_function): Likewise.
88783         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88784         * tests/test-vasprintf-posix.c (test_function): Likewise.
88785         * doc/functions/fprintf.texi: Update.
88786         * doc/functions/printf.texi: Update.
88787         * doc/functions/snprintf.texi: Update.
88788         * doc/functions/sprintf.texi: Update.
88789         * doc/functions/vfprintf.texi: Update.
88790         * doc/functions/vprintf.texi: Update.
88791         * doc/functions/vsnprintf.texi: Update.
88792         * doc/functions/vsprintf.texi: Update.
88794 2007-05-06  Bruno Haible  <bruno@clisp.org>
88796         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88797         pass the ' flag character to sprintf or snprintf.
88798         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88800         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88801         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88802         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88804         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88805         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88806         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88810         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88811         flag.
88812         * tests/test-sprintf-posix.h (test_function): Likewise.
88813         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88814         * tests/test-vasprintf-posix.c (test_function): Likewise.
88815         * doc/functions/fprintf.texi: Update.
88816         * doc/functions/printf.texi: Update.
88817         * doc/functions/snprintf.texi: Update.
88818         * doc/functions/sprintf.texi: Update.
88819         * doc/functions/vfprintf.texi: Update.
88820         * doc/functions/vprintf.texi: Update.
88821         * doc/functions/vsnprintf.texi: Update.
88822         * doc/functions/vsprintf.texi: Update.
88824 2007-05-01  Bruno Haible  <bruno@clisp.org>
88826         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88828 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88830         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88831         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88833 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88835         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88836         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88837         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88839 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88841         * lib/argp-help.c (struct hol_entry): New member `ord'.
88842         (HOL_ENTRY_PTRCMP): Use ord for comparison
88843         (hol_sort): Initialize ord.
88845 2007-05-01  Bruno Haible  <bruno@clisp.org>
88847         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88848         Reported by Eric Blake.
88849         * doc/gnulib.texi (Function Substitutes): Update.
88851 2007-05-01  Bruno Haible  <bruno@clisp.org>
88853         * doc/functions.texi: Remove file, now redundant through
88854         doc/functions/*.texi.
88856 2007-05-01  Bruno Haible  <bruno@clisp.org>
88858         * modules/argp (Depends-on): Add sleep.
88860 2007-05-01  Bruno Haible  <bruno@clisp.org>
88862         * modules/sleep-tests: New file.
88863         * tests/test-sleep.c: New file.
88865         * modules/sleep: New file.
88866         * lib/sleep.c: New file.
88867         * m4/sleep.m4: New file.
88868         * lib/unistd_.h (sleep): New declaration.
88869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88870         HAVE_SLEEP.
88871         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88872         * doc/functions/sleep.texi: Document the sleep module.
88874 2007-05-01  Bruno Haible  <bruno@clisp.org>
88876         * lib/sigprocmask.h: Remove file.
88877         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88878         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88879         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88880         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88881         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88882         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88883         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88884         HAVE_SIGSET_T as a shell variable.
88885         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88886         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88887         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88888         (Depends-on): Add signal. Remove verify.
88889         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88890         (Include): Mention <signal.h> instead of sigprocmask.h.
88891         * NEWS: Mention the change.
88892         * lib/fatal-signal.c: Don't include sigprocmask.h.
88894 2007-05-01  Bruno Haible  <bruno@clisp.org>
88896         * modules/signal: New file.
88897         * lib/signal_.h: New file.
88898         * m4/signal_h.m4: New file.
88900 2007-05-01  Bruno Haible  <bruno@clisp.org>
88902         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88903         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88904         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88905         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88907 2007-05-01  Bruno Haible  <bruno@clisp.org>
88909         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88910         configure time.
88911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88912         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88913         * modules/sys_stat (Makefile.am): Substitute their values into
88914         sys/stat.h.
88916 2007-05-01  Bruno Haible  <bruno@clisp.org>
88918         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88919         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88920         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88922 2007-05-01  Bruno Haible  <bruno@clisp.org>
88924         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88925         'assert' module here.
88927 2007-05-01  Bruno Haible  <bruno@clisp.org>
88929         * doc/functions/*.texi: New files.
88930         * doc/functions/google-ranking.txt: New file.
88931         * doc/gnulib.texi (Function Substitutes): New chapter.
88932         (ctime, inet_ntoa): Remove sections.
88933         * doc/ctime.texi: Remove file.
88934         * doc/inet_ntoa.texi: Remove file.
88935         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88936         dependencies.
88937         (%.info): New rule, specifying a --reference-limit.
88939 2007-05-01  Bruno Haible  <bruno@clisp.org>
88941         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88943 2007-05-01  Bruno Haible  <bruno@clisp.org>
88945         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88946         the portability of 'mkdir' to mingw systems.
88948 2007-05-01  Bruno Haible  <bruno@clisp.org>
88950         * doc/headers/google-ranking.txt: New file.
88952 2007-04-30  Eric Blake  <ebb9@byu.net>
88954         Prefer fseeko to fseek.
88955         * modules/getpass (Depends-on): Add fseeko.
88956         * lib/getpass.c (getpass): Use fseeko, not fseek.
88958 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88960         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88961         assumes the sorting is stable, while most qsort implementations
88962         are not.  Use argument addresses to ensure they never compare as
88963         equal.
88965         * tests/test-argp-2.sh (usage-indent test): Fix output
88966         (func_compare): Restore diff options
88967         * tests/test-argp.c: Restore #include "progname.h"
88969 2007-04-29  Bruno Haible  <bruno@clisp.org>
88971         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88973         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88975         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88976         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88977         (TESTS, check_PROGRAMS): Add test-snprintf.
88978         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88979         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88980         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88981         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88982         assertions that fail on HP-UX, OSF/1, or IRIX.
88983         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88985 2007-04-29  Bruno Haible  <bruno@clisp.org>
88987         * MODULES.html.sh (posix_functions): Remove 'contents'.
88989 2007-04-29  Karl Berry  <karl@gnu.org>
88991         * config/srclist.txt (gendocs_template_min): new entry.
88993 2007-04-29  Bruno Haible  <bruno@clisp.org>
88995         Work around fpurge bug on BSD systems.
88996         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88997         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88998         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88999         fpurge to rpl_fpurge if the system already has this function.
89000         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
89001         the case where the system already has this function. Correct invariants
89002         on BSD systems.
89003         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
89004         BSD systems.
89006 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
89008         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
89009         proposed by Sven Verdoolaege.
89011         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
89012         options.
89013         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
89014         (usage and help tests): Update
89016 2007-04-29  Bruno Haible  <bruno@clisp.org>
89018         * tests/test-fflush.c (main): Use a file of size 17, not 10.
89019         Print more information in case of failure. Disable a test on BeOS.
89021 2007-04-29  Bruno Haible  <bruno@clisp.org>
89023         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
89024         This helps debugging on systems on which no gdb is available.
89026 2007-04-29  Bruno Haible  <bruno@clisp.org>
89028         * lib/freading.h: Improve comments.
89029         * lib/fwriting.h: Likewise.
89030         * tests/test-freading.c (main): Don't check freading immediately after
89031         repositioning. Needed for glibc.
89033 2007-04-29  Bruno Haible  <bruno@clisp.org>
89035         * lib/freading.c (freading): Trivial simplification.
89037 2007-04-28  Bruno Haible  <bruno@clisp.org>
89039         * tests/test-fwriting.c (main): Also test the interaction between
89040         fflush and fwriting.
89041         * modules/fwriting-tests (Depends-on): Add fflush.
89043         * tests/test-freading.c (main): Also test the interaction between
89044         fflush and freading.
89045         * modules/freading-tests (Depends-on): Add fflush.
89047 2007-04-28  Bruno Haible  <bruno@clisp.org>
89049         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
89050         fseeko and ftello.
89051         Suggested by Eric Blake.
89053 2007-04-28  Jim Meyering  <jim@meyering.net>
89055         Avoid false-negative in gl_STDINT_H's C99 conformance test.
89056         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
89057         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
89059 2007-04-27  Eric Blake  <ebb9@byu.net>
89061         * doc/headers/assert.texi (assert.h): Document assert module use.
89063 2007-04-27  Bruno Haible  <bruno@clisp.org>
89065         * doc/headers/*.texi: New files.
89066         * doc/gnulib.texi (Header File Substitutes): New chapter.
89067         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
89068         dependencies.
89069         (standards.info ,standards.html, standards.dvi): Update dependencies.
89070         (mostlyclean, clean): New targets.
89072 2007-04-27  Bruno Haible  <bruno@clisp.org>
89074         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
89075         * modules/sysexits (Files, Makefile.am): Update.
89077         * lib/sys_socket_.h: Renamed from lib/socket_.h.
89078         * modules/sys_socket (Files, Makefile.am): Update.
89080         * lib/sys_stat_.h: Renamed from lib/stat_.h.
89081         * modules/sys_stat (Files, Makefile.am): Update.
89083 2007-04-27  Eric Blake  <ebb9@byu.net>
89085         * lib/freading.h: Improve comments.
89086         * lib/fwriting.h: Likewise.
89087         * lib/fflush.c: Likewise.
89089         Fix closein for mingw.
89090         * modules/closein-tests: Add tests for closein.
89091         * tests/test-closein.c: New file.
89092         * tests/test-closein.sh: Likewise.
89093         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
89094         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
89096 2007-04-27  Bruno Haible  <bruno@clisp.org>
89098         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
89099         version is < 6.
89100         * lib/math_.h [__DECC]: Likewise.
89101         * lib/stdio_.h [__DECC]: Likewise.
89102         * lib/stdlib_.h [__DECC]: Likewise.
89103         * lib/string_.h [__DECC]: Likewise.
89104         * lib/time_.h [__DECC]: Likewise.
89105         * lib/wchar_.h [__DECC]: Likewise.
89106         * lib/wctype_.h [__DECC]: Likewise.
89108 2007-04-27  Bruno Haible  <bruno@clisp.org>
89110         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
89112 2007-04-27  Bruno Haible  <bruno@clisp.org>
89114         * lib/fflush.c: Add comments.
89115         * modules/fpurge-tests (Depends-on): Add fflush.
89116         * modules/freadable-tests (Depends-on): Likewise.
89117         * modules/fwritable-tests (Depends-on): Likewise.
89119 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
89121         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
89122         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
89123         Report by Bruno Haible <bruno@clisp.org>.
89125 2007-04-26  Eric Blake  <ebb9@byu.net>
89127         Fix fflush on mingw.
89128         * modules/fflush (Depends-on): Add freading.
89129         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
89130         but unread data.
89132 2007-04-26  Eric Blake  <ebb9@byu.net>
89133         and Bruno Haible  <bruno@clisp.org>
89135         Implement freading and fwriting.
89136         * lib/freading.c: New file.
89137         * lib/freading.h: Likewise.
89138         * m4/freading.m4: Likewise.
89139         * modules/freading: Likewise.
89140         * modules/freading-tests: Likewise.
89141         * tests/test-freading.c: Likewise.
89142         * lib/fwriting.c: New file.
89143         * lib/fwriting.h: Likewise.
89144         * m4/fwriting.m4: Likewise.
89145         * modules/fwriting: Likewise.
89146         * modules/fwriting-tests: Likewise.
89147         * tests/test-fwriting.c: Likewise.
89148         * MODULES.html.sh (File stream based Input/Output): Mention them.
89150 2007-04-26  Bruno Haible  <bruno@clisp.org>
89152         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
89153         'long' when we assume it.
89154         Suggested by Eric Blake.
89156 2007-04-26  Bruno Haible  <bruno@clisp.org>
89158         Ensure fseeko, ftello are declared on glibc systems.
89159         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
89160         * modules/fseeko (configure.ac-early): Likewise.
89161         * modules/ftello (configure.ac-early): Likewise.
89162         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
89163         AC_FUNC_FSEEKO for this.
89164         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
89165         (gl_CHECK_FSEEKO): Remove macro.
89167 2007-04-26  Bruno Haible  <bruno@clisp.org>
89169         * tests/test-fflush.c (main): Also check the ftell result after
89170         fflush and fseek/fseeko.
89171         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
89172         file descriptor position cache in the stream.
89173         * lib/fseeko.c (rpl_fseeko): Likewise.
89175 2007-04-26  Bruno Haible  <bruno@clisp.org>
89177         * modules/fflush-tests (Depends-on): Add fseeko.
89179 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
89180             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89182         * lib/argz_.h: ensure error_t definition is obtained in same
89183         mechanism system argz.h would have.
89184         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
89185         argz facilities are known bad.  Err on the side of caution if
89186         cross-compiling.
89188 2007-04-25  Eric Blake  <ebb9@byu.net>
89190         * lib/fpurge.c (includes): Use stdlib.h for free.
89191         * tests/test-fflush.c (main): Also test fflush-fseeko.
89193 2007-04-25  Bruno Haible  <bruno@clisp.org>
89195         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
89196         * lib/fseeko.c: New file.
89197         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
89198         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
89199         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
89200         gl_FUNC_FSEEKO.
89201         (gl_FUNC_FSEEKO): Invoke it.
89202         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
89203         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
89204         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
89206 2007-04-25  Bruno Haible  <bruno@clisp.org>
89208         * modules/fflush (Depends-on): Add ftello.
89210 2007-04-25  Bruno Haible  <bruno@clisp.org>
89212         * modules/ftello-tests: New file.
89213         * tests/test-ftello.c: New file.
89215         * modules/ftello: New file.
89216         * m4/ftello.m4: New file.
89217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
89218         HAVE_FTELLO.
89219         * lib/stdio_.h (ftello): New declaration.
89220         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
89221         HAVE_FTELLO.
89223 2007-04-25  Bruno Haible  <bruno@clisp.org>
89225         * modules/fseeko-tests: New file.
89226         * tests/test-fseeko.c: New file.
89228         * modules/fseeko: New file.
89229         * m4/fseeko.m4: New file.
89230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
89231         HAVE_FSEEKO.
89232         * lib/stdio_.h (fseeko): New declaration.
89233         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
89234         HAVE_FSEEKO.
89236 2007-04-25  Bruno Haible  <bruno@clisp.org>
89238         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
89240 2007-04-25  Bruno Haible  <bruno@clisp.org>
89242         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
89243         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
89244         * tests/test-unistd.c: Likewise.
89245         * tests/test-fcntl.c: Likewise.
89247 2007-04-23  Eric Blake  <ebb9@byu.net>
89249         * lib/fflush.c: Fix missing include.
89250         Reported by Bruno Haible.
89252 2007-04-23  Bruno Haible  <bruno@clisp.org>
89254         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
89255         Reported by Eric Blake.
89257 2007-04-23  Bruno Haible  <bruno@clisp.org>
89259         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
89261 2007-04-23  Bruno Haible  <bruno@clisp.org>
89263         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
89265 2007-04-23  Bruno Haible  <bruno@clisp.org>
89267         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
89268         Needed on HP-UX 11.
89270 2007-04-16  Eric Blake  <ebb9@byu.net>
89272         Make fflush rely on fpurge.
89273         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
89274         open coding all variants.
89275         * modules/fflush (Depends-on): Add fpurge and unistd.
89276         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
89277         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
89279         Fix --with-tests compilation on cygwin.
89280         * modules/argmatch-tests (Makefile.am): List gnulib library first
89281         in LDADD.
89282         * modules/argp-tests (Makefile.am): Likewise.
89283         * modules/array-list-tests (Makefile.am): Likewise.
89284         * modules/array-oset-tests (Makefile.am): Likewise.
89285         * modules/avltree-list-tests (Makefile.am): Likewise.
89286         * modules/avltree-oset-tests (Makefile.am): Likewise.
89287         * modules/avltreehash-list-tests (Makefile.am): Likewise.
89288         * modules/carray-list-tests (Makefile.am): Likewise.
89289         * modules/dirname-tests (Makefile.am): Likewise.
89290         * modules/frexp-tests (Makefile.am): Likewise.
89291         * modules/isnanl-tests (Makefile.am): Likewise.
89292         * modules/linked-list-tests (Makefile.am): Likewise.
89293         * modules/linkedhash-list-tests (Makefile.am): Likewise.
89294         * modules/lock-tests (Makefile.am): Likewise.
89295         * modules/rbtree-list-tests (Makefile.am): Likewise.
89296         * modules/rbtree-oset-tests (Makefile.am): Likewise.
89297         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
89298         * modules/tls-tests (Makefile.am): Likewise.
89299         * modules/tsearch-tests (Makefile.am): Likewise.
89300         * modules/xvasprintf-tests (Makefile.am): Likewise.
89302         Fix fpurge for cygwin.
89303         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
89304         value.
89305         * modules/fpurge-tests (Depends-on): Clean up trash.
89307 2007-04-16  Simon Josefsson  <simon@josefsson.org>
89309         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
89311         * m4/autobuild.m4: Re-indent.
89313 2007-04-13  Bruno Haible  <bruno@clisp.org>
89315         * modules/fpurge-tests: New file.
89316         * tests/test-fpurge.c: New file.
89318         * modules/fpurge: New file.
89319         * lib/fpurge.h: New file.
89320         * lib/fpurge.c: New file.
89321         * m4/fpurge.m4: New file.
89323 2007-04-13  Bruno Haible  <bruno@clisp.org>
89325         * modules/fbufmode-tests: New file.
89326         * tests/test-fbufmode.c: New file.
89328         * modules/fbufmode: New file.
89329         * lib/fbufmode.h: New file.
89330         * lib/fbufmode.c: New file.
89331         * m4/fbufmode.m4: New file.
89333 2007-04-13  Bruno Haible  <bruno@clisp.org>
89335         * modules/fwritable-tests: New file.
89336         * tests/test-fwritable.c: New file.
89338         * modules/fwritable: New file.
89339         * lib/fwritable.h: New file.
89340         * lib/fwritable.c: New file.
89341         * m4/fwritable.m4: New file.
89343 2007-04-13  Bruno Haible  <bruno@clisp.org>
89345         * modules/freadable-tests: New file.
89346         * tests/test-freadable.c: New file.
89348         * modules/freadable: New file.
89349         * lib/freadable.h: New file.
89350         * lib/freadable.c: New file.
89351         * m4/freadable.m4: New file.
89353 2007-04-13  Bruno Haible  <bruno@clisp.org>
89355         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89356         MOSTLYCLEANFILES.
89358 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89360         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89361         gzip bootstrap.conf to avoid dragging in i18n machinery.
89362         (gnulib_tool_option): Use it.
89364 2007-04-13  Bruno Haible  <bruno@clisp.org>
89366         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89367         %F directives.
89368         * tests/test-vasprintf-posix.c (test_function): Likewise.
89369         * tests/test-snprintf-posix.h (test_function): Likewise.
89370         * tests/test-sprintf-posix.h (test_function): Likewise.
89371         * tests/test-fprintf-posix.h (test_function): Likewise.
89372         * tests/test-printf-posix.h (test_function): Likewise.
89373         * tests/test-fprintf-posix.out: Likewise.
89375 2007-04-13  Bruno Haible  <bruno@clisp.org>
89377         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89378         * modules/tls-tests (configure.ac): Likewise.
89379         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89381 2007-04-13  Bruno Haible  <bruno@clisp.org>
89383         * lib/tls.c (glthread_tls_get): Fix return type.
89384         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89386 2007-04-12  Eric Blake  <ebb9@byu.net>
89388         * modules/gettime (Depends-on): Remove gettime.
89389         Reported by Dmitry V. Levin.
89391 2007-04-12  Bruno Haible  <bruno@clisp.org>
89393         * modules/fflush (Include): Mention <stdio.h>.
89394         * modules/strtoimax (Include): Mention <inttypes.h>.
89395         * modules/strtoumax (Include): Likewise.
89397 2007-04-12  Eric Blake  <ebb9@byu.net>
89399         * .cvsignore: New file.
89400         * .gitignore: Likewise.
89402 2007-04-12  Bruno Haible  <bruno@clisp.org>
89404         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89405         not before, since $(LDADD) often contains libgnu.a.
89406         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89407         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89408         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89409         Needed on Cygwin.
89411 2007-04-12  Eric Blake  <ebb9@byu.net>
89413         Work around glibc's failure to flush stdin on fclose.
89414         * lib/closein.c (close_stdin): Flush stdin before closing.
89416         Work around glibc's failure to reset seekable stdin on exit.
89417         * modules/closein: New module.
89418         * lib/closein.c: New file.
89419         * lib/closein.h: Likewise.
89420         * m4/closein.m4: Likewise.
89421         * MODULES.html.sh (File stream based Input/Output): Document it.
89423 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89425         * gnulib-tool: Rename generated 'autobuild' script to
89426         'do-autobuild' in --create-megatestdir output.
89428         * doc/gnulib.texi (Build robot for gnulib): Fix.
89430 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89432         * modules/sysexits (Depends-on): Add absolute-header.
89434 2007-04-12  Eric Blake  <ebb9@byu.net>
89436         No need to preserve errno on success.
89437         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89438         Reported by Bruno Haible.
89440 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89442         * MODULES.html.sh (Support for maintaining and releasing
89443         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89445 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89447         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89449 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89451         * modules/autobuild: New module.
89453         * m4/autobuild.m4: New file.
89455 2007-04-11  Bruno Haible  <bruno@clisp.org>
89457         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89458         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89459         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89467         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89470         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89476         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89479         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89482         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89485         Reported by Eric Blake.
89487 2007-04-11  Bruno Haible  <bruno@clisp.org>
89489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89491 2007-04-10  Bruno Haible  <bruno@clisp.org>
89493         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89494         for NaN and Infinity. Needed on FreeBSD 6.1.
89495         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89496         regarding results for "%010a" of Infinity and NaN.
89497         * tests/test-vasprintf-posix.c (test_function): Likewise.
89498         * tests/test-snprintf-posix.h (test_function): Likewise.
89499         * tests/test-sprintf-posix.h (test_function): Likewise.
89500         * tests/test-fprintf-posix.h (test_function): Likewise.
89501         * tests/test-printf-posix.h (test_function): Likewise.
89502         * tests/test-fprintf-posix.out: Likewise.
89504 2007-04-10  Bruno Haible  <bruno@clisp.org>
89506         * modules/locale-tests: New file.
89507         * tests/test-locale.c: New file.
89509         * modules/locale: New file.
89510         * lib/locale_.h: New file.
89511         * m4/locale_h.m4: New file.
89513 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89514             Bruno Haible  <bruno@clisp.org>
89516         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89517         be determined, test for availability of the copysignf, copysign,
89518         copysignl functions.
89519         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89520         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89521         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89523 2007-04-09  Eric Blake  <ebb9@byu.net>
89525         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89526         * modules/stdio (Makefile.am): Support fflush.
89527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89528         * modules/fflush: New file.
89529         * lib/fflush.c: Likewise.
89530         * m4/fflush.m4: Likewise.
89531         * modules/fflush-tests: New test.
89532         * tests/test-fflush.c: Likewise.
89533         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89535 2007-04-06  Bruno Haible  <bruno@clisp.org>
89537         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89538         (VASNPRINTF): Use signbit for faster determination whether to print a
89539         minus sign.
89540         * modules/vasnprintf (Files): Remove lib/float+.h.
89541         * modules/fprintf-posix (Depends-on): Add signbit.
89542         * modules/snprintf-posix (Depends-on): Likewise.
89543         * modules/sprintf-posix (Depends-on): Likewise.
89544         * modules/vasnprintf-posix (Depends-on): Likewise.
89545         * modules/vasprintf-posix (Depends-on): Likewise.
89546         * modules/vfprintf-posix (Depends-on): Likewise.
89547         * modules/vsnprintf-posix (Depends-on): Likewise.
89548         * modules/vsprintf-posix (Depends-on): Likewise.
89550 2007-04-06  Bruno Haible  <bruno@clisp.org>
89552         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89553         * tests/test-frexpl.c (main): Likewise.
89554         * tests/test-ldexpl.c (main): Likewise.
89555         * modules/frexp-tests (Depends-on): Add signbit.
89556         * modules/frexpl-tests (Depdends-on): Likewise.
89557         * modules/ldexpl-tests (Depdends-on): Likewise.
89559 2007-04-06  Bruno Haible  <bruno@clisp.org>
89561         * modules/signbit-tests: New file.
89562         * tests/test-signbit.c: New file.
89564         * modules/signbit: New file.
89565         * lib/signbitf.c: New file.
89566         * lib/signbitd.c: New file.
89567         * lib/signbitl.c: New file.
89568         * m4/signbit.m4: New file.
89569         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89570         (signbit): New macro.
89571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89572         REPLACE_SIGNBIT.
89573         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89574         REPLACE_FREXPL into math.h.
89576 2007-04-06  Bruno Haible  <bruno@clisp.org>
89578         * modules/isnanf-nolibm-tests: New file.
89579         * tests/test-isnanf.c: New file.
89581         * modules/isnanf-nolibm: New file.
89582         * lib/isnanf.h: New file.
89583         * lib/isnanf.c: New file.
89584         * lib/isnan.c: Consider the USE_FLOAT macro.
89585         * m4/isnanf.m4: New file.
89587 2007-04-06  Bruno Haible  <bruno@clisp.org>
89589         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89590         (Link): New section.
89592         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89594 2007-04-06  Bruno Haible  <bruno@clisp.org>
89596         Assume the 'long double' type.
89597         * m4/longdouble.m4: Remove file.
89598         * config/srclist.txt: Don't mention longdouble.m4.
89599         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89600         * lib/float+.h: Likewise.
89601         * lib/frexp.c: Likewise.
89602         * lib/printf-args.h: Likewise.
89603         * lib/printf-args.c: Likewise.
89604         * lib/printf-frexp.c: Likewise.
89605         * lib/printf-parse.c: Likewise.
89606         * lib/vasnprintf.c: Likewise.
89607         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89608         * m4/intl.m4: Likewise.
89609         * m4/isnanl.m4: Likewise.
89610         * m4/printf.m4: Likewise.
89611         * m4/printf-frexpl.m4: Likewise.
89612         * m4/vasnprintf.m4: Likewise.
89613         * modules/allocsa (Files): Remove m4/longdouble.m4.
89614         * modules/gettext (Files): Likewise.
89615         * modules/relocatable-prog-wrapper (Files): Likewise.
89616         * modules/vasnprintf (Files): Likewise.
89617         * modules/isnanl (Files): Likewise.
89618         (Include): Simplify.
89619         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89620         (Include): Simplify.
89621         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89622         (Include): Simplify.
89623         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89624         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89625         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89626         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89627         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89628         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89629         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89630         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89631         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89632         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89633         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89634         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89635         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89636         * tests/test-isnanl.c: Likewise.
89637         * tests/test-snprintf-posix.h: Likewise.
89638         * tests/test-sprintf-posix.h: Likewise.
89639         * tests/test-vasnprintf-posix.c: Likewise.
89640         * tests/test-vasnprintf-posix2.c: Likewise.
89641         * tests/test-vasprintf-posix.c: Likewise.
89643 2007-04-06  Bruno Haible  <bruno@clisp.org>
89645         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89646         * lib/math_.h [__DECC]: Include the overridden include file through
89647         #include_next, outside the double-inclusion guard.
89648         * lib/stdio_.h [__DECC]: Likewise.
89649         * lib/stdlib_.h [__DECC]: Likewise.
89650         * lib/string_.h [__DECC]: Likewise.
89651         * lib/time_.h [__DECC]: Likewise.
89652         * lib/wchar_.h [__DECC]: Likewise.
89653         * lib/wctype_.h [__DECC]: Likewise.
89654         * lib/inttypes_.h [__DECC]: Likewise.
89655         Reported by Albert Chin <china@thewrittenword.com> in
89656         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89658 2007-04-04  Eric Blake  <ebb9@byu.net>
89660         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89661         1.5.x.
89663 2007-04-04  Bruno Haible  <bruno@clisp.org>
89665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89666         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89668 2007-04-04  Bruno Haible  <bruno@clisp.org>
89670         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89671         results for "%010a" of Infinity and NaN.
89672         * tests/test-vasprintf-posix.c (test_function): Likewise.
89673         * tests/test-snprintf-posix.h (test_function): Likewise.
89674         * tests/test-sprintf-posix.h (test_function): Likewise.
89675         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89676         * tests/test-printf-posix.h (test_function): Likewise.
89677         * tests/test-fprintf-posix.out: Update.
89678         Needed for FreeBSD 6.1.
89680 2007-04-04  Bruno Haible  <bruno@clisp.org>
89682         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89683         directly used by the gnulib modules nor by gnulib-tool.
89685 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89687         * DEPENDENCIES: Give overall description of version dependency
89688         desirability.  Use more-typical names for apps.
89689         Add shell, coreutils, diffutils, grep, tar, gzip.
89691 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89693         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89695 2007-04-04  Karl Berry  <karl@gnu.org>
89697         * MODULES.html.sh (func_module): missing '.
89699 2007-04-03  Bruno Haible  <bruno@clisp.org>
89701         * modules/argmatch-tests (Makefile.am): New variable
89702         test_argmatch_LDADD.
89703         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89704         * modules/array-list-tests (Makefile.am): New variable
89705         test_array_list_LDADD.
89706         * modules/array-oset-tests (Makefile.am): New variable
89707         test_array_oset_LDADD.
89708         * modules/avltree-list-tests (Makefile.am): New variable
89709         test_avltree_list_LDADD.
89710         * modules/avltree-oset-tests (Makefile.am): New variable
89711         test_avltree_oset_LDADD.
89712         * modules/avltreehash-list-tests (Makefile.am): New variable
89713         test_avltreehash_list_LDADD.
89714         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89715         test_canonicalize_lgpl_LDADD.
89716         * modules/carray-list-tests (Makefile.am): New variable
89717         test_carray_list_LDADD.
89718         * modules/dirname-tests (Makefile.am): New variable
89719         test_dirname_LDADD.
89720         * modules/linked-list-tests (Makefile.am): New variable
89721         test_linked_list_LDADD.
89722         * modules/linkedhash-list-tests (Makefile.am): New variable
89723         test_linkedhash_list_LDADD.
89724         * modules/rbtree-list-tests (Makefile.am): New variable
89725         test_rbtree_list_LDADD.
89726         * modules/rbtree-oset-tests (Makefile.am): New variable
89727         test_rbtree_oset_LDADD.
89728         * modules/rbtreehash-list-tests (Makefile.am): New variable
89729         test_rbtreehash_list_LDADD.
89730         * modules/xvasprintf-tests (Makefile.am): New variable
89731         test_xvasprintf_LDADD.
89732         Reported by Eric Blake.
89734 2007-04-03  Eric Blake  <ebb9@byu.net>
89736         * DEPENDENCIES: Weaken m4 requirements.
89738 2007-04-03  Bruno Haible  <bruno@clisp.org>
89740         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89741         * modules/isnanl-tests (configure.ac): Likewise.
89743 2007-04-03  Ben Pfaff  <blp@gnu.org>
89745         * modules/iconv_open: Add $(srcdir)/ to source directory
89746         references in Makefile fragments that call gperf, to fix VPATH
89747         builds.
89749 2007-04-03  Bruno Haible  <bruno@clisp.org>
89751         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89752         * lib/ldexpl.c: Undo last change.
89754 2007-04-03  Bruno Haible  <bruno@clisp.org>
89756         * modules/printf-frexpl (Depends-on): Undo last change.
89757         (Files): Add m4/ldexpl.m4.
89759 2007-04-03  Bruno Haible  <bruno@clisp.org>
89761         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89762         * modules/isnanl (Link): New section.
89764         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89765         * modules/frexp (Link): New section.
89767         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89768         * modules/frexpl (Link): New section.
89770         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89771         * modules/ldexpl (Link): New section.
89773 2007-04-03  Bruno Haible  <bruno@clisp.org>
89775         * modules/TEMPLATE-EXTENDED: New file.
89776         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89778 2007-04-03  Bruno Haible  <bruno@clisp.org>
89780         * DEPENDENCIES: New file.
89781         Suggested by Simon Josefsson.
89783 2007-04-03  Bruno Haible  <bruno@clisp.org>
89785         * doc/gnulib.texi: Escape @.
89787 2007-04-03  James Youngman  <jay@gnu.org>
89788         and Paul Eggert  <eggert@cs.ucla.edu>
89790         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89791         birthtime on all systems that have birthtime, not just those which
89792         use st_birthtimensec rather than st_birthtim.  Putting zero in
89793         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89794         that the birth time is not available for files on an NFS mount.
89796 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89798         * modules/memxor: Move back from crypto/, suggested by Bruno.
89799         * modules/crypto/hmac-sha1: Fix memxor dependency.
89801         * modules/crypto/gc: Moved from ../.
89803 2007-04-02  Eric Blake  <ebb9@byu.net>
89805         * lib/ldexpl.c (includes): Avoid libm.
89807         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89809 2007-04-02  Bruno Haible  <bruno@clisp.org>
89811         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89812         on IRIX.
89814 2007-04-02  Bruno Haible  <bruno@clisp.org>
89816         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89817         x86 or x86_64 platforms running MacOS X.
89818         Reported by Ryan Schmidt <@ryandesign.com>.
89820 2007-04-02  Bruno Haible  <bruno@clisp.org>
89822         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89823         i386.
89825 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89827         * modules/crypto/arcfour: Moved from ../.
89828         * modules/crypto/arcfour-tests: Moved from ../.
89829         * modules/crypto/arctwo: Moved from ../.
89830         * modules/crypto/arctwo-tests: Moved from ../.
89831         * modules/crypto/des: Moved from ../.
89832         * modules/crypto/des-tests: Moved from ../.
89833         * modules/crypto/gc-arcfour: Moved from ../.
89834         * modules/crypto/gc-arcfour-tests: Moved from ../.
89835         * modules/crypto/gc-arctwo: Moved from ../.
89836         * modules/crypto/gc-arctwo-tests: Moved from ../.
89837         * modules/crypto/gc-des: Moved from ../.
89838         * modules/crypto/gc-des-tests: Moved from ../.
89839         * modules/crypto/gc-hmac-md5: Moved from ../.
89840         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89841         * modules/crypto/gc-hmac-sha1: Moved from ../.
89842         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89843         * modules/crypto/gc-md2: Moved from ../.
89844         * modules/crypto/gc-md2-tests: Moved from ../.
89845         * modules/crypto/gc-md4: Moved from ../.
89846         * modules/crypto/gc-md4-tests: Moved from ../.
89847         * modules/crypto/gc-md5: Moved from ../.
89848         * modules/crypto/gc-md5-tests: Moved from ../.
89849         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89850         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89851         * modules/crypto/gc-random: Moved from ../.
89852         * modules/crypto/gc-rijndael: Moved from ../.
89853         * modules/crypto/gc-rijndael-tests: Moved from ../.
89854         * modules/crypto/gc-sha1: Moved from ../.
89855         * modules/crypto/gc-sha1-tests: Moved from ../.
89856         * modules/crypto/gc-tests: Moved from ../.
89857         * modules/crypto/hmac-md5: Moved from ../.
89858         * modules/crypto/hmac-md5-tests: Moved from ../.
89859         * modules/crypto/hmac-sha1: Moved from ../.
89860         * modules/crypto/hmac-sha1-tests: Moved from ../.
89861         * modules/crypto/md2: Moved from ../.
89862         * modules/crypto/md2-tests: Moved from ../.
89863         * modules/crypto/md4: Moved from ../.
89864         * modules/crypto/md4-tests: Moved from ../.
89865         * modules/crypto/md5: Moved from ../.
89866         * modules/crypto/md5-tests: Moved from ../.
89867         * modules/crypto/memxor: Moved from ../.
89868         * modules/crypto/rijndael: Moved from ../.
89869         * modules/crypto/rijndael-tests: Moved from ../.
89870         * modules/crypto/sha1: Moved from ../.
89872 2007-03-30  James Youngman  <jay@gnu.org>
89874         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89875         rename() to change the ctime of a file (because ctime is unaffected
89876         by rename on jfs2 on AIX 5.1).
89877         (main): Start by doing cleanup, in case a previous run failed leaving
89878         test files behind.
89880 2007-03-31  Bruno Haible  <bruno@clisp.org>
89882         Support old proprietary implementations of iconv.
89883         * modules/iconv_open: New file.
89884         * lib/iconv_.h: New file.
89885         * m4/iconv_h.m4: New file.
89886         * lib/iconv_open.c: New file.
89887         * lib/iconv_open-aix.gperf: New file.
89888         * lib/iconv_open-hpux.gperf: New file.
89889         * lib/iconv_open-irix.gperf: New file.
89890         * lib/iconv_open-osf.gperf: New file.
89891         * m4/iconv_open.m4: New file.
89892         * modules/linebreak (Depends-on): Add iconv_open.
89893         * modules/striconv (Depends-on): Likewise.
89894         * modules/striconveh (Depends-on): Likewise.
89895         * modules/unicodeio (Depends-on): Likewise.
89896         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89897         (iconv_t)(-1).
89898         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89899         conversion if cd is (iconv_t)(-1).
89900         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89901         is not possible.
89903 2007-03-31  Bruno Haible  <bruno@clisp.org>
89905         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89906         work on Solaris either. Protect also second use of "autodetect_jp".
89908 2007-03-31  Bruno Haible  <bruno@clisp.org>
89910         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89911         the function is not present.
89913 2007-03-31  Bruno Haible  <bruno@clisp.org>
89915         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89916         the function is not present.
89918 2007-03-31  Bruno Haible  <bruno@clisp.org>
89920         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89921         a bug in HP-UX iconv_open().
89923 2007-03-31  Bruno Haible  <bruno@clisp.org>
89925         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89926         (Mathematics <math.h>): New section, add fpieee.
89927         (Input/output <stdio.h>): Add fseterr.
89928         (Mathematics <math.h>): New section, add printf-frexp.
89929         (Container data structures): Add sublist.
89930         (Core language properties): Add fpucw, inline.
89931         (Functions for greatest-width integer types <inttypes.h>): Add
89932         imaxabs, imaxdiv, inttypes.
89933         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89934         isnanl-nolibm, ldexp.
89935         (Mathematics <math.h>): New section, add printf-frexpl.
89936         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89937         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89938         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89939         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89940         (Unicode string functions): Add unistr/u*-mbtoucr.
89941         (Java): Add javacomp-script, javaexec-script.
89942         (C#): Add csharpcomp-script, csharpexec-script.
89943         (Support for building libraries and executables): Add havelib,
89944         relocatable-*.
89945         (Support for maintaining and releasing projects): Renamed from
89946         'Support for maintaining and release projects'. Add announce-gen.
89948 2007-03-31  Bruno Haible  <bruno@clisp.org>
89950         * README: Talk primarily about git.
89951         (git and CVS): Renamed from CVS.
89952         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89953         gnulib is available through git.
89954         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89956 2007-03-30  Bruno Haible  <bruno@clisp.org>
89958         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89959         * lib/poll_.h: Likewise.
89960         * lib/stat_.h: Likewise.
89961         * lib/sys_time_.h: Likewise.
89962         * lib/sysexit_.h: Likewise.
89963         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89964         * lib/stdbool_.h: Likewise.
89965         * lib/byteswap_.h: Add double-inclusion guard.
89967 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89969         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89971 2007-03-30  Karl Berry  <karl@gnu.org>
89973         * config/srclist-update: double space after USA in the license
89974         substitution, since that's how it's usually (?) written.
89976 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89978         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89979         reported by Bruno Haible.
89981 2007-03-29  Bruno Haible  <bruno@clisp.org>
89983         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89984         a bug in AIX iconv().
89986 2007-03-29  Bruno Haible  <bruno@clisp.org>
89988         * modules/ldexpl-tests: New file.
89989         * tests/test-ldexpl.c: New file.
89991 2007-03-29  Bruno Haible  <bruno@clisp.org>
89993         * lib/ldexpl.c: Include fpucw.h.
89994         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89995         multiplication.
89996         * modules/ldexpl (Depends-on): Add fpucw.
89998 2007-03-29  Bruno Haible  <bruno@clisp.org>
90000         * modules/ldexpl: New file.
90001         * m4/ldexpl.m4: New file.
90002         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
90003         set.
90004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
90005         REPLACE_LDEXPL.
90006         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
90007         REPLACE_LDEXPL.
90008         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
90009         gl_FUNC_LDEXPL_WORKS.
90010         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
90011         * modules/mathl (Files): Remove lib/ldexpl.c.
90012         (Depends-on): Add ldexpl.
90014 2007-03-29  Bruno Haible  <bruno@clisp.org>
90016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
90018 2007-03-29  Bruno Haible  <bruno@clisp.org>
90020         * tests/test-striconveh.c (main): Don't assume that a direct conversion
90021         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
90022         and possibly also HP-UX.
90023         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
90024         work on AIX, IRIX, HP-UX, OSF/1.
90025         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
90026         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
90027         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
90028         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
90029         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
90030         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
90032 2007-03-29  Bruno Haible  <bruno@clisp.org>
90034         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
90036 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
90038         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
90039         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
90041 2007-03-29  Eric Blake  <ebb9@byu.net>
90043         * lib/acl-internal.h: Remove redundant include.
90044         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
90045         Cygwin when a file is locked.
90047 2007-03-29  Bruno Haible  <bruno@clisp.org>
90049         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
90050         file.
90051         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
90053 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
90055         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
90056         try to remove a parent directory if the child couldn't be removed
90057         (except for the first rmdir, which could fail because the child
90058         doesn't exist).  Problem reported by Jeff Blaine in
90059         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
90061 2007-03-28  Bruno Haible  <bruno@clisp.org>
90063         * lib/striconveh.c (utf8conv_carefully): New function.
90064         (mem_cd_iconveh_internal): Invoke it.
90066 2007-03-28  Bruno Haible  <bruno@clisp.org>
90068         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
90069         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
90070         input.
90071         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
90072         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
90073         unistr/u8-uctomb.
90075 2007-03-28  Bruno Haible  <bruno@clisp.org>
90077         * modules/unistr/u8-mbtoucr: New file.
90078         * lib/unistr/u8-mbtoucr.c: New file.
90079         * modules/unistr/u16-mbtoucr: New file.
90080         * lib/unistr/u16-mbtoucr.c: New file.
90081         * modules/unistr/u16-mbtoucr: New file.
90082         * lib/unistr/u16-mbtoucr.c: New file.
90083         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
90085 2007-03-27  Simon Josefsson  <simon@josefsson.org>
90086             Bruno Haible  <bruno@clisp.org>
90088         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
90089         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
90090         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
90092         * m4/stdio_h.m4: Add stubs for vasprintf too.
90094         * modules/stdio: Support vasprintf in sed command.
90096         * modules/vasprintf: Depend on stdio for prototypes.  Remove
90097         vasprintf.h.  Add stdio module indicator.
90099         * lib/stdio_.h: Declare asprintf and vasprintf, based on
90100         vasprintf.h.
90102         * lib/vasprintf.h: File removed.
90104         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
90105         * lib/vasprintf.c: Ditto.
90106         * lib/xvasprintf.c: Ditto.
90107         * tests/test-vasprintf-posix.c: Ditto.
90108         * tests/test-vasprintf.c: Ditto.
90110 2007-03-27  Bruno Haible  <bruno@clisp.org>
90112         Make vasnprintf multithread-safe.
90113         * lib/vasnprintf.c (decimal_point_char): New function.
90114         (VASNPRINTF): Use it.
90115         Suggested by Simon Josefsson.
90117 2007-03-27  Eric Blake  <ebb9@byu.net>
90119         Support sub-second birthtime on cygwin.
90120         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
90121         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
90122         (get_stat_birthtime): Also work with st_birthtim.
90124 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
90126         * lib/stat-time.h (USE_BIRTHTIME): Remove.
90127         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
90128         (get_stat_birthtime_ns): Do not try to use "spare" fields.
90129         (get_stat_birthtime_ns): Simplify compile-time tests.
90130         (get_stat_birthtime): Change the API to look like
90131         get_stat_mtime etc., except return a negative tv_nsec on error.
90132         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
90133         Don't check for "spare" fields.
90134         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
90135         or for struct stat.st_birthtime, as these tests aren't used.
90136         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
90138 2007-03-27  Bruno Haible  <bruno@clisp.org>
90140         * lib/stat-time.h: Include <sys/stat.h>.
90142 2007-03-27  James Youngman  <jay@gnu.org>
90144         * lib/stat-time.h (get_stat_birthtime): New function for
90145           retrieving st_birthtime as provided by UFS2 (hence *BSD).
90146         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
90147           and its variants.
90148         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
90149         * modules/stat-time-test: New file.
90150         * tests/test-stat-time.c: New test, devised by Bruno Haible.
90152 2007-03-26  Bruno Haible  <bruno@clisp.org>
90154         Better support of signalling NaNs.
90155         * lib/atanl.c: Include isnanl.h.
90156         (atanl): Perform test for NaN at the beginning of the function and
90157         through a call to isnanl.
90158         * lib/cosl.c: Include isnanl.h.
90159         (cosl): Perform test for NaN at the beginning of the function and
90160         through a call to isnanl.
90161         * lib/ldexpl.c: Include isnanl.h.
90162         (ldexpl): Perform test for NaN through a call to isnanl.
90163         * lib/logl.c: Include isnanl.h.
90164         (logl): Perform test for NaN at the beginning of the function and
90165         through a call to isnanl.
90166         * lib/sinl.c: Include isnanl.h.
90167         (sinl): Perform test for NaN at the beginning of the function and
90168         through a call to isnanl.
90169         * lib/sqrtl.c: Include isnanl.h.
90170         (sqrtl): Perform test for NaN at the beginning of the function and
90171         through a call to isnanl.
90172         * lib/tanl.c: Include isnanl.h.
90173         (tanl): Perform test for NaN at the beginning of the function and
90174         through a call to isnanl.
90175         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
90176         * modules/mathl (Depends-on): Add isnanl.
90178 2007-03-26  Eric Blake  <ebb9@byu.net>
90180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
90181         regression in logic sense of previous patch.
90183 2007-03-26  Bruno Haible  <bruno@clisp.org>
90185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
90186         unportable shell command "if ! ...".
90187         Reported by Ralf Wildenhues.
90189 2007-03-25  Bruno Haible  <bruno@clisp.org>
90191         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
90192         <sysexits.h> file, and only add EX_CONFIG.
90193         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
90194         absolute file name and whether it is sufficient. Substitute also
90195         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
90196         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
90197         ABSOLUTE_SYSEXITS_H into sysexits.h.
90199 2007-03-25  Bruno Haible  <bruno@clisp.org>
90201         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
90202         hints is NULL.
90204 2007-03-25  Bruno Haible  <bruno@clisp.org>
90206         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
90207         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
90209 2007-03-25  Bruno Haible  <bruno@clisp.org>
90211         * lib/vasnprintf.c: Include langinfo.h.
90212         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
90213         multithread-safe.
90214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
90215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
90216         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
90217         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90218         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90219         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90220         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
90221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
90222         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90223         Reported by Simon Josefsson.
90225 2007-03-25  Bruno Haible  <bruno@clisp.org>
90227         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
90228         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
90229         * modules/vasnprintf (Depends-on): Add stdint.
90231 2007-03-25  Bruno Haible  <bruno@clisp.org>
90233         * modules/fpieee: New file.
90234         * m4/fpieee.m4: New file.
90235         * modules/isnan-nolibm (Depends-on): Add fpieee.
90236         * modules/isnanl-nolibm (Depends-on): Add fpieee.
90237         * modules/isnanl (Depends-on): Add fpieee.
90239 2007-03-25  Bruno Haible  <bruno@clisp.org>
90241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
90243 2007-03-25  Bruno Haible  <bruno@clisp.org>
90245         Avoid test failures on IRIX 6.5.
90246         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
90247         (main): Use it.
90248         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
90249         macros.
90250         (main): Use them.
90252 2007-03-25  Bruno Haible  <bruno@clisp.org>
90254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
90255         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
90256         exists but doesn't work.
90257         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
90258         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
90259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
90260         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
90261         math.h.
90263 2007-03-25  Bruno Haible  <bruno@clisp.org>
90265         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
90266         returns inf. Needed on IRIX 6.5.
90268 2007-03-25  Bruno Haible  <bruno@clisp.org>
90270         * tests/test-frexpl.c: Include isnanl-nolibm.h.
90271         (main): Use isnanl instead of x != x idiom.
90272         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
90274         * tests/test-frexp.c: Include isnan.h.
90275         (main): Use isnan instead of x != x idiom.
90276         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
90278 2007-03-25  Bruno Haible  <bruno@clisp.org>
90280         * tests/test-frexp.c (NaN): New function/macro.
90281         (main): Use it instead of 0.0 / 0.0.
90282         * tests/test-isnan.c (NaN): New function/macro.
90283         (main): Use it instead of 0.0 / 0.0.
90284         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
90285         (test_function): Use it instead of 0.0 / 0.0.
90286         * tests/test-vasprintf-posix.c (NaN): New function/macro.
90287         (test_function): Use it instead of 0.0 / 0.0.
90288         * tests/test-snprintf-posix.h (NaN): New function/macro.
90289         (test_function): Use it instead of 0.0 / 0.0.
90290         * tests/test-sprintf-posix.h (NaN): New function/macro.
90291         (test_function): Use it instead of 0.0 / 0.0.
90292         * tests/test-fprintf-posix.h (NaN): New function/macro.
90293         (test_function): Use it instead of 0.0 / 0.0.
90294         * tests/test-printf-posix.h (NaN): New function/macro.
90295         (test_function): Use it instead of 0.0 / 0.0.
90297         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
90299 2007-03-25  Bruno Haible  <bruno@clisp.org>
90301         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
90303 2007-03-25  Bruno Haible  <bruno@clisp.org>
90305         * lib/regexec.c (merge_state_with_log): Make static.
90307 2007-03-25  Bruno Haible  <bruno@clisp.org>
90309         * lib/trigl.c (kernel_rem_pio2): Make static.
90311 2007-03-25  Bruno Haible  <bruno@clisp.org>
90313         * lib/sincosl.c (sincosl_table): Make static.
90315 2007-03-25  Bruno Haible  <bruno@clisp.org>
90317         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
90318         if the compiler does not support C99.
90320 2007-03-25  Bruno Haible  <bruno@clisp.org>
90322         * modules/time (Makefile.am): Ensure all rule action lines start with a
90323         tab.
90325 2007-03-24  Bruno Haible  <bruno@clisp.org>
90327         * modules/tsearch-tests: New file.
90328         * tests/test-tsearch.sh: New file.
90329         * tests/test-tsearch.c: New file, mostly copied from glibc.
90331         * modules/search-tests: New file.
90332         * tests/test-search.c: New file.
90334         * modules/search: New file.
90335         * lib/search_.h: New file, incorporating lib/tsearch.h.
90336         * m4/search_h.m4: New file.
90337         * lib/tsearch.h: Remove file.
90338         * lib/tsearch.c: Include search.h instead of tsearch.h.
90339         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90340         HAVE_TSEARCH.
90341         * modules/tsearch (Files): Remove lib/tsearch.h.
90342         (Depends-on): Add search.
90343         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90344         (Include): Change tsearch.h into search.h.
90346 2007-03-24  Bruno Haible  <bruno@clisp.org>
90348         * modules/fpucw: New file.
90349         * lib/fpucw.h: New file.
90350         * lib/frexp.c: Include fpucw.h.
90351         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90352         (FUNC): Use them.
90353         * lib/printf-frexp.c: Include fpucw.h.
90354         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90355         (FUNC): Use them.
90356         * lib/vasnprintf.c: Include fpucw.h.
90357         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90358         'long double' calculations.
90359         * tests/test-frexpl.c: Include fpucw.h.
90360         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90361         * tests/test-printf-frexpl.c: Include fpucw.h.
90362         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90363         * modules/frexpl (Depends-on): Add fpucw.
90364         * modules/printf-frexpl (Depends-on): Likewise.
90365         * modules/fprintf-posix (Depends-on): Likewise.
90366         * modules/snprintf-posix (Depends-on): Likewise.
90367         * modules/sprintf-posix (Depends-on): Likewise.
90368         * modules/vasnprintf-posix (Depends-on): Likewise.
90369         * modules/vasprintf-posix (Depends-on): Likewise.
90370         * modules/vfprintf-posix (Depends-on): Likewise.
90371         * modules/vsnprintf-posix (Depends-on): Likewise.
90372         * modules/vsprintf-posix (Depends-on): Likewise.
90373         * modules/frexpl-tests (Depends-on): Likewise.
90374         * modules/printf-frexpl-tests (Depends-on): Likewise.
90376 2007-03-24  Bruno Haible  <bruno@clisp.org>
90378         * lib/float+.h: New file.
90379         * lib/isnan.c: Include float+.h.
90380         (SIZE): New macro.
90381         (FUNC): Compare only SIZE bytes of the value.
90382         * lib/vasnprintf.c: Include float+.h.
90383         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90384         SIZEOF_LDBL or SIZEOF_DBL bytes.
90385         * modules/isnan-nolibm (Files): Add lib/float+.h.
90386         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90387         * modules/isnanl (Files): Add lib/float+.h.
90388         * modules/vasnprintf (Files): Add lib/float+.h.
90390 2007-03-24  Bruno Haible  <bruno@clisp.org>
90392         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90393         include isnanl-nolibm.h.
90395 2007-03-24  Bruno Haible  <bruno@clisp.org>
90397         * tests/test-read-file.c (main): Don't produce spurious output for
90398         expected situations. Make the test fail if it encountered unexpected
90399         results.
90401 2007-03-24  Bruno Haible  <bruno@clisp.org>
90403         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90404         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90406 2007-03-24  Bruno Haible  <bruno@clisp.org>
90408         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90410 2007-03-24  Bruno Haible  <bruno@clisp.org>
90412         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90413         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90415         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90416         * modules/utf8-ucs4: Turn into a symbolic link to module
90417         unistr/u8-mbtouc.
90419         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90420         utf8-ucs4-unsafe.
90421         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90422         unistr/u8-mbtouc-unsafe.
90424         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90425         * modules/utf16-ucs4: Turn into a symbolic link to module
90426         unistr/u16-mbtouc.
90428         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90429         utf16-ucs4-unsafe.
90430         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90431         unistr/u16-mbtouc-unsafe.
90433         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90434         * modules/ucs4-utf8: Turn into a symbolic link to module
90435         unistr/u8-ubtomb.
90437         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90438         * modules/ucs4-utf16: Turn into a symbolic link to module
90439         unistr/u16-ubtomb.
90441 2007-03-24  Bruno Haible  <bruno@clisp.org>
90443         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90444         Enable the function only if HAVE_INLINE.
90445         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90446         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90447         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90448         Enable the function only if HAVE_INLINE.
90449         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90450         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90451         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90452         Enable the function only if HAVE_INLINE.
90453         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90454         Enable the function only if HAVE_INLINE.
90455         * modules/utf8-ucs4: Update.
90456         * modules/utf8-ucs4-unsafe: Update.
90457         * modules/utf16-ucs4: Update.
90458         * modules/utf16-ucs4-unsafe: Update.
90459         * modules/ucs4-utf8: Update.
90460         * modules/ucs4-utf16: Update.
90462 2007-03-24  Bruno Haible  <bruno@clisp.org>
90464         * lib/utf8-ucs4.h: Remove file.
90465         * lib/utf8-ucs4-unsafe.h: Remove file.
90466         * lib/utf16-ucs4.h: Remove file.
90467         * lib/utf16-ucs4-unsafe.h: Remove file.
90468         * lib/ucs4-utf8.h: Remove file.
90469         * lib/ucs4-utf16.h: Remove file.
90470         * lib/unistr.h: Include their previous contents.
90471         * m4/utf-ucs4.m4: Remove file.
90472         * m4/ucs4-utf.m4: Remove file.
90473         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
90474         (Depends-on): Add unistr/base.
90475         (configure.ac): Remove gl_UTF_UCS4.
90476         (Makefile.am): Update.
90477         (Include): Change to unistr.h.
90478         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
90479         (Depends-on): Add unistr/base.
90480         (configure.ac): Remove gl_UTF_UCS4.
90481         (Makefile.am): Update.
90482         (Include): Change to unistr.h.
90483         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90484         (Depends-on): Add unistr/base.
90485         (configure.ac): Remove gl_UTF_UCS4.
90486         (Makefile.am): Update.
90487         (Include): Change to unistr.h.
90488         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90489         (Depends-on): Add unistr/base.
90490         (configure.ac): Remove gl_UTF_UCS4.
90491         (Makefile.am): Update.
90492         (Include): Change to unistr.h.
90493         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90494         (Depends-on): Add unistr/base.
90495         (configure.ac): Remove gl_UCS4_UTF.
90496         (Makefile.am): Update.
90497         (Include): Change to unistr.h.
90498         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90499         (Depends-on): Add unistr/base.
90500         (configure.ac): Remove gl_UCS4_UTF.
90501         (Makefile.am): Update.
90502         (Include): Change to unistr.h.
90503         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90504         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90505         utf8-ucs4-unsafe.h.
90506         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90507         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90508         utf16-ucs4-unsafe.h.
90509         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90510         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90511         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90512         * lib/unistr/u8-strchr.c: Likewise.
90513         * lib/unistr/u8-strrchr.c: Likewise.
90514         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90515         * lib/unistr/u16-strchr.c: Likewise.
90516         * lib/unistr/u16-strrchr.c: Likewise.
90517         * lib/striconveh.c: Update.
90518         * lib/linebreak.c: Update.
90520 2007-03-24  Bruno Haible  <bruno@clisp.org>
90522         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90523         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90525 2007-03-22  Bruno Haible  <bruno@clisp.org>
90527         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90529 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90531         * MODULES.html.sh (File system functions): New module write-any-file.
90532         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90533         * m4/write-any-file.m4: New files.
90535 2007-03-23  Eric Blake  <ebb9@byu.net>
90537         * gnulib-tool: Rearrange space-tab sequences, since some editors
90538         like to eat them.
90540 2007-03-23  Eric Blake  <ebb9@byu.net>
90542         * lib/version-etc.c (version_etc_va): Update license wording to
90543         be more concise.  Recommended by Richard Stallman.
90545 2007-03-22  Bruno Haible  <bruno@clisp.org>
90547         * lib/poll.c (MSG_PEEK): New fallback definition.
90549 2007-03-22  Bruno Haible  <bruno@clisp.org>
90551         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90552         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90553         (main): Update.
90554         Fixes a compilation error on BeOS.
90556 2007-03-22  Bruno Haible  <bruno@clisp.org>
90558         * modules/frexpl-tests: New file.
90559         * tests/test-frexpl.c: New file.
90561         * modules/frexpl: New file.
90562         * m4/frexpl.m4: New file.
90563         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90564         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90566         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90567         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90568         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90570 2007-03-22  Bruno Haible  <bruno@clisp.org>
90572         * lib/frexpl.c: Share code with lib/frexp.c.
90573         * modules/mathl (Files): Add lib/frexp.c.
90574         (Depends-on): Add isnanl-nolibm.
90576 2007-03-22  Bruno Haible  <bruno@clisp.org>
90578         * modules/printf-frexp (Files): Add m4/frexp.m4.
90579         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90580         only if the found frexp function actually works.
90582 2007-03-22  Bruno Haible  <bruno@clisp.org>
90584         * lib/frexp.c: Remove older implementation that uses divisions.
90586 2007-03-21  Bruno Haible  <bruno@clisp.org>
90588         * modules/frexp-tests: New file.
90589         * tests/test-frexp.c: New file.
90591         * modules/frexp: New file.
90592         * lib/frexp.c: New file.
90593         * m4/frexp.m4: New file.
90594         * lib/math_.h (frexp): New declaration.
90595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90596         REPLACE_FREXP.
90597         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90599 2007-03-21  Bruno Haible  <bruno@clisp.org>
90601         * modules/isnanl-tests: New file.
90602         * tests/test-isnanl.c: New file.
90604         * modules/isnanl: New file.
90605         * lib/isnanl.h: New file.
90606         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90607         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90608         gl_FUNC_ISNANL_WORKS.
90609         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90610         New macros.
90612 2007-03-21  Bruno Haible  <bruno@clisp.org>
90614         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90615         lib/isnanl.h.
90616         (Include): Update.
90617         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90618         * lib/vasnprintf.c: Update.
90619         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90620         tests/test-isnanl.h, remove tests/test-isnanl.c.
90621         (Makefile.am): Update.
90622         * tests/test-isnanl-nolibm.c: New file.
90623         * tests/test-isnanl.h: New file.
90624         * tests/test-isnanl.c: Remove file.
90626 2007-03-21  Jim Meyering  <jim@meyering.net>
90628         When trying to open ".", treat ESTALE like EACCES.
90629         * lib/savewd.c (savewd_save): Resort to forking not just upon
90630         failure with EACCES, but also when errno is ESTALE.
90632 2007-03-20  Bruno Haible  <bruno@clisp.org>
90634         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90635         Needed on AIX 5.1. Reported by Matthew Woehlke.
90637 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90639         Suggestions by Bruno Haible:
90640         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90641         our own.
90642         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90643         * modules/acl (Depends-on): Add gettext.
90645 2007-03-19  Bruno Haible  <bruno@clisp.org>
90647         * modules/iconvme: Remove file.
90648         * lib/iconvme.h: Remove file.
90649         * lib/iconvme.c: Remove file.
90650         * m4/iconvme.m4: Remove file.
90652 2007-03-19  Bruno Haible  <bruno@clisp.org>
90654         * doc/relocatable-maint.texi: Break long shell script line.
90655         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90657 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90659         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90660         handle file_has_acl.
90661         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90662         * lib/acl.c: Move header inclusions and related macro defns into
90663         lib/acl-internal.h.
90664         (S_ISLNK): Remove defn, since that's now done for us.
90665         (file_has_acl): Move to lib/file-has-acl.c.
90666         Call acl_trivial if available.  This is the crucial part of the fix.
90667         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90668         shared within the library.  Rewrite a bit, partly to make it compatible
90669         with the GNU coding style.
90670         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90671         Remove unnecessary double-quotes.
90672         Don't test for acl_to_text; the build will catch that.
90673         Replace acl_entries if it doesn't exist and it is needed.
90674         Check for -lsec and acl_trivial (as used on Solaris 10).
90675         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90676         lib/file-has-acl.c.
90677         (Depends-on): Add sys_stat, for S_ISLNK.
90679 2007-03-19  Ben Pfaff  <blp@gnu.org>
90681         * doc/gnulib.texi: Fix typos.
90682         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90684 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90686         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90687         If size is zero here, buf must be zero.
90689 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90691         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90692         <bruno@clisp.org>.
90694 2007-03-18  Bruno Haible  <bruno@clisp.org>
90696         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90697         Suggested by Eric Blake.
90699 2007-03-18  Ben Pfaff  <blp@gnu.org>
90701         * doc/relocatable.texi: Recommend using as prefix a directory
90702         that does not exist and will never be created.  Based on
90703         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90704         and others.
90706 2007-03-17  Bruno Haible  <bruno@clisp.org>
90708         * lib/fchownat.c: Include lchown.h.
90710 2007-03-17  Bruno Haible  <bruno@clisp.org>
90712         Fix endless loop when the given allocated size was > INT_MAX.
90713         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90714         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90715         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90716         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90717         * lib/sprintf.c (sprintf): Likewise.
90719 2007-03-17  Bruno Haible  <bruno@clisp.org>
90721         * tests/test-argp-2.sh (func_compare): Output a context diff.
90723 2007-03-17  Bruno Haible  <bruno@clisp.org>
90725         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90726         locale's decimal-point character.
90728 2007-03-17  Bruno Haible  <bruno@clisp.org>
90730         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90731         before comparing it. Needed because on some platforms (e.g. x86) a
90732         'long double' occupies less bytes than sizeof (long double).
90734 2007-03-17  Bruno Haible  <bruno@clisp.org>
90736         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90737         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90738         * tests/test-getaddrinfo.c (simple): Likewise.
90739         * tests/test-read-file.c (main): Likewise.
90741 2007-03-17  Bruno Haible  <bruno@clisp.org>
90743         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90745 2007-03-17  Bruno Haible  <bruno@clisp.org>
90747         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90748         unused variable.
90750 2007-03-17  Bruno Haible  <bruno@clisp.org>
90752         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90753         * tests/test-c-strncasecmp.c: Likewise.
90755 2007-03-17  Bruno Haible  <bruno@clisp.org>
90757         * modules/stdlib (Depends-on): Add unistd.
90758         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90759         Needed for MacOS X 10.3.
90761 2007-03-17  Bruno Haible  <bruno@clisp.org>
90763         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90765 2007-03-17  Bruno Haible  <bruno@clisp.org>
90767         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90769 2007-03-17  Bruno Haible  <bruno@clisp.org>
90771         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90772         to reflect files copied from gnulib (with or without modifications).
90773         Suggested by Jim Meyering.
90775 2007-03-17  Eric Blake  <ebb9@byu.net>
90777         * NEWS: Document stdlib change from 2007-02-18.
90779 2007-03-17  Jim Meyering  <jim@meyering.net>
90781         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90782         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90783         someone uses a name containing shell meta-characters.
90784         Reported by Alfred M. Szmidt.
90786         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90788 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90790         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90791         and copy gettext configuration files only if configure.ac contains
90792         a use of AM_GNU_GETTEXT_VERSION.
90794 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90796         * build-aux/bootstrap (gnulib_name): New variable.
90797         (gnulib_tool_options): Use it.
90799 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90801         * tests/test-des.c: Use new namespace.
90803 2007-03-15  Bruno Haible  <bruno@clisp.org>
90805         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90806         Reported by James Youngman <jay@gnu.org>.
90808 2007-03-15  Bruno Haible  <bruno@clisp.org>
90810         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90811         declared prototype. Needed with cc on OSF/1 5.1.
90813 2007-03-15  Bruno Haible  <bruno@clisp.org>
90815         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90816         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90817         (struct gl_list_implementation): Add dispose_fn argument to the
90818         'create_empty', 'create' methods.
90819         (struct gl_list_impl_base): Add field 'dispose_fn'.
90820         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90821         argument.
90822         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90823         dispose_fn argument.
90824         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90825         dispose_fn on the dropped values.
90826         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90827         dispose_fn argument.
90828         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90829         dropped values.
90830         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90831         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90832         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90833         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90834         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90835         argument.
90836         (gl_tree_list_free): Call dispose_fn on the dropped values.
90837         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90838         the dropped values.
90839         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90840         Add dispose_fn argument.
90841         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90842         Call dispose_fn on the dropped values.
90843         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90844         Add dispose_fn argument.
90845         (gl_sublist_create): Initialize the 'dispose_fn' field.
90846         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90847         * tests/test-array_list.c (main): Update.
90848         * tests/test-carray_list.c (main): Update.
90849         * tests/test-avltree_list.c (main): Update.
90850         * tests/test-rbtree_list.c (main): Update.
90851         * tests/test-avltreehash_list.c (main): Update.
90852         * tests/test-rbtreehash_list.c (main): Update.
90853         * tests/test-linked_list.c (main): Update.
90854         * tests/test-linkedhash_list.c (main): Update.
90855         * tests/test-array_oset.c (main): Update.
90857 2007-03-15  Bruno Haible  <bruno@clisp.org>
90859         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90860         (gl_oset_create_empty): Add dispose_fn argument.
90861         (struct gl_oset_implementation): Add dispose_fn argument to
90862         'create_empty' method.
90863         (struct gl_oset_impl_base): Add dispose_fn field.
90864         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90865         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90866         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90867         values.
90868         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90869         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90870         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90871         dropped value.
90872         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90873         dropped value.
90874         * tests/test-array_oset.c (main): Update.
90875         * tests/test-avltree_oset.c (main): Update.
90876         * tests/test-rbtree_oset.c (main): Update.
90877         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90879 2007-03-13  Bruno Haible  <bruno@clisp.org>
90881         * tests/test-stdbool.c (i): Update after last patch.
90883 2007-03-12  Bruno Haible  <bruno@clisp.org>
90885         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90886         the iswprint macro. Needed on Solaris 2.5.1.
90888 2007-03-12  Bruno Haible  <bruno@clisp.org>
90890         * tests/test-printf-frexp.c (main): Declare x as volatile.
90892 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90894         * doc/gnulib.texi (Build robot for gnulib): New section.
90896 2007-03-12  Jim Meyering  <jim@meyering.net>
90898         * build-aux/bootstrap: New file.
90899         * build-aux/bootstrap.conf: New file, from coreutils.
90901 2007-03-11  Bruno Haible  <bruno@clisp.org>
90903         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90905 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90907         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90908         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90909         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90911 2007-03-11  Bruno Haible  <bruno@clisp.org>
90913         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90914         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90916 2007-03-11  Bruno Haible  <bruno@clisp.org>
90918         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90919         formula. Needed for SunPRO C 5.0.
90921 2007-03-11  Bruno Haible  <bruno@clisp.org>
90923         * modules/long-options (Depends-on): Add getopt.
90925 2007-03-11  Bruno Haible  <bruno@clisp.org>
90927         * modules/modechange (Depends-on): Add stdbool.
90929 2007-03-11  Bruno Haible  <bruno@clisp.org>
90931         * modules/i-ring (Depends-on): Add stdbool.
90933 2007-03-11  Bruno Haible  <bruno@clisp.org>
90935         * modules/gc-des (Depends-on): Add stdbool.
90937 2007-03-11  Bruno Haible  <bruno@clisp.org>
90939         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90941 2007-03-11  Bruno Haible  <bruno@clisp.org>
90943         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90945 2007-03-11  Bruno Haible  <bruno@clisp.org>
90947         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90949 2007-03-11  Bruno Haible  <bruno@clisp.org>
90951         * lib/vasnprintf.c (sprintf): Undefine.
90953 2007-03-11  Bruno Haible  <bruno@clisp.org>
90955         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90956         initializers in SunPRO C and Compaq C compilers.
90958 2007-03-11  Bruno Haible  <bruno@clisp.org>
90960         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90961         decrementing code ANSI C compliant.
90963 2007-03-11  Bruno Haible  <bruno@clisp.org>
90965         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90966         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90968 2007-03-11  Bruno Haible  <bruno@clisp.org>
90970         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90971         <stdbool.h> substitute doesn't pass.
90973 2007-03-11  Bruno Haible  <bruno@clisp.org>
90975         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90977 2007-03-11  Bruno Haible  <bruno@clisp.org>
90979         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90980         script, for submission to autobuild.josefsson.org.
90982 2007-03-10  Bruno Haible  <bruno@clisp.org>
90984         * modules/canonicalize-lgpl-tests: New file.
90985         * tests/test-canonicalize-lgpl.sh: New file.
90986         * tests/test-canonicalize-lgpl.c: New file.
90988         * modules/c-strcase-tests: New file.
90989         * tests/test-c-strcase.sh: New file.
90990         * tests/test-c-strcasecmp.c: New file.
90991         * tests/test-c-strncasecmp.c: New file.
90993         * modules/atexit-tests: New file.
90994         * tests/test-atexit.sh: New file.
90995         * tests/test-atexit.c: New file.
90997 2007-03-10  Bruno Haible  <bruno@clisp.org>
90999         * tests/test-binary-io.sh: Use temporary filenames that are not so
91000         likely to clash with those of other tests (in a parallel make).
91001         * tests/test-binary-io.c: Likewise.
91003 2007-03-10  Bruno Haible  <bruno@clisp.org>
91005         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
91006         fallback; use #error instead.
91007         Suggested by Simon Josefsson.
91009 2007-03-10  Bruno Haible  <bruno@clisp.org>
91011         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
91012         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
91013         first and the last.
91015 2007-03-10  Bruno Haible  <bruno@clisp.org>
91017         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
91019 2007-03-10  Bruno Haible  <bruno@clisp.org>
91021         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
91022         "make distcheck".
91023         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
91024         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
91025         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
91027 2007-03-10  Bruno Haible  <bruno@clisp.org>
91029         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
91030         variable.
91031         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
91032         variable.
91034 2007-03-09  Eric Blake  <ebb9@byu.net>
91035         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
91037         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
91038         types are not being provided by gnulib.
91039         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
91040         types are supported.
91042 2007-03-10  Bruno Haible  <bruno@clisp.org>
91044         * lib/stdio_.h (__attribute__): New macro.
91045         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
91046         vsprintf): Specify __attribute__ __format__ for GCC.
91047         Suggested by Eric Blake.
91049 2007-03-09  Bruno Haible  <bruno@clisp.org>
91051         * modules/printf-posix-tests: New file.
91052         * tests/test-printf-posix.sh: New file.
91053         * tests/test-printf-posix.c: New file.
91055         * modules/printf-posix: New file.
91056         * lib/printf.c: New file.
91057         * m4/printf-posix-rpl.m4: New file.
91058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
91059         REPLACE_PRINTF.
91060         * lib/stdio_.h (printf): New declaration.
91061         (format, __format__, ____printf____, ____scanf____, ____strftime____,
91062         ____strfmon____): New macros.
91063         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
91064         REPLACE_PRINTF.
91066 2007-03-09  Bruno Haible  <bruno@clisp.org>
91068         * tests/test-vasnprintf-posix2.sh: New file.
91069         * tests/test-vasnprintf-posix2.c: New file.
91070         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
91071         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
91072         (Makefile.am): Activate test-vasnprintf-posix2.sh.
91074         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
91075         a locale dependent decimal point, rather than always '.'.
91077 2007-03-09  Eric Blake  <ebb9@byu.net>
91079         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
91080         spite of platforms like Tandem/NSK that define it to -1.
91082 2007-03-08  Bruno Haible  <bruno@clisp.org>
91084         * modules/vprintf-posix-tests: New file.
91085         * tests/test-vprintf-posix.sh: New file.
91086         * tests/test-vprintf-posix.c: New file.
91087         * tests/test-printf-posix.h: New file.
91089         * modules/vprintf-posix: New file.
91090         * lib/vprintf.c: New file.
91091         * m4/vprintf-posix.m4: New file.
91092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
91093         REPLACE_VPRINTF.
91094         * lib/stdio_.h (vprintf): New declaration.
91095         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
91096         REPLACE_VPRINTF.
91098 2007-03-08  Bruno Haible  <bruno@clisp.org>
91100         * modules/fprintf-posix-tests: New file.
91101         * tests/test-fprintf-posix.sh: New file.
91102         * tests/test-fprintf-posix.c: New file.
91104         * modules/fprintf-posix: New file.
91105         * lib/fprintf.c: New file.
91106         * m4/fprintf-posix.m4: New file.
91107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
91108         REPLACE_FPRINTF.
91109         * lib/stdio_.h (fprintf): New declaration.
91110         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
91111         REPLACE_FPRINTF.
91113 2007-03-08  Bruno Haible  <bruno@clisp.org>
91115         * modules/vfprintf-posix-tests: New file.
91116         * tests/test-vfprintf-posix.sh: New file.
91117         * tests/test-vfprintf-posix.c: New file.
91118         * tests/test-fprintf-posix.h: New file.
91119         * tests/test-fprintf-posix.out: New file.
91121         * modules/vfprintf-posix: New file.
91122         * lib/vfprintf.c: New file.
91123         * m4/vfprintf-posix.m4: New file.
91124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
91125         REPLACE_VFPRINTF.
91126         * lib/stdio_.h (vfprintf): New declaration.
91127         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
91128         REPLACE_VFPRINTF.
91130 2007-03-08  Bruno Haible  <bruno@clisp.org>
91132         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
91134 2007-03-08  Bruno Haible  <bruno@clisp.org>
91136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
91137         instead of 'expr' invocations.
91138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91143         Suggested by Paul Eggert.
91145 2007-03-08  Bruno Haible  <bruno@clisp.org>
91147         * modules/fseterr-tests: New file.
91148         * tests/test-fseterr.c: New file.
91150         * modules/fseterr: New file.
91151         * lib/fseterr.h: New file.
91152         * lib/fseterr.c: New file.
91154 2007-03-08  Bruno Haible  <bruno@clisp.org>
91156         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
91157         * lib/getopt_.h: Likewise.
91158         * lib/mbswidth.h: Likewise.
91159         * lib/setenv.h: Likewise.
91160         * lib/vasnprintf.h: Likewise.
91161         * lib/vasprintf.h: Likewise.
91162         * lib/verror.h: Likewise.
91163         * lib/xsetenv.h: Likewise.
91164         * lib/xvasprintf.h: Likewise.
91166 2007-03-08  Jim Meyering  <jim@meyering.net>
91168         * users.txt: Add parted.
91170         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
91172 2007-03-07  Bruno Haible  <bruno@clisp.org>
91174         * m4/printf.m4: Make the shell script snippets copy&pastable.
91176 2007-03-02  Bruno Haible  <bruno@clisp.org>
91178         * lib/netinet_in_.h: New file.
91179         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
91180         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
91181         * modules/netinet_in (Files): Add lib/netinet_in_.h.
91182         (Depends-on): Add absolute-header.
91183         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
91184         into netinet/in.h.
91186 2007-03-03  Bruno Haible  <bruno@clisp.org>
91188         * lib/sys_select_.h: New file.
91189         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
91190         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
91191         * modules/sys_select (Files): Add lib/sys_select_.h.
91192         (Depends-on): Add absolute-header.
91193         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
91194         into sys/select.h.
91196 2007-03-02  Bruno Haible  <bruno@clisp.org>
91198         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
91199         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
91200         values.
91201         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
91202         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
91203         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
91204         * modules/sys_socket (Depends-on): Add absolute-header.
91205         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
91206         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
91207         (Include): Remove requirement of inclusion of <sys/types.h>.
91209 2007-03-02  Bruno Haible  <bruno@clisp.org>
91211         * lib/byteswap_.h (bswap_32): Fix formula.
91213 2007-03-06  Bruno Haible  <bruno@clisp.org>
91215         * modules/sprintf-posix-tests: New file.
91216         * tests/test-sprintf-posix.c: New file.
91218         * modules/sprintf-posix: New file.
91219         * lib/sprintf.c: New file.
91220         * m4/sprintf-posix.m4: New file.
91221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
91222         REPLACE_SPRINTF.
91223         * lib/stdio_.h (sprintf): New declaration.
91224         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
91225         REPLACE_SPRINTF.
91227 2007-03-06  Bruno Haible  <bruno@clisp.org>
91229         * modules/vsprintf-posix-tests: New file.
91230         * tests/test-vsprintf-posix.c: New file.
91231         * tests/test-sprintf-posix.h: New file.
91233         * modules/vsprintf-posix: New file.
91234         * lib/vsprintf.c: New file.
91235         * m4/vsprintf-posix.m4: New file.
91236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
91237         REPLACE_VSPRINTF.
91238         * lib/stdio_.h (vsprintf): New declaration.
91239         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
91240         REPLACE_VSPRINTF.
91242 2007-03-06  Bruno Haible  <bruno@clisp.org>
91244         * modules/vsnprintf (Depend-on): Remove minmax.
91246 2007-03-06  Bruno Haible  <bruno@clisp.org>
91248         * modules/snprintf-posix-tests: New file.
91249         * tests/test-snprintf-posix.c: New file.
91251         * modules/snprintf-posix: New file.
91252         * m4/snprintf-posix.m4: New file.
91253         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
91254         gl_FUNC_SNPRINTF.
91255         (gl_FUNC_SNPRINTF): Invoke it.
91256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
91257         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
91258         is set.
91259         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
91261 2007-03-06  Bruno Haible  <bruno@clisp.org>
91263         * modules/vsnprintf-posix-tests: New file.
91264         * tests/test-vsnprintf-posix.c: New file.
91265         * tests/test-snprintf-posix.h: New file.
91267         * modules/vsnprintf-posix: New file.
91268         * m4/vsnprintf-posix.m4: New file.
91269         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
91270         gl_FUNC_VSNPRINTF.
91271         (gl_FUNC_VSNPRINTF): Invoke it.
91272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
91273         * lib/stdio_.h (vsnprintf): Define as a replacement if
91274         REPLACE_VSNPRINTF is set.
91275         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
91277 2007-03-06  Bruno Haible  <bruno@clisp.org>
91279         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
91280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
91282 2007-03-06  Bruno Haible  <bruno@clisp.org>
91284         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
91285         (asinl): Declare also if HAVE_DECL_ASINL is set.
91286         (atanl): Declare also if HAVE_DECL_ATANL is set.
91287         (ceill): Declare also if HAVE_DECL_CEILL is set.
91288         (cosl): Declare also if HAVE_DECL_COSL is set.
91289         (expl): Declare also if HAVE_DECL_EXPL is set.
91290         (floorl): Declare also if HAVE_DECL_FLOORL is set.
91291         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
91292         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
91293         (logl): Declare also if HAVE_DECL_LOGL is set.
91294         (sinl): Declare also if HAVE_DECL_SINL is set.
91295         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
91296         (tanl): Declare also if HAVE_DECL_TANL is set.
91297         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
91298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
91299         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
91300         declaration of frexpl, ldexpl.
91301         * modules/printf-frexpl (Depends-on): Add math.
91302         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
91304 2007-03-05  Bruno Haible  <bruno@clisp.org>
91306         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
91307         frexpl and ldexpl are declared.
91308         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
91310 2007-03-05  Bruno Haible  <bruno@clisp.org>
91312         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
91313         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
91315 2007-03-05  Bruno Haible  <bruno@clisp.org>
91317         * lib/stdio_.h: Include <stddef.h>.
91319 2007-03-05  Bruno Haible  <bruno@clisp.org>
91321         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
91323 2007-03-05  Bruno Haible  <bruno@clisp.org>
91325         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
91326         NetBSD 4, from Ralf Wildenhues.
91328 2007-03-04  Bruno Haible  <bruno@clisp.org>
91330         * lib/vasprintf.h: Update #if logic for the case when the functions
91331         exist but are overridden.
91333 2007-03-04  Bruno Haible  <bruno@clisp.org>
91335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91336         implementations: glibc-2.4 and MacOS X 10.3.
91337         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91338         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91339         * tests/test-vasprintf-posix.c (test_function): Likewise.
91341 2007-03-04  Bruno Haible  <bruno@clisp.org>
91343         * modules/vasprintf-posix-tests: New file.
91344         * tests/test-vasprintf-posix.c: New file.
91346         * modules/vasprintf-posix: New file.
91347         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91348         defined.
91349         * m4/vasprintf-posix.m4: New file.
91350         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91351         gl_FUNC_VASPRINTF.
91352         (gl_FUNC_VASPRINTF): Invoke it.
91353         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91354         here.
91355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91357 2007-03-04  Bruno Haible  <bruno@clisp.org>
91359         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91360         REPLACE_GETTIMEOFDAY.
91361         * modules/sys_time (Makefile.am): Likewise.
91362         * m4/sys_time_h.m4: Likewise.
91363         * m4/gettimeofday.m4: Likewise.
91365 2007-03-04  Bruno Haible  <bruno@clisp.org>
91367         * modules/vasnprintf-posix-tests: New file.
91368         * tests/test-vasnprintf-posix.c: New file.
91370         * modules/vasnprintf-posix: New file.
91371         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91372         printf-frexpl.h.
91373         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91374         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91375         REPLACE_VASNPRINTF is defined.
91376         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91377         gl_FUNC_VASNPRINTF.
91378         (gl_FUNC_VASNPRINTF): Invoke it.
91379         * m4/vasnprintf-posix.m4: New file.
91380         * m4/printf.m4: New file.
91382 2007-03-04  Bruno Haible  <bruno@clisp.org>
91384         Compile progreloc.c only if --enable-relocatable is specified.
91385         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91386         if --enable-relocatable was specified.
91387         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91388         lib_SOURCES.
91390 2007-03-04  Jim Meyering  <jim@meyering.net>
91392         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91393         Use it consistently, rather than enumerating errno constants.
91395 2007-03-04  Bruno Haible  <bruno@clisp.org>
91397         * modules/xvasprintf-tests: New file.
91398         * tests/test-xvasprintf.c: New file.
91400         * modules/vasprintf-tests: New file.
91401         * tests/test-vasprintf.c: New file.
91403         * modules/vasnprintf-tests: New file.
91404         * tests/test-vasnprintf.c: New file.
91406         * modules/vsnprintf-tests: New file.
91407         * tests/test-vsnprintf.c: New file.
91409         * modules/snprintf-tests: New file.
91410         * tests/test-snprintf.c: New file.
91412 2007-03-04  Bruno Haible  <bruno@clisp.org>
91414         Compile relocatable.c only if --enable-relocatable is specified.
91415         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91416         gl_RELOCATABLE_LIBRARY.
91417         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91418         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91419         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91420         gl_RELOCATABLE_LIBRARY.
91421         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91422         (Makefile.am): Remove lib_SOURCES.
91423         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91424         gl_RELOCATABLE_LIBRARY.
91425         (Makefile.am): Remove lib_SOURCES.
91426         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91427         always.
91428         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91429         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91431 2007-03-04  Bruno Haible  <bruno@clisp.org>
91433         * modules/argmatch-tests: New file.
91434         * tests/test-argmatch.c: New file.
91436         * tests/test-allocsa.c (main): Halve the number of loop runs.
91438         * modules/alloca-opt-tests: New file.
91439         * tests/test-alloca-opt.c: New file.
91441 2007-03-04  Jim Meyering  <jim@meyering.net>
91443         Work around difference between Linux ACLs and Solaris 10 ZFS.
91444         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91445         for EINVAL.
91447 2007-03-03  Bruno Haible  <bruno@clisp.org>
91449         * modules/relocatable-prog (Depends-on): Add back progreloc's
91450         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91452 2007-03-03  Bruno Haible  <bruno@clisp.org>
91454         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91455         * modules/relocatable-lib: New file.
91457 2007-03-03  Bruno Haible  <bruno@clisp.org>
91459         * modules/relocatable-prog: Renamed from modules/relocatable.
91460         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91462 2007-03-03  Bruno Haible  <bruno@clisp.org>
91464         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91465         m4/relocatable-lib.m4.
91466         (Depends-on): Remove 'relocatable'.
91467         (configure.ac): Add gl_RELOCATABLE_NOP.
91469 2007-03-03  Bruno Haible  <bruno@clisp.org>
91471         * modules/relocatable-prog-wrapper: New file.
91472         * modules/relocatable (Depends-on): Add it. Remove all other
91473         dependencies except progname.
91474         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91476         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91477         (gl_FUNC_STRERROR): Nop.
91478         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91480         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91481         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91483         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91484         (gl_FUNC_READLINK): Update.
91486         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91488 2007-03-03  Bruno Haible  <bruno@clisp.org>
91490         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91491         * modules/xreadlink (Depends-on): Add unistd.
91492         * modules/xreadlink-with-size (Depends-on): Likewise.
91494 2007-03-03  Bruno Haible  <bruno@clisp.org>
91496         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91497         extracted from gt_FUNC_SETENV.
91498         (gt_FUNC_SETENV): Remove macro.
91499         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91500         remove gt_FUNC_SETENV.
91502 2007-03-03  Bruno Haible  <bruno@clisp.org>
91504         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91505         ENABLE_RELOCATABLE here.
91506         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91508 2007-03-03  Bruno Haible  <bruno@clisp.org>
91510         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91511         * tests/test-rbtreehash_list.c: Include progname.h.
91512         (main): Call set_program_name.
91514         * modules/rbtree-oset-tests (Depends-on): Add progname.
91515         * tests/test-rbtree_oset.c: Include progname.h.
91516         (main): Call set_program_name.
91518         * modules/rbtree-list-tests (Depends-on): Add progname.
91519         * tests/test-rbtree_list.c: Include progname.h.
91520         (main): Call set_program_name.
91522         * modules/linked-list-tests (Depends-on): Add progname.
91523         * tests/test-linked_list.c: Include progname.h.
91524         (main): Call set_program_name.
91526 2007-03-03  Bruno Haible  <bruno@clisp.org>
91528         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91529         All uses of __restrict changed to _Restrict_.
91530         * lib/glob_.h (__restrict): Remove macro.
91532 2007-03-02  Bruno Haible  <bruno@clisp.org>
91534         * modules/gettext (configure.ac): Require gettext infrastructure
91535         from version 0.16.1.
91537 2007-03-02  Bruno Haible  <bruno@clisp.org>
91539         * modules/linkedhash-list-tests (Depends-on): Add progname.
91540         * tests/test-linkedhash_list.c: Include progname.h.
91541         (main): Call set_program_name.
91543         * modules/carray-list-tests (Depends-on): Add progname.
91544         * tests/test-carray_list.c: Include progname.h.
91545         (main): Call set_program_name.
91547         * modules/avltreehash-list-tests (Depends-on): Add progname.
91548         * tests/test-avltreehash_list.c: Include progname.h.
91549         (main): Call set_program_name.
91551         * modules/avltree-oset-tests (Depends-on): Add progname.
91552         * tests/test-avltree_oset.c: Include progname.h.
91553         (main): Call set_program_name.
91555         * modules/avltree-list-tests (Depends-on): Add progname.
91556         * tests/test-avltree_list.c: Include progname.h.
91557         (main): Call set_program_name.
91559         * modules/array-oset-tests (Depends-on): Add progname.
91560         * tests/test-array_oset.c: Include progname.h.
91561         (main): Call set_program_name.
91563         * modules/array-list-tests (Depends-on): Add progname.
91564         * tests/test-array_list.c: Include progname.h.
91565         (main): Call set_program_name.
91567         * modules/argp-tests (Depends-on): Add progname.
91568         * tests/test-argp.c: Include argp.h first. Include progname.h.
91569         (main): Call set_program_name.
91571 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91573         * doc/gnulib-tool.texi (Initial import): Reword description of
91574         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91575         limited effect even if defined after the first system include.
91577 2007-03-01  Bruno Haible  <bruno@clisp.org>
91579         * build-aux/config.libpath: Update to libtool-1.5.22.
91580         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91582 2007-03-01  Bruno Haible  <bruno@clisp.org>
91584         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91585         foo_CFLAGS.
91586         Reported by Ralf Wildenhues.
91588 2007-03-01  Bruno Haible  <bruno@clisp.org>
91590         * build-aux/install-reloc: Remove object files left over by some
91591         compilers.
91592         Reported by Ralf Wildenhues.
91594 2007-03-01  Bruno Haible  <bruno@clisp.org>
91596         * build-aux/install-reloc: Break long lines.
91598 2007-03-01  Bruno Haible  <bruno@clisp.org>
91600         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91601         Reported by Ralf Wildenhues.
91603 2007-03-01  Bruno Haible  <bruno@clisp.org>
91605         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91606         include ordering constraints.
91608 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91610         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91611         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91612         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91613         as another example.
91614         * lib/time_.h: Fix misspelling.
91615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91616         Require gl_HEADER_TIME_H_DEFAULTS.
91617         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91618         * m4/time_r.m4 (gl_TIME_R): Likewise.
91619         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91621 2007-03-01  Bruno Haible  <bruno@clisp.org>
91623         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91624         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91626 2007-03-01  Jim Meyering  <jim@meyering.net>
91628         * modules/xreadlink (Maintainer): Add my name.
91629         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91631 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91632             Bruno Haible  <bruno@clisp.org>
91634         * build-aux/install-reloc: Compile also c-ctype.c.
91635         * build-aux/relocatable.sh.in: New file.
91636         * doc/relocatable.texi: New file.
91637         * doc/relocatable-maint.texi: New file.
91638         * doc/gnulib.texi: Include relocatable-maint.texi.
91639         * lib/progreloc.c: Include unistd.h unconditionally.
91640         * lib/relocwrapper.c: Include unistd.h unconditionally.
91641         Include c-ctype.h.
91642         (add_dotbin): Use c_tolower.
91643         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91644         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91645         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91646         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91647         to m4/relocatable-lib.m4.
91648         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91649         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91650         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91651         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91652         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91653         * modules/relocatable: New file.
91654         * modules/relocatable-lib: New file.
91655         * modules/relocatable-script: New file.
91657 2007-02-28  Bruno Haible  <bruno@clisp.org>
91659         Import --enable-relocatable infrastructure.
91660         * build-aux/config.libpath: New file, from GNU gettext.
91661         * build-aux/install-reloc: New file, from GNU gettext.
91662         * build-aux/reloc-ldflags: New file, from GNU gettext.
91663         * lib/relocatable.h: New file, from GNU gettext.
91664         * lib/relocatable.c: New file, from GNU gettext.
91665         * lib/relocwrapper.c: New file, from GNU gettext.
91666         * m4/relocatable.m4: New file, from GNU gettext.
91668 2007-02-28  Bruno Haible  <bruno@clisp.org>
91670         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91672         * modules/xreadlink: New file, from GNU gettext with modifications.
91673         * lib/xreadlink.c: New file, from GNU gettext.
91674         * lib/xreadlink.h: Add comments.
91675         (xreadlink): New declaration.
91677         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91678         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91679         lib/xreadlink-with-size.c.
91680         (configure.ac): Remove gl_XREADLINK invocation.
91681         (Makefile.am): Augment lib_SOURCES.
91682         * m4/xreadlink.m4: Remove file.
91683         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91684         (xreadlink_with_size): Renamed from xreadink.
91685         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91686         * modules/canonicalize (Depends-on): Replace xreadlink with
91687         xreadlink-with-size.
91688         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91690 2007-02-25  Jim Meyering  <jim@meyering.net>
91692         * build-aux/announce-gen: When complaining about excess arguments,
91693         list them.
91695 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91697         * README: Document signed integer overflow situation more
91698         accurately.
91700 2007-02-25  Bruno Haible  <bruno@clisp.org>
91702         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91703         'a' or 'A' conversion.
91705 2007-02-25  Bruno Haible  <bruno@clisp.org>
91707         * modules/filename: Renamed from modules/pathname.
91708         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91709         lib/concatpath.c with lib/concat-filename.c.
91710         (Makefile.am): Update.
91711         (Include): Replace pathname.h with filename.h.
91712         * lib/filename.h: Renamed from lib/pathname.h.
91713         (concatenated_filename): Renamed from concatenated_pathname.
91714         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91715         (concatenated_filename): Renamed from concatenated_pathname.
91716         * lib/findprog.c: Include filename.h instead of pathname.h.
91717         (find_in_path): Update.
91718         * lib/javacomp.c: Include filename.h instead of pathname.h.
91719         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91720         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91721         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91722         is_oldgcj_14_13_usable, is_javac_usable): Update.
91723         * lib/javaexec.c: Include filename.h instead of pathname.h.
91724         (execute_java_class): Update.
91725         * modules/findprog: Update.
91726         * modules/javacomp: Update.
91727         * modules/javaexec: Update.
91728         * MODULES.html.sh (File system functions): Add 'filename', remove
91729         'pathname'.
91731 2007-02-25  Bruno Haible  <bruno@clisp.org>
91733         * modules/printf-frexpl-tests: New file.
91734         * tests/test-printf-frexpl.c: New file.
91736         * modules/printf-frexpl: New file.
91737         * lib/printf-frexpl.h: New file.
91738         * lib/printf-frexpl.c: New file.
91739         * m4/printf-frexpl.m4: New file.
91741 2007-02-25  Bruno Haible  <bruno@clisp.org>
91743         * modules/printf-frexp-tests: New file.
91744         * tests/test-printf-frexp.c: New file.
91746         * modules/printf-frexp: New file.
91747         * lib/printf-frexp.h: New file.
91748         * lib/printf-frexp.c: New file.
91749         * m4/printf-frexp.m4: New file.
91751 2007-02-25  Bruno Haible  <bruno@clisp.org>
91753         Assume automake >= 1.10 for the tests.
91754         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91755         * modules/arctwo-tests: Likewise.
91756         * modules/argp-tests: Likewise.
91757         * modules/avltree-list-tests: Likewise.
91758         * modules/avltree-oset-tests: Likewise.
91759         * modules/avltreehash-list-tests: Likewise.
91760         * modules/carray-list-tests: Likewise.
91761         * modules/crc-tests: Likewise.
91762         * modules/des-tests: Likewise.
91763         * modules/gc-arcfour-tests: Likewise.
91764         * modules/gc-arctwo-tests: Likewise.
91765         * modules/gc-des-tests: Likewise.
91766         * modules/gc-hmac-md5-tests: Likewise.
91767         * modules/gc-hmac-sha1-tests: Likewise.
91768         * modules/gc-md2-tests: Likewise.
91769         * modules/gc-md4-tests: Likewise.
91770         * modules/gc-md5-tests: Likewise.
91771         * modules/gc-pbkdf2-sha1-tests: Likewise.
91772         * modules/gc-rijndael-tests: Likewise.
91773         * modules/gc-sha1-tests: Likewise.
91774         * modules/gc-tests: Likewise.
91775         * modules/getaddrinfo-tests: Likewise.
91776         * modules/hmac-md5-tests: Likewise.
91777         * modules/hmac-sha1-tests: Likewise.
91778         * modules/linked-list-tests: Likewise.
91779         * modules/linkedhash-list-tests: Likewise.
91780         * modules/lock-tests: Likewise.
91781         * modules/md2-tests: Likewise.
91782         * modules/md4-tests: Likewise.
91783         * modules/md5-tests: Likewise.
91784         * modules/rbtree-list-tests: Likewise.
91785         * modules/rbtree-oset-tests: Likewise.
91786         * modules/rbtreehash-list-tests: Likewise.
91787         * modules/read-file-tests: Likewise.
91788         * modules/rijndael-tests: Likewise.
91789         * modules/stdint-tests: Likewise.
91790         * modules/tls-tests: Likewise.
91792 2007-02-24  Bruno Haible  <bruno@clisp.org>
91794         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91795         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91796         function; instead check whether isnan with a double argument links.
91797         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91798         function; instead check whether isnan with a 'long double' argument
91799         links.
91800         Reported by Eric Blake <ebb9@byu.net>.
91802 2007-02-24  Bruno Haible  <bruno@clisp.org>
91804         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91805         defined.
91806         * lib/isnanl.c: Remove all code. Just include isnan.c.
91807         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91809 2007-02-25  Jim Meyering  <jim@meyering.net>
91811         Avoid conflicting types for 'unsetenv' on FreeBSD.
91812         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91813         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91814         in stdlib.h.
91816 2007-02-24  Bruno Haible  <bruno@clisp.org>
91818         * modules/isnanl-nolibm-tests: New file.
91819         * tests/test-isnanl.c: New file.
91821         * modules/isnanl-nolibm: New file.
91822         * lib/isnanl.h: New file.
91823         * lib/isnanl.c: New file.
91824         * m4/isnanl.m4: New file.
91826 2007-02-24  Bruno Haible  <bruno@clisp.org>
91828         * modules/isnan-nolibm-tests: New file.
91829         * tests/test-isnan.c: New file.
91831         * modules/isnan-nolibm: New file.
91832         * lib/isnan.h: New file.
91833         * lib/isnan.c: New file.
91834         * m4/isnan.m4: New file.
91836 2007-02-24  Bruno Haible  <bruno@clisp.org>
91838         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91839         assume that an exponent fits in 20 bits.
91841 2007-02-24  Jim Meyering  <jim@meyering.net>
91843         * m4/regex.m4: Update the description of the configure-time option,
91844         --without-included-regex, to state accurately what the defaults are,
91845         and perhaps to give people an idea why using this option is risky.
91847 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91850         loops on small arguments.  This attempts to avoid the problem
91851         Bruno Haible reported for AIX 4.3.2 in
91852         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91854 2007-02-23  Bruno Haible  <bruno@clisp.org>
91856         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91857         Needed for help2man.
91859 2007-02-23  Karl Berry  <karl@gnu.org>
91861         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91862         exists, foo.h should be cvs-ignored, not committed.
91864 2007-02-23  Eric Blake  <ebb9@byu.net>
91866         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91867         * lib/stat-time.h (includes): Likewise.
91868         * lib/utimecmp.c (includes): Likewise.
91869         * lib/utimens.h (includes): Likewise.
91870         * lib/getdate.y (includes): Also include "timespec.h" for use
91871         internal to the module.
91872         * modules/utimens (Depends-on): Revert yesterday's patch.
91873         * modules/nanosleep (Depends-on): Add missing dependency.
91875 2007-02-22  Bruno Haible  <bruno@clisp.org>
91877         * lib/glob.c: Don't include getlogin_r.h.
91879 2007-02-22  Jim Meyering  <jim@meyering.net>
91881         * modules/utimens (Depends-on): Add timespec, required for
91882         utimens.h's inclusion of timespec.h.
91884 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91886         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91887         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91888         Schwab in
91889         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91890         I'll try to think of a better way to fix the Solaris problem.
91892         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91893         like glibc; on Solaris 10, it fails with errno == EINVAL.
91894         POSIX says the behavior is unspecified if the first argument is NULL,
91895         so play it safe and never pass NULL to the system getcwd.
91897 2007-02-21  Jim Meyering  <jim@meyering.net>
91899         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91900         of gettimeofday.  It would conflict with the one now always
91901         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91902         an IRIX 6.5 build failure.
91904 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91906         Minor fixups to port to Solaris 10 with Sun C 5.8.
91907         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91908         * modules/getcwd (Depends-on): Add dirfd.
91909         * lib/putenv.c (putenv): #undef it.
91910         (rpl_putenv): New decl.
91911         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91913 2007-02-20  Bruno Haible  <bruno@clisp.org>
91915         * modules/stdio-tests: New file.
91916         * tests/test-stdio.c: New file.
91918         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91919         (Depends-on): Add stdio.
91920         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91921         (Include): Use <stdio.h> instead of vsnprintf.h.
91922         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91923         HAVE_DECL_VSNPRINTF.
91924         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91926         * modules/snprintf (Files): Remove lib/snprintf.h.
91927         (Depends-on): Add stdio.
91928         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91929         (Include): Use <stdio.h> instead of snprintf.h.
91930         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91931         HAVE_DECL_SNPRINTF.
91932         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91933         * lib/getaddrinfo.c: Likewise.
91935         * modules/stdio: New file.
91936         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91937         * lib/snprintf.h: Remove file.
91938         * lib/vsnprintf.h: Remove file.
91939         * lib/.cppi-disable: Remove snprintf.h.
91940         * m4/stdio_h.m4: New file.
91941         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91943 2007-02-20  Jim Meyering  <jim@meyering.net>
91945         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91946         used by e.g., mingw.  From Bruno Haible.
91948 2007-02-19  Bruno Haible  <bruno@clisp.org>
91950         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91951         warnings.
91952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91954 2007-02-19  Bruno Haible  <bruno@clisp.org>
91956         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91957         from mingw users.
91959 2007-02-19  Bruno Haible  <bruno@clisp.org>
91961         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91962         warnings.
91963         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91965 2007-02-19  Jim Meyering  <jim@meyering.net>
91967         Don't use FD after a successful "fdopendir (fd)".
91968         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91969         Reset it by calling dirfd on the just-obtained DIR*.
91971         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91972         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91974 2007-02-18  Bruno Haible  <bruno@clisp.org>
91976         * lib/readlink.c: Include <unistd.h>.
91977         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91978         HAVE_READLINK.
91979         * modules/readlink (Depends-on): Add unistd.
91980         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91981         (Include): Add <unistd.h>.
91983         * lib/getlogin_r.h: Remove file.
91984         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91985         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91986         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91987         HAVE_DECL_GETLOGIN_R.
91988         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91989         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91990         (Include): Use <unistd.h> instead of getlogin_r.h.
91992         * lib/getcwd.h: Remove file.
91993         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91994         * lib/xgetcwd.c: Likewise.
91995         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91996         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91997         * modules/getcwd (Files): Remove lib/getcwd.h.
91998         (Depends-on): Add unistd.
91999         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92000         (Include): Use <unistd.h> instad of getcwd.h.
92002         * lib/ftruncate.c: Include <unistd.h> first.
92003         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
92004         Set HAVE_FTRUNCATE.
92005         * modules/ftruncate (Depends-on): Add unistd.
92006         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92008         * lib/fchdir.c: Include <unistd.h> first.
92009         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
92010         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
92011         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
92012         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92013         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
92015         * lib/dup2.c: Include <unistd.h> first.
92016         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
92017         HAVE_DUP2.
92018         * modules/dup2 (Depends-on): Add unistd.
92019         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92021         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
92022         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
92023         REPLACE_CHOWN. Don't define chown as a macro here.
92024         * modules/chown (Depends-on): Add unistd.
92025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92027         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
92028         Add definition for GL_LINK_WARNING.
92029         (chown, dup2): New declarations.
92030         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
92031         link warning.
92032         (ftruncate): New declaration.
92033         (getcwd): New declaration, taken from old getcwd.h.
92034         (getlogin_r): New declaration, taken from old getlogin_r.h.
92035         (readlink): New declaration.
92036         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
92037         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
92038         (gl_PREREQ_UNISTD): Remove macro.
92039         (gl_UNISTD_MODULE_INDICATOR): New macro.
92040         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
92041         many new variables. Don't set UNISTD_H.
92042         * modules/unistd (Description): Change.
92043         (Depends-on): Add link-warning.
92044         (configure.ac): Update.
92045         (Makefile.am): Create unistd.h always. Substitute many new variables
92046         into it.
92048 2007-02-18  Bruno Haible  <bruno@clisp.org>
92050         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
92051         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
92052         HAVE_GETSUBOPT.
92053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
92054         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
92055         * lib/getsubopt.h: Remove file.
92056         * modules/getsubopt (Files): Remove lib/getsubopt.h.
92057         (Depends-on): Add stdlib.
92058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92059         (Includes): Use <stdlib.h> instead of getsubopt.h.
92060         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
92061         Set HAVE_GETSUBOPT.
92062         * lib/getsubopt.c: Don't include getsubopt.h.
92064 2007-02-18  Bruno Haible  <bruno@clisp.org>
92066         * modules/fchdir (Depends-on): Add dup2.
92068 2007-02-18  Bruno Haible  <bruno@clisp.org>
92070         * lib/stdlib_.h: Handle glibc's special invocation convention
92071         specially.
92073 2007-02-18  Bruno Haible  <bruno@clisp.org>
92075         * modules/stdlib-tests: New file.
92076         * tests/test-stdlib.c: New file.
92078         * modules/mkstemp (Files): Remove lib/mkstemp.h.
92079         (Depends-on): Add stdlib.
92080         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92081         (Includes): Use <stdlib.h> instead of mkstemp.h.
92082         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
92083         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
92084         * lib/mkstemp.c: Don't include mkstemp.h.
92085         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
92086         * lib/stdlib--.h: Don't include mkstemp.h.
92088         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
92089         (Depends-on): Add stdlib.
92090         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92091         (Includes): Use <stdlib.h> instead of mkdtemp.h.
92092         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
92093         HAVE_MKDTEMP.
92094         * lib/mkdtemp.c: Don't include mkdtemp.h.
92095         * lib/clean-temp.c: Don't include mkdtemp.h.
92097         * modules/exit (Files): Remove lib/exit.h.
92098         (Depends-on): Add stdlib.
92099         (Makefile.am): Remove lib_SOURCES.
92100         (Include): Use <stdlib.h> instead of exit.h.
92101         * lib/argmatch.c: Don't include exit.h.
92102         * lib/execute.c: Likewise.
92103         * lib/pagealign_alloc.c: Likewise.
92104         * lib/pipe.c: Likewise.
92105         * lib/wait-process.c: Likewise.
92106         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
92107         * lib/exitfail.c: Likewise.
92108         * lib/savewd.c: Likewise.
92109         * lib/xsetenv.c: Likewise.
92111         * modules/stdlib: New file.
92112         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
92113         and extra comments about mkstemp().
92114         * lib/exit.h: Remove file.
92115         * lib/mkdtemp.h: Remove file.
92116         * lib/mkstemp.h: Remove file.
92117         * m4/stdlib_h.m4: New file.
92118         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
92120 2007-02-18  Bruno Haible  <bruno@clisp.org>
92122         * modules/math-tests: New file.
92123         * tests/test-math.c: New file.
92125         * modules/math: New file.
92126         * modules/mathl (Files): Remove lib/mathl.h.
92127         (Depends-on): Add math.
92128         (Makefile.am): Don't mention mathl.h.
92129         (Include): Use <math.h> instead of mathl.h.
92130         * lib/math_.h: New file.
92131         * lib/mathl.h: Remove file.
92132         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
92133         mathl.h.
92134         * lib/asinl.c: Likewise.
92135         * lib/atanl.c: Likewise.
92136         * lib/ceill.c: Likewise.
92137         * lib/cosl.c: Likewise.
92138         * lib/expl.c: Likewise.
92139         * lib/floorl.c: Likewise.
92140         * lib/frexpl.c: Likewise.
92141         * lib/ldexpl.c: Likewise.
92142         * lib/logl.c: Likewise.
92143         * lib/sincosl.c: Likewise.
92144         * lib/sinl.c: Likewise.
92145         * lib/sqrtl.c: Likewise.
92146         * lib/tanl.c: Likewise.
92147         * lib/trigl.c: Likewise.
92148         * m4/math_h.m4: New file.
92149         * MODULES.html.sh (Mathematics): Add math.
92151 2007-02-17  Bruno Haible  <bruno@clisp.org>
92153         * modules/wctype-tests: New file.
92154         * tests/test-wctype.c: New file.
92156         * modules/wchar-tests: New file.
92157         * tests/test-wchar.c: New file.
92159         * modules/unistd-tests: New file.
92160         * tests/test-unistd.c: New file.
92162         * modules/time-tests: New file.
92163         * tests/test-time.c: New file.
92165         * modules/sysexits-tests: New file.
92166         * tests/test-sysexits.c: New file.
92168         * modules/sys_time-tests: New file.
92169         * tests/test-sys_time.c: New file.
92171         * modules/sys_stat-tests: New file.
92172         * tests/test-sys_stat.c: New file.
92174         * modules/sys_socket-tests: New file.
92175         * tests/test-sys_socket.c: New file.
92177         * modules/sys_select-tests: New file.
92178         * tests/test-sys_select.c: New file.
92180         * modules/string-tests: New file.
92181         * tests/test-string.c: New file.
92183         * modules/stdbool-tests: New file.
92184         * tests/test-stdbool.c: New file.
92186         * modules/netinet_in-tests: New file.
92187         * tests/test-netinet_in.c: New file.
92189         * modules/inttypes-tests: New file.
92190         * tests/test-inttypes.c: New file.
92192         * modules/fcntl-tests: New file.
92193         * tests/test-fcntl.c: New file.
92195         * modules/byteswap-tests: New file.
92196         * tests/test-byteswap.c: New file.
92198         * modules/arpa_inet-tests: New file.
92199         * tests/test-arpa_inet.c: New file.
92201 2007-02-17  Bruno Haible  <bruno@clisp.org>
92203         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
92204         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
92205         if the corresponding module is not enabled. Emit link warnings if
92206         the function is used nevertheless.
92207         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
92208         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
92209         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
92210         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
92211         * modules/inttypes (Depends-on): Add link-warning.
92212         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92213         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
92214         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
92215         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
92216         * modules/imaxdiv (configure.ac): Likewise.
92217         * modules/strtoimax (configure.ac): Likewise.
92218         * modules/strtoumax (configure.ac): Likewise.
92220 2007-02-17  Bruno Haible  <bruno@clisp.org>
92222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
92223         gl_STRING_MODULE_INDICATOR_DEFAULTS.
92224         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
92225         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
92227 2007-02-17  Bruno Haible  <bruno@clisp.org>
92229         * modules/link-warning: New file.
92230         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
92231         * lib/string_.h (GL_LINK_WARNING): Remove definition.
92232         * modules/string (Depends-on): Add link-warning.
92233         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92234         string.h.
92235         * MODULES.html.sh (Support for building libraries and executables): Add
92236         link-warning.
92238 2007-02-17  Bruno Haible  <bruno@clisp.org>
92240         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
92241         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
92242         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
92243         long lines.
92245 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
92246             Bruno Haible  <bruno@clisp.org>
92248         * modules/tmpfile: New file.
92249         * lib/tmpfile.c: New file.
92250         * m4/tmpfile.m4: New file.
92251         * MODULES.html.sh (func_all_modules): New section "Input/output".
92253 2007-02-15  Bruno Haible  <bruno@clisp.org>
92255         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
92256         (supports_delete_on_close): New function.
92257         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
92259 2007-02-14  Bruno Haible  <bruno@clisp.org>
92261         * modules/mbspcasecmp-tests: New file.
92262         * tests/test-mbspcasecmp.sh: New file.
92263         * tests/test-mbspcasecmp.c: New file.
92265         New module mbspcasecmp.
92266         * modules/mbspcasecmp: New file.
92267         * lib/mbspcasecmp.c: New file.
92268         * lib/string_.h (strncasecmp): Change warning message.
92269         (mbspcasecmp): New declaration.
92270         * m4/mbspcasecmp.m4: New file.
92271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92272         GNULIB_MBSPCASECMP.
92273         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
92274         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
92276 2007-02-14  Bruno Haible  <bruno@clisp.org>
92278         * modules/mbsncasecmp-tests: New file.
92279         * tests/test-mbsncasecmp.sh: New file.
92280         * tests/test-mbsncasecmp.c: New file.
92282         New module mbsncasecmp.
92283         * modules/mbsncasecmp: New file.
92284         * lib/mbsncasecmp.c: New file.
92285         * lib/string_.h (mbsncasecmp): New declaration.
92286         * m4/mbsncasecmp.m4: New file.
92287         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92288         GNULIB_MBSNCASECMP.
92289         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
92290         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
92292 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92294         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
92295         Verify that it doesn't overlap with our flags.
92296         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
92297         do not have the desired effect in multibyte locales; instead, use
92298         mbscasecmp.
92299         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
92300         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
92301         we don't require GNU fnmatch ourselves (if our users require it, they
92302         should do so explicitly).
92304         Fix regex code so it doesn't rely on strcasecmp.
92305         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
92306         Otherwise, include gnulib's langinfo.h.
92307         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
92308         undesirable behavior in non-C locales.  Instead, rely on localecharset.
92309         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
92310         * modules/regex (FILES): Remove m4/codeset.m4.
92311         (Depends-on): Add localcharset.  Remove strcase.
92313 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92315         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
92316         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
92318 2007-02-13  Bruno Haible  <bruno@clisp.org>
92320         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
92321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92323 2007-02-12  Bruno Haible  <bruno@clisp.org>
92325         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92326         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
92327         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
92328         time warning rather than a link error.
92330 2007-02-12  Bruno Haible  <bruno@clisp.org>
92332         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92333         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92336 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92338         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92339         args, not 2.
92341 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92343         New module 'time', so that apps can include <time.h> as per
92344         POSIX and GNU instead of separate include files like time_r.h
92345         and timegm.h.  This implementation tries out a simpler approach
92346         for replacing decls in standard include files (as compared to
92347         the string module), somewhat as an experiment.
92349         * config/srclist.txt: Comment out mktime.c for now.
92350         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92351         since it doesn't apply any more.  Use generic wording instead.
92352         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92353         'time'.
92354         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92355         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92356         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92357         Don't include <sys/types.h>; no longer needed since we assume C89.
92358         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92359         * lib/strftime.c: Likewise.
92360         * lib/time_r.c: Likewise.
92361         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92362         * lib/nanosleep.c: Include <time.h> first, to check interface.
92363         * lib/strptime.c: Likewise.
92364         * lib/time_r.c: Likewise.
92365         * lib/timegm.c: Likewise.
92366         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92367         needed.
92368         * lib/timegm.c: Don't include timegm.h; no longer needed.
92369         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92370         time.h now handles any problems in that area.
92371         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92372         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92373         that time.h defines struct timespec.
92374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92375         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92376         handles that.
92377         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92378         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92379         needed.  Set REPLACE_LOCALTIME.
92380         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92381         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92382         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92383         nanosleep; time_h.m4 now does that.  Don't require
92384         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92385         module handles this now.
92386         * modules/getdate (Depends-on): Remove timespec.  Add time.
92387         * modules/nanosleep (Depends-on): Likewise.
92388         * modules/stat-time (Depends-on): Likewise.
92389         * modules/nanosleep (Include): Include time.h, not timespec.h.
92390         * modules/strptime (Files): Remove lib/strptime.h.
92391         (Depends-on): Add extensions, time.
92392         (Include): Include time.h, not strptime.h.
92393         * modules/time_r (Files): Remove lib/time_r.h.
92394         (Depends-on): Add time.
92395         (Include): Include time.h, not time_r.h.
92396         * modules/timegm: Likewise.
92397         * modules/timespec (Description): Now does timespec-related decls
92398         of our own, instead of struct timespec itself.
92399         (Depends-on): Add time; remove extensions.
92400         (Maintainer): Add self.
92401         * modules/utimecmp (Depends-on): Add time; remove timespec.
92402         * modules/utimens (Depends-on): Likewise.
92403         * modules/xnanosleep (Depends-on): Likewise.
92405 2007-02-11  Bruno Haible  <bruno@clisp.org>
92407         * lib/c-strstr.c: Include allocsa.h.
92408         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92409         * lib/c-strcasestr.c: Include allocsa.h.
92410         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92411         * lib/strcasestr.c: Include allocsa.h.
92412         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92413         * lib/mbsstr.c: Include allocsa.h.
92414         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92415         allocsa/freesa instead of malloc/free.
92416         * lib/mbscasestr.c: Include allocsa.h.
92417         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92418         allocsa/freesa instead of malloc/free.
92419         * modules/c-strstr (Depends-on): Add allocsa.
92420         * modules/c-strcasestr (Depends-on): Likewise.
92421         * modules/strcasestr (Depends-on): Likewise.
92422         * modules/mbsstr (Depends-on): Likewise.
92423         * modules/mbscasestr (Depends-on): Likewise.
92425 2007-02-11  Bruno Haible  <bruno@clisp.org>
92427         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92429         * modules/mbsspn-tests: New file.
92430         * tests/test-mbsspn.sh: New file.
92431         * tests/test-mbsspn.c: New file.
92433 2007-02-11  Bruno Haible  <bruno@clisp.org>
92435         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92437         * modules/mbspbrk-tests: New file.
92438         * tests/test-mbspbrk.sh: New file.
92439         * tests/test-mbspbrk.c: New file.
92441 2007-02-11  Bruno Haible  <bruno@clisp.org>
92443         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92444         unneeded cast.
92446         * modules/mbscspn-tests: New file.
92447         * tests/test-mbscspn.sh: New file.
92448         * tests/test-mbscspn.c: New file.
92450 2007-02-11  Bruno Haible  <bruno@clisp.org>
92452         * modules/mbscasecmp-tests: New file.
92453         * tests/test-mbscasecmp.sh: New file.
92454         * tests/test-mbscasecmp.c: New file.
92456 2007-02-11  Bruno Haible  <bruno@clisp.org>
92458         Ensure O(n) worst-case complexity of mbscasestr.
92459         * lib/mbscasestr.c: Include stdbool.h.
92460         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92461         functions.
92462         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92463         the bookkeeping indicates that it's worth it.
92464         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92466         * modules/mbscasestr-tests: New file.
92467         * tests/test-mbscasestr1.c: New file.
92468         * tests/test-mbscasestr2.sh: New file.
92469         * tests/test-mbscasestr2.c: New file.
92470         * tests/test-mbscasestr3.sh: New file.
92471         * tests/test-mbscasestr3.c: New file.
92472         * tests/test-mbscasestr4.sh: New file.
92473         * tests/test-mbscasestr4.c: New file.
92474         * m4/locale-tr.m4: New file.
92476 2007-02-11  Bruno Haible  <bruno@clisp.org>
92478         Ensure O(n) worst-case complexity of mbsstr.
92479         * lib/mbsstr.c: Include stdbool.h.
92480         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92481         functions.
92482         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92483         bookkeeping indicates that it's worth it.
92484         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92486         * modules/mbsstr-tests: New file.
92487         * tests/test-mbsstr1.c: New file.
92488         * tests/test-mbsstr2.sh: New file.
92489         * tests/test-mbsstr2.c: New file.
92490         * tests/test-mbsstr3.sh: New file.
92491         * tests/test-mbsstr3.c: New file.
92492         * m4/locale-fr.m4: New file.
92494 2007-02-11  Bruno Haible  <bruno@clisp.org>
92496         * lib/mbsrchr.c (mbsrchr): Fix bug.
92498         * modules/mbsrchr-tests: New file.
92499         * tests/test-mbsrchr.sh: New file.
92500         * tests/test-mbsrchr.c: New file.
92502 2007-02-11  Bruno Haible  <bruno@clisp.org>
92504         * lib/mbschr.c (mbschr): Fix bug.
92506         * modules/mbschr-tests: New file.
92507         * tests/test-mbschr.sh: New file.
92508         * tests/test-mbschr.c: New file.
92509         * m4/locale-zh.m4: New file.
92511 2007-02-11  Bruno Haible  <bruno@clisp.org>
92513         Support for copying multibyte string iterators.
92514         * lib/mbiter.h: Include <string.h>.
92515         (mbiter_multi_copy): New function.
92516         (mbi_copy): New macro.
92517         * lib/mbuiter.h: Include <string.h>.
92518         (mbuiter_multi_copy): New function.
92519         (mbui_copy): New macro.
92521 2007-02-11  Bruno Haible  <bruno@clisp.org>
92523         New module mbslen.
92524         * modules/mbslen: New file.
92525         * lib/mbslen.c: New file.
92526         * lib/string_.h (mbslen): New declaration.
92527         * m4/mbslen.m4: New file.
92528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92529         GNULIB_MBSLEN.
92530         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92531         * MODULES.html.sh (Internationalization functions): Add mbslen.
92533 2007-02-11  Bruno Haible  <bruno@clisp.org>
92535         Ensure O(n) worst-case complexity of strcasestr substitute.
92536         * lib/strcasestr.c: Include stdbool.h.
92537         (knuth_morris_pratt): New function.
92538         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92539         bookkeeping indicates that it's worth it.
92540         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92542         * modules/strcasestr-tests: New file.
92543         * tests/test-strcasestr.c: New file.
92545 2007-02-11  Bruno Haible  <bruno@clisp.org>
92547         Ensure O(n) worst-case complexity of c_strcasestr.
92548         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92549         (knuth_morris_pratt): New function.
92550         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92551         the bookkeeping indicates that it's worth it.
92552         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92554         * modules/c-strcasestr-tests: New file.
92555         * tests/test-c-strcasestr.c: New file.
92557 2007-02-11  Bruno Haible  <bruno@clisp.org>
92559         Ensure O(n) worst-case complexity of c_strstr.
92560         * lib/c-strstr.c: Include stdbool.h, string.h.
92561         (knuth_morris_pratt): New function.
92562         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92563         bookkeeping indicates that it's worth it.
92564         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92566         * lib/c-strstr.c: Complete rewrite for maintainability.
92568         * modules/c-strstr-tests: New file.
92569         * tests/test-c-strstr.c: New file.
92571 2007-02-11  Bruno Haible  <bruno@clisp.org>
92573         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92574         5.2.1 and earlier, whereby \055 was treated just like the range
92575         delimiter '-'.
92576         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92578 2007-02-08  Bruno Haible  <bruno@clisp.org>
92580         * modules/regex (Depends-on): Add stdbool.
92581         Reported by Dalibor Topic <robilad@kaffe.org>.
92583 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92585         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92586         Prefer returning from main to exiting from it.
92587         Remove unnecessary parens after sizeof.
92589 2007-02-05  Bruno Haible  <bruno@clisp.org>
92591         New module mbssep.
92592         * modules/mbssep: New file.
92593         * lib/mbssep.c: New file.
92594         * lib/string_.h (strsep): Add a conditional link warning.
92595         (mbssep): New declaration.
92596         * m4/mbssep.m4: New file.
92597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92598         GNULIB_MBSSEP.
92599         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92600         * MODULES.html.sh (Internationalization functions): Add mbssep.
92602 2007-02-05  Bruno Haible  <bruno@clisp.org>
92604         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92605         Optimize search in case of 1 delimiter.
92607 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92609         * lib/acl.h: Include sys/types.h before sys/acl.h.
92611 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92613         Merge upstream fix for glibc bugzilla #3957:
92615         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92617         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92618         bit for RE_HAT_LISTS_NOT_NEWLINE.
92619         (build_charclass_op): Remove bogus comment.
92621 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92623         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92625 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92627         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92628         * lib/memmem.c [!defined _LIBC]: Include config.h.
92630 2007-02-04  Bruno Haible  <bruno@clisp.org>
92632         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92633         warning message.
92635 2007-02-04  Bruno Haible  <bruno@clisp.org>
92637         New module mbstok_r.
92638         * modules/mbstok_r: New file.
92639         * lib/mbstok_r.c: New file.
92640         * lib/string_.h (strtok_r): Change argument names to match the
92641         comments. Add a conditional link warning.
92642         (mbstok_r): New declaration.
92643         * m4/mbstok_r.m4: New file.
92644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92645         GNULIB_MBSTOK_R.
92646         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92647         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92649 2007-02-04  Bruno Haible  <bruno@clisp.org>
92651         New module mbsspn.
92652         * modules/mbsspn: New file.
92653         * lib/mbsspn.c: New file.
92654         * lib/string_.h (strspn): Add a conditional link warning.
92655         (mbsspn): New declaration.
92656         * m4/mbsspn.m4: New file.
92657         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92658         GNULIB_MBSSPN.
92659         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92660         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92662 2007-02-04  Bruno Haible  <bruno@clisp.org>
92664         New module mbspbrk.
92665         * modules/mbspbrk: New file.
92666         * lib/mbspbrk.c: New file.
92667         * lib/string_.h (strpbrk): Add a conditional link warning.
92668         (mbspbrk): New declaration.
92669         * m4/mbspbrk.m4: New file.
92670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92671         GNULIB_MBSPBRK.
92672         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92673         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92675 2007-02-04  Bruno Haible  <bruno@clisp.org>
92677         New module mbscspn.
92678         * modules/mbscspn: New file.
92679         * lib/mbscspn.c: New file.
92680         * lib/string_.h (strcspn): Add a conditional link warning.
92681         (mbscspn): New declaration.
92682         * m4/mbscspn.m4: New file.
92683         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92684         GNULIB_MBSCSPN.
92685         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92686         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92688 2007-02-04  Bruno Haible  <bruno@clisp.org>
92690         New module mbscasestr, reduced goal of strcasestr.
92691         * modules/mbscasestr: New file.
92692         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92693         (mbscasestr): Renamed from strcasestr.
92694         * lib/strcasestr.c: Don't include mbuiter.h.
92695         (strcasestr): Remove support for multibyte locales.
92696         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92697         Change the conditional link warning.
92698         (mbscasestr): New declaration.
92699         * m4/mbscasestr.m4: New file.
92700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92701         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92702         REPLACE_STRCASESTR.
92703         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92705         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92706         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92707         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92708         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92709         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92710         (Depends-on): Remove mbuiter.
92711         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92713 2007-02-04  Bruno Haible  <bruno@clisp.org>
92715         Simplify handling of strncasecmp.
92716         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92717         the conditional link warning.
92718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92719         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92720         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92721         * modules/strcase (configure.ac): Don't invoke
92722         gl_STRING_MODULE_INDICATOR.
92723         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92725 2007-02-04  Bruno Haible  <bruno@clisp.org>
92727         New module mbscasecmp, reduced goal of strcasecmp.
92728         * modules/mbscasecmp: New file.
92729         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92730         (mbscasecmp): Renamed from strcasecmp.
92731         * lib/strcasecmp.c: Don't include mbuiter.h.
92732         (strcasecmp): Remove support for multibyte locales.
92733         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92734         Change the conditional link warning.
92735         (mbscasecmp): New declaration.
92736         * m4/mbscasecmp.m4: New file.
92737         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92738         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92739         REPLACE_STRCASECMP.
92740         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92742         GNULIB_MBSCASECMP.
92743         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92744         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92745         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92746         (Depends-on): Remove mbuiter.
92747         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92749 2007-02-04  Bruno Haible  <bruno@clisp.org>
92751         New module mbsstr. Remove module strstr.
92752         * modules/mbsstr: New file.
92753         * modules/strstr: Remove file.
92754         * lib/mbsstr.c: Renamed from lib/strstr.c.
92755         (mbsstr): Renamed from strstr.
92756         * lib/string_.h (strstr): Remove declaration. Change the conditional
92757         link warning.
92758         (mbsstr): New declaration.
92759         * m4/mbsstr.m4: New file.
92760         * m4/strstr.m4: Remove file.
92761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92762         REPLACE_STRSTR.
92763         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92764         Don't initialize GNULIB_STRSTR.
92765         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92766         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92767         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92768         (Support for systems lacking ANSI C 89): Remove strstr.
92770 2007-02-04  Bruno Haible  <bruno@clisp.org>
92772         New module mbsrchr.
92773         * modules/mbsrchr: New file.
92774         * lib/mbsrchr.c: New file.
92775         * lib/string_.h (strrchr): Add a conditional link warning.
92776         (mbsrchr): New declaration.
92777         * m4/mbsrchr.m4: New file.
92778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92779         GNULIB_MBSRCHR.
92780         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92781         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92783 2007-02-04  Bruno Haible  <bruno@clisp.org>
92785         New module mbschr.
92786         * modules/mbschr: New file.
92787         * lib/mbschr.c: New file.
92788         * lib/string_.h (strchr): Add a conditional link warning.
92789         (mbschr): New declaration.
92790         * m4/mbschr.m4: New file.
92791         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92792         GNULIB_MBSCHR.
92793         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92794         * MODULES.html.sh (Internationalization functions): Add mbschr.
92796 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92798         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92800         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92802 2007-02-04  Bruno Haible  <bruno@clisp.org>
92804         New module description section 'configure.ac-early'.
92805         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92806         (func_get_autoconf_early_snippet): New function.
92807         (func_import, func_create_testdir): Use it. Remove special cases for
92808         modules 'extensions' and 'lock'.
92809         * modules/extensions (configure.ac-early): Require
92810         gl_USE_SYSTEM_EXTENSIONS.
92811         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92813 2007-02-04  Bruno Haible  <bruno@clisp.org>
92815         Make use of gcj-4.3's -fsource and -ftarget option.
92816         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92817         and if so try the options -fsource and -ftarget.
92818         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92819         source_version, ftarget_option, target_version arguments.
92820         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92821         (is_envjavac_oldgcj_14_14_usable): Renamed from
92822         is_envjavac_gcj_14_14_usable.
92823         (is_envjavac_oldgcj_14_13_usable): Renamed from
92824         is_envjavac_gcj_14_13_usable.
92825         (is_gcj_present): Update.
92826         (is_gcj_43, is_gcj43_usable): New functions.
92827         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92828         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92829         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92830         try the options -fsource and -ftarget.
92832 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92834         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92835         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92836         larger value.
92838 2007-02-03  Jim Meyering  <jim@meyering.net>
92840         Give tools a better chance to allocate space for very large buffers.
92841         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92843         Make pwd and readlink work also when run with an unreadable parent dir
92844         on systems with openat support.
92845         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92846         provided getcwd function, even when we have openat support.
92847         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92849 2007-02-02  Bruno Haible  <bruno@clisp.org>
92851         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92852         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92853         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92854         portability problems if one of these functions is only used on specific
92855         platforms.
92856         Reported by Paul Eggert.
92858 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92860         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92861         is causing more trouble than it's curing.
92862         * lib/regex_internal.h (__mempcpy): Remove.
92863         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92864         (and make the code a tad smaller to boot).
92865         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92867 2007-02-02  Jim Meyering  <jim@meyering.net>
92869         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92870         section, not in the Makefile.am: one.
92872 2007-02-02  Eric Blake  <ebb9@byu.net>
92874         * lib/strchrnul.c: Always include config.h first.
92876         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92877         gnulib strstr is not necessary here.
92879 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92881         * m4/socklen.m4: Fix typo.
92883 2007-02-02  Eric Blake  <ebb9@byu.net>
92885         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92886         * modules/netinet_in (Makefile.am): Likewise.
92888 2007-02-01  Bruno Haible  <bruno@clisp.org>
92890         * lib/string_.h (GL_LINK_WARNING): New macro.
92891         (strcasecmp, strstr, strcasestr): If provided by the system,
92892         conditionally define as a macro that leads to a warning instead of to
92893         an error.
92894         (strncasecmp): Conditionally define as a macro that leads to a warning.
92896 2007-02-01  Karl Berry  <karl@gnu.org>
92898         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92900 2007-02-01  Bruno Haible  <bruno@clisp.org>
92902         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92903         renamings.
92905 2007-02-01  Eric Blake  <ebb9@byu.net>
92907         * modules/regex (Depends-on): Revert dependence on mempcpy.
92908         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92909         module's definition of mempcpy.
92910         Reported by Paul Eggert.
92912 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92914         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92915         the symbol XYZ before redefining it.  This fixes a problem with
92916         programs that don't use XYZ, when compiled on systems that define
92917         XYZ to something else.
92919 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92921         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92922         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92923         writeable to group or other and (2) is intended to have a special
92924         mode bit that is set or cleared.  In such a case, the directory
92925         should be neither group- nor other-writeable until the special
92926         mode bits are right.
92928 2007-01-31  Eric Blake  <ebb9@byu.net>
92930         * modules/mountlist (Depends-on): Add strstr.
92932         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92933         bug.
92934         * modules/string (Makefile.am): Remove redundant replacement.
92935         * modules/regex (Depends-on): Add mempcpy.
92937 2007-01-31  Bruno Haible  <bruno@clisp.org>
92939         New module description field 'Link'.
92940         * gnulib-tool (func_usage): Document --extract-link-directive.
92941         (sed_extract_prog): Recognize 'Link' directive.
92942         (func_get_link_directive): New function.
92943         (func_import): Show summary of link directives.
92944         Handle --extract-link-directive option.
92945         * modules/acl (Link): New section.
92946         * modules/clock-time (Link): New section.
92947         * modules/euidaccess (Link): New section.
92948         * modules/gettext (Link): New section.
92949         * modules/iconv (Link): New section.
92950         * modules/lock (Link): New section.
92951         * modules/nanosleep (Link): New section.
92952         * modules/readline (Link): New section.
92954 2007-01-27  Bruno Haible  <bruno@clisp.org>
92956         Enforce the use of gnulib modules for unportable <string.h> functions.
92957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92958         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92959         (gl_HEADER_STRING_H_BODY): Require it.
92960         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92961         the symbol XYZ to one that gives a link error.
92962         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92963         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92964         * modules/mempcpy (configure.ac): Likewise.
92965         * modules/memrchr (configure.ac): Likewise.
92966         * modules/stpcpy (configure.ac): Likewise.
92967         * modules/stpncpy (configure.ac): Likewise.
92968         * modules/strcase (configure.ac): Likewise.
92969         * modules/strcasestr (configure.ac): Likewise.
92970         * modules/strchrnul (configure.ac): Likewise.
92971         * modules/strdup (configure.ac): Likewise.
92972         * modules/strndup (configure.ac): Likewise.
92973         * modules/strnlen (configure.ac): Likewise.
92974         * modules/strpbrk (configure.ac): Likewise.
92975         * modules/strsep (configure.ac): Likewise.
92976         * modules/strstr (configure.ac): Likewise.
92977         * modules/strtok_r (configure.ac): Likewise.
92979 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92981         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92983 2007-01-30  Jim Meyering  <jim@meyering.net>
92985         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92987 2007-01-29  Bruno Haible  <bruno@clisp.org>
92989         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92990         * lib/execute.c: Likewise.
92991         * lib/pipe.c: Likewise.
92992         * lib/printf-args.h: Likewise.
92993         * lib/printf-args.c: Likewise.
92994         * lib/printf-parse.c: Likewise.
92995         * lib/vasnprintf.c: Likewise.
92997 2007-01-29  Eric Blake  <ebb9@byu.net>
92999         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
93000         declaration.
93002 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
93004         * lib/strptime.h (strptime): Use 'restrict' for args where
93005         POSIX requires this.
93006         * lib/strptime.c (strptime): Likewise.
93007         Change license notice from LGPL to GPL, since gnulib-tool will
93008         change this as needed.
93009         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
93010         defined.
93011         Include "strptime.h" first, to check interface.
93012         Do not #undef _LIBC and _NL_CURRENT.
93013         Do not include <stdlib.h>; no longer needed.
93014         Include "time_r.h" and declare ptime_locale_status
93015         only if _LIBC is not defined.
93016         (__P): Remove unused macro.
93017         (match_string): Bring back glibc version, but use it only if _LIBC
93018         is defined.
93019         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
93020         Remove unnecessary assertion and abort() call.
93021         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
93022         * m4/strptime.m4: Fix serial number comment.
93023         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
93024         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
93025         (Depends-on): Add time_r.
93027 2007-01-29  Bruno Haible  <bruno@clisp.org>
93029         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93030         strptime.
93031         * modules/strptime (Depends-on): Add stdbool.
93032         * lib/strptime.h: Include <time.h> always. Add comments.
93034 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
93036         * modules/strptime: New file.
93037         * lib/strptime.h: New file.
93038         * lib/strptime.c: New file.
93039         * m4/strptime.m4: New file.
93041 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
93043         * MODULES.html.sh: New module mpsort.
93044         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
93046         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
93047         a circularity problem with HP-UX ia64 reported by Bob Proulx in
93048         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
93049         All uses changed.
93050         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
93051         All uses changed.
93052         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
93053         to _Restrict_.
93054         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
93055         the parameter matches the prototype.
93057 2007-01-28  Jim Meyering  <jim@meyering.net>
93059         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
93060         sys/time.h here, reverting that part of the previous patch:
93061         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
93063 2007-01-28  Bruno Haible  <bruno@clisp.org>
93065         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
93066         value of $(SYS_TIME_H).
93067         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
93068         remove it conditionally, too. [added by Jim Meyering]
93069         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
93070         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93071         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
93072         GETTIMEOFDAY_REPLACEMENT to 1.
93074 2007-01-28  Bruno Haible  <bruno@clisp.org>
93076         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
93077         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
93078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
93079         Set UNISTD_H instead of UNISTD_H2.
93080         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
93082 2007-01-28  Bruno Haible  <bruno@clisp.org>
93084         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
93085         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
93087 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93089         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
93090         (func_create_testdir): Ensure C locale for `grep' and `tr'
93091         character ranges.
93092         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
93093         ACLOCAL_AMFLAGS parsing state machine.
93095 2007-01-27  Bruno Haible  <bruno@clisp.org>
93097         * modules/unistr/base: Update.
93099 2007-01-27  Bruno Haible  <bruno@clisp.org>
93101         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
93102         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
93103         * modules/unistr/u32-mbtouc-unsafe: Renamed from
93104         modules/unistr/u32-mbtouc.
93105         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
93106         * lib/unistr.h: Update.
93107         * lib/linebreak.c: Update.
93108         * modules/unistr/u32-mbtouc: Renamed from
93109         modules/unistr/u32-mbtouc-safe.
93110         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
93111         * lib/unistr.h: Update.
93112         * lib/unistr/u32-to-u8.c: Update.
93113         * lib/unistr/u32-to-u16.c: Update.
93115 2007-01-27  Bruno Haible  <bruno@clisp.org>
93117         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
93118         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
93119         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
93120         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
93121         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
93122         * modules/unistr/u16-mbtouc-unsafe: Renamed from
93123         modules/unistr/u16-mbtouc.
93124         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
93125         * lib/unistr.h: Update.
93126         * lib/linebreak.c: Update.
93127         * modules/linebreak: Update.
93128         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
93129         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
93130         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
93131         * modules/unistr/u16-mbtouc: Renamed from
93132         modules/unistr/u16-mbtouc-safe.
93133         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
93134         * lib/unistr.h: Update.
93135         * lib/unistr/u16-to-u8.c: Update.
93136         * modules/unistr/u16-to-u8: Update.
93137         * lib/unistr/u16-to-u32.c: Update.
93138         * modules/unistr/u16-to-u32: Update.
93140 2007-01-27  Bruno Haible  <bruno@clisp.org>
93142         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
93143         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
93144         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
93145         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
93146         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
93147         * modules/unistr/u8-mbtouc-unsafe: Renamed from
93148         modules/unistr/u8-mbtouc.
93149         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
93150         * lib/unistr.h: Update.
93151         * lib/striconveh.c: Update.
93152         * modules/striconveh: Update.
93153         * lib/linebreak.c: Update.
93154         * modules/linebreak: Update.
93155         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
93156         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
93157         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
93158         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
93159         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
93160         * lib/unistr.h: Update.
93161         * lib/striconveh.c: Update.
93162         * modules/striconveh: Update.
93163         * lib/unistr/u8-to-u16.c: Update.
93164         * modules/unistr/u8-to-u16: Update.
93165         * lib/unistr/u8-to-u32.c: Update.
93166         * modules/unistr/u8-to-u32: Update.
93168 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93170         Sync from Libtool.
93171         * lib/argz.c: Do not include strings.h nor memory.h, include
93172         string.h unconditionally.  Patch by Simon Josefsson.
93174 2007-01-27  Bruno Haible  <bruno@clisp.org>
93176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
93177         from gl_HEADER_STRING_H_BODY.
93178         (gl_HEADER_STRING_H_BODY): Require it.
93179         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
93180         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93181         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93182         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93183         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93184         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
93185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93186         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93187         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
93188         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93189         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93190         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
93191         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93192         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93193         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93195 2007-01-27  Bruno Haible  <bruno@clisp.org>
93197         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
93198         check_PROGRAMS into noinst_PROGRAMS.
93199         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
93200         check_PROGRAMS in this case.
93201         (func_import): Set for_test to false.
93202         (func_create_testdir): Set for_test to true.
93204 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93205             Bruno Haible  <bruno@clisp.org>
93207         * modules/strcasestr (Files): Remove lib/strcasestr.h.
93208         (Depends-on): Add string.
93209         (Includes): Use <string.h> instead of strcasestr.h.
93210         * modules/string (Makefile.am): Also substitute the value of
93211         REPLACE_STRCASESTR.
93212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
93213         assume strcasestr is declared in <string.h> not <strings.h>. Also
93214         set REPLACE_STRCASESTR.
93215         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
93216         REPLACE_STRCASESTR.
93217         * lib/strcasestr.h: Remove file.
93218         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
93219         * lib/string_.h (strcasestr): New declaration.
93221 2007-01-27  Bruno Haible  <bruno@clisp.org>
93223         * lib/string_.h: Use 'extern'.
93225 2007-01-27  Jim Meyering  <jim@meyering.net>
93227         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
93228         of set-but-not-used local, "q".
93230         * lib/mempcpy.c: Include <config.h> before <string.h>.
93231         This fixes a compilation error on HP-UX, due to the system's
93232         "restrict"-using mempcpy prototype.
93234 2007-01-26  Bruno Haible  <bruno@clisp.org>
93236         Small optimization.
93237         * lib/javacomp.c: Include c-strstr.h.
93238          (is_envjavac_gcj): Use c_strstr instead of strstr.
93239         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
93241 2007-01-26  Bruno Haible  <bruno@clisp.org>
93243         * MODULES.html.sh (Unicode string functions): Add the new modules.
93245         * modules/uniconv/u32-strconv-to-locale: New file.
93246         * lib/uniconv/u32-strconv-to-locale.c: New file.
93248         * modules/uniconv/u16-strconv-to-locale: New file.
93249         * lib/uniconv/u16-strconv-to-locale.c: New file.
93251         * modules/uniconv/u8-strconv-to-locale: New file.
93252         * lib/uniconv/u8-strconv-to-locale.c: New file.
93254         * modules/uniconv/u32-strconv-from-locale: New file.
93255         * lib/uniconv/u32-strconv-from-locale.c: New file.
93257         * modules/uniconv/u16-strconv-from-locale: New file.
93258         * lib/uniconv/u16-strconv-from-locale.c: New file.
93260         * modules/uniconv/u8-strconv-from-locale: New file.
93261         * lib/uniconv/u8-strconv-from-locale.c: New file.
93263         * modules/uniconv/u32-strconv-to-enc: New file.
93264         * lib/uniconv/u32-strconv-to-enc.c: New file.
93265         * modules/uniconv/u32-strconv-to-enc-tests: New file.
93266         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
93268         * modules/uniconv/u16-strconv-to-enc: New file.
93269         * lib/uniconv/u16-strconv-to-enc.c: New file.
93270         * lib/uniconv/u-strconv-to-enc.h: New file.
93271         * modules/uniconv/u16-strconv-to-enc-tests: New file.
93272         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
93274         * modules/uniconv/u8-strconv-to-enc: New file.
93275         * lib/uniconv/u8-strconv-to-enc.c: New file.
93276         * modules/uniconv/u8-strconv-to-enc-tests: New file.
93277         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
93279         * modules/uniconv/u32-strconv-from-enc: New file.
93280         * lib/uniconv/u32-strconv-from-enc.c: New file.
93281         * modules/uniconv/u32-strconv-from-enc-tests: New file.
93282         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
93284         * modules/uniconv/u16-strconv-from-enc: New file.
93285         * lib/uniconv/u16-strconv-from-enc.c: New file.
93286         * modules/uniconv/u16-strconv-from-enc-tests: New file.
93287         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
93289         * modules/uniconv/u8-strconv-from-enc: New file.
93290         * lib/uniconv/u8-strconv-from-enc.c: New file.
93291         * lib/uniconv/u-strconv-from-enc.h: New file.
93292         * modules/uniconv/u8-strconv-from-enc-tests: New file.
93293         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
93295         * modules/uniconv/u32-conv-from-enc: New file.
93296         * lib/uniconv/u32-conv-from-enc.c: New file.
93297         * modules/uniconv/u32-conv-from-enc-tests: New file.
93298         * tests/uniconv/test-u32-conv-from-enc.c: New file.
93300         * modules/uniconv/u16-conv-from-enc: New file.
93301         * lib/uniconv/u16-conv-from-enc.c: New file.
93302         * lib/uniconv/u-conv-from-enc.h: New file.
93303         * modules/uniconv/u16-conv-from-enc-tests: New file.
93304         * tests/uniconv/test-u16-conv-from-enc.c: New file.
93306         * modules/uniconv/u8-conv-from-enc: New file.
93307         * lib/uniconv/u8-conv-from-enc.c: New file.
93308         * modules/uniconv/u8-conv-from-enc-tests: New file.
93309         * tests/uniconv/test-u8-conv-from-enc.c: New file.
93311         * modules/uniconv/base: New file.
93312         * lib/uniconv.h: New file.
93314 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93316         * doc/gnulib-tool.texi (Initial import): Update to match current
93317         behavior with strdup module.
93318         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
93319         * lib/memmem.h: Remove; all uses removed.  This is now done
93320         by <string.h>.
93321         * lib/mempcpy.h: Likewise.
93322         * lib/memrchr.h: Likewise.
93323         * lib/stpcpy.h: Likewise.
93324         * lib/stpncpy.h: Likewise.
93325         * lib/strcase.h: Likewise.
93326         * lib/strchrnul.h: Likewise.
93327         * lib/strdup.h: Likewise.
93328         * lib/strndup.h: Likewise.
93329         * lib/strnlen.h: Likewise.
93330         * lib/strpbrk.h: Likewise.
93331         * lib/strsep.h: Likewise.
93332         * lib/strstr.h: Likewise.
93333         * lib/strtok_r.h: Likewise.
93334         * lib/string_.h: New file.
93335         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93336         Rely on <string.h> instead.
93337         * lib/canon-host.c: Likewise.
93338         * lib/chdir-long.c: Likewise.
93339         * lib/concatpath.c: Likewise.
93340         * lib/exclude.c: Likewise.
93341         * lib/fchdir.c: Likewise.
93342         * lib/getaddrinfo.c: Likewise.
93343         * lib/getcwd.c: Likewise.
93344         * lib/getsubopt.c: Likewise.
93345         * lib/glob.c: Likewise.
93346         * lib/hard-locale.c: Likewise.
93347         * lib/iconvme.c: Likewise.
93348         * lib/javacomp.c: Likewise.
93349         * lib/mempcpy.c: Likewise.
93350         * lib/memrchr.c: Likewise.
93351         * lib/regex_internal.h: Likewise.
93352         * lib/stpncpy.c: Likewise.
93353         * lib/strcasecmp.c: Likewise.
93354         * lib/strchrnul.c: Likewise.
93355         * lib/strdup.c: Likewise.
93356         * lib/striconv.c: Likewise.
93357         * lib/striconveh.c: Likewise.
93358         * lib/striconveha.c: Likewise.
93359         * lib/strncasecmp.c: Likewise.
93360         * lib/strndup.c: Likewise.
93361         * lib/strnlen.c: Likewise.
93362         * lib/strsep.c: Likewise.
93363         * lib/strstr.c: Likewise.
93364         * lib/strtok_r.c: Likewise.
93365         * lib/userspec.c: Likewise.
93366         * lib/w32spawn.h: Likewise.
93367         * lib/xstrndup.c: Likewise.
93368         * lib/mountlist.c (strstr): Remove decl.
93369         * m4/string_h.m4: New file.
93370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93371         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93372         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93373         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93374         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93375         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93376         Set REPLACE_STRCASECMP if necessary.
93377         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93378         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93379         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93380         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93381         HAVE_DECL_STRDUP if necessary.
93382         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93383         since gl_FUNC_STRNDUP does that now.
93384         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93385         Check for decl here...
93386         (gl_PREREQ_STRNLEN): ... not here.
93387         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93388         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93389         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93391         necessary.
93392         * modules/string: New file.
93393         * modules/memmem (Files): Remove special-purpose include file.
93394         (Depends-on): Add string.
93395         (Include): Include <string.h>, not the removed file.
93396         * modules/mempcpy: Likewise.
93397         * modules/memrchr: Likewise.
93398         * modules/stpcpy: Likewise.
93399         * modules/stpncpy: Likewise.
93400         * modules/strcase: Likewise.
93401         * modules/strchrnul: Likewise.
93402         * modules/strdup: Likewise.
93403         * modules/strndup: Likewise.
93404         * modules/strnlen: Likewise.
93405         * modules/strpbrk: Likewise.
93406         * modules/strsep: Likewise.
93407         * modules/strstr: Likewise.
93408         * modules/strtok_r: Likewise.
93409         * tests/test-dirname.c: Don't include "strdup.h", since
93410         <string.h> now suffices.
93411         * tests/test-memmem.c: Don't include "memmem.h", since
93412         <string.h> now suffices.
93414 2007-01-25  Bruno Haible  <bruno@clisp.org>
93416         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93417         *resultp is 0.
93419         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93420         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93421         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93422         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93424         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93425         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93426         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93427         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93428         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93429         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93431 2007-01-24  Bruno Haible  <bruno@clisp.org>
93433         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93434         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93435         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93436         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93437         gl_FUNC_FTS_CORE.
93438         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93439         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93440         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93441         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93442         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93443         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93444         gl_FUNC_FCHOWNAT.
93445         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93446         gl_FUNC_STRFTIME.
93447         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93448         Reported by Ralf Wildenhues.
93450 2007-01-24  Bruno Haible  <bruno@clisp.org>
93452         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93453         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93454         gl_GETADDRINFO.
93455         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93456         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93457         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93459 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93461         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93462         Don't use 'exit'; just return from 'main'.
93463         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93465         * lib/fnmatch_.h: Readjust white space and comments to match
93466         glibc, to avoid spurious diffs.
93468 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93470         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93471         2004-12-01 change by Jakub Jelinek, since this code won't compile
93472         if !LIBC.  Problem reported by Bob Proulx.
93474 2007-01-23  Bruno Haible  <bruno@clisp.org>
93476         * lib/striconveh.c: Include c-strcaseeq.h.
93477         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93478         * modules/striconveh (Depends-on): Add c-strcaseeq.
93480 2007-01-23  Bruno Haible  <bruno@clisp.org>
93482         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93484         * modules/c-strcaseeq: New file.
93485         * lib/c-strcaseeq.h: New file.
93487         * modules/streq: New file.
93488         * lib/streq.h: New file.
93490 2007-01-23  Bruno Haible  <bruno@clisp.org>
93492         * modules/striconveha-tests: New file.
93493         * tests/test-striconveha.c: New file.
93495         * lib/striconveha.h: Include <stdbool.h>.
93496         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93497         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93498         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93499         (mem_iconveha): New function.
93500         (str_iconveha_notranslit): Renamed from str_iconveha.
93501         (str_iconveha): New function.
93502         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93503         c-strcase.
93505 2007-01-23  Bruno Haible  <bruno@clisp.org>
93507         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93508         encodings without forgiving before trying any encoding with handler.
93509         (str_iconveha): Try all encodings without forgiving before trying any
93510         encoding with handler.
93512 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93514         Import the following changes from libc.
93516         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93518         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93520         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93522         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93523         normal_bracket label.
93525         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93527         [BZ #361]
93528         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93529         to normal_bracket after fetching the next character.
93531 2007-01-22  Bruno Haible  <bruno@clisp.org>
93533         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93534         argument.
93535         * lib/striconveh.c (iconv_carefully_1): New function.
93536         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93537         argument.
93538         (str_cd_iconveh): Update.
93539         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93540         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93541         * tests/test-striconveh.c (MAGIC): New macro.
93542         (new_offsets): New function.
93543         (main): Test call with and without offsets.
93545 2007-01-22  Bruno Haible  <bruno@clisp.org>
93547         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93548         * modules/sys_select (Makefile.am): Likewise.
93549         * modules/sys_socket (Makefile.am): Likewise.
93550         * modules/sys_time (Makefile.am): Likewise.
93552 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93554         * modules/gettimeofday (License): Change from GPL to LGPL, since
93555         gettimeofday is a library function.
93557 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93559         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93561 2007-01-21  Bruno Haible  <bruno@clisp.org>
93563         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93565 2007-01-21  Bruno Haible  <bruno@clisp.org>
93567         * modules/striconveha: New file.
93568         * lib/striconveha.h: New file.
93569         * lib/striconveha.c: New file.
93570         * MODULES.html.sh (Internationalization functions): Add striconveha.
93571         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93572         string.
93573         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93575 2007-01-21  Bruno Haible  <bruno@clisp.org>
93577         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93578         * lib/striconveh.c (str_iconveh): Likewise.
93580 2007-01-21  Bruno Haible  <bruno@clisp.org>
93582         * lib/striconveh.h (mem_iconveh): New declaration.
93583         * lib/striconveh.c (mem_iconveh): New function.
93584         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93586 2007-01-21  Bruno Haible  <bruno@clisp.org>
93588         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93590         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93591         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93592         original result buffer.
93593         (str_cd_iconveh): Update.
93594         * tests/test-striconveh.c (main): Update.
93596         * lib/striconv.h (mem_cd_iconv): Change specification.
93597         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93598         result buffer.
93599         (str_cd_iconv): Update.
93600         * tests/test-striconv.c (main): Update.
93602 2007-01-21  Bruno Haible  <bruno@clisp.org>
93604         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93606 2007-01-20  Jim Meyering  <jim@meyering.net>
93608         * lib/userspec.c (parse_with_separator): If a user or group string
93609         starts with "+", skip the corresponding name-to-ID look-up, since
93610         such a look-up must fail: user and group names may not include "+".
93612 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93614         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93615         since we now assume the sys_time module.
93616         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93617         check for sys/time.h; no longer needed.
93618         * modules/poll (Depends-on): Depend on sys_time.
93620 2007-01-18  Bruno Haible  <bruno@clisp.org>
93622         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93623         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93625         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93626         gettimeofday.
93628         * tests/test-gettimeofday.c: Include <time.h>.
93629         (dummy): Remove variable.
93631         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93632         gl_HEADER_SYS_TIME_H.
93633         (gl_HEADER_SYS_TIME_H): New macro.
93635         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93636         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93637         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93638         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93639         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93640         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93641         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93642         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93643         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93644         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93645         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93647         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93648         last change; it caused a compilation error when cross-compiling to
93649         Cygwin.
93651 2007-01-18  Jim Meyering  <jim@meyering.net>
93653         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93654         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93655         than the race-prone "test -d sys || mkdir sys".
93656         (configure.ac): Use AC_PROG_MKDIR_P.
93657         * modules/sys_select: Likewise.
93658         * modules/sys_socket: Likewise.
93659         * modules/sys_time: Likewise.
93661 2007-01-18  Eric Blake  <ebb9@byu.net>
93663         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93664         replace gettimeofday.
93665         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93666         name, to avoid infinite recursion.
93668 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93670         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93671         module sys_time.
93672         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93673         assume timespec.h defines struct timeval.
93674         * lib/settime.c: Likewise.
93675         * lib/utimens.c: Likewise.
93676         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93677         since we now assume the gettimeofday module.
93678         * lib/tempname.c (__gen_tempname): Likewise.
93679         * lib/gettimeofday.h: Remove.
93680         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93681         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93682         Include <time.h>, for 'time()'.
93683         (localtime_buffer_addr): Also use this workaround if
93684         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93685         to simplify the uses.  All uses changed.
93686         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93687         that #undef is inside {}, and 'const' follows type name consistently.
93688         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93689         (gettimeofday): Do not use the maximum possible value for
93690         tv->tv_usec, since that might break usages other than ls.c.
93691         Instead, we'll leave ls.c alone.  This undoes today's patch
93692         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93693         we've never observed the problem but might as well keep the
93694         canary.
93695         * lib/nanosleep.c: Include timespec.h first, for interface check.
93696         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93697         now assume the sys_time module.
93698         * lib/tempname.c: Likewise.
93699         * lib/timespec.h: Likewise.
93700         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93701         needed.
93702         * lib/strftime.c: Likewise.
93703         * lib/timespec.h: Likewise.
93704         * lib/posixtm.c: Include posixtm.h first, for interface check.
93705         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93706         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93707         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93708         * lib/sys_time_.h: New file.
93709         * lib/timespec.h (struct timespec): Use long int, not long.
93710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93711         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93712         Remove obsolescent call to AC_HEADER_TIME.
93713         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93715         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93716         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93717         Likewise.
93718         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93719         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93720         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93721         into the sys_time module.  Check for gettimeofday just once.
93722         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93723         for gettimeofday signature to just check the signature.  Merely
93724         compile it, since linking doesn't test signature.  Improve test for
93725         whether gettimeofday.o is actually needed.
93726         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93727         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93728         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93729         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93730         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93731         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93732         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93733         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93734         than worrying about sys/time.h.
93735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93736         Don't bother worrying about TIME_WITH_SYS_TIME.
93737         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93738         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93739         * m4/sys_time_h.m4: New file.
93740         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93741         Don't include sys/time.h.  Return from main rather than exiting.
93742         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93743         all uses changed.
93744         * modules/gethrxtime (Depends-on): Add sys_time.
93745         * modules/gettime (Depends-on): Likewise.
93746         * modules/gettimeofday (Depends-on): Likewise.
93747         * modules/nanosleep (Depends-on): Likewise.
93748         * modules/settime (Depends-on): Likewise.
93749         * modules/tempname (Depends-on): Likewise.
93750         * modules/utimens (Depends-on): Likewise.
93751         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93752         (Include): Change back to <sys/time.h>.
93753         (Maintainer): Add self.
93754         * modules/sys_time: New file.
93755         * modules/tempname (Depends-on): Add gettimeofday.
93756         * tests/test-gettimeofday.c: Include <sys/time.h>
93757         rather than gettimeofday.h.
93759 2007-01-17  Bruno Haible  <bruno@clisp.org>
93761         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93762         the license default to GPL.
93763         (func_create_testdir): Don't complain if a module is LGPL and its
93764         tests module depends on GPLed modules.
93766 2007-01-17  Bruno Haible  <bruno@clisp.org>
93768         * lib/gettimeofday.c (gettimeofday): Add code for the case
93769         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93770         maximum possible value for tv->tv_usec, rather than the minimum one.
93772 2005-10-08  Martin Lambers  <marlam@marlam.de>
93773 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93774 2007-01-16  Bruno Haible  <bruno@clisp.org>
93776         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93777         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93778         gl_FUNC_GETTIMEOFDAY.
93779         (Include): Add gettimeofday.h.
93780         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93781         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93782         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93783         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93784         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93785         * lib/gettimeofday.h: New file.
93786         * lib/gettimeofday.c: Include <sys/timeb.h>.
93787         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93788         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93789         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93790         fall back on time().
93792         * tests/test-gettimeofday.c: New file.
93793         * modules/gettimeofday-tests: New file.
93795 2007-01-16  Eric Blake  <ebb9@byu.net>
93797         * modules/fnmatch (Depends-on): Depend on wchar.
93798         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93799         * m4/fnmatch.m4: Likewise.
93800         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93801         * m4/mbchar.m4: Likewise.
93802         * modules/mbswidth (Depends-on): Depend on wchar.
93803         * lib/mbswidth.c: Assume <wchar.h>.
93804         * m4/mbswidth.m4: Likewise.
93805         * modules/quotearg (Depends-on): Depend on wchar.
93806         * lib/quotearg.c: Assume <wchar.h>.
93807         * m4/quotearg.m4: Likewise.
93808         * modules/regex (Depends-on): Depend on wchar.
93809         * lib/regex_internal.h: Assume <wchar.h>.
93810         * m4/regex.m4: Likewise.
93811         * modules/stdint (Depends-on): Depend on wchar.
93812         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93813         * m4/stdint.m4: Likewise.
93814         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93815         * modules/strftime (Depends-on): Depend on wchar.
93816         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93817         * modules/strtol (Depends-on): Depend on wchar.
93818         * lib/strtol.c: Assume <wchar.h>.
93819         * modules/wcwidth (Depends-on): Depend on wchar.
93820         * lib/wcwidth.h: Assume <wchar.h>.
93821         * m4/wcwidth.m4: Likewise.
93823 2007-01-16  Bruno Haible  <bruno@clisp.org>
93825         * modules/csharpexec-script: New, created from...
93826         * modules/csharpexec: ... this.
93828 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93830         * modules/javaexec-script: New, created from...
93831         * modules/javaexec: ... this.
93833 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93835         * modules/poll (Dependencies): Add sys_select.
93837 2007-01-15  Jim Meyering  <jim@meyering.net>
93839         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93840         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93841         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93842         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93844 2007-01-15  Bruno Haible  <bruno@clisp.org>
93846         * modules/striconveh: New file.
93847         * lib/striconveh.h: New file.
93848         * lib/striconveh.c: New file.
93849         * MODULES.html.sh (Internationalization functions): Add striconveh.
93851         * modules/striconveh-tests: New file.
93852         * tests/test-striconveh.c: New file.
93854 2007-01-15  Bruno Haible  <bruno@clisp.org>
93856         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93857         not from GNU libiconv or GNU libc.
93859 2007-01-15  Bruno Haible  <bruno@clisp.org>
93861         * doc/gnulib-intro.texi (Copyright): Explain the different license
93862         terms for module descriptions, autoconf macros, tests, documentation.
93864 2007-01-14  Bruno Haible  <bruno@clisp.org>
93866         * modules/striconv-tests: New file.
93867         * tests/test-striconv.c: New file.
93869 2007-01-14  Bruno Haible  <bruno@clisp.org>
93871         * modules/iconv-tests: New file.
93872         * tests/test-iconv.c: New file.
93874 2007-01-14  Bruno Haible  <bruno@clisp.org>
93876         * gnulib-tool (func_get_license): For test modules, use the license of
93877         the main module.
93879 2007-01-14  Bruno Haible  <bruno@clisp.org>
93881         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93882         if iconv is found to exist.
93884 2007-01-14  Bruno Haible  <bruno@clisp.org>
93886         * modules/c-ctype-tests: New file.
93887         * tests/test-c-ctype.c: New file.
93889 2007-01-14  Bruno Haible  <bruno@clisp.org>
93891         * modules/binary-io-tests: New file.
93892         * tests/test-binary-io.sh: New file.
93893         * tests/test-binary-io.c: New file.
93895 2007-01-14  Bruno Haible  <bruno@clisp.org>
93897         * modules/array-oset-tests: New file.
93898         * tests/test-array_oset.c: New file.
93900 2007-01-14  Bruno Haible  <bruno@clisp.org>
93902         * modules/array-list-tests: New file.
93903         * tests/test-array_list.c: New file.
93905 2007-01-14  Bruno Haible  <bruno@clisp.org>
93907         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93908         and make.
93909         Reported by Simon Josefsson in
93910         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93912 2007-01-14  Bruno Haible  <bruno@clisp.org>
93914         * modules/allocsa-tests: New file.
93915         * tests/test-allocsa.c: New file.
93917 2007-01-14  Bruno Haible  <bruno@clisp.org>
93919         * modules/fchdir (Depends-on): Add absolute-header.
93920         * modules/unistd (Depends-on): Likewise.
93922 2006-12-30  Bruno Haible  <bruno@clisp.org>
93924         * modules/fchdir: New file.
93925         * modules/unistd (Files): Add lib/unistd_.h.
93926         (Makefile.am): Generate unistd.h from unistd_.h.
93927         * lib/fchdir.c: New file.
93928         * lib/dirent_.h: New file.
93929         * lib/unistd_.h: New file.
93930         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93931         * m4/fchdir.m4: New file.
93932         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93933         (gl_HEADER_UNISTD): Invoke it.
93934         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93935         function.
93936         * lib/backupfile.c (opendir, closedir): Undefine.
93937         * lib/chown.c (open, close): Undefine.
93938         * lib/clean-temp.c (open, close): Undefine.
93939         * lib/copy-file.c (open, close): Undefine.
93940         * lib/execute.c (open, close): Undefine.
93941         * lib/fsusage.c (open, close): Undefine.
93942         * lib/gc-gnulib.c (open, close): Undefine.
93943         * lib/getcwd.c (opendir, closedir): Undefine.
93944         * lib/glob.c (opendir, closedir): Undefine.
93945         * lib/javacomp.c (open, close): Undefine.
93946         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93947         * lib/openat-proc.c (open, close): Undefine.
93948         * lib/pagealign_alloc.c (open, close): Undefine.
93949         * lib/pipe.c (open, close): Undefine.
93950         * lib/progreloc.c (open, close): Undefine.
93951         * lib/savedir.c (opendir, closedir): Undefine.
93952         * lib/utime.c (open, close): Undefine.
93953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93955 2007-01-10  Bruno Haible  <bruno@clisp.org>
93957         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93959 2007-01-12  Eric Blake  <ebb9@byu.net>
93961         Provide a robust <wchar.h>.  Further simplifications are now
93962         possible in other modules, but not included here.
93963         * modules/wchar: New module.
93964         * m4/wchar.m4: New file.
93965         * lib/wchar_.h: Likewise.
93966         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93967         of the new module.
93968         * MODULES.html.sh (Extended multibyte and wide character utilities):
93969         New section.
93971 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93973         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93974         to a reasonable default for memory allocation.
93975         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93976         file system that reports garbage st_size values for symlinks.
93977         Problem reported by Liyang Hu.
93979 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93981         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93982         Emacs .#* auto-save files).
93984 2007-01-11  Bruno Haible  <bruno@clisp.org>
93986         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93987         directory.
93989 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93991         Use @...@ consistently in lib/wctype_.h.
93992         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93993         on it being set to 1 or 0.
93994         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93995         go back to AC_SUBSTing it.
93996         * modules/wctype (Makefile.am): Undo previous change.
93998 2007-01-10  Eric Blake  <ebb9@byu.net>
94000         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
94001         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
94002         * modules/wctype (Makefile.am): Likewise.
94003         Reported by Chris McGuire.
94005 2007-01-10  Jim Meyering  <jim@meyering.net>
94007         fts.c: a small readability/maintainability improvement
94008         * lib/fts.c (fts_read): Make this code slightly more readable and
94009         maintainable by hoisting the "sp->fts_cur = p" assignments to
94010         immediately follow the statements that set P.  Derived from
94011         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
94013 2007-01-10  Eric Blake  <ebb9@byu.net>
94015         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
94016         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
94017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94018         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
94019         Reported by Chris McGuire.
94021 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94023         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
94024         in sed script.
94026 2007-01-09  Bruno Haible  <bruno@clisp.org>
94028         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
94029         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
94030         variables.
94031         (func_module): Use them.
94033 2007-01-09  Bruno Haible  <bruno@clisp.org>
94035         * modules/unistr/base: New file.
94036         * lib/unistr.h: New file.
94038         * modules/unistr/u8-to-u16: New file.
94039         * lib/unistr/u8-to-u16.c: New file.
94041         * modules/unistr/u8-to-u32: New file.
94042         * lib/unistr/u8-to-u32.c: New file.
94044         * modules/unistr/u16-to-u8: New file.
94045         * lib/unistr/u16-to-u8.c: New file.
94047         * modules/unistr/u16-to-u32: New file.
94048         * lib/unistr/u16-to-u32.c: New file.
94050         * modules/unistr/u32-to-u8: New file.
94051         * lib/unistr/u32-to-u8.c: New file.
94053         * modules/unistr/u32-to-u16: New file.
94054         * lib/unistr/u32-to-u16.c: New file.
94056         * modules/unistr/u8-check: New file.
94057         * modules/unistr/u16-check: New file.
94058         * modules/unistr/u32-check: New file.
94059         * lib/unistr/u8-check.c: New file.
94060         * lib/unistr/u16-check.c: New file.
94061         * lib/unistr/u32-check.c: New file.
94063         * modules/unistr/u8-chr: New file.
94064         * modules/unistr/u16-chr: New file.
94065         * modules/unistr/u32-chr: New file.
94066         * lib/unistr/u8-chr.c: New file.
94067         * lib/unistr/u16-chr.c: New file.
94068         * lib/unistr/u32-chr.c: New file.
94070         * modules/unistr/u8-cmp: New file.
94071         * modules/unistr/u16-cmp: New file.
94072         * modules/unistr/u32-cmp: New file.
94073         * lib/unistr/u8-cmp.c: New file.
94074         * lib/unistr/u16-cmp.c: New file.
94075         * lib/unistr/u32-cmp.c: New file.
94077         * modules/unistr/u8-cpy: New file.
94078         * modules/unistr/u16-cpy: New file.
94079         * modules/unistr/u32-cpy: New file.
94080         * lib/unistr/u8-cpy.c: New file.
94081         * lib/unistr/u16-cpy.c: New file.
94082         * lib/unistr/u32-cpy.c: New file.
94083         * lib/unistr/u-cpy.h: New file.
94085         * modules/unistr/u8-cpy-alloc: New file.
94086         * modules/unistr/u16-cpy-alloc: New file.
94087         * modules/unistr/u32-cpy-alloc: New file.
94088         * lib/unistr/u8-cpy-alloc.c: New file.
94089         * lib/unistr/u16-cpy-alloc.c: New file.
94090         * lib/unistr/u32-cpy-alloc.c: New file.
94091         * lib/unistr/u-cpy-alloc.h: New file.
94093         * modules/unistr/u8-endswith: New file.
94094         * modules/unistr/u16-endswith: New file.
94095         * modules/unistr/u32-endswith: New file.
94096         * lib/unistr/u8-endswith.c: New file.
94097         * lib/unistr/u16-endswith.c: New file.
94098         * lib/unistr/u32-endswith.c: New file.
94099         * lib/unistr/u-endswith.h: New file.
94101         * modules/unistr/u8-mblen: New file.
94102         * modules/unistr/u16-mblen: New file.
94103         * modules/unistr/u32-mblen: New file.
94104         * lib/unistr/u8-mblen.c: New file.
94105         * lib/unistr/u16-mblen.c: New file.
94106         * lib/unistr/u32-mblen.c: New file.
94108         * modules/unistr/u8-mbtouc: New file.
94109         * modules/unistr/u16-mbtouc: New file.
94110         * modules/unistr/u32-mbtouc: New file.
94111         * lib/unistr/u8-mbtouc.c: New file.
94112         * lib/unistr/u16-mbtouc.c: New file.
94113         * lib/unistr/u32-mbtouc.c: New file.
94115         * modules/unistr/u8-mbtouc-safe: New file.
94116         * modules/unistr/u16-mbtouc-safe: New file.
94117         * modules/unistr/u32-mbtouc-safe: New file.
94118         * lib/unistr/u8-mbtouc-safe.c: New file.
94119         * lib/unistr/u16-mbtouc-safe.c: New file.
94120         * lib/unistr/u32-mbtouc-safe.c: New file.
94122         * modules/unistr/u8-move: New file.
94123         * modules/unistr/u16-move: New file.
94124         * modules/unistr/u32-move: New file.
94125         * lib/unistr/u8-move.c: New file.
94126         * lib/unistr/u16-move.c: New file.
94127         * lib/unistr/u32-move.c: New file.
94128         * lib/unistr/u-move.h: New file.
94130         * modules/unistr/u8-next: New file.
94131         * modules/unistr/u16-next: New file.
94132         * modules/unistr/u32-next: New file.
94133         * lib/unistr/u8-next.c: New file.
94134         * lib/unistr/u16-next.c: New file.
94135         * lib/unistr/u32-next.c: New file.
94137         * modules/unistr/u8-prev: New file.
94138         * modules/unistr/u16-prev: New file.
94139         * modules/unistr/u32-prev: New file.
94140         * lib/unistr/u8-prev.c: New file.
94141         * lib/unistr/u16-prev.c: New file.
94142         * lib/unistr/u32-prev.c: New file.
94144         * modules/unistr/u8-set: New file.
94145         * modules/unistr/u16-set: New file.
94146         * modules/unistr/u32-set: New file.
94147         * lib/unistr/u8-set.c: New file.
94148         * lib/unistr/u16-set.c: New file.
94149         * lib/unistr/u32-set.c: New file.
94150         * lib/unistr/u-set.h: New file.
94152         * modules/unistr/u8-startswith: New file.
94153         * modules/unistr/u16-startswith: New file.
94154         * modules/unistr/u32-startswith: New file.
94155         * lib/unistr/u8-startswith.c: New file.
94156         * lib/unistr/u16-startswith.c: New file.
94157         * lib/unistr/u32-startswith.c: New file.
94158         * lib/unistr/u-startswith.h: New file.
94160         * modules/unistr/u8-stpcpy: New file.
94161         * modules/unistr/u16-stpcpy: New file.
94162         * modules/unistr/u32-stpcpy: New file.
94163         * lib/unistr/u8-stpcpy.c: New file.
94164         * lib/unistr/u16-stpcpy.c: New file.
94165         * lib/unistr/u32-stpcpy.c: New file.
94166         * lib/unistr/u-stpcpy.h: New file.
94168         * modules/unistr/u8-stpncpy: New file.
94169         * modules/unistr/u16-stpncpy: New file.
94170         * modules/unistr/u32-stpncpy: New file.
94171         * lib/unistr/u8-stpncpy.c: New file.
94172         * lib/unistr/u16-stpncpy.c: New file.
94173         * lib/unistr/u32-stpncpy.c: New file.
94174         * lib/unistr/u-stpncpy.h: New file.
94176         * modules/unistr/u8-strcat: New file.
94177         * modules/unistr/u16-strcat: New file.
94178         * modules/unistr/u32-strcat: New file.
94179         * lib/unistr/u8-strcat.c: New file.
94180         * lib/unistr/u16-strcat.c: New file.
94181         * lib/unistr/u32-strcat.c: New file.
94182         * lib/unistr/u-strcat.h: New file.
94184         * modules/unistr/u8-strchr: New file.
94185         * modules/unistr/u16-strchr: New file.
94186         * modules/unistr/u32-strchr: New file.
94187         * lib/unistr/u8-strchr.c: New file.
94188         * lib/unistr/u16-strchr.c: New file.
94189         * lib/unistr/u32-strchr.c: New file.
94191         * modules/unistr/u8-strcmp: New file.
94192         * modules/unistr/u16-strcmp: New file.
94193         * modules/unistr/u32-strcmp: New file.
94194         * lib/unistr/u8-strcmp.c: New file.
94195         * lib/unistr/u16-strcmp.c: New file.
94196         * lib/unistr/u32-strcmp.c: New file.
94198         * modules/unistr/u8-strcpy: New file.
94199         * modules/unistr/u16-strcpy: New file.
94200         * modules/unistr/u32-strcpy: New file.
94201         * lib/unistr/u8-strcpy.c: New file.
94202         * lib/unistr/u16-strcpy.c: New file.
94203         * lib/unistr/u32-strcpy.c: New file.
94204         * lib/unistr/u-strcpy.h: New file.
94206         * modules/unistr/u8-strcspn: New file.
94207         * modules/unistr/u16-strcspn: New file.
94208         * modules/unistr/u32-strcspn: New file.
94209         * lib/unistr/u8-strcspn.c: New file.
94210         * lib/unistr/u16-strcspn.c: New file.
94211         * lib/unistr/u32-strcspn.c: New file.
94212         * lib/unistr/u-strcspn.h: New file.
94214         * modules/unistr/u8-strdup: New file.
94215         * modules/unistr/u16-strdup: New file.
94216         * modules/unistr/u32-strdup: New file.
94217         * lib/unistr/u8-strdup.c: New file.
94218         * lib/unistr/u16-strdup.c: New file.
94219         * lib/unistr/u32-strdup.c: New file.
94220         * lib/unistr/u-strdup.h: New file.
94222         * modules/unistr/u8-strlen: New file.
94223         * modules/unistr/u16-strlen: New file.
94224         * modules/unistr/u32-strlen: New file.
94225         * lib/unistr/u8-strlen.c: New file.
94226         * lib/unistr/u16-strlen.c: New file.
94227         * lib/unistr/u32-strlen.c: New file.
94228         * lib/unistr/u-strlen.h: New file.
94230         * modules/unistr/u8-strmblen: New file.
94231         * modules/unistr/u16-strmblen: New file.
94232         * modules/unistr/u32-strmblen: New file.
94233         * lib/unistr/u8-strmblen.c: New file.
94234         * lib/unistr/u16-strmblen.c: New file.
94235         * lib/unistr/u32-strmblen.c: New file.
94237         * modules/unistr/u8-strmbtouc: New file.
94238         * modules/unistr/u16-strmbtouc: New file.
94239         * modules/unistr/u32-strmbtouc: New file.
94240         * lib/unistr/u8-strmbtouc.c: New file.
94241         * lib/unistr/u16-strmbtouc.c: New file.
94242         * lib/unistr/u32-strmbtouc.c: New file.
94244         * modules/unistr/u8-strncat: New file.
94245         * modules/unistr/u16-strncat: New file.
94246         * modules/unistr/u32-strncat: New file.
94247         * lib/unistr/u8-strncat.c: New file.
94248         * lib/unistr/u16-strncat.c: New file.
94249         * lib/unistr/u32-strncat.c: New file.
94250         * lib/unistr/u-strncat.h: New file.
94252         * modules/unistr/u8-strncmp: New file.
94253         * modules/unistr/u16-strncmp: New file.
94254         * modules/unistr/u32-strncmp: New file.
94255         * lib/unistr/u8-strncmp.c: New file.
94256         * lib/unistr/u16-strncmp.c: New file.
94257         * lib/unistr/u32-strncmp.c: New file.
94259         * modules/unistr/u8-strncpy: New file.
94260         * modules/unistr/u16-strncpy: New file.
94261         * modules/unistr/u32-strncpy: New file.
94262         * lib/unistr/u8-strncpy.c: New file.
94263         * lib/unistr/u16-strncpy.c: New file.
94264         * lib/unistr/u32-strncpy.c: New file.
94265         * lib/unistr/u-strncpy.h: New file.
94267         * modules/unistr/u8-strnlen: New file.
94268         * modules/unistr/u16-strnlen: New file.
94269         * modules/unistr/u32-strnlen: New file.
94270         * lib/unistr/u8-strnlen.c: New file.
94271         * lib/unistr/u16-strnlen.c: New file.
94272         * lib/unistr/u32-strnlen.c: New file.
94273         * lib/unistr/u-strnlen.h: New file.
94275         * modules/unistr/u8-strpbrk: New file.
94276         * modules/unistr/u16-strpbrk: New file.
94277         * modules/unistr/u32-strpbrk: New file.
94278         * lib/unistr/u8-strpbrk.c: New file.
94279         * lib/unistr/u16-strpbrk.c: New file.
94280         * lib/unistr/u32-strpbrk.c: New file.
94281         * lib/unistr/u-strpbrk.h: New file.
94283         * modules/unistr/u8-strrchr: New file.
94284         * modules/unistr/u16-strrchr: New file.
94285         * modules/unistr/u32-strrchr: New file.
94286         * lib/unistr/u8-strrchr.c: New file.
94287         * lib/unistr/u16-strrchr.c: New file.
94288         * lib/unistr/u32-strrchr.c: New file.
94290         * modules/unistr/u8-strspn: New file.
94291         * modules/unistr/u16-strspn: New file.
94292         * modules/unistr/u32-strspn: New file.
94293         * lib/unistr/u8-strspn.c: New file.
94294         * lib/unistr/u16-strspn.c: New file.
94295         * lib/unistr/u32-strspn.c: New file.
94296         * lib/unistr/u-strspn.h: New file.
94298         * modules/unistr/u8-strstr: New file.
94299         * modules/unistr/u16-strstr: New file.
94300         * modules/unistr/u32-strstr: New file.
94301         * lib/unistr/u8-strstr.c: New file.
94302         * lib/unistr/u16-strstr.c: New file.
94303         * lib/unistr/u32-strstr.c: New file.
94304         * lib/unistr/u-strstr.h: New file.
94306         * modules/unistr/u8-strtok: New file.
94307         * modules/unistr/u16-strtok: New file.
94308         * modules/unistr/u32-strtok: New file.
94309         * lib/unistr/u8-strtok.c: New file.
94310         * lib/unistr/u16-strtok.c: New file.
94311         * lib/unistr/u32-strtok.c: New file.
94312         * lib/unistr/u-strtok.h: New file.
94314         * modules/unistr/u8-uctomb: New file.
94315         * modules/unistr/u16-uctomb: New file.
94316         * modules/unistr/u32-uctomb: New file.
94317         * lib/unistr/u8-uctomb.c: New file.
94318         * lib/unistr/u16-uctomb.c: New file.
94319         * lib/unistr/u32-uctomb.c: New file.
94321         * MODULES.html.sh (Unicode string functions): Add the new modules.
94323 2007-01-08  Bruno Haible  <bruno@clisp.org>
94325         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
94326         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
94327         subdirectories.
94329 2007-01-08  Karl Berry  <karl@gnu.org>
94331         * doc/error.texi: mention that main() fns must set program_name
94332         when progname is used.
94334 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94336         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94337         WCTYPE_H is empty, for the benefit of builds from non-distclean
94338         directories.  Problem reported by Eric Blake in
94339         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94341 2007-01-08  Bruno Haible  <bruno@clisp.org>
94343         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94344         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94345         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94346         PROVIDE_CANONICALIZE_FILENAME_MODE.
94347         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94349 2007-01-08  Bruno Haible  <bruno@clisp.org>
94351         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94352         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94353         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94354         * lib/fts.c: Likewise.
94355         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94357 2006-12-25  Bruno Haible  <bruno@clisp.org>
94359         * modules/utf8-ucs4-safe: New file.
94360         * lib/utf8-ucs4-safe.h: New file.
94361         * lib/unistr/utf8-ucs4-safe.c: New file.
94363         * modules/utf16-ucs4-safe: New file.
94364         * lib/utf16-ucs4-safe.h: New file.
94365         * lib/unistr/utf16-ucs4-safe.c: New file.
94367         * MODULES.html.sh (Unicode string functions): Add the new modules.
94369 2007-01-08  Bruno Haible  <bruno@clisp.org>
94371         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94372         (Depends-on): Add unitypes.
94373         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94374         (u8_mbtouc_aux): Move out to separate file.
94375         (u8_mbtouc): Use ucs4_t, uint8_t types.
94376         * lib/unistr/utf8-ucs4.c: New file.
94378         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94379         (Depends-on): Add unitypes.
94380         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94381         (u16_mbtouc_aux): Move out to separate file.
94382         (u16_mbtouc): Use ucs4_t, uint16_t types.
94383         * lib/unistr/utf16-ucs4.c: New file.
94385         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94386         (Depends-on): Add unitypes.
94387         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94388         (u8_uctomb_aux): Move out to separate file.
94389         (u8_uctomb): Use ucs4_t, uint8_t types.
94390         * lib/unistr/ucs4-utf8.c: New file.
94392         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94393         (Depends-on): Add unitypes.
94394         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94395         (u16_uctomb_aux): Move out to separate file.
94396         (u16_uctomb): Use ucs4_t, uint16_t types.
94397         * lib/unistr/ucs4-utf16.c: New file.
94399 2006-12-25  Bruno Haible  <bruno@clisp.org>
94401         * modules/unitypes: New file.
94402         * lib/unitypes.h: New file.
94403         * MODULES.html.sh (func_all_modules): New section "Unicode string
94404         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94405         this section. Add unitypes.
94407 2007-01-08  Bruno Haible  <bruno@clisp.org>
94409         Avoid variable names that conflict with those from libtool.
94410         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94411         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94412         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94413         library_names_spec to acl_library_names_spec, hardcode_* to
94414         acl_hardcode_*.
94415         Reported by Ralf Wildenhues.
94417 2007-01-08  Bruno Haible  <bruno@clisp.org>
94419         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94420         definition.
94421         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94422         definition.
94423         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94424         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94425         definition.
94426         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94427         definition.
94428         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94429         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94430         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94431         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94432         definition.
94433         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94434         definition.
94435         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94436         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94437         GC_USE_<algorithm>.
94438         * lib/gc-libgcrypt.c: Likewise.
94439         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94440         * modules/gc-arctwo (configure.ac): Likewise.
94441         * modules/gc-des (configure.ac): Likewise.
94442         * modules/gc-hmac-md5 (configure.ac): Likewise.
94443         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94444         * modules/gc-md2 (configure.ac): Likewise.
94445         * modules/gc-md4 (configure.ac): Likewise.
94446         * modules/gc-md5 (configure.ac): Likewise.
94447         * modules/gc-random (configure.ac): Likewise.
94448         * modules/gc-rijndael (configure.ac): Likewise.
94449         * modules/gc-sha1 (configure.ac): Likewise.
94451 2007-01-08  Bruno Haible  <bruno@clisp.org>
94453         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94454         macro definition.
94455         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94456         definition.
94457         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94458         definition.
94459         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94460         * modules/fcntl-safer (configure.ac): Likewise.
94461         * modules/fopen-safer (configure.ac): Likewise.
94462         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94463         GNULIB_FWRITEERROR macro definition.
94465 2007-01-08  Bruno Haible  <bruno@clisp.org>
94467         * m4/gnulib-common.m4: New file.
94468         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94469         (func_get_filelist): Add m4/gnulib-common.m4.
94471 2007-01-08  Bruno Haible  <bruno@clisp.org>
94473         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94474         command.
94476 2007-01-08  Jim Meyering  <jim@meyering.net>
94478         Use a more robust test for a "can't happen" condition.
94479         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94480         narrowed the st_size value.  Presuming the "can't happen" condition
94481         is true, that narrowing could conceivably convert an invalid st_size
94482         value into a valid one.  Instead, use a change based on Matthew
94483         Woehlke's original patch.
94485         Slight readability improvement: use an assert-like macro
94486         in place of literal "abort ()" uses.
94487         * lib/fts.c (fts_assert): Define.
94488         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94489         Use this macro instead of a bare 'abort'.
94491 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94493         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94494         simply work around them.
94495         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94496         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94497         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94498         declaring.
94499         Don't bother to define as macros, since the standard doesn't require it.
94500         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94501         longer worry about IRIX 5.3.
94502         (HAVE_WCTYPE_CTMP_BUG): Remove.
94504 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94506         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94507         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94508         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94509         Problems reported by Georg Schwarz for IRIX 5.3.
94511         * gnulib-tool (autoconf_minversion): Take the maximum version number
94512         found, not the minimum.  Problem reported by James Youngman.
94514 2007-01-03  Karl Berry  <karl@gnu.org>
94516         * doc/error.texi: new file, explaining interaction with progname.
94517         * doc/gnulib.texi: include it.  Update copyright.
94519 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94521         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94522         AC_CANONICAL_HOST, to improve autobuild outputs.
94524 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94525             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94527         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94528         sockets, server sockets, and other file descriptors.  Count errors
94529         to compute the return value.  Reorder the code a bit to be easier
94530         to follow.  Don't set event bits that were not requested (except
94531         POLLERR and POLLHUP).
94533 2007-01-01  Bruno Haible  <bruno@clisp.org>
94535         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94537 2007-01-03  Jim Meyering  <jim@meyering.net>
94539         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94541 2007-01-02  Bruno Haible  <bruno@clisp.org>
94543         * modules/settime (Include): Require timespec.h.
94544         * modules/nanosleep (Include): Likewise.
94546 2007-01-01  Bruno Haible  <bruno@clisp.org>
94548         * gnulib-tool (func_emit_copyright_notice): Bump year.
94549         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94551 2007-01-01  Bruno Haible  <bruno@clisp.org>
94553         Improve support for OpenBSD.
94554         * build-aux/config.rpath (libname_spec): Export.
94555         (library_names_spec): New variable. Export.
94556         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94557         library_names_spec from the config.rpath output. Locate shared library
94558         through the name pattern in library_names_spec.
94560 2007-01-01  Eric Blake  <ebb9@byu.net>
94562         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94564 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94566         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94567         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94568         assume the C locale, and avoid an "eval" that could cause trouble.
94569         Problem with SORT reported by Bob Proulx.
94571         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94572         Define.  Trivial patch from Henning Nielsen Lund, originally
94573         sent to bug-grep@gnu.org today.
94575 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94577         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94578         struct stat.  Problem reported by Henning Nielsen Lund.
94579         * lib/acl.c: Include acl.h first, to check interface.  Don't
94580         bother to include sys/types.h and sys/stat.h again.
94582 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94584         Import the following change from libc; problem reported by
94585         Sven Verdoolaege.
94587         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94589         [BZ #1373]
94590         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94592 2006-12-28  Jim Meyering  <jim@meyering.net>
94594         * build-aux/announce-gen: Do not assume that the package
94595         builds any of tar.gz, tar.bz2, and .xdelta files.
94596         Suggestion from Simon Josefsson.
94598 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94600         * modules/announce-gen: New file.
94602 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94604         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94605         handles its gotchas now.
94606         * lib/mbswidth.c: Likewise.
94607         * lib/wcwidth.h: Likewise.
94608         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94609         and iswcntrl; the wctype module does this stuff now.
94610         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94612         * modules/mbchar (Depends-on): Add wctype.
94613         * modules/mbswidth (Depends-on): Likewise.
94614         * modules/wcwidth (Depends-on): Likewise.
94616 2006-12-27  Eric Blake  <ebb9@byu.net>
94618         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94619         module uses more than what <wctype.h> is required to provide.
94621 2006-12-26  Eric Blake  <ebb9@byu.net>
94623         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94625 2006-12-26  Eric Blake  <ebb9@byu.net>
94627         * modules/absolute-header: New module.
94628         * modules/fcntl (Depends-on): Depend on it.
94629         * modules/inttypes (Depends-on): Likewise.
94630         * modules/stdint (Depends-on): Likewise.
94631         * modules/sys_stat (Depends-on): Likewise.
94632         * modules/wctype (Depends-on): Likewise.
94633         * MODULES.html.sh (Support for building libraries and
94634         executables): Document it.
94636 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94638         * gnulib-tool (SED): Remove, undoing previous change.
94639         The problem was that it broke coreutils on Solaris, because
94640         "sed --posix" leaked into a makefile.
94641         (sed): New alias, if 'alias' and GNU sed.
94643 2006-12-24  Jim Meyering  <jim@meyering.net>
94645         Work around an fchownat bug in glibc-2.4:
94646         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94647         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94648         in spite of the -P option.
94649         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94650         New macros.
94651         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94652         * modules/openat (Files): Add lib/fchownat.c.
94653         * lib/openat.c (fchownat): Don't define here.  Move to...
94654         * lib/fchownat.c: ...this new file.
94656 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94658         Fix bug reported by Bruno Haible in
94659         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94660         where quotearg.c didn't compile on Mac OS X 10.2 because it
94661         lacks <wchar.h> and wint_t.
94662         * lib/wctype_.h (__wctype_wint_t): New type.
94663         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94664         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94665         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94666         Arg is now of type __wctype_wint_t, not wint_t.
94667         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94668         substitute HAVE_WINT_T.
94669         * modules/wctype (Files): Add m4/wint_t.m4.
94670         (wctype.h): Substitute HAVE_WINT_T.
94672 2006-12-23  Bruno Haible  <bruno@clisp.org>
94674         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94676 2006-12-23  Bruno Haible  <bruno@clisp.org>
94678         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94679         S_ISLNK.
94680         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94681         mingw.
94683 2006-12-22  Bruno Haible  <bruno@clisp.org>
94685         * lib/copy-file.c: Include acl.h.
94686         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94687         Close the file descriptors only after being done with copy_acl.
94688         * modules/copy-file (Depends-on): Add acl.
94690 2006-12-22  Bruno Haible  <bruno@clisp.org>
94692         * gnulib-tool (SED): New variable.
94693         Use $SED instead of sed everywhere.
94695 2006-12-22  Bruno Haible  <bruno@clisp.org>
94697         * modules/no-c++: New file.
94698         * m4/no-c++.m4: New file.
94699         * MODULES.html.sh (Support for building libraries and executables):
94700         Add no-c++.
94702 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94704         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94705         Include <limits.h>, and use its INT_MAX to rewrite the
94706         j loop so that it does not overflow 'int'.  Problem reported by
94707         Ralf Wildenhues in
94708         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94709         Play it safe by shifting left by 1 rather than multiplying by 2,
94710         as GCC is less likely to optimize this away when the value
94711         is signed (when it assumes overflow leads to undefined behavior).
94712         Also, don't assume time_t uses two's complement.
94714 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94716         * MODULES.html.sh: New module wctype.
94717         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94718         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94719         <wctype.h>, since the new wctype module should fix this.
94720         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94721         the wctype module should arrange for it.
94722         * lib/regex_internal.h: Likewise.
94723         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94724         since the wctype module should handle this now.
94725         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94726         * modules/fnmatch (Depends-on): Add wctype.
94727         * modules/quotearg (Depends-on): Likewise.
94728         * modules/regex (Depends-on): Likewise.
94730 2006-12-19  Bruno Haible  <bruno@clisp.org>
94732         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94733         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94735 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94737         * modules/savewd (Depends-on): Fix dependency on fcntl.
94739 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94741         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94742         conforms to C99, rather than relying on the user's environment
94743         setting of STDINT_H.
94745 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94746         and Eric Blake  <ebb9@byu.net>
94748         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94749         This is more consistent with the other defines here.
94750         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94751         Port to z/OS.  Problem reported by Paul Gilmartin.
94752         Change local vars to use gl_ prefix rather than ac_.
94753         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94754         with other defines.
94755         * modules/double-slash-root: New module.
94756         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94757         (Depends-on): Add double-slash-root.
94758         * MODULES.html.sh (File system functions): Mention new module.
94760 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94762         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94763         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94764         This is for the benefit of gzip, which doesn't do i18n.
94766 2006-12-12  Jim Meyering  <jim@meyering.net>
94768         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94769         Reported by Andreas Schwab <schwab@suse.de>.
94771 2006-12-12  Bruno Haible  <bruno@clisp.org>
94773         Merge these changes.
94774         2006-09-05  Bruno Haible  <bruno@clisp.org>
94775         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94776         iconv_alloc succeeded.
94777         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94778         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94779         test for " && dest " at the end - dest is always != NULL there. Call
94780         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94781         with 2xNULL arguments, also to flush the state storage. Handle the
94782         IRIX iconv behaviour. Realloc the final result, to throw away unused
94783         memory.
94785 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94787         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94788         and fchmodat unconditionally, since glibc 2.4 has them.
94789         Problem reported by Arkadiusz Miskiewicz.
94791 2006-12-10  Bruno Haible  <bruno@clisp.org>
94793         * gnulib-tool (func_import): Show the include files only for those
94794         modules that are copied and specified.
94795         Reported by Karl Berry.
94797 2006-12-08  Jim Meyering  <jim@meyering.net>
94799         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94800         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94802         * build-aux/announce-gen: Add two new options, both optional:
94803         --bootstrap-tools=TOOL_LIST
94804               a comma-separated list of tools, e.g.,
94805               autoconf,automake,bison,gnulib
94806         --gnulib-snapshot-date=DATE
94807               if gnulib is in the bootstrap tool list,
94808               then report this as the snapshot date.
94809               If not specified, use the current date/time.
94810               If you specify a date here, be sure it's UTC.
94812 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94814         * tests/test-argp-2.sh: Fix test to match actual output.
94815         (func_compare): Fix sed script to be portable.
94817 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94819         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94820         workaround for this case.  It is not autoconfigured now; offhand
94821         it's hard to see how to autoconfigure it.
94823 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94825         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94826         a directory that is about to be chowned.  Such a directory's
94827         initial file permissions should permit the owner only and this
94828         should not be changed until after the chown, since the group and
94829         other bits would be incorrect if they granted permission before
94830         the chown.
94832         Fix porting problem for iswctype reported by Georg Schwarz in:
94833         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94834         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94835         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94836         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94837         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94839 2006-12-03  Jim Meyering  <jim@meyering.net>
94841         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94842         p->fts_statp may not yet be defined.
94843         (fts_read): Instead, set it in the caller, once p->fts_statp is
94844         sure to be defined, and corresponds to a top-level directory.
94845         This bug made du -x fail.  Here's the coreutils test case:
94846         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94847         Reported by Mike Frysinger.
94849 2006-12-01  Jim Meyering  <jim@meyering.net>
94851         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94852         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94853         Reported by Simon Josefsson.
94855 2006-11-30  Jim Meyering  <jim@meyering.net>
94857         * m4/warning.m4: Use the all-permissive copyright notice
94858         recommended by RMS (rather than LGPL).
94859         * m4/vararrays.m4: Likewise.
94860         * m4/flexmember.m4: Likewise.
94862 2006-11-29  Bruno Haible  <bruno@clisp.org>
94864         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94865         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94866         using +=.
94867         Reported by Simon Josefsson <simon@josefsson.org>.
94869 2006-11-28  James Youngman  <jay@gnu.org>
94871         * README: Advise users that they might find the bug-gnulib@gnu.org
94872         and autotools-announce@gnu.org mailing lists useful.
94874 2006-11-28  Bruno Haible  <bruno@clisp.org>
94876         * m4/ptrdiff_max.m4: Remove file.
94878 2006-11-21  Bruno Haible  <bruno@clisp.org>
94880         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94881         _AC_COMPUTE_INT.
94882         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94883         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94884         _AC_COMPUTE_INT.
94885         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94886         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94887         _AC_COMPUTE_INT.
94888         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94890 2006-11-28  Jim Meyering  <jim@meyering.net>
94892         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94893         warning from "gcc -Wshadow" about shadowing the builtin.
94895 2006-11-27  Bruno Haible  <bruno@clisp.org>
94897         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94898         _AC_COMPUTE_INT.
94899         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94901 2006-11-27  Bruno Haible  <bruno@clisp.org>
94902             Paul Eggert  <eggert@cs.ucla.edu>
94904         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94906 2006-11-26  Bruno Haible  <bruno@clisp.org>
94908         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94909         noinst_LTLIBRARIES.
94911 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94912             Bruno Haible  <bruno@clisp.org>
94914         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94915         if compiling with "gcc -ansi".
94917 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94919         Fix some incompatibilities with gcc -ansi -pedantic.
94920         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94921         if compiling pedantically with GCC, unless it's C99 or later.
94922         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94923         it mishandles gcc -ansi -pedantic as well.
94924         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94925         if gcc -pedantic.
94926         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94927         initializers for struct if -pedantic, unless it's C99 or later.
94929 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94931         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94932         Don't close an fd more than once. Identical atimes indicate
94933         success, not failure.
94935 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94937         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94939 2006-11-23  Jim Meyering  <jim@meyering.net>
94941         * build-aux/announce-gen: New file.  From coreutils.
94943 2006-11-22  Jim Meyering  <jim@meyering.net>
94945         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94946         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94947         (fts_read): Use a temporary to narrow the overused st_size member
94948         before using it in a switch statement.  Reported by Matthew Woehlke.
94950         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94951         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94953 2006-11-20  Bruno Haible  <bruno@clisp.org>
94955         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94956         changequote instead of pairs of brackets.
94957         Reported by Andreas Schwab <schwab@suse.de>.
94959 2006-11-21  Jim Meyering  <jim@meyering.net>
94961         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94962         so as to remain compatible with older compilers.
94963         Patch from Michael Deutschmann.
94965 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94967         * MODULES.html.sh (File system functions): Add openat.
94969         * lib/openat.h (rpl_fstatat): New macro, if
94970         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94971         (fstatat): Define to rpl_fstatat under the same conditions,
94972         unless COMPILING_FSTATAT.
94973         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94974         seems to have the bug.
94975         * lib/fstatat.c: New file.
94976         * modules/openat (Files): Add it.
94978 2006-11-20  Bruno Haible  <bruno@clisp.org>
94980         * Makefile: New file.
94982 2006-11-20  Jim Meyering  <jim@meyering.net>
94984         The beginnings of syntax-related checks for gnulib.
94985         * lib/Makefile: New file.
94986         * lib/t-idcache: New script.  Ensure that the two halves of
94987         idcache.c stay in sync.
94989         * lib/idcache.c: Adjust comments in user- and group- portions to
94990         be more accurate, and to be consistent with one another.
94992 2006-11-20  Jim Meyering  <jim@meyering.net>
94994         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94995         continue using the flexible array member (thus, this module performs
94996         half as many malloc calls), with the addition that...
94997         (getgroup, getuser): Consistently record a non-match via an empty
94998         "name" string, and map an empty string match to a NULL return value.
94999         * modules/idcache (Depends-on): Re-add flexmember.
95001         * lib/idcache.c (getuser): Remove all uses of the register keyword.
95002         (getuidbyname, getgroup, getgidbyname): Likewise.
95004         Use cleaner syntax: NULL rather than 0.
95005         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
95007 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
95009         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
95010         It mishandled the case where the group was missing.
95011         Problem reported by Greg Schafer.
95012         * modules/idcache: Likewise.
95014 2006-11-18  Jim Meyering  <jim@meyering.net>
95016         * check-module (%exempt_header): Add exception for some
95017         conditionally-included headers.
95019         * modules/i-ring (Depends-on): Add verify.
95020         (License): Change to LGPL.
95022 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
95024         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
95025         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
95026         and inttostr.h.  Use snprintf rather than uinttostr, so that
95027         LGPLed code doesn't depend on GPLed.
95029 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
95031         * modules/inline (License): Change from GPL to LGPL.
95033 2006-11-17  Jim Meyering  <jim@meyering.net>
95035         * modules/d-type (License): Switch to LGPL.
95037 2006-11-15  Bruno Haible  <bruno@clisp.org>
95039         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
95041 2006-11-15  Eric Blake  <ebb9@byu.net>
95043         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
95044         the module dependency.
95046 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95047             Bruno Haible  <bruno@clisp.org>
95049         * gnulib-tool (func_create_testdir): Add license consistency check.
95051 2006-11-15  Eric Blake  <ebb9@byu.net>
95053         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
95054         random "(cached)" in configure output.
95056 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95058         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
95059         test for conforming inttypes.h is both announced and cached.
95061         * MODULES.html.sh (seen_modules, seen_files): New variables.
95062         (func_module): Rewrite to use a few less gnulib-tool and sed
95063         invocations.  Avoid a couple of quadratic algorithms for ...
95064         (missed_modules, missed_files): ... these, with ...
95065         (func_append, func_tmpdir): ... these new functions, from
95066         gnulib-tool.  Analogously, install traps for cleanup.
95068         * tests/test-gc.c (main): Remove unused variables.
95069         * tests/test-read-file.c: Include stdlib.h, for 'free'.
95071 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
95073         * modules/inttostr (License): Change to LGPL.
95075 2006-11-14  Eric Blake  <ebb9@byu.net>
95077         * modules/tempname (License): Change to LGPL.
95079 2006-11-14  Eric Blake  <ebb9@byu.net>
95081         * doc/functions.texi (Function Portability): *printf functions on
95082         Cygwin now understand all POSIX size specifiers.
95084 2006-11-14  Bruno Haible  <bruno@clisp.org>
95086         * modules/c-ctype (License): Change to LGPL.
95088 2006-11-12  Bruno Haible  <bruno@clisp.org>
95090         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95091         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
95092         for GNOME libraries, for which the include files are installed in
95093         subdirectories of $prefix/include.
95095 2006-11-12  Bruno Haible  <bruno@clisp.org>
95097         * m4/lib-link.m4: Require at least autoconf-2.54.
95098         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
95099         name to underscores for the --with option.
95101 2006-11-13  Bruno Haible  <bruno@clisp.org>
95103         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
95104         the tests directory.
95105         Reported by Ralf Wildenhues.
95107 2006-11-13  Bruno Haible  <bruno@clisp.org>
95109         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
95110         (func_emit_initmacro_end): Undo the override here.
95111         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
95112         Works around the famous automake error in coreutils.
95114 2006-11-13  Eric Blake  <ebb9@byu.net>
95116         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
95117         element, not its node.
95119 2006-11-12  Bruno Haible  <bruno@clisp.org>
95121         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
95122         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
95124 2006-11-12  Bruno Haible  <bruno@clisp.org>
95126         * gnulib-tool: New option --local-symlink.
95127         (func_usage): Document it.
95128         (lsymbolic): New variable.
95129         (func_import, func_create_testdir): If --symlink was not specified,
95130         test whether --local-symlink was specified and the file comes from
95131         the local_gnulib_dir.
95133 2006-11-12  Bruno Haible  <bruno@clisp.org>
95135         * gnulib-tool (func_ln): New function.
95136         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
95138 2006-11-12  Bruno Haible  <bruno@clisp.org>
95140         Finish support for source files in subdirectories.
95141         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
95142         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
95143         AUTOMAKE_OPTIONS.
95144         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
95146 2006-11-12  Bruno Haible  <bruno@clisp.org>
95148         * gnulib-tool (func_get_automake_snippet): Synthesize also an
95149         EXTRA_lib_SOURCES augmentation.
95150         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
95152 2006-11-12  Jim Meyering  <jim@meyering.net>
95154         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
95155         file descriptors.  This also averts a failure on systems with
95156         native openat support when a traversed directory lacks "x" access.
95157         * lib/fts_.h: Include "i-ring.h"
95158         (struct FTS) [fts_fd_ring]: New member.
95159         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
95160         (FCHDIR): Add parentheses.
95161         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
95162         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
95163         When descending, rather than simply closing the previous
95164         fts_cwd_fd value, push that file descriptor onto the ring.
95165         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
95166         (fts_open): Initialize the new fd_ring member.
95167         (fts_close): Clear the ring.
95168         (fts_safe_changedir): When possible, use our new fd_ring to skip
95169         the diropen and fstat and dev/ino comparison that would normally
95170         accompany a virtual `chdir ("..")'.
95172         * modules/fts (Depends-on): Add i-ring.
95173         * modules/i-ring: New module.
95174         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
95175         * m4/i-ring.m4: New file.
95177 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95179         * gnulib-tool (func_create_testdir): Fix replacement of
95180         `build-aux' in configure.ac.  Run autotools in gltests
95181         subdirectory.
95182         (func_create_testdir, func_create_megatestdir, test): There is
95183         no need for '--force' in most autotool invocations in a new
95184         tree.  Actually fail the whole test if any of the tools, or the
95185         configure or make stages fail.
95187         Sync from Automake.
95188         * build-aux/gnupload: Revert last change.  Add pointer to upload
95189         instructions of the GNU Maintenance Instructions.
95190         Suggestion by Karl Berry.
95192 2006-11-10  Jim Meyering  <jim@meyering.net>
95194         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
95196 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95198         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
95199         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
95200         (bind_textdomain_codeset) [! ENABLE_NLS]:
95201         Evaluate all the arguments.  That way, callers get compatible behavior
95202         if the arguments have side effects.  Also, it avoids some GCC
95203         diagnostics in some cases; Joel E. Denny reported problems when Bison
95204         was configured with --enable-gcc-warnigs.
95206 2006-11-10  Jim Meyering  <jim@meyering.net>
95208         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
95209         relevant options in CFLAGS (like -O, -fno-inline) are taken into
95210         account.
95212 2006-11-10  Jim Meyering  <jim@meyering.net>
95214         * modules/inline: New file/module.
95215         * modules/xalloc (Files): Remove m4/inline.m4.
95216         (Depends-on): Add inline, instead.
95217         * modules/oset: Likewise.
95218         * modules/list: Likewise.
95220 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95222         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
95223         Problem reported by Matthew Woehlke.
95225 2006-11-09  Bruno Haible  <bruno@clisp.org>
95227         * lib/tempname.c (gen_tempname): Remove variant that invokes
95228         __gen_tempname.
95229         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
95230         __gen_tempname.
95232 2006-11-08  Bruno Haible  <bruno@clisp.org>
95234         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
95235         to 'yes' instead of 'cross-compiling'.
95237 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
95239         * lib/quotearg.h (quotearg_free): New decl.
95240         * lib/quotearg.c (quotearg_free): New function.
95241         (slot0, nslots, slotvec0, slotvec):
95242         Now file-scope so that quotearg_free can get at them.
95244 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95246         Sync from Automake.
95247         * build-aux/gnupload: Add missing 'gnu' to example URL.
95248         Report by Karl Berry.
95250 2006-11-08  Bruno Haible  <bruno@clisp.org>
95252         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
95253         Suggested by Paul Eggert.
95255 2006-11-08  Jim Meyering  <jim@meyering.net>
95257         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
95258         It's already included if !_LIBC.
95259         (fts_safe_changedir): Add a comment.
95261 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95263         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
95264         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
95265         Matthew Woehlke.
95267         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
95268         definitions up, to avoid colliding with change below.
95269         (static_inline) [HAVE_INLINE]: New macro.
95270         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
95271         Provide extern decls when !HAVE_INLINE.  Do not define unless
95272         static_inline is defined, either by us or by xmalloc.c.  Use
95273         static_inline rather than static inline.
95274         (XCALLOC): Optimize sizeof(T) = 1 case.
95275         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
95277 2006-11-07  Bruno Haible  <bruno@clisp.org>
95279         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
95280         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
95281         AC_C_INLINE.
95282         * modules/xalloc (Files): Add m4/inline.m4.
95284 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95286         * README: Fix typo.
95287         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
95288         (Miscellanous Notes): ...from this.
95290 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95292         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
95293         Mention that offsetof should be used instead of sizeof.
95294         From Bruno Haible.
95296 2006-11-07  Bruno Haible  <bruno@clisp.org>
95298         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
95300 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95302         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95303         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
95304         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95305         (gl_tree_add_before, gl_tree_add_after):
95306         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
95307         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
95308         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95309         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
95310         (gl_linked_add_after, gl_linked_add_at): Likewise.
95311         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
95312         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95313         (gl_tree_add_before, gl_tree_add_after): Likewise.
95314         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
95315         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
95316         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
95318 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95320         * lib/gl_oset.h: Use C comment style, not C++ comment style.
95322 2006-11-06  Bruno Haible  <bruno@clisp.org>
95324         * m4/inline.m4: New file.
95325         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
95326         * modules/list (Files): Add m4/inline.m4.
95327         * modules/oset (Files): Likewise.
95329 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95331         * lib/idcache.c: Include <stddef.h>, for offsetof.
95332         (struct userid.name): Change from char * to a flexible array member.
95333         All uses changed.
95334         * modules/idcache (Depends-on): Add flexmember.
95336         * MODULES.html.sh (Core language properties): New module flexmember.
95337         * modules/flexmember, m4/flexmember.m4: New files.
95339         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95340         inline functions that are identical with the old xnmalloc_inline,
95341         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95342         that we can avoid some unnecessary integer multiplications and
95343         divisions in the common case where the element size is known at
95344         compile time.
95345         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95346         needed.
95347         (xnboundedmalloc): Remove.
95348         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95349         arguments, for consistency with rest of this header.
95350         (xcharalloc): Rewrite using XNMALLOC.
95351         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95352         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95353         versions have been moved to lib/xalloc.h and renamed to be the
95354         non-*_inline versions.
95355         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95356         and xnrealloc functions, since those functions are now inline and
95357         now call us.
95358         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95359         renaming described above.
95360         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95361         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95362         captures the dependency in AC_C_INLINE.
95364         New module canonicalize-lgpl, proposed by Charles Wilson in
95365         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95366         with a few small changes afterwards.
95367         * MODULES.html.sh (File system functions): New module
95368         canonicalize-lgpl.
95369         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95370         and canonicalize_file_name.
95371         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95372         * modules/canonicalize-lgpl: New files.
95374 2006-11-05  Bruno Haible  <bruno@clisp.org>
95376         * gnulib-tool (func_import, func_create_testdir): Create directories
95377         also for files in subdirectories of lib/.
95379 2006-11-05  Bruno Haible  <bruno@clisp.org>
95381         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95382         ANSI C compliant.
95384 2006-11-03  Bruno Haible  <bruno@clisp.org>
95386         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95387         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95388         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95389         (xnboundedmalloc): New inline function.
95390         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95391         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95392         xmalloc.
95393         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95394         xmalloc.
95395         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95396         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95397         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95398         xmalloc.
95399         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95400         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95401         xmalloc.
95402         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95403         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95404         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95405         xmalloc.
95406         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95407         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95408         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95409         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95410         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95411         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95412         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95414 2006-11-03  Bruno Haible  <bruno@clisp.org>
95416         * lib/c-ctype.h [C++]: Define functions without name mangling.
95417         * lib/fwriteerror.h [C++]: Likewise.
95418         * lib/gcd.h [C++]: Likewise.
95419         * lib/linebreak.h [C++]: Likewise.
95421 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95423         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95424         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95425         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95426         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95427         Check for functions and headers just once.
95428         Check for declaration of canonicalize_file_name.
95429         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95431 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95433         * gnulib-tool (func_import): Fix typo in actioncmd.
95435 2006-11-02  Bruno Haible  <bruno@clisp.org>
95437         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95438         newline sequence in the Makefile.am snippet as a space, like "make"
95439         does.
95440         Reported by Roger Persson <perrog@gmail.com>.
95442 2006-11-01  Bruno Haible  <bruno@clisp.org>
95444         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95445         already declared in <string.h>.
95446         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95448 2006-11-01  Bruno Haible  <bruno@clisp.org>
95450         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95451         * lib/strcase.h: Include <string.h>.
95452         (strcasecmp): Define to rpl_strcasecmp here.
95454 2006-11-01  Bruno Haible  <bruno@clisp.org>
95456         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95458 2006-11-01  Eric Blake  <ebb9@byu.net>
95460         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95462         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95464 2006-10-29  Bruno Haible  <bruno@clisp.org>
95466         Make it compile in C++ mode.
95467         * lib/full-write.c (full_rw): Add a cast.
95469 2006-11-01  Bruno Haible  <bruno@clisp.org>
95471         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95472         be POSIX compliant.
95473         Reported by Roger Persson <perrog@gmail.com>.
95475 2006-11-01  Eric Blake  <ebb9@byu.net>
95477         * lib/getopt_.h: Fix comments.
95479 2006-10-31  Eric Blake  <ebb9@byu.net>
95481         * modules/tmpdir (Depends-on): Add sys_stat.
95482         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95483         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95484         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95485         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95486         tempname.
95488 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95490         Avoid some C++ diagnostics reported by Bruno Haible.
95491         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95492         xmalloc.
95493         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95494         (struct slotvec): Move to top level.
95495         (quotearg_n_options): Rewrite to avoid xmalloc.
95496         * lib/xalloc.h (xcharalloc): New function.
95497         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95498         [defined __cplusplus]: Add function template that provides result
95499         type propagation.  This part of the change is from Bruno Haible.
95501 2006-10-29  Bruno Haible  <bruno@clisp.org>
95503         Make it compile in C++ mode.
95504         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95505         * lib/strnlen1.c (strnlen1): Cast memchr result.
95506         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95507         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95508         (create_temp_dir): Rename local variable 'template'.
95509         (compile_csharp_using_sscli): Add cast.
95510         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95511         * lib/findprog.c (find_in_path): Likewise.
95512         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95513         * lib/wait-process.c (register_slave_subprocess): Likewise.
95515 2006-10-22  Bruno Haible  <bruno@clisp.org>
95517         * modules/tsearch: New file.
95518         * lib/tsearch.h: New file.
95519         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95520         * m4/tsearch.m4: New file.
95521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95523 2006-10-29  Eric Blake  <ebb9@byu.net>
95525         * lib/arcfour.c: Assume config.h.
95526         * lib/arctwo.c: Likewise.
95527         * lib/base64.c: Likewise.
95528         * lib/check-version.c: Likewise.
95529         * lib/crc.c: Likewise.
95530         * lib/des.c: Likewise.
95531         * lib/gc-gnulib.c: Likewise.
95532         * lib/gc-libgcrypt.c: Likewise.
95533         * lib/gc-pbkdf2-sha1.c: Likewise.
95534         * lib/getaddrinfo.c: Likewise.
95535         * lib/getdelim.c: Likewise.
95536         * lib/getline.c: Likewise.
95537         * lib/hmac-md5.c: Likewise.
95538         * lib/hmac-sha1.c: Likewise.
95539         * lib/iconvme.c: Likewise.
95540         * lib/md2.c: Likewise.
95541         * lib/md4.c: Likewise.
95542         * lib/memxor.c: Likewise.
95543         * lib/read-file.c: Likewise.
95544         * lib/readline.c: Likewise.
95545         * lib/rijndael-alg-fst.c: Likewise.
95546         * lib/rijndael-api-fst.c: Likewise.
95547         * lib/xgetdomainname.c: Likewise.
95549 2006-10-28  Eric Blake  <ebb9@byu.net>
95551         * lib/xstrndup.c: Assume config.h.
95553 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95555         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95556         stat-macros.h is now for our own macros, whereas stat_h is for
95557         macros in the <sys/stat.h> name space.
95558         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95559         (STAT_MACROS_H): Remove.
95560         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95561         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95562         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95563         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95564         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95565         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95566         Move these macros to ...
95567         * lib/stat_.h: here.  Don't include stat-macros.h.
95568         * lib/canonicalize.c: Don't include stat-macros.h.
95569         * lib/chown.c: Likewise.
95570         * lib/euidaccess.c: Likewise.
95571         * lib/file-type.c: Likewise.
95572         * lib/filemode.c: Likewise.
95573         * lib/glob.c: Likewise.
95574         * lib/isapipe.c: Likewise.
95575         * lib/lchown.c: Likewise.
95576         * lib/lstat.c: Likewise.
95577         * lib/mkdir-p.c: Likewise.
95578         * lib/rmdir.c: Likewise.
95579         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95581         unless mkdir isn't declared, to speed up 'configure'.
95582         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95583         would define all the S_* symbols.
95584         * modules/canonicalize (Depends-on):
95585         Depend on sys_stat, not stat-macros.
95586         * modules/chown: Likewise.
95587         * modules/euidaccess: Likewise.
95588         * modules/filemode: Likewise.
95589         * modules/file-type: Likewise.
95590         * modules/glob: Likewise.
95591         * modules/isapipe: Likewise.
95592         * modules/lchown: Likewise.
95593         * modules/lstat: Likewise.
95594         * modules/mkancesdirs: Likewise.
95595         * modules/rmdir: Likewise.
95596         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95597         * modules/modechange: Likewise.
95598         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95599         (configure.ac): Remove gl_STAT_MACROS.
95600         * modules/sys_stat (Depends-on): Remove stat-macros.
95602 2006-10-27  Bruno Haible  <bruno@clisp.org>
95604         * m4/signed.m4: Remove file.
95605         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95606         invocation.
95607         * modules/vasnprintf (Files): Remove m4/signed.m4.
95609 2006-10-27  Bruno Haible  <bruno@clisp.org>
95611         Update to GNU gettext 0.16.
95612         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95613         m4/inttypes-h.m4, m4/signed.m4.
95614         * m4/gettext.m4: Update to GNU gettext 0.16.
95615         * m4/intl.m4: New file, from GNU gettext.
95616         * m4/intldir.m4: New file, from GNU gettext.
95617         * config/srclist.txt: Update
95619 2006-10-27  Eric Blake  <ebb9@byu.net>
95621         * MODULES.html.sh: Document tempname.
95622         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95623         dependencies.
95624         (Files): Move lib/tempname.c...
95625         * modules/tempname: ...to this new module.
95626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95627         (gl_PREREQ_TEMPNAME): Move...
95628         * m4/tempname.m4: ...to this new file.
95629         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95630         * modules/sys_stat (Depends-on): Add stat-macros.
95631         * lib/stat_.h (includes): Pick up stat macros.
95632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95633         if stat macros are broken.
95634         * lib/tempname.c (includes): No need to include "stat-macros.h".
95635         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95636         (direxists, __path_search) [!_LIBC]: Don't compile these in
95637         gnulib; the tmpdir module covers that.
95638         * lib/tempname.h: New file.
95640 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95642         * COPYING: Explain how gnulib-tool converts licence headers.
95643         Almost all wording by Eric Blake.
95645 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95647         * lib/mbchar.h (is_basic_table): Make read-only.
95648         * lib/mbchar.c (is_basic_table): Likewise.
95649         Reported by John Darrington.
95651 2006-10-25  Bruno Haible  <bruno@clisp.org>
95653         * lib/progname.h (set_program_name): Undefine before defining.
95655 2006-10-25  Bruno Haible  <bruno@clisp.org>
95657         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95658         false for non-gcc C++ compilers.
95659         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95661 2006-10-24  Bruno Haible  <bruno@clisp.org>
95663         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95664         iconv implementations like Irix iconv.
95666 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95668         * modules/vararrays: New file.
95669         * m4/vararrays.m4: New file, taken from diffutils.
95670         * MODULES.html.sh: New module vararrays.
95672 2006-10-24  Karl Berry  <karl@gnu.org>
95674         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95675         Don't call GNU Unix.
95677 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95679         * users.txt: Add Libtool.
95681         Sync from Libtool:
95683         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95685         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95686         to gnulib's policy of including config.h unconditionally.
95688 2006-10-24  Bruno Haible  <bruno@clisp.org>
95690         * modules/wcwidth (Files): Add m4/wint_t.m4.
95691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95692         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95694 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95696         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95697         to pacify GCC with some -W flags enabled.  Problem reported by
95698         Bruno Haible.
95700 2006-10-24  Jim Meyering  <jim@meyering.net>
95702         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95703         Reported by Karl Berry.
95705 2006-10-23  Bruno Haible  <bruno@clisp.org>
95707         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95709 2006-10-24  Bruno Haible  <bruno@clisp.org>
95711         * lib/gl_list.h: Use C comment style, not C++ comment style.
95713 2006-10-23  Eric Blake  <ebb9@byu.net>
95715         * lib/getaddrinfo.c (includes): Add missing include.
95717 2006-10-23  Bruno Haible  <bruno@clisp.org>
95718             Paul Eggert  <eggert@cs.ucla.edu>
95720         Ability to rename obstack_free.
95721         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95722         obstack_free.
95723         (obstack_free): Invoke the __obstack_free macro.
95724         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95726 2006-10-23  Bruno Haible  <bruno@clisp.org>
95727             Paul Eggert  <eggert@cs.ucla.edu>
95729         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95730         __argc, __argv from the declaration. (They are defined as macros on
95731         mingw.)
95733 2006-10-22  Bruno Haible  <bruno@clisp.org>
95735         * doc/gnulib-intro.texi: New file.
95736         * doc/gnulib.texi: Include it.
95738 2006-10-21  Bruno Haible  <bruno@clisp.org>
95740         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95741         "Introduction", "Miscellanous Notes", "Particular Modules".
95743 2006-10-21  Bruno Haible  <bruno@clisp.org>
95745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95746         Change mostlyclean-local rule to avoid sh syntax error from bash
95747         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95749 2006-10-23  Jim Meyering  <jim@meyering.net>
95751         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95752         in place of snprintf.
95754         * modules/inttostr (Files): Add lib/uinttostr.c.
95755         * lib/uinttostr.c (inttostr): New file/function.
95756         * lib/inttostr.h (uinttostr): Declare.
95757         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95758         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95759         Add uinttostr.
95760         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95762 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95764         * lib/canonicalize.c (ELOOP): Define if not already defined.
95765         Problem reported by Bruno Haible in
95766         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95768 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95770         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95771         Problem reported by Perry Smith and Ville Laurikari.
95773         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95774         uses.
95776 2006-10-19  Bruno Haible  <bruno@clisp.org>
95778         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95779         for mingw.
95781 2006-10-19  Bruno Haible  <bruno@clisp.org>
95783         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95784         Needed for mingw.
95786 2006-10-19  Bruno Haible  <bruno@clisp.org>
95788         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95790 2006-10-19  Bruno Haible  <bruno@clisp.org>
95792         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95793         it.
95795 2006-10-19  Bruno Haible  <bruno@clisp.org>
95797         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95798         invocation.
95800 2006-10-19  Bruno Haible  <bruno@clisp.org>
95802         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95803         mountlist by default.
95805 2006-10-16  Bruno Haible  <bruno@clisp.org>
95807         * lib/c-strstr.c: Include c-strstr.h.
95809 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95811         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95812         in a slash.
95814 2006-10-18  Bruno Haible  <bruno@clisp.org>
95816         * lib/lock.h [C++]: Wrap definitions in extern "C".
95818 2006-10-18  Bruno Haible  <bruno@clisp.org>
95820         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95821         gl_LIBOBJS list.
95823 2006-10-18  Bruno Haible  <bruno@clisp.org>
95825         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95827 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95829         * lib/xstrtol.h: Include gettext.h.
95830         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95831         Problem reported by Eric Blake.
95832         * modules/xstrtol (Depends-on): Add gettext-h.
95834 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95836         * lib/strftime.c (advance): New macro.
95837         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95838         incomplete type, so you can't add 0 to it.  Problem and patch
95839         reported by Eelco Dolstra for dietlibc.
95841 2006-10-18  Jim Meyering  <jim@meyering.net>
95843         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95844         type for a local, and rename it: s/up/user_proc/.
95846 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95848         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95849         READ_UTMP_USER_PROCESS.
95850         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95852 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95854         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95855         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95857 2006-10-17  Eric Blake  <ebb9@byu.net>
95859         * lib/sigprocmask.c (sigprocmask): Fix typo.
95861         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95863         * modules/clean-temp (Makefile.am): Don't add to make output...
95864         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95865         config.h.
95867 2006-10-17  Bruno Haible  <bruno@clisp.org>
95869         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95870         differently if DEFAULT_TEXT_DOMAIN is set.
95872 2006-10-16  Bruno Haible  <bruno@clisp.org>
95874         * lib/clean-temp.c: Include fwriteerror.h.
95876 2006-10-16  Bruno Haible  <bruno@clisp.org>
95878         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95880 2006-10-16  Bruno Haible  <bruno@clisp.org>
95882         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95883         * lib/sigprocmask.h: Include <sys/types.h>.
95884         (sigset_t): Use the system's definition if present.
95886 2006-10-17  Eric Blake  <ebb9@byu.net>
95888         * lib/xvasprintf.c (includes): Assume config.h.
95889         * lib/xasprintf.c (includes): Likewise.
95891 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95893         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95894         at least as wide as intmax_t.
95896 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95898         (Imported from Automake.)
95899         * build-aux/gnupload: Update to version 1.1 of directive file.
95901 2006-10-16  Eric Blake  <ebb9@byu.net>
95903         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95904         match Automake 1.10a.
95906 2006-10-14  Bruno Haible  <bruno@clisp.org>
95908         * modules/sigprocmask: New file.
95909         * lib/sigprocmask.h: New file.
95910         * lib/sigprocmask.c: New file.
95911         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95912         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95913         request sigprocmask.o.
95914         (gl_PREREQ_SIGPROCMASK): New macro.
95915         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95916         (Depends-on): Add sigprocmask.
95917         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95918         gt_SIGNALBLOCKING. Test for 'raise' only once.
95919         * lib/fatal-signal.c: Include sigprocmask.h.
95920         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95921         unblock_fatal_signals): Define always.
95922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95923         sigprocmask.
95925 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95927         Sync from Automake.
95928         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95929         which incorrectly sets the mode of an existing destination
95930         directory.  In some cases the unpatched install-sh could do the
95931         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95932         system.  We hope this is rare in practice, but it's clearly worth
95933         fixing.  Problem reported by Alex Unleashed in
95934         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95935         Also, don't bother to check for -m bugs unless we're using -m;
95936         suggested by Stepan Kasal.
95938 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95940         Sync from Automake.
95941         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95942         `-c' flag, so they appear at the same position as in %FASTDEP%
95943         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95944         which ignores unknown options only after the first non-option.
95945         Bug report against M4 by Nelson H. F. Beebe.
95947 2006-10-13  Jim Meyering  <jim@meyering.net>
95949         Fix a bug in yesterday's change.
95950         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95951         p->fts_statp->st_dev would be used uninitialized.
95952         Ensures that we always call fts_stat on the very first entry.
95953         Miklos Szeredi reported that find -xdev stopped working.
95955 2006-10-12  Bruno Haible  <bruno@clisp.org>
95957         * gnulib-tool (func_get_automake_snippet): Append an automatically
95958         computed EXTRA_DIST augmentation.
95959         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95960         * modules/alloca-opt (Makefile.am): Likewise.
95961         * modules/allocsa (Makefile.am): Likewise.
95962         * modules/arcfour (Makefile.am): Likewise.
95963         * modules/arctwo (Makefile.am): Likewise.
95964         * modules/argmatch (Makefile.am): Likewise.
95965         * modules/argz (Makefile.am): Likewise.
95966         * modules/atexit (Makefile.am): Likewise.
95967         * modules/backupfile (Makefile.am): Likewise.
95968         * modules/byteswap (Makefile.am): Likewise.
95969         * modules/c-strtod (Makefile.am): Likewise.
95970         * modules/c-strtold (Makefile.am): Likewise.
95971         * modules/calloc (Makefile.am): Likewise.
95972         * modules/canon-host (Makefile.am): Likewise.
95973         * modules/canonicalize (Makefile.am): Likewise.
95974         * modules/chdir-long (Makefile.am): Likewise.
95975         * modules/chdir-safer (Makefile.am): Likewise.
95976         * modules/check-version (Makefile.am): Likewise.
95977         * modules/chown (Makefile.am): Likewise.
95978         * modules/cloexec (Makefile.am): Likewise.
95979         * modules/close-stream (Makefile.am): Likewise.
95980         * modules/closeout (Makefile.am): Likewise.
95981         * modules/crc (Makefile.am): Likewise.
95982         * modules/csharpexec (Makefile.am): Likewise.
95983         * modules/cycle-check (Makefile.am): Likewise.
95984         * modules/des (Makefile.am): Likewise.
95985         * modules/dev-ino (Makefile.am): Likewise.
95986         * modules/dirfd (Makefile.am): Likewise.
95987         * modules/dirname (Makefile.am): Likewise.
95988         * modules/dup2 (Makefile.am): Likewise.
95989         * modules/eealloc (Makefile.am): Likewise.
95990         * modules/error (Makefile.am): Likewise.
95991         * modules/euidaccess (Makefile.am): Likewise.
95992         * modules/exclude (Makefile.am): Likewise.
95993         * modules/exitfail (Makefile.am): Likewise.
95994         * modules/fcntl-safer (Makefile.am): Likewise.
95995         * modules/fcntl (Makefile.am): Likewise.
95996         * modules/file-type (Makefile.am): Likewise.
95997         * modules/fileblocks (Makefile.am): Likewise.
95998         * modules/filemode (Makefile.am): Likewise.
95999         * modules/filenamecat (Makefile.am): Likewise.
96000         * modules/fnmatch (Makefile.am): Likewise.
96001         * modules/fopen-safer (Makefile.am): Likewise.
96002         * modules/fpending (Makefile.am): Likewise.
96003         * modules/fprintftime (Makefile.am): Likewise.
96004         * modules/free (Makefile.am): Likewise.
96005         * modules/fsusage (Makefile.am): Likewise.
96006         * modules/ftruncate (Makefile.am): Likewise.
96007         * modules/fts (Makefile.am): Likewise.
96008         * modules/gc-arcfour (Makefile.am): Likewise.
96009         * modules/gc-des (Makefile.am): Likewise.
96010         * modules/gc-hmac-md5 (Makefile.am): Likewise.
96011         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
96012         * modules/gc-md4 (Makefile.am): Likewise.
96013         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96014         * modules/gc-sha1 (Makefile.am): Likewise.
96015         * modules/gc (Makefile.am): Likewise.
96016         * modules/getaddrinfo (Makefile.am): Likewise.
96017         * modules/getcwd (Makefile.am): Likewise.
96018         * modules/getdelim (Makefile.am): Likewise.
96019         * modules/getdomainname (Makefile.am): Likewise.
96020         * modules/getgroups (Makefile.am): Likewise.
96021         * modules/gethostname (Makefile.am): Likewise.
96022         * modules/gethrxtime (Makefile.am): Likewise.
96023         * modules/getline (Makefile.am): Likewise.
96024         * modules/getloadavg (Makefile.am): Likewise.
96025         * modules/getlogin_r (Makefile.am): Likewise.
96026         * modules/getndelim2 (Makefile.am): Likewise.
96027         * modules/getopt (Makefile.am): Likewise.
96028         * modules/getpagesize (Makefile.am): Likewise.
96029         * modules/getpass-gnu (Makefile.am): Likewise.
96030         * modules/getpass (Makefile.am): Likewise.
96031         * modules/getsubopt (Makefile.am): Likewise.
96032         * modules/gettime (Makefile.am): Likewise.
96033         * modules/gettimeofday (Makefile.am): Likewise.
96034         * modules/getugroups (Makefile.am): Likewise.
96035         * modules/getusershell (Makefile.am): Likewise.
96036         * modules/glob (Makefile.am): Likewise.
96037         * modules/group-member (Makefile.am): Likewise.
96038         * modules/hard-locale (Makefile.am): Likewise.
96039         * modules/hash (Makefile.am): Likewise.
96040         * modules/hmac-md5 (Makefile.am): Likewise.
96041         * modules/hmac-sha1 (Makefile.am): Likewise.
96042         * modules/human (Makefile.am): Likewise.
96043         * modules/idcache (Makefile.am): Likewise.
96044         * modules/imaxabs (Makefile.am): Likewise.
96045         * modules/imaxdiv (Makefile.am): Likewise.
96046         * modules/inet_ntop (Makefile.am): Likewise.
96047         * modules/inet_pton (Makefile.am): Likewise.
96048         * modules/intprops (Makefile.am): Likewise.
96049         * modules/inttostr (Makefile.am): Likewise.
96050         * modules/inttypes (Makefile.am): Likewise.
96051         * modules/isapipe (Makefile.am): Likewise.
96052         * modules/javaversion (Makefile.am): Likewise.
96053         * modules/lchmod (Makefile.am): Likewise.
96054         * modules/lchown (Makefile.am): Likewise.
96055         * modules/localcharset (Makefile.am): Likewise.
96056         * modules/long-options (Makefile.am): Likewise.
96057         * modules/lstat (Makefile.am): Likewise.
96058         * modules/malloc (Makefile.am): Likewise.
96059         * modules/mathl (Makefile.am): Likewise.
96060         * modules/mbchar (Makefile.am): Likewise.
96061         * modules/md2 (Makefile.am): Likewise.
96062         * modules/md4 (Makefile.am): Likewise.
96063         * modules/md5 (Makefile.am): Likewise.
96064         * modules/memcasecmp (Makefile.am): Likewise.
96065         * modules/memchr (Makefile.am): Likewise.
96066         * modules/memcmp (Makefile.am): Likewise.
96067         * modules/memcoll (Makefile.am): Likewise.
96068         * modules/memcpy (Makefile.am): Likewise.
96069         * modules/memmem (Makefile.am): Likewise.
96070         * modules/memmove (Makefile.am): Likewise.
96071         * modules/mempcpy (Makefile.am): Likewise.
96072         * modules/memrchr (Makefile.am): Likewise.
96073         * modules/memset (Makefile.am): Likewise.
96074         * modules/memxor (Makefile.am): Likewise.
96075         * modules/mkancesdirs (Makefile.am): Likewise.
96076         * modules/mkdir-p (Makefile.am): Likewise.
96077         * modules/mkdir (Makefile.am): Likewise.
96078         * modules/mkdtemp (Makefile.am): Likewise.
96079         * modules/mkstemp (Makefile.am): Likewise.
96080         * modules/mktime (Makefile.am): Likewise.
96081         * modules/modechange (Makefile.am): Likewise.
96082         * modules/mountlist (Makefile.am): Likewise.
96083         * modules/nanosleep (Makefile.am): Likewise.
96084         * modules/obstack (Makefile.am): Likewise.
96085         * modules/openat (Makefile.am): Likewise.
96086         * modules/pagealign_alloc (Makefile.am): Likewise.
96087         * modules/pathmax (Makefile.am): Likewise.
96088         * modules/physmem (Makefile.am): Likewise.
96089         * modules/poll (Makefile.am): Likewise.
96090         * modules/posixtm (Makefile.am): Likewise.
96091         * modules/posixver (Makefile.am): Likewise.
96092         * modules/putenv (Makefile.am): Likewise.
96093         * modules/quote (Makefile.am): Likewise.
96094         * modules/quotearg (Makefile.am): Likewise.
96095         * modules/raise (Makefile.am): Likewise.
96096         * modules/read-file (Makefile.am): Likewise.
96097         * modules/readline (Makefile.am): Likewise.
96098         * modules/readlink (Makefile.am): Likewise.
96099         * modules/readtokens (Makefile.am): Likewise.
96100         * modules/readutmp (Makefile.am): Likewise.
96101         * modules/realloc (Makefile.am): Likewise.
96102         * modules/regex (Makefile.am): Likewise.
96103         * modules/rename-dest-slash (Makefile.am): Likewise.
96104         * modules/rename (Makefile.am): Likewise.
96105         * modules/rijndael (Makefile.am): Likewise.
96106         * modules/rmdir (Makefile.am): Likewise.
96107         * modules/rpmatch (Makefile.am): Likewise.
96108         * modules/safe-read (Makefile.am): Likewise.
96109         * modules/safe-write (Makefile.am): Likewise.
96110         * modules/same-inode (Makefile.am): Likewise.
96111         * modules/same (Makefile.am): Likewise.
96112         * modules/save-cwd (Makefile.am): Likewise.
96113         * modules/savedir (Makefile.am): Likewise.
96114         * modules/setenv (Makefile.am): Likewise.
96115         * modules/settime (Makefile.am): Likewise.
96116         * modules/sha1 (Makefile.am): Likewise.
96117         * modules/sig2str (Makefile.am): Likewise.
96118         * modules/snprintf (Makefile.am): Likewise.
96119         * modules/stat-macros (Makefile.am): Likewise.
96120         * modules/stat-time (Makefile.am): Likewise.
96121         * modules/stdbool (Makefile.am): Likewise.
96122         * modules/stdint (Makefile.am): Likewise.
96123         * modules/stdlib-safer (Makefile.am): Likewise.
96124         * modules/stpcpy (Makefile.am): Likewise.
96125         * modules/stpncpy (Makefile.am): Likewise.
96126         * modules/strcase (Makefile.am): Likewise.
96127         * modules/strcasestr (Makefile.am): Likewise.
96128         * modules/strchrnul (Makefile.am): Likewise.
96129         * modules/strcspn (Makefile.am): Likewise.
96130         * modules/strdup (Makefile.am): Likewise.
96131         * modules/strerror (Makefile.am): Likewise.
96132         * modules/strftime (Makefile.am): Likewise.
96133         * modules/strndup (Makefile.am): Likewise.
96134         * modules/strnlen (Makefile.am): Likewise.
96135         * modules/strpbrk (Makefile.am): Likewise.
96136         * modules/strsep (Makefile.am): Likewise.
96137         * modules/strstr (Makefile.am): Likewise.
96138         * modules/strtod (Makefile.am): Likewise.
96139         * modules/strtoimax (Makefile.am): Likewise.
96140         * modules/strtok_r (Makefile.am): Likewise.
96141         * modules/strtol (Makefile.am): Likewise.
96142         * modules/strtoll (Makefile.am): Likewise.
96143         * modules/strtoul (Makefile.am): Likewise.
96144         * modules/strtoull (Makefile.am): Likewise.
96145         * modules/strtoumax (Makefile.am): Likewise.
96146         * modules/strverscmp (Makefile.am): Likewise.
96147         * modules/sys_socket (Makefile.am): Likewise.
96148         * modules/sys_stat (Makefile.am): Likewise.
96149         * modules/sysexits (Makefile.am): Likewise.
96150         * modules/time_r (Makefile.am): Likewise.
96151         * modules/timegm (Makefile.am): Likewise.
96152         * modules/timespec (Makefile.am): Likewise.
96153         * modules/tmpfile-safer (Makefile.am): Likewise.
96154         * modules/trim (Makefile.am): Likewise.
96155         * modules/unistd-safer (Makefile.am): Likewise.
96156         * modules/unlinkdir (Makefile.am): Likewise.
96157         * modules/unlocked-io (Makefile.am): Likewise.
96158         * modules/userspec (Makefile.am): Likewise.
96159         * modules/utime (Makefile.am): Likewise.
96160         * modules/utimecmp (Makefile.am): Likewise.
96161         * modules/utimens (Makefile.am): Likewise.
96162         * modules/vasnprintf (Makefile.am): Likewise.
96163         * modules/vasprintf (Makefile.am): Likewise.
96164         * modules/vsnprintf (Makefile.am): Likewise.
96165         * modules/xalloc (Makefile.am): Likewise.
96166         * modules/xgetcwd (Makefile.am): Likewise.
96167         * modules/xnanosleep (Makefile.am): Likewise.
96168         * modules/xreadlink (Makefile.am): Likewise.
96169         * modules/xstrtod (Makefile.am): Likewise.
96170         * modules/xstrtol (Makefile.am): Likewise.
96171         * modules/xstrtold (Makefile.am): Likewise.
96172         * modules/yesno (Makefile.am): Likewise.
96173         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
96175 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96177         * modules/error (Makefile.am): Distribute files through
96178         EXTRA_DIST, not lib_SOURCES.
96180 2006-10-12  Eric Blake  <ebb9@byu.net>
96182         * modules/error (Makefile.am): Distribute files in /lib.
96183         * modules/obstack (Makefile.am): Likewise.
96185 2006-10-12  Bruno Haible  <bruno@clisp.org>
96187         * modules/acl (Makefile.am): Distribute all files in lib/ through
96188         EXTRA_DIST.
96189         * modules/arcfour (Makefile.am): Likewise.
96190         * modules/arctwo (Makefile.am): Likewise.
96191         * modules/argmatch (Makefile.am): Likewise.
96192         * modules/argz (Makefile.am): Likewise.
96193         * modules/atexit (Makefile.am): Likewise.
96194         * modules/backupfile (Makefile.am): Likewise.
96195         * modules/c-strtod (Makefile.am): Likewise.
96196         * modules/c-strtold (Makefile.am): Likewise.
96197         * modules/calloc (Makefile.am): Likewise.
96198         * modules/canon-host (Makefile.am): Likewise.
96199         * modules/canonicalize (Makefile.am): Likewise.
96200         * modules/chdir-long (Makefile.am): Likewise.
96201         * modules/chdir-safer (Makefile.am): Likewise.
96202         * modules/check-version (Makefile.am): Likewise.
96203         * modules/chown (Makefile.am): Likewise.
96204         * modules/cloexec (Makefile.am): Likewise.
96205         * modules/close-stream (Makefile.am): Likewise.
96206         * modules/closeout (Makefile.am): Likewise.
96207         * modules/crc (Makefile.am): Likewise.
96208         * modules/cycle-check (Makefile.am): Likewise.
96209         * modules/des (Makefile.am): Likewise.
96210         * modules/dirfd (Makefile.am): Likewise.
96211         * modules/dirname (Makefile.am): Likewise.
96212         * modules/dup2 (Makefile.am): Likewise.
96213         * modules/euidaccess (Makefile.am): Likewise.
96214         * modules/exclude (Makefile.am): Likewise.
96215         * modules/exitfail (Makefile.am): Likewise.
96216         * modules/fcntl-safer (Makefile.am): Likewise.
96217         * modules/file-type (Makefile.am): Likewise.
96218         * modules/fileblocks (Makefile.am): Likewise.
96219         * modules/filemode (Makefile.am): Likewise.
96220         * modules/filenamecat (Makefile.am): Likewise.
96221         * modules/fnmatch (Makefile.am): Likewise.
96222         * modules/fopen-safer (Makefile.am): Likewise.
96223         * modules/fpending (Makefile.am): Likewise.
96224         * modules/fprintftime (Makefile.am): Likewise.
96225         * modules/free (Makefile.am): Likewise.
96226         * modules/fsusage (Makefile.am): Likewise.
96227         * modules/ftruncate (Makefile.am): Likewise.
96228         * modules/fts (Makefile.am): Likewise.
96229         * modules/gc (Makefile.am): Likewise.
96230         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96231         * modules/getaddrinfo (Makefile.am): Likewise.
96232         * modules/getcwd (Makefile.am): Likewise.
96233         * modules/getdelim (Makefile.am): Likewise.
96234         * modules/getdomainname (Makefile.am): Likewise.
96235         * modules/getgroups (Makefile.am): Likewise.
96236         * modules/gethostname (Makefile.am): Likewise.
96237         * modules/gethrxtime (Makefile.am): Likewise.
96238         * modules/getline (Makefile.am): Likewise.
96239         * modules/getloadavg (Makefile.am): Likewise.
96240         * modules/getlogin_r (Makefile.am): Likewise.
96241         * modules/getopt (Makefile.am): Likewise.
96242         * modules/getpass (Makefile.am): Likewise.
96243         * modules/getpass-gnu (Makefile.am): Likewise.
96244         * modules/getsubopt (Makefile.am): Likewise.
96245         * modules/gettime (Makefile.am): Likewise.
96246         * modules/gettimeofday (Makefile.am): Likewise.
96247         * modules/getugroups (Makefile.am): Likewise.
96248         * modules/getusershell (Makefile.am): Likewise.
96249         * modules/glob (Makefile.am): Likewise.
96250         * modules/group-member (Makefile.am): Likewise.
96251         * modules/hard-locale (Makefile.am): Likewise.
96252         * modules/hash (Makefile.am): Likewise.
96253         * modules/hmac-md5 (Makefile.am): Likewise.
96254         * modules/hmac-sha1 (Makefile.am): Likewise.
96255         * modules/human (Makefile.am): Likewise.
96256         * modules/idcache (Makefile.am): Likewise.
96257         * modules/imaxabs (Makefile.am): Likewise.
96258         * modules/imaxdiv (Makefile.am): Likewise.
96259         * modules/inet_ntop (Makefile.am): Likewise.
96260         * modules/inet_pton (Makefile.am): Likewise.
96261         * modules/inttostr (Makefile.am): Likewise.
96262         * modules/isapipe (Makefile.am): Likewise.
96263         * modules/lchown (Makefile.am): Likewise.
96264         * modules/long-options (Makefile.am): Likewise.
96265         * modules/lstat (Makefile.am): Likewise.
96266         * modules/malloc (Makefile.am): Likewise.
96267         * modules/mathl (Makefile.am): Likewise.
96268         * modules/mbchar (Makefile.am): Likewise.
96269         * modules/md2 (Makefile.am): Likewise.
96270         * modules/md4 (Makefile.am): Likewise.
96271         * modules/md5 (Makefile.am): Likewise.
96272         * modules/memcasecmp (Makefile.am): Likewise.
96273         * modules/memchr (Makefile.am): Likewise.
96274         * modules/memcmp (Makefile.am): Likewise.
96275         * modules/memcoll (Makefile.am): Likewise.
96276         * modules/memcpy (Makefile.am): Likewise.
96277         * modules/memmem (Makefile.am): Likewise.
96278         * modules/memmove (Makefile.am): Likewise.
96279         * modules/mempcpy (Makefile.am): Likewise.
96280         * modules/memrchr (Makefile.am): Likewise.
96281         * modules/memset (Makefile.am): Likewise.
96282         * modules/memxor (Makefile.am): Likewise.
96283         * modules/mkancesdirs (Makefile.am): Likewise.
96284         * modules/mkdir (Makefile.am): Likewise.
96285         * modules/mkdir-p (Makefile.am): Likewise.
96286         * modules/mkdtemp (Makefile.am): Likewise.
96287         * modules/mkstemp (Makefile.am): Likewise.
96288         * modules/mktime (Makefile.am): Likewise.
96289         * modules/modechange (Makefile.am): Likewise.
96290         * modules/mountlist (Makefile.am): Likewise.
96291         * modules/nanosleep (Makefile.am): Likewise.
96292         * modules/openat (Makefile.am): Likewise.
96293         * modules/pagealign_alloc (Makefile.am): Likewise.
96294         * modules/physmem (Makefile.am): Likewise.
96295         * modules/poll (Makefile.am): Likewise.
96296         * modules/posixtm (Makefile.am): Likewise.
96297         * modules/posixver (Makefile.am): Likewise.
96298         * modules/putenv (Makefile.am): Likewise.
96299         * modules/quote (Makefile.am): Likewise.
96300         * modules/quotearg (Makefile.am): Likewise.
96301         * modules/raise (Makefile.am): Likewise.
96302         * modules/read-file (Makefile.am): Likewise.
96303         * modules/readline (Makefile.am): Likewise.
96304         * modules/readlink (Makefile.am): Likewise.
96305         * modules/readtokens (Makefile.am): Likewise.
96306         * modules/readutmp (Makefile.am): Likewise.
96307         * modules/realloc (Makefile.am): Likewise.
96308         * modules/regex (Makefile.am): Likewise.
96309         * modules/rename (Makefile.am): Likewise.
96310         * modules/rename-dest-slash (Makefile.am): Likewise.
96311         * modules/rijndael (Makefile.am): Likewise.
96312         * modules/rmdir (Makefile.am): Likewise.
96313         * modules/rpmatch (Makefile.am): Likewise.
96314         * modules/safe-read (Makefile.am): Likewise.
96315         * modules/safe-write (Makefile.am): Likewise.
96316         * modules/same (Makefile.am): Likewise.
96317         * modules/save-cwd (Makefile.am): Likewise.
96318         * modules/savedir (Makefile.am): Likewise.
96319         * modules/setenv (Makefile.am): Likewise.
96320         * modules/settime (Makefile.am): Likewise.
96321         * modules/sha1 (Makefile.am): Likewise.
96322         * modules/sig2str (Makefile.am): Likewise.
96323         * modules/snprintf (Makefile.am): Likewise.
96324         * modules/stdlib-safer (Makefile.am): Likewise.
96325         * modules/stpcpy (Makefile.am): Likewise.
96326         * modules/stpncpy (Makefile.am): Likewise.
96327         * modules/strcase (Makefile.am): Likewise.
96328         * modules/strcasestr (Makefile.am): Likewise.
96329         * modules/strchrnul (Makefile.am): Likewise.
96330         * modules/strcspn (Makefile.am): Likewise.
96331         * modules/strdup (Makefile.am): Likewise.
96332         * modules/strerror (Makefile.am): Likewise.
96333         * modules/strftime (Makefile.am): Likewise.
96334         * modules/strndup (Makefile.am): Likewise.
96335         * modules/strnlen (Makefile.am): Likewise.
96336         * modules/strpbrk (Makefile.am): Likewise.
96337         * modules/strsep (Makefile.am): Likewise.
96338         * modules/strstr (Makefile.am): Likewise.
96339         * modules/strtod (Makefile.am): Likewise.
96340         * modules/strtoimax (Makefile.am): Likewise.
96341         * modules/strtok_r (Makefile.am): Likewise.
96342         * modules/strtol (Makefile.am): Likewise.
96343         * modules/strtoll (Makefile.am): Likewise.
96344         * modules/strtoul (Makefile.am): Likewise.
96345         * modules/strtoull (Makefile.am): Likewise.
96346         * modules/strtoumax (Makefile.am): Likewise.
96347         * modules/strverscmp (Makefile.am): Likewise.
96348         * modules/time_r (Makefile.am): Likewise.
96349         * modules/timegm (Makefile.am): Likewise.
96350         * modules/tmpfile-safer (Makefile.am): Likewise.
96351         * modules/unistd-safer (Makefile.am): Likewise.
96352         * modules/unlinkdir (Makefile.am): Likewise.
96353         * modules/userspec (Makefile.am): Likewise.
96354         * modules/utime (Makefile.am): Likewise.
96355         * modules/utimecmp (Makefile.am): Likewise.
96356         * modules/utimens (Makefile.am): Likewise.
96357         * modules/vasnprintf (Makefile.am): Likewise.
96358         * modules/vasprintf (Makefile.am): Likewise.
96359         * modules/vsnprintf (Makefile.am): Likewise.
96360         * modules/xalloc (Makefile.am): Likewise.
96361         * modules/xgetcwd (Makefile.am): Likewise.
96362         * modules/xnanosleep (Makefile.am): Likewise.
96363         * modules/xreadlink (Makefile.am): Likewise.
96364         * modules/xstrtod (Makefile.am): Likewise.
96365         * modules/xstrtol (Makefile.am): Likewise.
96366         * modules/xstrtold (Makefile.am): Likewise.
96367         * modules/yesno (Makefile.am): Likewise.
96369 2006-10-12  Jim Meyering  <jim@meyering.net>
96371         * m4/getloadavg.m4: Revert the change below.
96373         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96374         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96375         fail with a symlink, which is what coreutils' ./bootstrap now
96376         creates by default.
96378 2006-10-12  Bruno Haible  <bruno@clisp.org>
96380         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96381         mingw.
96382         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96383         MSVC and mingw explicitly.
96385 2006-10-11  Simon Josefsson  <jas@extundo.com>
96386             Bruno Haible  <bruno@clisp.org>
96388         Add support for multiple gnulib-tool invocations in the scope of a
96389         single configure.ac file.
96390         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96391         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96392         with the same contents as the _LIBADD variable.
96393         (func_emit_initmacro_start, func_emit_initmacro_end,
96394         func_emit_initmacro_done): New functions.
96395         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96396         gl_LIBOBJS and gl_LTLIBOBJS.
96398 2006-10-11  Bruno Haible  <bruno@clisp.org>
96400         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96401         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96402         autoreconf. Instead, invoke autopoint explicitly but move back the
96403         *.m4 files from gnulib.
96405 2006-10-11  Bruno Haible  <bruno@clisp.org>
96407         * gnulib-tool (func_usage): Make module names after --create-testdir
96408         optional.
96409         (func_create_testdir): If no module was specified, use nearly all
96410         modules.
96412 2006-10-12  Jim Meyering  <jim@meyering.net>
96414         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96415         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96416         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96417         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96418         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96419         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96420         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96421         (fts_set_stat_required): New function.
96422         (fts_open): Defer the calls to fts_stat, if possible or requested.
96423         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96424         into fts_stat itself.
96425         (fts_read): Perform any required (deferred) fts_stat call.
96426         (fts_build): Likewise, for the directory we're about to open and read.
96427         In the readdir loop, carefully decide whether each entry will require
96428         an eventual call to fts_stat, using dirent.d_type info if available.
96429         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96430         a command line argument into this function.  Update all callers.
96431         Map a return value of FTS_DOT to FTS_D for a command line argument.
96432         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96433         Thanks to Miklos Szeredi for his tenacity and for the initial
96434         bug report about "find" failing on a FUSE-based file system.
96436         * lib/fts.c (fts_open): Use consistent indentation.
96438 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96440         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96441         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96442         reported by Jim Meyering.  All uses of cache variables renamed
96443         to match Autoconf's.
96444         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96445         the other one.
96447         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96448         Fix misspelling in diagnostic.
96450 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96452         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96453         defined.  Problem reported by Matthew Woehlke.
96455         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96456         Add support for Tandem NonStop R series.
96457         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96458         Use new macro.
96460         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96461         (has_trailing_slash): Omit size arg; all callers changed.
96462         Omit 'inline', since it doesn't help performance and we'd
96463         need to configure it.
96464         Don't count //, ///, etc. as having a trailing slash.
96465         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96466         (rpl_rename_dest_slash): On failure, use rename's errno rather
96467         than (in some cases) an incorrect or junk errno.
96468         Simplify code by removing need to compute length; this does
96469         cause it to make two passes instead of one over the file name,
96470         but it's worth it.
96472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96473         change, since Autoconf's version may no longer be appropriate now
96474         that we are using CVS Autoconf's version.  Add support for Tandem.
96476 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96477             Bruno Haible  <bruno@clisp.org>
96479         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96480         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96481         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96482         gl_AC_TYPE_LONG_LONG.
96484         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96485         instead of HAVE_LONG_LONG.
96486         * lib/printf-args.c (printf_fetchargs): Likewise.
96487         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96488         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96489         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96490         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96491         gl_AC_TYPE_LONG_LONG.
96493 2006-10-11  Bruno Haible  <bruno@clisp.org>
96495         * m4/longlong.m4: Add comments.
96496         * m4/ulonglong.m4: Likewise.
96498 2006-10-10  Bruno Haible  <bruno@clisp.org>
96500         Make it possible to #define stpcpy, strdup to aliases.
96501         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96502         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96504 2006-10-10  Bruno Haible  <bruno@clisp.org>
96506         Make it possible to #define gcd to an alias.
96507         * lib/gcd.c: Include config.h.
96509 2006-10-10  Bruno Haible  <bruno@clisp.org>
96511         Make it possible to #define c_isascii to an alias.
96512         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96513         defined. Undefine the macros before defining them, to avoid gcc
96514         warnings.
96515         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96516         define NO_C_CTYPE_MACROS early.
96518 2006-10-10  Bruno Haible  <bruno@clisp.org>
96520         Make it possible to #define set_program_name to an alias.
96521         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96522         ENABLE_RELOCATABLE early.
96524 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96526         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96527         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96528         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96529         More generally, don't assume that 64-bit signed int is available
96530         if unsigned int is, and vice versa.
96531         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96532         unsigned symbols, not on their signed counterparts.
96533         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96534         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96535         (UINT64_C, UINTMAX_C):
96536         Likewise.
96537         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96538         unsigned counterparts.
96539         (Have_long_long, Unsigned): New macros.
96540         (Int): Renamed from INT.
96541         (strtoimax): Use the new macros.
96542         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96543         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96544         * modules/inttypes (inttypes.h): Substitute
96545         HAVE_UNSIGNED_LONG_LONG_INT.
96546         * modules/stdint (stdint.h): Likewise.
96547         (Files): Add m4/ulonglong.m4.
96549 2006-10-10  Bruno Haible  <bruno@clisp.org>
96551         Fix a gcc -Wshadow warning.
96552         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96553         to 'bucket'.
96554         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96555         gl_linked_indexof_from_to): Likewise.
96556         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96557         Likewise.
96558         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96559         Likewise.
96560         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96561         Reported by Eric Blake.
96563 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96565         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96566         for NetBSD.  Problem reported by Bruno Haible.
96568 2006-10-09  Jim Meyering  <jim@meyering.net>
96570         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96571         Patch from Bruno Haible.
96573 2006-10-09  Jim Meyering  <jim@meyering.net>
96575         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96576         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96577         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96579 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96581         Don't include <config.h> twice; this doesn't work in some cases,
96582         e.g., when config.h has "#define intmax_t long long int" and
96583         we include <config.h>, <inttypes.h>, <config.h> in that order.
96584         Problem reported by Matthew Woehlke in:
96585         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96586         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96587         * lib/fts-cycle.c: Don't include config.h.
96588         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96589         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96590         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96591         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96592         inttypes.h.
96593         * lib/xstrtoumax.c: Likewise.
96594         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96595         __strtol and the like, so that this module is more like its siblings.
96596         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96597         Remove; no longer needed now that we assume gnulib inttypes.h.
96599 2006-10-08  Bruno Haible  <bruno@clisp.org>
96601         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96602         option.
96604 2006-10-07  Jim Meyering  <jim@meyering.net>
96606         * modules/inttypes (inttypes.h): Revert what seems to have been
96607         an inadvertent part of today's change: use "|", not "/" in the
96608         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96610 2006-10-07  Bruno Haible  <bruno@clisp.org>
96612         * modules/sublist: New file.
96614 2006-10-07  Bruno Haible  <bruno@clisp.org>
96616         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96617         * modules/argz (argz.h): Likewise.
96618         * modules/arpa_inet (arpa/inet.h): Likewise.
96619         * modules/byteswap (byteswap.h): Likewise.
96620         * modules/configmake (configmake.h): Likewise.
96621         * modules/fcntl (fcntl.h): Likewise.
96622         * modules/fnmatch (fnmatch.h): Likewise.
96623         * modules/getopt (getopt.h): Likewise.
96624         * modules/glob (glob.h): Likewise.
96625         * modules/inttypes (inttypes.h): Likewise.
96626         * modules/netinet_in (netinet/in.h): Likewise.
96627         * modules/poll (poll.h): Likewise.
96628         * modules/stdbool (stdbool.h): Likewise.
96629         * modules/stdint (stdint.h): Likewise.
96630         * modules/sys_select (sys/select.h): Likewise.
96631         * modules/sys_socket (sys/socket.h): Likewise.
96632         * modules/sys_stat (sys/stat.h): Likewise.
96633         * modules/sysexits (sysexits.h): Likewise.
96634         * modules/unistd (unistd.h): Likewise.
96635         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96636         Add a "DO NOT EDIT" comment to the generated file.
96637         (func_import): Likewise for gnulib-comp.m4.
96639 2006-10-07  Bruno Haible  <bruno@clisp.org>
96641         * lib/gl_sublist.h: New file.
96642         * lib/gl_sublist.c: New file.
96644 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96646         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96647         name (relative to the original working directory) and the file
96648         name component (relative to the temporary working directory).  All
96649         callers changed.
96650         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96651         * lib/mkdir-p.c (make_dir_parents): Likewise.
96652         * lib/mkdir-p.h (make_dir_parents): Likewise.
96654 2006-10-06  Eric Blake  <ebb9@byu.net>
96656         Define several macros for use by the clean-temp module.
96657         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96658         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96659         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96661         * lib/clean-temp.h (close_stream_temp): New declaration.
96662         * lib/clean-temp.c (includes): Pull in headers according to what
96663         other modules are in use.
96664         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96666 2006-10-06  Bruno Haible  <bruno@clisp.org>
96668         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96669         instead of fopen, fwriteerror.
96671 2006-10-06  Bruno Haible  <bruno@clisp.org>
96673         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96674         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96675         int.
96676         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96677         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96678         Return an error indicator.
96679         Suggested by Eric Blake.
96681 2006-10-06  Bruno Haible  <bruno@clisp.org>
96683         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96684         Reported by Eric Blake.
96686 2006-10-06  Bruno Haible  <bruno@clisp.org>
96688         * modules/closeout (Description): Mention stderr too.
96690 2006-10-06  Bruno Haible  <bruno@clisp.org>
96691         and Paul Eggert  <eggert@cs.ucla.edu>
96693         * lib/closeout.c (close_stdout): Also close stderr.
96694         * lib/closeout.h: Update comment.
96696 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96698         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96699         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96700         * lib/dirchownmod.c: Include lchown.h.
96701         * lib/lchown.c: Don't include files that lchown.h now includes.
96702         Don't declare chown, since lchown.h now does that.
96703         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96704         (lchown): Define to rpl_chown if lchown is declared but
96705         does not exist.  Declare using a prototype if lchown is not
96706         declared.  Add a copyright notice.
96707         * lib/mkstemp.h: Include <unistd.h>.
96708         * lib/openat.c: Include lchown.h.
96710         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96711         we now test for that separately.
96712         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96713         rather than O_NOFOLLOW, when testing whether it's possible to
96714         avoid a race condition reliably.
96715         * lib/savewd.c (savewd_chdir): Likewise.
96717         Remove macros that are no longer needed now that stdint.h is
96718         reliable.
96719         * lib/fsusage.c (UINTMAX_MAX): Remove.
96720         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96721         * lib/utimecmp.c (SIZE_MAX): Remove.
96723         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96725         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96726         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96727         O_NOATIME works.
96729 2006-10-05  Bruno Haible  <bruno@clisp.org>
96731         * lib/gl_list.h (gl_sortedlist_search_from_to,
96732         gl_sortedlist_indexof_from_to): New declarations.
96733         (gl_list_implementation): New fields sortedlist_search_from_to,
96734         sortedlist_indexof_from_to.
96735         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96736         inline functions.
96737         * lib/gl_list.c (gl_sortedlist_search_from_to,
96738         gl_sortedlist_indexof_from_to): New functions.
96739         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96740         function.
96741         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96742         (gl_array_sortedlist_search_from_to): New function.
96743         (gl_array_list_implementation): Update.
96744         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96745         function.
96746         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96747         (gl_carray_sortedlist_search_from_to): New function.
96748         (gl_carray_list_implementation): Update.
96749         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96750         gl_linked_sortedlist_indexof_from_to): New functions.
96751         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96752         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96753         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96754         gl_tree_sortedlist_indexof_from_to): New functions.
96755         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96756         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96757         Update.
96758         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96759         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96760         Update.
96762 2006-10-05  Bruno Haible  <bruno@clisp.org>
96764         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96765         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96766         (struct gl_list_implementation): Add fields search_from_to,
96767         indexof_from_to. Remove fields search, indexof.
96768         (gl_list_search): Use the search_from_to method.
96769         (gl_list_search_from, gl_list_search_from_to): New functions.
96770         (gl_list_indexof): Use the indexof_from_to method.
96771         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96772         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96773         (gl_list_search_from, gl_list_search_from_to): New functions.
96774         (gl_list_indexof): Use the indexof_from_to method.
96775         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96776         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96777         gl_array_indexof. Add start_index, end_index arguments.
96778         (gl_array_search_from_to): Renamed from gl_array_search. Add
96779         start_index, end_index arguments.
96780         (gl_array_remove, gl_array_list_implementation): Update.
96781         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96782         gl_carray_indexof. Add start_index, end_index arguments.
96783         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96784         start_index, end_index arguments.
96785         (gl_carray_remove, gl_carray_list_implementation): Update.
96786         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96787         gl_linked_search. Add start_index, end_index arguments.
96788         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96789         start_index, end_index arguments.
96790         (gl_linked_remove): Update.
96791         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96792         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96793         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96794         field to 'size_t'.
96795         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96796         gl_tree_search. Add start_index, end_index arguments.
96797         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96798         start_index, end_index arguments.
96799         (gl_tree_remove): Update.
96800         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96801         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96802         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96803         function.
96804         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96805         gl_tree_search. Add start_index, end_index arguments.
96806         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96807         start_index, end_index arguments.
96808         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96809         Update.
96810         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96812 2006-10-05  Bruno Haible  <bruno@clisp.org>
96814         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96816         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96817         fwriteerror_temp): New declarations.
96818         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96819         (descriptors): New variable.
96820         (cleanup): First, close the descriptors.
96821         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96822         fclose_temp, fwriteerror_temp): New functions.
96824 2006-10-04  Jim Meyering  <jim@meyering.net>
96826         * lib/fts.c (fts_open): Tiny comment change.
96828 2006-10-04  Bruno Haible  <bruno@clisp.org>
96830         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96831         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96832         gl_LOCK_BODY.
96833         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96834         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96835         gl_LOCK_EARLY_BODY.
96836         (gl_LOCK): Require gl_LOCK_BODY.
96838 2006-10-04  Bruno Haible  <bruno@clisp.org>
96840         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96841         (gl_oset_search_atleast): New declaration.
96842         (struct gl_oset_implementation): Add field 'search_atleast'.
96843         (gl_oset_search_atleast): New inline function.
96844         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96845         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96846         (gl_array_oset_implementation): Update.
96847         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96848         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96849         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96851 2006-10-04  Bruno Haible  <bruno@clisp.org>
96853         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96855 2006-10-03  Bruno Haible  <bruno@clisp.org>
96857         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96858         from gl_avltreehash_list_implementation.
96860 2006-10-03  Bruno Haible  <bruno@clisp.org>
96862         * lib/gl_oset.c (gl_oset_add): Fix return type.
96864 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96866         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96868 2006-10-02  Eric Blake  <ebb9@byu.net>
96870         * modules/strnlen (Depends-on): Add extensions.
96872 2006-10-02  Eric Blake  <ebb9@byu.net>
96874         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96875         definition in 2.60+.
96877 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96879         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96880         checks.
96882 2006-10-02  Bruno Haible  <bruno@clisp.org>
96884         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96885         to the AUTOMAKE_OPTIONS.
96886         Reported by Jim Meyering.
96888 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96890         Work around bug in Solaris 10 /proc file system:
96891         /proc/self/fd/NNN/.. isn't the parent directory of
96892         the directory whose file descriptor is NNN.  This needs to
96893         be worked around at run time, not compile time, since a
96894         program might be built on Solaris 8, where things work, and
96895         run on Solaris 10.
96896         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96897         to use the following interface instead:
96898         (OPENAT_BUFFER_SIZE): New macro.
96899         (openat_proc_name): New function.
96900         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96901         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96902         Likewise.
96903         * lib/openat-proc.c: New file.
96904         * modules/openat (Files): Add lib/openat-proc.c.
96905         (Depends-on): Add same-inode, stdbool.
96906         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96908 2006-09-29  Bruno Haible  <bruno@clisp.org>
96910         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96911         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96912         argument. Set stdout_closed before testing for ferror, not after.
96913         (fwriteerror, fwriteerror_no_ebadf): New functions.
96915 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96917         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96919 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96921         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96922         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96924 2006-09-28  Jim Meyering  <jim@meyering.net>
96926         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96927         Include <unistd.h>.
96929 2006-09-28  Bruno Haible  <bruno@clisp.org>
96931         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96932         * modules/linkedhash-list (Depends-on): Likewise.
96933         * modules/rbtreehash-list (Depends-on): Likewise.
96935 2006-09-28  Bruno Haible  <bruno@clisp.org>
96937         * lib/strndup.h: Simplify the redefinition of strndup.
96938         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96939         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96941 2006-09-28  Bruno Haible  <bruno@clisp.org>
96943         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96944         * lib/gl_linkedhash_list.c: Likewise.
96945         * lib/gl_rbtreehash_list.c: Likewise.
96947 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96949         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96950         getaddrinfo.
96952         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96953         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96954         it causes <stdio_ext.h> to cause a compile-time error.
96955         Problem reported by Nelson H. F. Beebe.
96956         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96957         of HAVE_DECL___PENDING.
96959         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96960         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96961         declaration.
96963 2006-09-27  Jim Meyering  <jim@meyering.net>
96965         This file could end up with a definition for a function
96966         named __strndup, rather than rpl_strndup on a system with
96967         incomplete weak_alias support.
96968         * lib/strndup.c (strndup): Rename from __strndup.
96969         Remove #defines that used to map __strndup to strndup.
96970         Don't use K&R prototypes.
96971         Remove LIBC-related code, since this file is not sync'd with glibc.
96972         * lib/strndup.h: Revamp, accordingly.
96973         * m4/strndup.m4: Modernize.
96975 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96977         * modules/savewd (Depends-on): Add 'raise'.
96978         * lib/savewd.c: Include <signal.h>, for 'raise'.
96980 2006-09-26  Jim Meyering  <jim@meyering.net>
96982         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96983         when we detect Darwin 8.7.0's acl_get_file bug.
96984         Rearrange to perform the new (below) run-test while $LIBS
96985         contains any acl-related library.  Set USE_ACL at the end.
96986         (gl_ACL_GET_FILE): New function.
96988 2006-09-26  Eric Blake  <ebb9@byu.net>
96990         * lib/verror.c: Include <config.h> unconditionally.
96992 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96994         * modules/clock-time (Maintainer): Add self.
96995         * modules/getlogin_r (Depends-on): Add extensions.
96997 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96999         * modules/clock-time: New module.
97000         * modules/nanosleep (Depends-on): Add clock-time.
97001         * modules/gethrxtime (Depends-on): Likewise.
97002         * modules/gettime (Depends-on): Likewise.
97003         * modules/settime (Depends-on): Likewise.
97005         * modules/fts-lgpl: Depend on openat.
97006         * modules/mkancesdirs: Depend on savewd.
97007         * modules/mkdir-p: Likewise.
97009 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97011         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
97013         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
97014         `gl_have_arbitrary_file_name_length_limit' to
97015         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
97016         actually works between configure runs.
97018 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97019             Bruno Haible  <bruno@clisp.org>
97021         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
97023 2006-09-25  Jim Meyering  <jim@meyering.net>
97025         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
97026         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
97028 2006-09-25  Eric Blake  <ebb9@byu.net>
97030         * gnulib-tool (func_import, func_create_testdir): Fix typos in
97031         exec's in 2006-09-18 patch when shuffling fds.
97033 2006-09-25  Bruno Haible  <bruno@clisp.org>
97035         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
97036         Reported by Jim Meyering.
97038 2006-09-24  Jim Meyering  <jim@meyering.net>
97040         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
97041         compare a pointer against a literal "0".  That caused failures with
97042         at least HP-UX's hpcc.
97044 2006-09-22  Simon Josefsson  <jas@extundo.com>
97046         * modules/gc-sha1:
97047         * modules/gc-md4:
97048         * modules/gc-hmac-sha1:
97049         * modules/gc-hmac-md5:
97050         * modules/gc-des:
97051         * modules/gc-arcfour: Distribute more files.
97053 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97055         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
97056         (gl_linked_iterator_from_to): Initialize struct completely.
97057         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
97058         (gl_tree_iterator_from_to): Likewise
97059         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
97060         * lib/gl_array_list.c [lint] (gl_array_iterator)
97061         (gl_array_iterator_from_to): Likewise.
97062         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
97063         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
97064         (gl_carray_iterator_from_to): Likewise.
97066         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
97067         * lib/md4.c (md4_process_block): Remove unused variable.
97068         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
97069         parentheses for clarity.
97071 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97073         * modules/bison-i18n (Depends-on): Add gettext.
97075 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97077         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
97078         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
97079         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
97080         also add missing comma that caused broken test.
97081         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
97082         stdlib.h, for `abort'.
97083         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
97084         variables.
97085         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
97086         include unistd.h if present, for `rmdir'.
97087         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
97088         variables.
97089         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
97090         in the process include standard headers for prototypes.
97091         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
97092         gets declared on GNU/Linux.
97093         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
97094         unistd.h, for `rmdir'.
97095         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
97097         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
97098         always true.
97099         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
97101         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
97103 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97105         * gnulib-tool (func_version): Create output all at once.  This
97106         may help avoid triggering unnecessary SIGPIPEs, and at any
97107         rate it doesn't hurt.
97109 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97110             Bruno Haible  <bruno@clisp.org>
97112         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
97113         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
97114         * m4/signed.m4 (bh_C_SIGNED): Likewise.
97116         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
97117         (gl_FUNC_VASPRINTF): Invoke it.
97119 2006-09-22  Bruno Haible  <bruno@clisp.org>
97121         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
97122         getloadavg.c as first argument.
97124 2006-09-22  Bruno Haible  <bruno@clisp.org>
97126         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
97127         at the beginning of the gl_INIT macro.
97128         * modules/getloadavg (configure.ac): Pass $gl_source_base to
97129         gl_GETLOADAVG.
97131 2006-09-22  Bruno Haible  <bruno@clisp.org>
97133         * gnulib-tool (func_create_megatestdir): Don't include the config-h
97134         module.
97135         Suggested by Ralf Wildenhues.
97137 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
97139         Import this patch from libc:
97141         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
97143         * lib/regex_internal.c (re_string_reconstruct): Handle
97144         offset < pstr->valid_raw_len && pstr->offsets_needed case.
97145         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
97146         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
97147         re_string_context_at.
97149         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
97150         now requires it.
97151         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
97152         gl_REGEX now does it for us.
97153         (gl_REGEX): Add test taken from
97154         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
97156         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
97157         Check that large offsets work.  Modernize Autoconf usages.
97158         Prefer "yes" to mean a good thing rather than a bad.
97159         Don't put "#define mkstemp" in config.h, as this might interfere
97160         with standard system headers that "#define mkstemp mkstemp64".
97162         * modules/mkstemp (Depends-on): Add extensions, so that
97163         mkstemp is visible on some platforms.
97164         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
97165         (Include): Change to "mkstemp.h" from <stdlib.h>.
97166         (Files): Add mkstemp.h.
97168         * lib/mkstemp.h: New file, since some standard headers
97169         #define mkstemp.
97170         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
97171         Include "mkstemp.h".
97172         Make the _LIBC code resemble glibc original more,
97173         e.g., use K&R style.
97174         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
97175         (mkstemp): Remove, since mkstemp.h does this for us.
97176         * lib/stdlib--.h: Include mkstemp.h.
97178         Import this patch from libc:
97180         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97182         * lib/tempname.c (__gen_tempname): Change attempts_min
97183         into a macro.  Use preprocessor to decide how to initialize
97184         attempts [Coverity CID 67].
97186 2006-09-20  Bruno Haible  <bruno@clisp.org>
97188         * lib/mkdtemp.c: Import from libc.
97189         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97190                 * sysdeps/posix/tempname.c (__gen_tempname): Change
97191                 attempts_min into a macro.  Use preprocessor to decide how to
97192                 initialize attempts [Coverity CID 67].
97193         2001-11-27  Paul Eggert  <eggert@twinsun.com>
97194                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
97195                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
97197 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97199         * gnulib-tool (func_exit): New function, to allow to pass the
97200         exit status portably through the trap.  Use everywhere.
97201         (--help, --version): Signal a write error.
97202         (trap): catch SIGPIPE, for write errors.
97203         Exit at the end of the trap, with the correct exit status.
97205 2006-09-19  Karl Berry  <karl@gnu.org>
97207         * doc/gnulib.texi: note about the license texinfo files.
97209 2006-09-19  Eric Blake  <ebb9@byu.net>
97211         * gnulib-tool: Avoid space-tab.
97213 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97215         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
97216         that prevented coreutils 6.1 from building.  Problem reported
97217         by Petter Reinholdtsen.
97219 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97221         * gnulib-tool (avoidlist): Fix typo that broke options like
97222         --avoid=lock that are used by coreutils bootstrap.
97224 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
97226         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
97227         more systematically.
97229 2006-09-18  Jim Meyering  <jim@meyering.net>
97231         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
97233 2006-09-18  Bruno Haible  <bruno@clisp.org>
97235         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
97237 2006-09-18  Bruno Haible  <bruno@clisp.org>
97239         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
97240         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
97241         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
97242         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
97243         * m4/gettext.m4: Require autoconf >= 2.52.
97244         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
97245         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
97246         of gl_cv_header_inttypes_h.
97248 2006-09-18  Bruno Haible  <bruno@clisp.org>
97250         * lib/javaversion.c: Include configmake.h.
97252 2006-09-18  Bruno Haible  <bruno@clisp.org>
97254         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
97255         avoid that the while loops be executed in a subshell.
97257 2006-09-18  Bruno Haible  <bruno@clisp.org>
97259         * MODULES.html.sh (func_module): Break long lines.
97260         Suggested by Bruce Korb <bkorb@gnu.org>.
97262 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97264         Speed up by a factor of 1.12.
97265         * gnulib-tool (nl): New variable.
97266         (func_import): Rewrite include directive extraction to only read each
97267         directive once.
97269 2006-09-17  Bruno Haible  <bruno@clisp.org>
97271         * modules/javaversion (Makefile.am): Remove DEFS setting.
97272         (Depends-on): Add configmake, for PKGDATADIR definition.
97274 2006-09-17  Bruno Haible  <bruno@clisp.org>
97276         * gnulib-tool (func_create_testdir): Rewrite all files at once.
97278 2006-09-17  Bruno Haible  <bruno@clisp.org>
97280         * gnulib-tool (func_append): New function, stolen from libtool.m4.
97281         (func_modules_transitive_closure, func_modules_add_dummy,
97282         func_modules_to_filelist, func_import, func_create_testdir,
97283         func_create_megatestdir, ...): Use it wherever possible.
97284         Suggested by Ralf Wildenhues.
97286 2006-09-16  Karl Berry  <karl@gnu.org>
97288         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
97289         to avoid sectioning errors.
97290         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
97291         [ifinfo]: blank line after @center-ed titles.
97292         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
97293         Spell FSF address consistently with others.
97294         (These changes approved by rms.)
97296 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97298         Speed up by a factor of 1.61.
97299         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
97300         already checked module names again.
97302 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97304         Speed up by a factor of 1.13.
97305         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
97306         for new_files, and the input to func_add_or_update.
97308 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97310         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
97311         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
97313 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97315         * modules/mkancesdirs (Depends-on): Add fcntl.
97316         * modules/savewd: New file.
97317         * MODULES.html.sh (File system functions): Add savewd.
97319         * modules/configmake (Makefile.am): Add support for the
97320         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
97322 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97324         * m4/savewd.m4: New file.
97326 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97328         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
97329         (dirchownmod): New arg FD.  All callers changed.
97330         Use FD rather than opening the directory ourself, as opening is
97331         now the caller's responsibility.
97332         * lib/dirchownmod.h: Likewise.
97333         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97334         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97335         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97336         (test_dir): Remove.
97337         (mkancesdirs): Return length of prefix of FILE that has already
97338         been made, or -2 if there is a child doing the work.  Redo
97339         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97340         ".", and treat ".." specially since it might stray back into
97341         already-created areas.  Use a subprocess if necessary.  New arg
97342         WD; all users changed.  MAKE_DIR function should now return 1
97343         if it creates a directory that is not readable.  Return -2 if
97344         a child process is spun off.
97345         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97346         Adjust signature to match code.
97347         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97348         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97349         all users changed.
97350         * lib/savewd.c, lib/savewd.h: New files.
97352 2006-09-15  Jim Meyering  <jim@meyering.net>
97354         * modules/rename-dest-slash: New module.
97355         * MODULES.html.sh (posix_compat): Add it here.
97357         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97359 2006-09-15  Jim Meyering  <jim@meyering.net>
97361         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97362         file.
97364         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97366 2006-09-15  Jim Meyering  <jim@meyering.net>
97368         * lib/rename-dest-slash.c (has_trailing_slash): Use
97369         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97370         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97371         test before testing whether SRC is a directory.
97372         Suggestions from Bruno Haible.
97374         Avoid a warning about an unused variable.
97375         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97376         into the #ifdef block where it's used.
97378         * lib/rename-dest-slash.c: New file.
97380 2006-09-14  Bruno Haible  <bruno@clisp.org>
97382         * lib/allocsa.c: Include <config.h> unconditionally.
97383         * lib/asnprintf.c: Likewise.
97384         * lib/asprintf.c: Likewise.
97385         * lib/c-strcasecmp.c: Likewise.
97386         * lib/c-strcasestr.c: Likewise.
97387         * lib/c-strncasecmp.c: Likewise.
97388         * lib/c-strstr.c: Likewise.
97389         * lib/classpath.c: Likewise.
97390         * lib/clean-temp.c: Likewise.
97391         * lib/concatpath.c: Likewise.
97392         * lib/copy-file.c: Likewise.
97393         * lib/csharpcomp.c: Likewise.
97394         * lib/csharpexec.c: Likewise.
97395         * lib/execute.c: Likewise.
97396         * lib/fatal-signal.c: Likewise.
97397         * lib/findprog.c: Likewise.
97398         * lib/fwriteerror.c: Likewise.
97399         * lib/gl_array_list.c: Likewise.
97400         * lib/gl_array_oset.c: Likewise.
97401         * lib/gl_avltree_list.c: Likewise.
97402         * lib/gl_avltree_oset.c: Likewise.
97403         * lib/gl_avltreehash_list.c: Likewise.
97404         * lib/gl_carray_list.c: Likewise.
97405         * lib/gl_linked_list.c: Likewise.
97406         * lib/gl_linkedhash_list.c: Likewise.
97407         * lib/gl_list.c: Likewise.
97408         * lib/gl_oset.c: Likewise.
97409         * lib/gl_rbtree_list.c: Likewise.
97410         * lib/gl_rbtree_oset.c: Likewise.
97411         * lib/gl_rbtreehash_list.c: Likewise.
97412         * lib/imaxabs.c: Likewise.
97413         * lib/imaxdiv.c: Likewise.
97414         * lib/javacomp.c: Likewise.
97415         * lib/javaexec.c: Likewise.
97416         * lib/javaversion.c: Likewise.
97417         * lib/linebreak.c: Likewise.
97418         * lib/localcharset.c: Likewise.
97419         * lib/lock.c: Likewise.
97420         * lib/mbchar.c: Likewise.
97421         * lib/mbswidth.c: Likewise.
97422         * lib/mkdtemp.c: Likewise.
97423         * lib/pipe.c: Likewise.
97424         * lib/printf-args.c: Likewise.
97425         * lib/printf-parse.c: Likewise.
97426         * lib/progname.c: Likewise.
97427         * lib/progreloc.c: Likewise.
97428         * lib/readlink.c: Likewise.
97429         * lib/sh-quote.c: Likewise.
97430         * lib/stpcpy.c: Likewise.
97431         * lib/stpncpy.c: Likewise.
97432         * lib/strcasecmp.c: Likewise.
97433         * lib/strcasestr.c: Likewise.
97434         * lib/strcspn.c: Likewise.
97435         * lib/striconv.c: Likewise.
97436         * lib/strncasecmp.c: Likewise.
97437         * lib/strnlen1.c: Likewise.
97438         * lib/strstr.c: Likewise.
97439         * lib/strtok_r.c: Likewise.
97440         * lib/tls.c: Likewise.
97441         * lib/tmpdir.c: Likewise.
97442         * lib/unicodeio.c: Likewise.
97443         * lib/unsetenv.c: Likewise.
97444         * lib/vasnprintf.c: Likewise.
97445         * lib/vasprintf.c: Likewise.
97446         * lib/wait-process.c: Likewise.
97447         * lib/xallocsa.c: Likewise.
97448         * lib/xsetenv.c: Likewise.
97449         * lib/xstriconv.c: Likewise.
97451 2006-09-13  Simon Josefsson  <jas@extundo.com>
97453         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97454         that internally, suggested by Ralf Wildenhues
97455         <Ralf.Wildenhues@gmx.de>.
97457 2006-09-13  Simon Josefsson  <jas@extundo.com>
97459         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97460         @LIBOBJS@.
97461         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97463 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97465         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97466         longer worry about uses that don't define HAVE_CONFIG_H.
97467         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97468         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97469         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97470         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97471         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97472         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97473         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97474         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97475         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97476         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97477         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97478         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97479         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97480         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97481         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97482         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97483         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97484         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97485         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97486         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97487         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97488         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97489         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97490         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97491         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97492         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97493         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97494         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97495         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97496         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97497         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97498         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97499         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97500         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97501         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97502         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97503         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97504         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97505         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97506         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97507         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97508         Likewise.
97510 2006-09-13  Eric Blake  <ebb9@byu.net>
97512         * lib/getopt.c: Fix typo in last commit.
97514 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97516         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97517         dgettext.
97519 2006-09-12  Jim Meyering  <jim@meyering.net>
97521         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97522         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97523         Reported by Nelson H. F. Beebe.
97525 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97527         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97528         program_invocation_name and program_invocation_short_name are
97529         initialized.
97530         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97531         and program_invocation_short_name to argp.h, so they are visible
97532         to user programs.
97533         * lib/argp.h: Likewise
97535 2006-09-10  Bruno Haible  <bruno@clisp.org>
97537         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97538         m4/inttypes_h.m4, m4/uintmax_t.m4.
97540 2006-09-10  Bruno Haible  <bruno@clisp.org>
97542         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97543         gl_AC_TYPE_UINTMAX_T.
97545 2006-09-10  Bruno Haible  <bruno@clisp.org>
97547         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97549 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97551         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97552         convention.  Text proposed by Bruno Haible.
97553         (struct argp_option): Document the use of N_() wrappers.
97555         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97556         '\v', and translate the two parts separately, instead of feeding
97557         the whole string to gettext.  This allows to exclude
97558         '\v' from the strings visible to the translator by writing doc
97559         strings as N_("..") "\v" N_("..").
97561 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97563         * config/srclist.txt: Undo latest change; the bug was fixed.
97565 2006-09-09  Bruno Haible  <bruno@clisp.org>
97567         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97568         assignments if building a library without libtool.
97569         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97570         in func_emit_lib_Makefile_am.
97571         (func_import): When building a static library libfoo.a, arrange to
97572         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97573         (func_create_testdir): Likewise.
97574         * modules/gc (configure.ac, Makefile.am): If building statically,
97575         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97576         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97577         * modules/striconv (configure.ac, Makefile.am): Likewise.
97578         Based on a suggestion by Ralf Wildenhues.
97580 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97582         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97583         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97584         Also:
97586         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97587         Add year_2050_test to catch glibc bug 2821
97588         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97590         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97591         Prefer #ifdef to #if.
97593         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97594         Return from 'main' instead of calling 'exit'.
97596 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97598         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97599         returned the maximum time_t value rather than (time_t) -1.
97600         Problem originally reported by William Bardwell
97601         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97603         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97604         Moved to here ...
97605         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97606         ... from here.
97608 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97610         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97611         2821 is fixed.
97613 2006-09-08  Jim Meyering  <jim@meyering.net>
97615         Don't make generated files read-only.  That would bother too many
97616         people.  However, do retain the ability to work when targets are
97617         read-only: remove the destination and temporary files before writing
97618         them (when generated via sed or echo), or by using the -f option for
97619         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97620         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97621         * modules/byteswap, modules/configmake, modules/fcntl:
97622         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97623         * modules/localcharset, modules/netinet_in, modules/poll:
97624         * modules/stdbool, modules/stdint, modules/sys_select:
97625         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97627 2006-09-08  Jim Meyering  <jim@meyering.net>
97629         Avoid new build failure on FreeBSD 6.0.
97630         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97631         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97632         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97634 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97636         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97638 2006-09-07  Jim Meyering  <jim@meyering.net>
97640         Fix global typo in last change: use chmod u-w, not chmod u-x.
97641         Spotted by Paul Eggert and Bruce Korb.
97642         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97643         * modules/byteswap, modules/configmake, modules/fcntl:
97644         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97645         * modules/localcharset, modules/netinet_in, modules/poll:
97646         * modules/stdbool, modules/stdint, modules/sys_select:
97647         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97649 2006-09-06  Jim Meyering  <jim@meyering.net>
97651         Make generated files be read-only.
97652         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97653         Ensure that each generated file is now read-only.
97654         * modules/argz: Likewise.
97655         * modules/arpa_inet: Likewise.
97656         * modules/byteswap: Likewise.
97657         * modules/configmake: Likewise.
97658         * modules/fcntl: Likewise.
97659         * modules/fnmatch: Likewise.
97660         * modules/getopt: Likewise.
97661         * modules/glob: Likewise.
97662         * modules/inttypes: Likewise.
97663         * modules/netinet_in: Likewise.
97664         * modules/poll: Likewise.
97665         * modules/stdbool: Likewise.
97666         * modules/stdint: Likewise.
97667         * modules/sys_select: Likewise.
97668         * modules/sys_socket: Likewise.
97669         * modules/sys_stat: Likewise.
97670         * modules/sysexits: Likewise.
97671         * modules/localcharset: Same as above, but continue using temporary
97672         file named "t-$@" (why different?) rather than the "$@-t" used
97673         everywhere else.
97675         * modules/sysexits (Makefile.am): Replace literal occurrences
97676         of "sysexit.h" more readable, and more consistent, "$@".
97678 2006-09-06  Bruno Haible  <bruno@clisp.org>
97680         * modules/striconv: New file.
97681         * modules/xstriconv: New file.
97682         * MODULES.html.sh (Internationalization functions): Add striconv,
97683         xstriconv.
97685 2006-09-06  Bruno Haible  <bruno@clisp.org>
97687         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97688         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97689         not using libtool correctly.
97691 2006-09-06  Bruno Haible  <bruno@clisp.org>
97693         * lib/striconv.h: New file.
97694         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97695         iconvstring.c.
97696         * lib/xstriconv.h: New file.
97697         * lib/xstriconv.c: New file.
97699 2006-09-06  Bruno Haible  <bruno@clisp.org>
97701         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97702         lib_..._LDFLAGS.
97704 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97706         * lib/argz_.h: Sync from Libtool.
97708         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97709                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97711         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97713 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97715         * modules/trim: New file.
97717 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97719         * lib/trim.h: New file.
97720         * lib/trim.c: New file.
97722 2006-09-05  Bruno Haible  <bruno@clisp.org>
97724         * MODULES.html.sh (String handling): Add trim.
97726 2006-09-04  Karl Berry  <karl@gnu.org>
97728         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97729         until next release.
97731 2006-09-03  Bruno Haible  <bruno@clisp.org>
97733         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97734         correctly.
97736 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97738         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97739         not gl_GETLOADAVG.  Omit unneeded semicolons.
97740         Problems reported by Ralf Wildenhues in
97741         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97742         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97743         at the end, which is the usual gnulib style.
97745         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97746         of doing all the work ourselves.
97747         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97748         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97750 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97752         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97753         Problem reported by Ralf Wildenhues in
97754         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97756         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97757         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97759 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97761         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97762         yesterday's patch by changing test -n to test -z.
97764 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97766         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97767         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97768         the former is now obsolescent.
97770         * modules/chdir-long (Depends-on): Add fcntl.
97772 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97774         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97775         obsolescent, and programs should use gnulib instead.
97776         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97777         but with prefixes changed.
97779 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97781         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97782         or stdbool.h, because they might not exist while configuring.
97784         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97785         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97786         does that for us.
97787         (O_DIRECTORY): Remove.
97789 2006-08-31  Eric Blake  <ebb9@byu.net>
97791         * gnulib-tool: Don't let emacs change spaces to TAB.
97793 2006-08-31  Bruno Haible  <bruno@clisp.org>
97795         * gnulib-tool: When calling func_import more than once, do it in a
97796         subshell.
97797         Reported by Eric Blake <ebb9@byu.net>.
97799 2006-08-31  Bruno Haible  <bruno@clisp.org>
97801         * gnulib-tool (nl): Remove variable.
97802         (sed_transform_lib_file): Use more robust test for config-h module.
97803         (func_import): Fix typo in 2006-08-25 patch.
97805 2006-08-31  Bruno Haible  <bruno@clisp.org>
97807         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97808         specified, augment Makefile.am variables instead of assigning them.
97810 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97812         Work around a bug in both the Linux and SunOS 64-bit kernels:
97813         nanosleep mishandles sleeps for longer than 2**31 seconds.
97814         Problem reported by Frank v Waveren in
97815         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97817         Check for nanosleep bug.
97818         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97820 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97822         Work around a bug in both the Linux and SunOS 64-bit kernels:
97823         nanosleep mishandles sleeps for longer than 2**31 seconds.
97824         Problem reported by Frank v Waveren in
97825         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97826         * lib/nanosleep.c (BILLION): New constant.
97827         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97828         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97829         implementation.
97831 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97833         * modules/nanosleep (Depends-on): Add gettime.
97835 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97836         and Simon Josefsson  <jas@extundo.com>
97837         and Oskar Liljeblad  <oskar@osk.mine.nu>
97839         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97840         * gnulib-tool (func_import): New license type 'unmodifiable license
97841         text'.
97842         * modules/fdl: Use it.  Longer description.
97843         * module/gpl, module/lgpl: New files.
97845 2006-08-30  Jim Meyering  <jim@meyering.net>
97847         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97848         shadowing the parameter.
97850 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97852         Sync from Libtool:
97854         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97856         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97857         sharing with gnulib.  Report by Eric Blake.
97859 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97861         * modules/isapipe: New file.
97862         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97864 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97866         * modules/configmake (Makefile.am): Add a comment, and omit
97867         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97868         by Bruno Haible.
97870 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97872         * m4/isapipe.m4: New file.
97874 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97876         * lib/isapipe.c, lib/isapipe.h: New files.
97878 2006-08-29  Jim Meyering  <jim@meyering.net>
97880         * modules/configmake (Makefile.am): Make configmake.h depend on
97881         Makefile.  Otherwise, a stale configmake.h could hang around.
97883 2006-08-29  Eric Blake  <ebb9@byu.net>
97885         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97886         resolution of upstream bug 3044.
97888 2006-08-29  Bruno Haible  <bruno@clisp.org>
97890         * modules/localcharset (Depends-on): Add configmake.
97891         (Makefile.am): Remove setting of LIBDIR through DEFS.
97893 2006-08-29  Bruno Haible  <bruno@clisp.org>
97895         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97896         defined.
97898 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97900         * modules/fcntl: New file.
97901         * modules/chdir-safer (Depends-on): Add fcntl.
97902         * modules/fts: Likewise.
97903         * modules/mkdir-p: Likewise.
97905         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97906         This undoes the most recent change, since we're now addressing the
97907         problem in a different way.
97909         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97910         into output, since the output might be called Makefile.am even
97911         if $makefile_name is something different.
97912         (func_import): Use $makefile_am rather than
97913         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97914         empty.
97916         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97918 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97920         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97921         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97922         recent change to stdint.m4, since we're now addressing the problem in a
97923         different way.
97925 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97927         * m4/fcntl_h.m4: New file.
97929 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97931         * lib/fcntl_.h: New file.
97932         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97933         the fcntl module.
97934         * lib/dirchownmod.c: Likewise.
97935         * lib/fts.c: Likewise.
97937         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97938         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97939         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97940         just before including <inttypes.h>, to avoid circular inclusion.
97942 2006-08-28  Jim Meyering  <jim@meyering.net>
97944         * doc/visibility.texi: Actually read and correct the grammar of the
97945         sentence affected by yesterday's change.
97947 2006-08-28  Eric Blake  <ebb9@byu.net>
97949         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97950         needs wrapper.
97952 2006-08-28  Eric Blake  <ebb9@byu.net>
97954         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97956 2006-08-28  Eric Blake  <ebb9@byu.net>
97958         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97960 2006-08-28  Bruno Haible  <bruno@clisp.org>
97962         * modules/c-strstr: New file, from GNU gettext.
97963         * MODULES.html.sh (String handling): Add c-strstr.
97965 2006-08-28  Bruno Haible  <bruno@clisp.org>
97967         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97968         macros.
97969         Reported by Eric Blake.
97971 2006-08-28  Bruno Haible  <bruno@clisp.org>
97973         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97974         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97975         * lib/vasprintf.c: Include errno.h, limits.h.
97976         (EOVERFLOW): New fallback definition.
97977         (vasprintf): Test here whether the string length is > INT_MAX.
97978         * lib/vsnprintf.c: Include errno.h, limits.h.
97979         (EOVERFLOW): New fallback definition.
97980         (vsnprintf): Fix bug when generated string was too long for the buffer.
97981         Test here whether the string length is > INT_MAX.
97983 2006-08-28  Bruno Haible  <bruno@clisp.org>
97985         * lib/inttypes_.h (SCNX*): Remove definitions.
97986         Reported by Eric Blake.
97988 2006-08-28  Bruno Haible  <bruno@clisp.org>
97990         * lib/c-strstr.h: New file, from GNU gettext.
97991         * lib/c-strstr.c: New file, from GNU gettext.
97993 2006-08-28  Bruno Haible  <bruno@clisp.org>
97995         * gnulib-tool: Reorder some statements.
97997 2006-08-28  Bruno Haible  <bruno@clisp.org>
97999         * gnulib-tool: New option --makefile-name.
98000         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
98001         $makefile_name.
98002         (func_import): Write $makefile_name to the cache file, and read it from
98003         there unless explicitly specified. Use $makefile_name as file name
98004         instead of Makefile.am. Adjust the recommendations accordingly.
98006 2006-08-28  Bruno Haible  <bruno@clisp.org>
98008         * gnulib-tool (func_verify_module): Check against misapplying patch.
98010 2006-08-28  Bruno Haible  <bruno@clisp.org>
98012         * gnulib-tool (func_relativize, func_relconcat): New functions.
98013         Give an error if --local-dir is given with --update.
98014         Remove trailing slashes from $local_gnulib_dir.
98015         (func_import): Store the relativized $local_gnulib_dir in
98016         gnulib-cache.m4, and read it from there if not specified explicitly.
98018 2006-08-28  Bruno Haible  <bruno@clisp.org>
98020         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
98021         is the current directory. Respect also $local_gnulib_dir.
98023 2006-08-28  Bruno Haible  <bruno@clisp.org>
98024             Simon Josefsson  <jas@extundo.com>
98026         BeOS portability.
98027         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
98029 2006-08-27  Jim Meyering  <jim@meyering.net>
98031         * doc/visibility.texi: Remove duplicate word: "pointer".
98033 2006-08-26  Bruno Haible  <bruno@clisp.org>
98035         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
98036         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
98037         (Makefile.am): Create inttypes.h from inttypes_.h.
98038         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
98040         * modules/imaxabs: New file.
98042         * modules/imaxdiv: New file.
98044 2006-08-26  Bruno Haible  <bruno@clisp.org>
98046         * m4/inttypes.m4: New file.
98047         * m4/_inttypes_h.m4: Remove file.
98048         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
98049         PRI_MACROS_BROKEN.
98050         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
98052         * m4/imaxabs.m4: New file.
98054         * m4/imaxdiv.m4: New file.
98056 2006-08-26  Bruno Haible  <bruno@clisp.org>
98058         * lib/inttypes_.h: New file.
98059         * lib/inttypes.h: Remove file.
98060         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
98062         * lib/imaxabs.c: New file.
98064         * lib/imaxdiv.c: New file.
98066 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98068         New config-h module, so that "make" output needn't be cluttered
98069         by -DHAVE_CONFIG_H.
98070         * MODULES.html.sh (Support for building libraries and executables):
98071         Add config-h.
98072         * modules/config-h: New file.
98073         * gnulib-tool (nl, sed_transform_lib_file): New vars.
98074         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
98075         the config-h module is used.
98077         New configmake module, so that "make" output needn't be cluttered
98078         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
98079         * MODULES.html.sh (Support for building libraries and executables):
98080         Add configmake.
98081         * modules/configmake: New file.
98083 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98085         * m4/config-h.m4: New file.
98087 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98089         * config/srclist.txt: Add elisp-comp.
98091 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98093         * MODULES.html.sh (Support for building libraries and executables):
98094         Add elisp-comp.
98095         * build-aux/elisp-comp: New file.
98096         * modules/elisp-comp: New file.
98098 2006-08-24  Bruno Haible  <bruno@clisp.org>
98100         * gnulib-tool (func_create_testdir): Use non-default values of
98101         sourcebase and m4base.
98103 2006-08-24  Bruno Haible  <bruno@clisp.org>
98105         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
98106         HTML structure.
98108 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98110         * modules/openat (Depends-on): Add lchown.
98112 2006-08-23  Bruno Haible  <bruno@clisp.org>
98114         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
98115         of gl_LOCK_EARLY instead of gl_LOCK.
98117 2006-08-23  Bruno Haible  <bruno@clisp.org>
98119         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
98120         on OSF/1 to no.
98121         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
98123 2006-08-23  Bruno Haible  <bruno@clisp.org>
98125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
98126         as unusable.
98128         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
98129         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
98130         (gl_LOCK): New macro.
98132 2006-08-22  Simon Josefsson  <jas@extundo.com>
98134         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
98135         to md5 module.
98137 2006-08-22  Simon Josefsson  <jas@extundo.com>
98139         * MODULES.html.sh: Add "Support for maintaining and release
98140         projects".
98142         * build-aux/gnupload: New file, from coreutils.
98144 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98146         Avoid the need for AC_LIBSOURCES in m4 macros.
98147         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
98148         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
98149         * modules/check-version (EXTRA_DIST): Add check-version.h.
98150         * modules/crc (EXTRA_DIST): Add crc.h.
98151         * modules/des (EXTRA_DIST): Add des.h.
98152         * modules/gc (EXTRA_DIST): Add gc.h.
98153         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
98154         * modules/getline (EXTRA_DIST): Add getline.h.
98155         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
98156         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
98157         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
98158         * modules/md2 (EXTRA_DIST): Add md2.h.
98159         * modules/md4 (EXTRA_DIST): Add md4.h.
98160         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
98161         * modules/read-file (EXTRA_DIST): Add read-file.h.
98162         * modules/readline (EXTRA_DIST): Add readline.h.
98163         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
98164         rijndael-api-fst.h.
98166 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98168         * m4/rijndael.m4 (gl_ARCFOUR):
98169         * m4/arctwo.m4 (gl_ARCTWO):
98170         * m4/check-version.m4 (gl_CHECK_VERSION):
98171         * m4/crc.m4 (gl_CRC):
98172         * m4/des.m4 (gl_DES):
98173         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
98174         * m4/gc.m4 (gl_GC):
98175         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
98176         * m4/getline.m4 (gl_FUNC_GETLINE):
98177         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
98178         * m4/hmac-md5.m4 (gl_HMAC_MD5):
98179         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
98180         * m4/md2.m4 (gl_MD2):
98181         * m4/md4.m4 (gl_MD4):
98182         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
98183         * m4/read-file.m4 (gl_FUNC_READ_FILE):
98184         * m4/readline.m4 (gl_FUNC_READLINE):
98185         * m4/rijndael.m4 (gl_RIJNDAEL):
98186         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98187         to get the necessary .h files and whatnot.
98189 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98191         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
98192         gnulib rather than the other way around.
98193         * config/srclistvars.sh (COREUTILS): Remove.
98195 2006-08-22  Jim Meyering  <jim@meyering.net>
98197         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
98199         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
98201 2006-08-22  Eric Blake  <ebb9@byu.net>
98203         * modules/regexprops-generic: New file.
98204         * MODULES.html.sh (Support for building documentation): List it.
98206 2006-08-22  Eric Blake  <ebb9@byu.net>
98208         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
98209         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
98210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
98211         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
98213 2006-08-22  Bruno Haible  <bruno@clisp.org>
98215         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
98216         and lib_LTLIBRARIES like the other lib_* variables.
98218 2006-08-22  Bruno Haible  <bruno@clisp.org>
98220         * build-aux/x-to-1.in: New file, from GNU gettext.
98222 2006-08-22  Bruno Haible  <bruno@clisp.org>
98224         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
98225         <utmpx.h> exists.
98227 2006-08-22  Bruno Haible  <bruno@clisp.org>
98229         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
98230         <utmpx.h> exists.
98232 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98234         BeOS portability.
98235         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
98236         exist.
98237         Problem reported by Bruno Haible.
98239 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98241         Avoid the need for AC_LIBSOURCES in m4 macros.
98242         * modules/acl (EXTRA_DIST): Add acl.h.
98243         * modules/argmatch (Files): Add m4/argmatch.m4.
98244         (configure.ac): Add gl_ARGMATCH.
98245         (EXTRA_DIST): Renamed from lib_SOURCES, for
98246         consistency with the other modules.  Remove argmatch.c.
98247         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
98248         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
98249         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
98250         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
98251         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
98252         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
98253         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
98254         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
98255         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
98256         * modules/closeout (EXTRA_DIST): Add closeout.h.
98257         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
98258         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
98259         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
98260         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
98261         dirname.h; remove basename.c and stripslash.c.
98262         * modules/exclude (EXTRA_DIST): Add exclude.h.
98263         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
98264         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
98265         * modules/file-type (EXTRA_DIST): Add file-type.h.
98266         * modules/filemode (EXTRA_DIST): Add filemode.h.
98267         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
98268         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98269         * modules/fpending (EXTRA_DIST): Add __fpending.h.
98270         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
98271         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
98272         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
98273         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
98274         * modules/getdate (EXTRA_DIST): Add getdate.c.
98275         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
98276         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
98277         * modules/getpass (EXTRA_DIST): Add getpass.h.
98278         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
98279         * modules/group-member (EXTRA_DIST): Add group-member.h.
98280         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
98281         * modules/hash (EXTRA_DIST): Add hash.h.
98282         * modules/human (EXTRA_DIST): Add human.h.
98283         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
98284         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
98285         * modules/lchown (EXTRA_DIST): Add lchown.h.
98286         * modules/long-options (EXTRA_DIST): Add long-options.h.
98287         * modules/lstat (EXTRA_DIST): Add lstat.h.
98288         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
98289         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
98290         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
98291         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
98292         * modules/memxor (EXTRA_DIST): Add memxor.h.
98293         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
98294         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
98295         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
98296         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
98297         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
98298         * modules/physmem (EXTRA_DIST): Add physmem.h.
98299         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
98300         * modules/posixver (EXTRA_DIST): Add posixver.h.
98301         * modules/quote (EXTRA_DIST): Add quote.h.
98302         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
98303         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
98304         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
98305         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
98306         regex_internal.h regexec.c.
98307         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
98308         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
98309         * modules/same (EXTRA_DIST): Add same.h.
98310         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
98311         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
98312         * modules/savedir (EXTRA_DIST): Add savedir.h.
98313         * modules/sha1 (EXTRA_DIST): Add sha1.h.
98314         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
98315         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
98316         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
98317         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
98318         * modules/strdup (EXTRA_DIST): Add strdup.h.
98319         * modules/strftime (EXTRA_DIST): Add strftime.h.
98320         * modules/strndup (EXTRA_DIST): Add strndup.h.
98321         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
98322         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
98323         * modules/time_r (EXTRA_DIST): Add time_r.h.
98324         * modules/timespec (EXTRA_DIST): Add timespec.h.
98325         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98326         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
98327         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
98328         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
98329         * modules/userspec (EXTRA_DIST): Add userspec.h.
98330         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98331         * modules/utimens (EXTRA_DIST): Add utimens.h.
98332         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98333         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98334         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98335         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98336         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98337         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98338         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98339         * modules/yesno (EXTRA_DIST): Add yesno.h.
98341 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98343         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98345         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98346         * m4/dev-ino.m4, same-inode.m4: Remove.
98348         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98349         * m4/acl.m4 (AC_FUNC_ACL):
98350         * m4/backupfile.m4 (gl_BACKUPFILE):
98351         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98352         * m4/canon-host.m4 (gl_CANON_HOST):
98353         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98355         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98356         * m4/cloexec.m4 (gl_CLOEXEC):
98357         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98358         * m4/closeout.m4 (gl_CLOSEOUT):
98359         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98360         * m4/dirname.m4 (gl_DIRNAME):
98361         * m4/exclude.m4 (gl_EXCLUDE):
98362         * m4/exitfail.m4 (gl_EXITFAIL):
98363         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98364         * m4/file-type.m4 (gl_FILE_TYPE):
98365         * m4/filemode.m4 (gl_FILEMODE):
98366         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98367         * m4/fpending.m4 (gl_FUNC_FPENDING):
98368         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98369         * m4/fts.m4 (gl_FUNC_FTS):
98370         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98371         * m4/getdate.m4 (gl_GETDATE):
98372         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98373         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98374         * m4/getpass.m4 (gl_FUNC_GETPASS):
98375         * m4/gettime.m4 (gl_GETTIME):
98376         * m4/getugroups.m4 (gl_GETUGROUPS):
98377         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98378         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98379         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98380         * m4/hash.m4 (gl_HASH):
98381         * m4/idcache.m4 (gl_IDCACHE):
98382         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98383         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98384         * m4/long-options.m4 (gl_LONG_OPTIONS):
98385         * m4/lstat.m4 (gl_FUNC_LSTAT):
98386         * m4/md5.m4 (gl_MD5):
98387         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98388         * m4/memcoll.m4 (gl_MEMCOLL):
98389         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98390         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98391         * m4/memxor.m4 (gl_MEMXOR):
98392         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98393         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98394         * m4/modechange.m4 (gl_MODECHANGE):
98395         * m4/mountlist.m4 (gl_MOUNTLIST):
98396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98397         * m4/openat.m4 (gl_FUNC_OPENAT):
98398         * m4/pathmax.m4 (gl_PATHMAX):
98399         * m4/physmem.m4 (gl_PHYSMEM):
98400         * m4/posixtm.m4 (gl_POSIXTM):
98401         * m4/posixver.m4 (gl_POSIXVER):
98402         * m4/quote.m4 (gl_QUOTE):
98403         * m4/quotearg.m4 (gl_QUOTEARG):
98404         * m4/readtokens.m4 (gl_READTOKENS):
98405         * m4/readutmp.m4 (gl_READUTMP):
98406         * m4/regex.m4 (gl_REGEX):
98407         * m4/safe-read.m4 (gl_SAFE_READ):
98408         * m4/safe-write.m4 (gl_SAFE_WRITE):
98409         * m4/same.m4 (gl_SAME):
98410         * m4/save-cwd.m4 (gl_SAVE_CWD):
98411         * m4/savedir.m4 (gl_SAVEDIR):
98412         * m4/settime.m4 (gl_SETTIME):
98413         * m4/sha1.m4 (gl_SHA1):
98414         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98415         * m4/stat-macros.m4 (gl_STAT_MACROS):
98416         * m4/stat-time.m4 (gl_STAT_TIME):
98417         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98418         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98419         * m4/strdup.m4 (gl_FUNC_STRDUP):
98420         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98421         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98422         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98423         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98424         * m4/time_r.m4 (gl_TIME_R):
98425         * m4/timespec.m4 (gl_TIMESPEC):
98426         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98427         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98428         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98429         * m4/userspec.m4 (gl_USERSPEC):
98430         * m4/utimecmp.m4 (gl_UTIMECMP):
98431         * m4/utimens.m4 (gl_UTIMENS):
98432         * m4/xalloc.m4 (gl_XALLOC):
98433         * m4/xgetcwd.m4 (gl_XGETCWD):
98434         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98435         * m4/xreadlink.m4 (gl_XREADLINK):
98436         * m4/xstrtod.m4 (gl_XSTRTOD):
98437         * m4/yesno.m4 (gl_YESNO):
98438         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98439         to get the necessary .h files and whatnot.
98441 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98442             Bruno Haible  <bruno@clisp.org>
98444         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98445         /bin/sh understanding of '!' conditional negation.
98447 2006-08-21  Jim Meyering  <jim@meyering.net>
98449         * modules/openat (Depends-on): Really alphabetize.
98451         * modules/acl (Depends-on): Add error and quote.
98453         * check-module (find_included_lib_files): Add at-func.c to the
98454         ok-to-include-more-than-once white list.
98456         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98458 2006-08-21  Bruno Haible  <bruno@clisp.org>
98460         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98461         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98462         Reported by Martin Lambers <marlam@marlam.de>.
98464 2006-08-21  Bruno Haible  <bruno@clisp.org>
98466         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98467         specify an installation location, don't emit a noinst_LIBRARIES or
98468         noinst_LTLIBRARIES assignment.
98470 2006-08-21  Bruno Haible  <bruno@clisp.org>
98472         BeOS portability.
98473         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98474         BeOS has mbrtowc() but no <wctype.h>.
98476 2006-08-21  Bruno Haible  <bruno@clisp.org>
98478         BeOS portability.
98479         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98480         exist.
98482 2006-08-21  Bruno Haible  <bruno@clisp.org>
98484         BeOS portability.
98485         * lib/mbchar.h: Include <wctype.h> only if it exists.
98487 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98489         Remove files that are no longer needed by their respective modules.
98490         * m4/obstack.m4: Remove.
98491         * m4/strerror_r.m4: Remove.
98492         * m4/uint32_t.m4: Remove.
98493         * m4/uintptr_t.m4: Remove.
98494         * m4/ullong_max.m4: Remove.
98495         * m4/xstrtoimax.m4: Remove.
98496         * m4/xstrtoumax.m4: Remove.
98498         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98499         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98500         dependencies now capture this.
98502         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98503         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98504         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98505         * m4/human.m4 (gl_HUMAN): Likewise.
98506         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98507         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98509         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98511         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98512         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98513         stdint.
98514         * m4/human.m4 (gl_HUMAN): Likewise.
98515         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98516         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98517         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98518         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98519         * m4/xstrtol (gl_XSTRTOL): Likewise.
98521         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98522         AC_TYPE_LONG_LONG_INT.
98523         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98524         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98525         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98526         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98528         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98529         on stdbool.
98531         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98532         (gl_PREREQ_XSTRTOUL): Remove.
98534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98536         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98537         mode.
98539 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98541         Add and change modules to make it easier for coreutils to use
98542         gnulib-tool.
98543         * modules/backupfile (Files): Remove m4/d-ino.m4.
98544         (Depends-on): Add d-ino.
98545         * modules/cycle-check (Depends-on): Add stdint.
98546         (lib_SOURCES): Add cycle-check.h.
98547         * modules/d-ino: New module.
98548         * modules/d-type: New module.
98549         * modules/error (Files): Remove m4/strerror_r.m4.
98550         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98551         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98552         m4/inttypes_h.m4, m4/uintmax_t.m4.
98553         (Depends-on): Add stdint.
98554         (lib_SOURCES): Add fsusage.h.
98555         * modules/getcwd (Files): Remove d-ino.m4.
98556         (Depends-on): Add d-ino.
98557         * modules/getndelim2 (Depends-on): Add stdint.
98558         * modules/glob (Files): Remove m4/d-type.m4.
98559         (Depends-on): Add d-type.
98560         * modules/host-os: New module.
98561         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98562         m4/inttypes_h.m4, m4/uintmax_t.m4.
98563         * Depends-on: Add stdint.
98564         (lib_SOURCES): Add human.h.
98565         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98566         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98567         m4/uintmax_t.m4, m4/ulonglong.m4.
98568         (Depends-on): Add stdint.
98569         (EXTRA_DIST): Add inttostr.h.
98570         * modules/lchmod: New module.
98571         * modules/link-follow: New module.
98572         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98573         (Depends-on): Add lchmod.
98574         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98575         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98576         (Depends-on): Add stdint.
98577         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98578         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98579         (Depends-on): Add stdint.
98580         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98581         * modules/perl: New module.
98582         * modules/regex (Depends-on): Add stdint.
98583         * modules/rmdir-errno: New module.
98584         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98585         m4/intmax_t.m4.
98586         (Depends-on): Add stdint.
98587         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98588         m4/uintmax_t.m4.
98589         (Depends-on): Add stdint.
98590         * modules/unlink-busy: New module.
98591         * modules/utimecmp (Depends-on): Add stdint.
98592         * modules/uptime: New module.
98593         * modules/winsz-ioctl: New module.
98594         * modules/winsz-termios: New module.
98595         * modules/xnanosleep (Depends-on): Add nanosleep.
98596         * modules/ullong_max: Remove.
98597         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98598         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98599         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98600         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98601         (Depends-on): Add inttypes.
98602         (lib_SOURCES): Add xstrtol.h.
98603         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98604         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98605         * MODULES.html.sh: Move 'assert' into the assert section.
98606         Move 'dummy' into the linking section.
98607         Remove ullong_max.
98608         Add section for compatibility checks for POSIX:2001 functions,
98609         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98610         winsz-ioctl, and winsz-termios into it.
98611         Add lchmod.
98612         Add top-level Misc section and put host-os, perl, and uptime
98613         into it.
98615 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98617         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98618         now assume the stdint module.  Do not include inttypes.h.
98619         * lib/fsusage.h: Likewise.
98620         * lib/getndelim2.c: Likewise.
98621         * lib/human.h: Likewise.
98622         * lib/inttostr.h: Likewise.
98623         * lib/obstack.c: Likewise.
98624         * lib/regex_internal.h: Likewise.
98625         * lib/tempname.c: Likewise.
98626         * lib/utimecmp.c: Likewise.
98627         * lib/xstrtol.h: Likewise.
98629         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98631         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98632         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98633         * lib/xtime.h: Likewise.
98635 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98637         * modules/openat (Files): Add lib/fchmodat.c.
98638         Fixes problem reported by Jay Youngman.
98640 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98642         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98643         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98645 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98646             Bruno Haible  <bruno@clisp.org>
98648         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98649         and is a script that invokes bison. Tighten the code. Add comments.
98651 2006-08-18  Jim Meyering  <jim@meyering.net>
98653         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98654         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98655         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98656         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98658 2006-08-18  Bruno Haible  <bruno@clisp.org>
98660         * modules/bison-i18n: New file.
98661         * MODULES.html.sh (Internationalization functions): Add it.
98663 2006-08-18  Bruno Haible  <bruno@clisp.org>
98665         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98666         sys/statvfs.h. When getmntinfo was found, check its declaration and
98667         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98669 2006-08-18  Bruno Haible  <bruno@clisp.org>
98671         * m4/bison-i18n.m4: New file, from bison.
98673 2006-08-18  Bruno Haible  <bruno@clisp.org>
98675         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98676         (ME_DUMMY): Treat "kernfs" as a dummy.
98677         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98679 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98681         Update from coreutils.
98683         2006-08-15  Jim Meyering  <jim@meyering.net>
98685         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98687         2006-01-17  Jim Meyering  <jim@meyering.net>
98689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98691         2006-01-11  Jim Meyering  <jim@meyering.net>
98693         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98694         Check for the lchmod function.
98696 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98698         Update from coreutils.
98700         * lib/__fpending.h: Add copyright notice.
98701         * lib/fprintftime.h: Likewise.
98702         * lib/savedir.c: Use (C) in copyright notice.
98703         * lib/savedir.h: Likewise.
98705         2006-08-15  Jim Meyering  <jim@meyering.net>
98707         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98708         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98709         in support of the EXPECTED_ERRNO macro.
98710         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98711         definitions.  Instead, define the appropriate symbols and include
98712         "at-func.c".
98713         * lib/mkdirat.c (mkdirat): Likewise.
98714         * lib/fchmodat.c (fchmodat): Likewise.
98715         (ENOSYS): Remove definition.
98716         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98717         it.  Don't include "unistd--.h" -- it wasn't ever used.
98719         2006-01-17  Jim Meyering  <jim@meyering.net>
98721         Rewrite fts.c not to change the current working directory,
98722         by using openat, fstatat, fdopendir, etc..
98724         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98725         (HAVE_OPENAT_SUPPORT): Define.
98726         [_LIBC] (fchdir): Don't undef or define; no longer used.
98727         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98728         Now, this `function' always succeeds, and consumes its file descriptor
98729         parameter -- so callers must not close such FDs.  Update callers.
98730         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98731         (diropen): Add parameter, SP.  Adjust all callers.
98732         Implement using diropen_fd, rather than open.
98733         (fts_open): Initialize new member, fts_cwd_fd.
98734         Remove fts_rft-setting code.
98735         (fts_close): Close fts_cwd_fd, if necessary.
98736         (__opendir2): Define in terms of opendir or opendirat,
98737         depending on whether the FST_NOCHDIR flag is set.
98738         (fts_build): Since fts_safe_changedir consumes its FD, and since
98739         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98740         and close the dup'd file descriptor upon failure.
98741         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98742         (fts_safe_changedir): Tweak semantics to reflect that this function
98743         now calls cwd_advance_fd and hence consumes its FD argument.
98744         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98745         [struct FTS] (fts_rft): Remove now-unused member.
98746         [struct FTS] (fts_cycle.state): Improve comment.
98748         * lib/openat.c (openat_needs_fchdir): New function.
98749         * lib/openat.h (openat_needs_fchdir): Declare it.
98751 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98753         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98754         Problem and fix reported by Pádraig Brady in
98755         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98757 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98759         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98761 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98763         * lib/memcoll.c (memcoll): Optimize for the common case where the
98764         arguments are bytewise equal.
98766 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98768         * doc/regexprops-generic.texi: Add a copyright notice.
98770 2006-08-15  Bruno Haible  <bruno@clisp.org>
98772         * modules/tmpdir (License): Change to LGPL.
98774 2006-08-15  Bruno Haible  <bruno@clisp.org>
98776         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98777         module.
98779 2006-08-14  Simon Josefsson  <jas@extundo.com>
98781         * config/srclist.txt: Add gnupload.
98783 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98785         Change copyright notice from LGPL 2 to GPL 2, since that's the
98786         standard form used in the gnulib repository.
98787         * tests/test-lock.c: Likewise.
98788         * tests/test-stdint.c: Likewise.
98789         * tests/test-tls.c: Likewise.
98791         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98792         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98793         Add copyright notice.
98795         * check-module: Add copyright notice.  Output a copyright
98796         notice if "--version" is specified.
98797         * modules/COPYING: New file.
98798         * tests/test-getaddrinfo.c: Add copyright notice.
98799         * tests/test-verify.c: Likewise.
98801 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98803         Change copyright notice from LGPL 2 to GPL 2, since that's the
98804         standard form used in the gnulib repository.
98805         * lib/lock.c: LGPL -> GPL.
98806         * lib/lock.h: Likewise.
98807         * lib/strnlen1.c: Likewise.
98808         * lib/strnlen1.h: Likewise.
98809         * lib/tls.c: Likewise.
98810         * lib/tls.h: Likewise.
98811         * lib/tmpdir.c: Likewise.
98813         * lib/TODO: Remove; this belongs only in coreutils.
98815 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98817         Add copyright notices to long-enough files that lack them, since
98818         otherwise the files aren't clearly free.  Use the same notice that
98819         getdate.texi already uses.
98820         * doc/alloca-opt.texi: Add copyright notice.
98821         * doc/alloca.texi: Likewise.
98822         * doc/ctime.texi: Likewise.
98823         * doc/functions.texi: Likewise.
98824         * doc/gcd.texi: Likewise.
98825         * doc/gnulib-tool.texi: Likewise.
98826         * doc/inet_ntoa.texi: Likewise.
98827         * doc/visibility.texi: Likewise.
98829         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98830         * doc/quote.texi: Add copyright notice.
98832         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98833         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98834         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98835         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98836         is now obsolete, and give a pointer to the Sun list.
98837         Add copyright notice.
98839 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98841         * config/srclistvars.sh: Add copyright notice.
98843 2006-08-14  Eric Blake  <ebb9@byu.net>
98845         Import the following change from libc:
98847         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98849         Upstream bug 2997.
98850         * lib/misc/error.c: Add space between program name and message if file
98851         name is missing.
98853 2006-08-12  Karl Berry  <karl@gnu.org>
98855         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98856         remove, these originate in gnulib now.
98858 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98860         * doc/Makefile (standards.info standards.html standards.dvi):
98861         Also depend on make-stds.texi.
98863 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98865         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98866         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98868         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98869         in wchar_t.  Problem reported by Eric Blake.
98871         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98872         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98873         Also, help the compiler to keep LEN in a register.
98875 2006-08-11  Eric Blake  <ebb9@byu.net>
98877         * users.txt: Sort.  Add tar.
98879 2006-08-11  Bruno Haible  <bruno@clisp.org>
98881         * users.txt: New file.
98883 2006-08-11  Bruno Haible  <bruno@clisp.org>
98885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98886         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98888 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98890         * modules/snprintf (Depends-on): Remove minmax.
98891         (Maintainer): Add self and Bruno.
98893 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98895         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98896         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98897         (EOVERFLOW): Define if the system does not.
98898         Do not include "minmax.h"; it wasn't used.
98899         (snprintf): Don't assume size_t promotes to an unsigned type.
98900         Fix bug when generated string was too long for the buffer: the
98901         buffer's contents are supposed to be the initial prefix of the
98902         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98903         exceeds INT_MAX; do the check ourselves.
98905         Import the following changes from libc:
98907         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98909         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98910         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98911         set wc to the byte which couldn't be converted.
98912         (re_string_reconstruct): Don't clear valid_raw_len before calling
98913         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98914         tip_context using re_string_context_at.
98916         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98918         * lib/posix/regex.h: g++ still cannot handled [restrict].
98920         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98922         * lib/posix/regex.h: Remove special handling for VMS.
98924 2006-08-10  Jim Meyering  <jim@meyering.net>
98926         * modules/same-inode: New module.
98927         * modules/dev-ino: New module.
98928         * modules/cycle-check: Depend on these modules, rather than simply
98929         including their .h files.
98930         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98931         required via m4/cycle-check.m4.
98932         * modules/same: Depend on new same-inode module, rather than
98933         including same-inode.h.
98934         * modules/chdir-safer: New file.
98936         * modules/chown (Depends-on): Add stat-macros.
98938 2006-08-10  Jim Meyering  <jim@meyering.net>
98940         * m4/cycle-check.m4: New file.
98941         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98942         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98944 2006-08-10  Eric Blake  <ebb9@byu.net>
98946         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98947         in from original proposal.
98949 2006-08-10  Eric Blake  <ebb9@byu.net>
98950         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98952         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98953         namespace.
98955 2006-08-10  Bruno Haible  <bruno@clisp.org>
98957         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98958         as well.
98960 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98962         Sync from coreutils.
98964         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98966         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98967         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98969 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98971         * modules/restrict: Remove; no longer needed now that we assume
98972         Autoconf 2.59 or later.
98973         * MODULES.html.sh: Remove 'restrict'.
98974         * modules/argp (Depends-on): Remove 'restrict'.
98975         * modules/base64 (Depends-on): Likewise.
98976         * modules/gc (Depends-on): Likewise.
98977         * modules/getaddrinfo (Depends-on): Likewise.
98978         * modules/glob (Depends-on): Likewise.
98979         * modules/inet_ntop (Depends-on): Likewise.
98980         * modules/inet_pton (Depends-on): Likewise.
98981         * modules/memxor (Depends-on): Likewise.
98982         * modules/regex (Depends-on): Likewise.
98983         * modules/strtok_r (Depends-on): Likewise.
98984         * modules/time_r (Depends-on): Likewise.
98986 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98988         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98989         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98990         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98991         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98992         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98993         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98994         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98995         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98997         Merge from coreutils.
98998         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98999         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
99000         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
99001         * m4/time_r.m4 (gl_TIME_R): Likewise.
99003 2006-08-09  Karl Berry  <karl@gnu.org>
99005         * config/srclist.txt: no more gettext-tools, per Bruno.
99007 2006-08-08  Eric Blake  <ebb9@byu.net>
99009         * modules/verror: New module.
99010         * MODULES.html.sh: Document it.
99012 2006-08-08  Eric Blake  <ebb9@byu.net>
99014         * lib/verror.h, lib/verror.c: New files.
99016 2006-08-08  Eric Blake  <ebb9@byu.net>
99018         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
99019         verror_at_line output complies with GNU Coding Standards even when
99020         file is NULL.
99022 2006-08-07  Bruno Haible  <bruno@clisp.org>
99024         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
99025         versions of AIX.
99026         Reported by Ralf Wildenhues.
99028 2006-08-07  Bruno Haible  <bruno@clisp.org>
99030         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
99031         in an AC_DEFUN. Needed so that the autoconf snippets can use
99032         AC_REQUIRE.
99034 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99037         Initialize pkgdata_DATA.
99038         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
99039         overriding it.
99041 2006-08-06  Eric Blake  <ebb9@byu.net>
99043         * lib/error.h: Fold in some upstream changes from glibc.
99044         * lib/error.c: Likewise.
99046 2006-08-04  Bruno Haible  <bruno@clisp.org>
99048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99049         Make the mostlyclean-local rule depend on mostlyclean-generic.
99050         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
99052 2006-07-31  Bruno Haible  <bruno@clisp.org>
99054         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
99055         <stdlib.h>, <string.h>.
99057 2006-07-30  Bruno Haible  <bruno@clisp.org>
99059         * modules/readlink (License): Change to LGPL.
99061 2006-07-30  Bruno Haible  <bruno@clisp.org>
99063         * modules/javaversion (Makefile.am): Distribute javaversion.java and
99064         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
99065         set PKGDATADIR to point to it.
99067 2006-07-30  Bruno Haible  <bruno@clisp.org>
99069         * modules/csharpexec (configure.ac): Comment out macro invocation.
99070         * modules/javaexec (configure.ac): Likewise.
99071         * modules/javacomp-script (configure.ac): Likewise.
99073         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
99075 2006-07-30  Bruno Haible  <bruno@clisp.org>
99077         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
99078         linked-list.
99080 2006-07-30  Bruno Haible  <bruno@clisp.org>
99082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
99084 2006-07-30  Bruno Haible  <bruno@clisp.org>
99086         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99087         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
99088         get removed.
99090 2006-07-29  Bruno Haible  <bruno@clisp.org>
99092         Make it possible for gnulib-tool to work with locally modified or
99093         augmented gnulib repositories.
99094         * gnulib-tool (func_usage): Document --local-dir option.
99095         (local_gnulib_dir): New variable.
99096         Handle --local-dir option.
99097         (func_lookup_file): New function.
99098         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
99099         (func_get_description, func_get_filelist, func_get_description,
99100         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
99101         func_get_automake_snippet, func_get_include_directive,
99102         func_get_license, func_get_maintainer): Use func_lookup_file.
99103         (func_import, func_create_testdir): Use func_lookup_file.
99105 2006-07-29  Bruno Haible  <bruno@clisp.org>
99107         * modules/setenv (Depends-on): Add unistd.
99109 2006-07-29  Bruno Haible  <bruno@clisp.org>
99111         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
99113 2006-07-29  Bruno Haible  <bruno@clisp.org>
99115         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
99117 2006-07-29  Bruno Haible  <bruno@clisp.org>
99119         * gnulib-tool (import, update): If there is no Makefile.am, look at
99120         aclocal.m4, instead of bailing out.
99122 2006-07-29  Bruno Haible  <bruno@clisp.org>
99124         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
99125         Categorize the options by when they are useful.
99127 2006-07-29  Bruno Haible  <bruno@clisp.org>
99129         * gnulib-tool (func_usage): Document option --no-libtool.
99130         Handle option --no-libtool.
99131         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
99132         for changed semantics of $libtool variable.
99133         (func_import): Likewise. If libtool is not used, show this through
99134         an option --no-libtool.
99135         (func_create_testdir): Update.
99137 2006-07-29  Bruno Haible  <bruno@clisp.org>
99139         * gnulib-tool (func_import): Extend error message about missing
99140         --doc-base.
99142 2006-07-29  Bruno Haible  <bruno@clisp.org>
99144         * gnulib-tool (func_import): Don't create the $docbase directory if
99145         there is no file to store there.
99147 2006-07-29  Bruno Haible  <bruno@clisp.org>
99149         * gnulib-tool (autoconf_minversion): If a --dir option is given and
99150         relevant, look for configure.ac there, not in the current directory.
99151         Also use a simple search for AC_PREREQ, not "autoconf --trace".
99153 2006-07-29  Bruno Haible  <bruno@clisp.org>
99155         * gnulib-tool (SORT): New variable.
99156         (func_usage): Undocument --assume-autoconf option.
99157         Remove --assume-autoconf option handling.
99158         (autoconf_minversion): Determine from the contents of configure.ac.
99159         (func_import): Remove autoconf_minversion handling.
99160         Suggested by Eric Blake.
99162 2006-07-29  Bruno Haible  <bruno@clisp.org>
99164         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
99166 2006-07-29  Bruno Haible  <bruno@clisp.org>
99168         * config/srclist.txt (*setenv.[ch]): Remove rules.
99170 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99172         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
99174 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99176         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
99177         arpa/inet.h.
99179 2006-07-28  Simon Josefsson  <jas@extundo.com>
99181         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
99182         * modules/inet_pton (Depends-on): Likewise.
99184 2006-07-28  Simon Josefsson  <jas@extundo.com>
99186         * m4/netinet_in_h.m4: New file.
99188 2006-07-28  Simon Josefsson  <jas@extundo.com>
99190         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
99191         #include's.
99193 2006-07-28  Simon Josefsson  <jas@extundo.com>
99195         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
99196         #include's.
99198 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
99200         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
99201         setgid on directories only if they set these bits.
99202         * lib/modechange.h: Remove obsolete comment about masks.
99204 2006-07-28  Eric Blake  <ebb9@byu.net>
99206         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
99207         macro expansion.
99209 2006-07-28  Bruno Haible  <bruno@clisp.org>
99211         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
99213 2006-07-28  Bruno Haible  <bruno@clisp.org>
99215         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
99217 2006-07-28  Bruno Haible  <bruno@clisp.org>
99219         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
99220         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
99221         Define fallbacks.
99222         Avoids link error on FreeBSD 4.x.
99223         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99225         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
99226         encoding.
99227         * lib/mbswidth.c (iswcntrl): Likewise.
99229 2006-07-27  Bruno Haible  <bruno@clisp.org>
99231         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
99232         test.
99234 2006-07-27  Bruno Haible  <bruno@clisp.org>
99236         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
99237         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
99238         defined.
99240 2006-07-26  Eric Blake  <ebb9@byu.net>
99242         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
99244 2006-07-26  Eric Blake  <ebb9@byu.net>
99246         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
99247         like mingw that lack mkstemp.
99248         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
99249         avoid compilation warning on mingw.
99251 2006-07-26  Bruno Haible  <bruno@clisp.org>
99253         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
99254         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
99255         INT_FAST*_MIN, INTPTR_MIN.
99257 2006-07-25  Bruno Haible  <bruno@clisp.org>
99259         * modules/version-etc (Depends-on): Add stdarg.
99261 2006-07-25  Bruno Haible  <bruno@clisp.org>
99263         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
99264         complex commands.
99266 2006-07-25  Bruno Haible  <bruno@clisp.org>
99268         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
99269         defined in <stdarg.h> or config.h.
99271 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99273         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
99274         (gl_STDIO_SAFER): Remove.
99276 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99278         * MODULES.html.sh (File stream based Input/Output):
99279         Add fopen-safer, tmpfile-safer; remove stdio-safer.
99280         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
99281         * modules/fopen-safer, modules/tmpfile-safer: New files.
99282         * modules/stdio-safer: Remove.
99284 2006-07-24  Bruno Haible  <bruno@clisp.org>
99286         * modules/tmpdir: New file.
99287         * MODULES.html.sh (File system functions): Add it.
99289 2006-07-24  Bruno Haible  <bruno@clisp.org>
99291         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
99292         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
99294 2006-07-24  Bruno Haible  <bruno@clisp.org>
99296         * modules/clean-temp: New file.
99298 2006-07-24  Bruno Haible  <bruno@clisp.org>
99300         * m4/tmpdir.m4: New file, from GNU gettext.
99302 2006-07-24  Bruno Haible  <bruno@clisp.org>
99304         * lib/tmpdir.h: New file, from GNU gettext.
99305         * lib/tmpdir.c: New file, from GNU gettext.
99307 2006-07-24  Bruno Haible  <bruno@clisp.org>
99309         * lib/clean-temp.h: New file, from GNU gettext.
99310         * lib/clean-temp.c: New file, from GNU gettext.
99312 2006-07-23  Eric Blake  <ebb9@byu.net>
99314         * modules/stdio-safer (Files): Add tmpfile-safer.c.
99315         (Depends-on): Add binary-io.
99317 2006-07-23  Eric Blake  <ebb9@byu.net>
99319         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
99321 2006-07-23  Eric Blake  <ebb9@byu.net>
99323         * lib/tmpfile-safer.c: New file.
99324         * lib/stdio-safer.h (fopen_safer): Add prototype.
99325         * lib/stdio--.h (tmpfile): Make safer.
99327 2006-07-23  Bruno Haible  <bruno@clisp.org>
99329         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99330         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99331         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99332         gl_linked_remove_at): Use it.
99334 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99335         and Simon Josefsson <jas@extundo.com>
99337         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99339         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99341 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99343         * modules/close-stream: New file.
99344         * modules/closeout (Description): Make it clear that it exits
99345         with a diagnostic on error.
99346         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99347         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99349 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99351         * m4/close-stream.m4: New file.
99353 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99355         * lib/close-stream.c, lib/close-stream.h: New files.
99357 2006-07-22  Bruno Haible  <bruno@clisp.org>
99359         Merge from GNU gettext 0.15.
99361         2006-05-01  Bruno Haible  <bruno@clisp.org>
99363                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99365         2006-07-22  Bruno Haible  <bruno@clisp.org>
99367                 * modules/javaversion: New file.
99368                 * MODULES.html.sh (Java): Add javaversion.
99370         2006-03-12  Bruno Haible  <bruno@clisp.org>
99372                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99374         2005-12-04  Bruno Haible  <bruno@clisp.org>
99376                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99377                 (untested).
99379         2006-06-21  Bruno Haible  <bruno@clisp.org>
99381                 Avoid warnings from recent versions of mcs.
99382                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99383                 -o, -L, -r any more. Use options documented since mcs-1.0
99384                 instead. Similarly for -g.
99386         2005-12-04  Bruno Haible  <bruno@clisp.org>
99388                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99389                 .resources, not .resource.
99391         2005-07-09  Bruno Haible  <bruno@clisp.org>
99393                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99394                 add a .dll suffix.
99395                 Reported by Mark Junker <mjscod@gmx.de>.
99397         2006-07-22  Bruno Haible  <bruno@clisp.org>
99399                 * modules/gettext: Upgrade to gettext-0.15.
99400                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99401                 m4/visibility.m4.
99402                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99404 2006-07-22  Bruno Haible  <bruno@clisp.org>
99406         Merge from GNU gettext 0.15.
99408         2006-03-25  Bruno Haible  <bruno@clisp.org>
99410                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99412         2006-07-21  Bruno Haible  <bruno@clisp.org>
99414                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99415                 "1.1".
99417         2006-05-09  Bruno Haible  <bruno@clisp.org>
99419                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99420                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99421                 for the conftestver execution.
99423         2006-05-01  Bruno Haible  <bruno@clisp.org>
99425                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99426                 optional target-version argument. Verify that the compiler
99427                 groks source of the specified source-version, or add -source
99428                 option as necessary. Verify that the compiler produces
99429                 bytecode in the specified target-version, or add -target and
99430                 -source options as necessary. Make the result of the test
99431                 available as variable CONF_JAVAC. Also log error output in
99432                 config.log.
99434         2006-03-11  Bruno Haible  <bruno@clisp.org>
99436                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99438         2006-05-09  Bruno Haible  <bruno@clisp.org>
99440                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99441                 CLASSPATH_SEPARATOR to a semicolon.
99443         2006-03-12  Bruno Haible  <bruno@clisp.org>
99445                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99446                 available as variable CONF_JAVA, for subsequent autoconf
99447                 tests. Also log error output in config.log.
99449         2006-07-19  Bruno Haible  <bruno@clisp.org>
99451                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99452                 that getline works on glibc2 systems. Needed to avoid trouble
99453                 in relocatable.c.
99454                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99456         2005-12-04  Bruno Haible  <bruno@clisp.org>
99458                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99459                 launcher (untested).
99461         2005-12-04  Bruno Haible  <bruno@clisp.org>
99463                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99465         2006-07-22  Bruno Haible  <bruno@clisp.org>
99467                 * gettext.m4: Update from GNU gettext-0.15.
99468                 * nls.m4: Likewise.
99469                 * po.m4: Likewise.
99470                 * inttypes-pri.m4: Likewise.
99471                 * inttypes-h.m4: Renamed from inttypes.m4.
99472                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99474 2006-07-22  Bruno Haible  <bruno@clisp.org>
99476         Merge from GNU gettext 0.15.
99478         2005-07-05  Bruno Haible  <bruno@clisp.org>
99480                 * printf-args.c (printf_fetchargs): Work around broken
99481                 definition of wint_t on mingw.
99483         2005-02-12  Bruno Haible  <bruno@clisp.org>
99485                 * xallocsa.h: Add extern "C" for C++.
99487         2006-05-17  Bruno Haible  <bruno@clisp.org>
99489                 Cygwin portability.
99490                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99492         2006-04-30  Bruno Haible  <bruno@clisp.org>
99494                 * progreloc.c: Include <mach-o/dyld.h> if available.
99495                 (find_executable): Use _NSGetExecutablePath when possible.
99497         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99499                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99500                 function.
99502         2005-12-29  Bruno Haible  <bruno@clisp.org>
99504                 * progreloc.c (set_program_name_and_installdir): Fix
99505                 compilation error.
99507         2005-12-04  Bruno Haible  <bruno@clisp.org>
99509                 Cygwin portability.
99510                 * progreloc.c: Include <windows.h> also on Cygwin.
99511                 (find_executable): Add support for Cygwin.
99512                 (set_program_name_and_installdir): Handle also platforms with
99513                 nonempty EXEEXT.
99515         2006-07-11  Bruno Haible  <bruno@clisp.org>
99517                 * javacomp.c: Fix a comment.
99518                 Reported by Jim Meyering.
99520         2006-04-30  Bruno Haible  <bruno@clisp.org>
99522                 * javacomp.h (compile_java_class): Add source_version,
99523                 target_version arguments.
99524                 * javacomp.c: Rewritten to choose only a compiler that
99525                 respects the specified source_version and target_version.
99527         2006-06-27  Bruno Haible  <bruno@clisp.org>
99529                 Assume correct S_ISDIR macro.
99530                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99532         2006-07-22  Bruno Haible  <bruno@clisp.org>
99534                 * javaversion.h: New file, from GNU gettext.
99535                 * javaversion.c: New file, from GNU gettext.
99536                 * javaversion.java: New file, from GNU gettext.
99537                 * javaversion.class: New file, from GNU gettext.
99539         2006-05-17  Bruno Haible  <bruno@clisp.org>
99541                 Cygwin portability.
99542                 * javaexec.c (execute_java_class): Test for jview program
99543                 also on Cygwin.
99545         2006-04-09  Bruno Haible  <bruno@clisp.org>
99547                 * fatal-signal.c: Don't include string.h.
99548                 (at_fatal_signal): Use a copying loop instead of memcpy.
99550         2005-12-04  Bruno Haible  <bruno@clisp.org>
99552                 * csharpexec.c: Add support for 'clix' launcher (untested).
99553                 (execute_csharp_using_sscli): New function.
99554                 (execute_csharp_program): Call it.
99556         2006-06-21  Bruno Haible  <bruno@clisp.org>
99558                 Avoid warnings from recent versions of mcs.
99559                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99560                 -o, -L, -r any more. Use options documented since mcs-1.0
99561                 instead. Similarly for -g.
99563         2005-07-09  Bruno Haible  <bruno@clisp.org>
99565                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99566                 add a .dll suffix.
99567                 Reported by Mark Junker <mjscod@gmx.de>.
99569         2006-06-17  Bruno Haible  <bruno@clisp.org>
99571                 * config.charset: Update for NetBSD 3.0.
99573         2006-05-17  Bruno Haible  <bruno@clisp.org>
99575                 Cygwin portability.
99576                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99578         2006-05-16  Bruno Haible  <bruno@clisp.org>
99580                 * localcharset.c [CYGWIN]: Include <windows.h>.
99581                 (get_charset_aliases): For Cygwin, return the same CPxxx
99582                 aliases list as under WIN32.
99583                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99584                 the environment variables. Fall back to GetACP().
99586         2006-04-05  Bruno Haible  <bruno@clisp.org>
99588                 * config.charset: Update Juan Manuel Guerrero's address.
99590         2005-02-12  Bruno Haible  <bruno@clisp.org>
99592                 * allocsa.h: Add extern "C" for C++.
99594         2005-02-10  Bruno Haible  <bruno@clisp.org>
99596                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99597                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99599         2006-07-22  Bruno Haible  <bruno@clisp.org>
99601                 * gettext.h: Update to GNU gettext-0.15.
99603 2006-07-22  Bruno Haible  <bruno@clisp.org>
99605         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99606         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99607         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99609 2006-07-21  Eric Blake  <ebb9@byu.net>
99611         * modules/stdlib-safer: New file.
99612         * MODULES.html.sh (File stream based Input/Output): Add
99613         stdlib-safer.
99615 2006-07-21  Eric Blake  <ebb9@byu.net>
99617         * lib/stdlib-safer.h: New file from coreutils, required by
99618         stdlib--.h.
99620 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99622         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99624 2006-07-20  Bruno Haible  <bruno@clisp.org>
99626         * gnulib-tool: Recognize new option --assume-autoconf.
99627         (autoconf_minversion): New variable.
99628         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99630 2006-07-20  Bruno Haible  <bruno@clisp.org>
99632         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99634 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99636         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99637         Reindent and repaginate.
99639 2006-07-19  Derek Price  <derek@ximbiot.com>
99641         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99642         Correct grammar.
99644 2006-07-17  Bruno Haible  <bruno@clisp.org>
99646         * modules/list: New file.
99647         * modules/array-list: New file.
99648         * modules/carray-list, modules/carray-list-tests: New files.
99649         * modules/linked-list, modules/linked-list-tests: New files.
99650         * modules/avltree-list, modules/avltree-list-tests: New files.
99651         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99652         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99653         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99654         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99655         * modules/oset: New file.
99656         * modules/array-oset: New file.
99657         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99658         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99659         * tests/test-carray_list.c: New file.
99660         * tests/test-linked_list.c: New file.
99661         * tests/test-avltree_list.c: New file.
99662         * tests/test-rbtree_list.c: New file.
99663         * tests/test-linkedhash_list.c: New file.
99664         * tests/test-avltreehash_list.c: New file.
99665         * tests/test-rbtreehash_list.c: New file.
99666         * tests/test-avltree_oset.c: New file.
99667         * tests/test-rbtree_oset.c: New file.
99668         * MODULES.html.sh (Container data structures): New section.
99670 2006-07-17  Bruno Haible  <bruno@clisp.org>
99672         * m4/gl_list.m4: New file.
99674 2006-07-17  Bruno Haible  <bruno@clisp.org>
99676         * lib/gl_list.h: New file.
99677         * lib/gl_list.c: New file.
99678         * lib/gl_array_list.h: New file.
99679         * lib/gl_array_list.c: New file.
99680         * lib/gl_carray_list.h: New file.
99681         * lib/gl_carray_list.c: New file.
99682         * lib/gl_linked_list.h: New file.
99683         * lib/gl_linked_list.c: New file.
99684         * lib/gl_anylinked_list1.h: New file.
99685         * lib/gl_anylinked_list2.h: New file.
99686         * lib/gl_avltree_list.h: New file.
99687         * lib/gl_avltree_list.c: New file.
99688         * lib/gl_anyavltree_list1.h: New file.
99689         * lib/gl_anyavltree_list2.h: New file.
99690         * lib/gl_rbtree_list.h: New file.
99691         * lib/gl_rbtree_list.c: New file.
99692         * lib/gl_anyrbtree_list1.h: New file.
99693         * lib/gl_anyrbtree_list2.h: New file.
99694         * lib/gl_anytree_list1.h: New file.
99695         * lib/gl_anytree_list2.h: New file.
99696         * lib/gl_linkedhash_list.h: New file.
99697         * lib/gl_linkedhash_list.c: New file.
99698         * lib/gl_anyhash_list1.h: New file.
99699         * lib/gl_anyhash_list2.h: New file.
99700         * lib/gl_avltreehash_list.h: New file.
99701         * lib/gl_avltreehash_list.c: New file.
99702         * lib/gl_rbtreehash_list.h: New file.
99703         * lib/gl_rbtreehash_list.c: New file.
99704         * lib/gl_anytreehash_list1.h: New file.
99705         * lib/gl_anytreehash_list2.h: New file.
99707         * lib/gl_oset.h: New file.
99708         * lib/gl_oset.c: New file.
99709         * lib/gl_array_oset.h: New file.
99710         * lib/gl_array_oset.c: New file.
99711         * lib/gl_avltree_oset.h: New file.
99712         * lib/gl_avltree_oset.c: New file.
99713         * lib/gl_rbtree_oset.h: New file.
99714         * lib/gl_rbtree_oset.c: New file.
99715         * lib/gl_anytree_oset.h: New file.
99717 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99719         * m4/mkancesdirs.m4: New file.
99720         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99721         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99722         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99723         it.
99725 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99727         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99728         * lib/mkancesdirs.h: New files.
99729         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99730         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99731         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99732         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99733         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99734         callers changed.  Revamp internals significantly, by not
99735         attempting to create directories that are temporarily more
99736         permissive than the final results.  Do not attempt to use
99737         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99738         This removes some race conditions, fixes some bugs, and simplifies
99739         things.  Use new dirchownmod function to do owner and mode changes.
99740         * lib/mkdir-p.h: Likewise.
99741         * lib/modechange.c (octal_to_mode): New function.
99742         (struct mode_change): New member mentioned.
99743         (make_node_op_equals): New arg mentioned.  All callers changed.
99744         (mode_compile): Keep track of which mode bits the user has explicitly
99745         mentioned.
99746         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99747         New arg PMODE_BITS, to keep track of which mode bits the user
99748         mentioned; it treats S_ISUID and S_ISGID speciall.
99749         All callers changed.
99750         * lib/modechange.h: Likewise.
99752 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99754         * MODULES.html.sh: Add mkancestors.
99755         * modules/mkancesdirs: New module.
99756         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99757         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99758         The chdir-safer and afs files are now orphans; I'll remove them
99759         unless someone speaks up.
99760         Add lib/dirchownmod.c, lib/dirchownmod.h.
99761         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99762         Add lchown, mkancesdirs.
99763         (Maintainer): Add self.
99765 2006-07-15  Karl Berry  <karl@gnu.org>
99767         * gnulib-tool: help message wording/arrangement.
99769 2006-07-14  Simon Josefsson  <jas@extundo.com>
99771         * doc/gnulib.texi (Libtool and Windows): New section.
99773 2006-07-12  Simon Josefsson  <jas@extundo.com>
99775         * modules/gendocs (License): Fix license, approved by Karl.
99777 2006-07-12  Eric Blake  <ebb9@byu.net>
99779         * MODULES.html.sh: Add gendocs.
99781 2006-07-11  Eric Blake  <ebb9@byu.net>
99783         * modules/fdl: New module, to install doc/fdl.texi.
99784         * MODULES.html.sh: Add new section for documentation modules.
99785         * gnulib-tool: Avoid space-tab.
99786         (--doc-base): New option, to manage files from doc.
99788 2006-07-11  Eric Blake  <ebb9@byu.net>
99790         * m4/absolute-header.m4: Fix comments to match recent change.
99792 2006-07-11  Eric Blake  <ebb9@byu.net>
99794         * gnulib-tool: List --doc-base before --tests-base.
99796 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99798         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99800 2006-07-11  Bruno Haible  <bruno@clisp.org>
99802         * README: Mention where to put documentation.
99804 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99806         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99808 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99811         to stdint.m4.
99813 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99815         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99816         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99817         "no/such/file/stdint.h" when there is no such file, so that
99818         the resulting C code can be parsed by dodgy compilers.
99819         Problems reported by Bob Proulx.
99821 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99823         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99824         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99825         macros into the GNU _D_EXACT_NAMLEN.
99826         * lib/savedir.c:  Likewise.
99827         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99829 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99830         and Paul Eggert  <eggert@cs.ucla.edu>
99832         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99833         * m4/savedir.m4:
99834         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99835         macros into the GNU _D_EXACT_NAMLEN.
99837 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99839         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99840         around the absolute name, to work around a problem with the HP-UX
99841         11.23 native C compiler, reported by Bob Proulx.
99843 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99845         * doc/maintain.texi, make-stds.texi: Sync from
99846         <http://savannah.gnu.org/projects/gnustandards>.
99848 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99850         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99852 2006-07-09  Jim Meyering  <jim@meyering.net>
99854         * m4/glob.m4: Remove a doubled word in a comment.
99856 2006-07-09  Jim Meyering  <jim@meyering.net>
99858         * lib/argp-pv.c: Remove a doubled word in a comment.
99859         * lib/check-version.c (check_version): Likewise.
99860         * lib/javacomp.c (compile_java_class): Likewise.
99862 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99864         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99865         for the benefit of people using Autoconf 2.60.  If you want to
99866         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99867         (or m4/onceonly.m4, if pre-2.57) manually.
99869 2006-07-08  Jim Meyering  <jim@meyering.net>
99871         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99872         comment.
99873         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99874         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99875         comment.
99877 2006-07-08  Jim Meyering  <jim@meyering.net>
99879         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99881 2006-07-07  Simon Josefsson  <jas@extundo.com>
99883         * tests/test-crc.c: Change expected crc value, the test vector
99884         were probably computed using the old broken crc.c?
99886 2006-07-06  Simon Josefsson  <jas@extundo.com>
99888         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99889         now the canonical place for the M4 file).
99891         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99892         from the sys_socket dependency now.
99894         * modules/inet_pton (Files): Ditto.
99896         * modules/inet_ntop (Files): Ditto.
99898 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99900         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99901         not gl_PREREQ_GETUSERSHELL.
99903 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99905         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99906         with only one argument, for Autoconf 2.60.
99907         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99908         expand to nothing, so add a shell command to avoid syntax error.
99909         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99911 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99913         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99915 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99917         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99918         no longer needed.  Check for isblank decl.
99919         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99920         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99921         of existence.
99923 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99925         * lib/getloadavg.c: Use __VMS, not VMS.
99926         * lib/getopt.c: Likewise.
99927         * lib/getpagesize.h: Likewise.
99928         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99929         and probably does not work.
99931 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99933         * lib/.cppi-disable: Add wcwidth.
99934         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99935         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99936         (ISGRAPH): Remove.  All uses changed to isgraph.
99937         (FOLD) [!defined _LIBC]: Remove special case.
99938         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99939         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99940         HAVE_ISBLANK.
99941         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99942         case.
99944 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99946         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99947         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99948         brackets.  Other minor changes to suppress some compiler
99949         warnings.
99951 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99952         and Paul Eggert  <eggert@cs.ucla.edu>
99954         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99955         of invoking obsolescent AC_HEADER_DIRENT macro.
99956         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99957         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99958         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99959         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99960         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99961         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99962         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99963         * m4/readdir.m4: Remove; no longer needed.
99965 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99966         and Paul Eggert  <eggert@cs.ucla.edu>
99968         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99969         Don't worry about this obsolete case any more.
99970         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99971         directories.
99972         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99973         worry about this obsolete case any more.
99974         * lib/fts.c: Likewise.
99975         * lib/getcwd.c: Likewise.
99976         * lib/glob.h: Likewise.
99977         * lib/savedir.c: Likewise.
99979 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99982         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99983         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99984         needed.
99985         All uses removed.
99986         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99987         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99988         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99989         needed.
99990         * m4/getdate.m4 (gl_GETDATE): Likewise.
99991         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99992         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99993         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99994         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99995         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99996         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99997         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99998         needed.
100000 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
100002         * lib/memcasecmp.c: Include <limits.h>.
100003         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
100004         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
100005         Don't assume isdigit succeeds only on '0' through '9'.
100007 2006-07-05  Eric Blake  <ebb9@byu.net>
100009         * modules/getaddrinfo (Depends-on): Add snprintf.
100011 2006-07-05  Eric Blake  <ebb9@byu.net>
100013         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
100014         to avoid 'header present but could not be compiled' on cygwin.
100016 2006-07-05  Eric Blake  <ebb9@byu.net>
100018         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
100019         missing from netdb.h.
100020         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
100022 2006-07-05  Derek R. Price  <derek@ximbiot.com>
100024         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
100025         no longer needed.
100026         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
100027         * m4/getdate.m4 (gl_GETDATE): Likewise.
100028         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
100029         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
100030         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
100031         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
100032         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
100034 2006-07-05  Derek R. Price  <derek@ximbiot.com>
100036         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
100037         All uses of is_space replaced by isspace.
100038         * lib/exit.h: Don't talk about STDC_HEADERS.
100039         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
100040         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
100041         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
100042         replaced by isprint etc.
100043         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
100044         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
100045         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
100046         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
100047         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
100048         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
100050 2006-07-05  Bruno Haible  <bruno@clisp.org>
100052         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
100053         the function exists, before testing against AIX.
100054         Reported by Martin Lambers <marlam@marlam.de>.
100056 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
100058         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
100059         From Mark D. Baushke.
100061 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
100063         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
100064         to the absolute name, not just one, to bypass Sun C 5.8's
100065         "warning: #include of /usr/include/... may be non-portable".
100067 2006-07-04  Eric Blake  <ebb9@byu.net>
100069         * modules/dirname-tests: New test module.
100070         * tests/test-dirname.c: New file, replacing dirname.c
100071         TEST_DIRNAME section that was recently deleted.
100073 2006-07-04  Bruno Haible  <bruno@clisp.org>
100075         Assume ANSI C header files and <ctype.h> functions.
100076         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
100077         (mbsnwidth): Use isprint, iscntrl instead.
100079 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100081         Merge from coreutils.
100082         * MODULES.html.sh: Add xstrtold.
100083         * modules/xstrtold: New file.
100084         * modules/cycle-check (Files): Add lib/same-inode.h.
100085         * modules/dirname (Files): Add m4/double-slash-root.m4.
100086         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
100087         * modules/mkdir-p (Files): Add lib/same-inode.h.
100088         * modules/same (Files): Add lib/same-inode.h.
100090 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100092         * m4/absolute-header.m4: Renamed from full-header-path.m4.
100093         This is to keep the terminology clean; POSIX talks about
100094         "absolute pathnames", not "full pathnames", but the GNU
100095         Coding Standards say to use "path" for something else;
100096         so use "absolute" to keep both sides happy.
100097         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
100098         Set gl_absolute_header, not gl_full_header_path.
100099         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
100100         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
100101         All uses changed.
100103         Merge from coreutils.
100105         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100107         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
100108         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
100109         want to require the building of c-strtod.o.
100110         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
100111         needs -lm directly.
100112         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
100114         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100116         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
100117         --as-needed option if available.  Problem reported by Albert Chin in
100118         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
100119         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
100120         cc merely issues a bunch of annoying warnings for --as-needed
100121         (this problem was reported by Bob Proulx).  Also, try linking with
100122         -lm to detect a bug in binutils 2.16 (this problem was reported
100123         by Ralf Wildenhues).
100125         2006-06-18  Jim Meyering  <jim@meyering.net>
100127         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
100128         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
100129         macro.
100130         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
100131         also check for glibc-2.4's abort-inducing bug.
100133         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
100134         Low-probability clean-up should be to use rmdir to get rid of
100135         the just-created directory, not unlink.
100137         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
100138         configure fail, and request a bug report to inform us about it.
100139         Add a comment that, barring reports to the contrary, in 2007 we'll
100140         assume ftruncate is universally available.
100142         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100144         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
100146         2006-03-12  Jim Meyering  <jim@meyering.net>
100148         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
100149         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
100150         * m4/same.m4 (gl_SAME): Likewise.
100151         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
100153         2006-03-11  Eric Blake  <ebb9@byu.net>
100155         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
100156         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
100157         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
100158         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
100160 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100162         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
100163         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
100164         reported by Mark D. Baushke, one in
100165         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
100167         Merge from coreutils.
100169         * lib/.cppi-disable: Add stdint_.h.
100170         * lib/.cvsignore: Add stdint.h.
100172         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100174         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
100175         both double and long double versions.
100176         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
100177         * lib/xstrtold.c: New file.
100178         * lib/xstrtod.h (xstrtold): New decl.
100180         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100182         * lib/filemode.c (setst): Remove.
100183         (strmode): Rewrite to avoid setst.  This makes the code shorter,
100184         (arguably) clearer, and the generated code is a bit smaller on my
100185         Debian GNU/Linux stable x86 host.
100187         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100189         * lib/filemode.c: Include "filemode.h" first, to test the interface.
100190         Assume that filemode.h includes sys/types.h and sys/stat.h.
100191         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
100192         (ftypelet): Reorder to put common cases first, for efficiency.
100193         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
100194         to do 'M'.
100195         (strmode): Renamed from mode_string, and now stores 12 bytes instead
100196         of 10, for compatibility with FreeBSD.  All callers changed.
100197         (filemodestring): Now stores 12 bytes instead of 10, and sets file
100198         types that can't be deduced solely from st_mode.  First arg is now a
100199         const pointer.
100200         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
100201         (strmode): Renamed from mode_string.
100202         (filemodestring): New decl.
100203         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
100204         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
100205         needed.
100206         (S_ISPORT, S_ISWHT): New macros, if not already defined.
100208         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100210         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
100211         fsusage.h now does that.  Include fsusage.h first, to test interface.
100212         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
100213         at most one method (the old code could have generated decls that
100214         didn't conform to C89, not that this was ever exercised).
100215         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
100217         2006-03-19  Jim Meyering  <jim@meyering.net>
100219         Work even in a chroot where d_ino values for entries in "/"
100220         don't match the stat.st_ino values for the same names.
100221         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
100222         number, iterate through all entries again, using lstat instead.
100223         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
100224         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
100226         * lib/getcwd.c (__getcwd): Clarify a comment.
100227         Use memcpy in place of a call to strcpy.
100229         2006-03-12  Jim Meyering  <jim@meyering.net>
100231         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
100232         matches that of the current directory (which we're about to chdir ".."
100233         out of), then save the dev-ino of the parent, instead.
100235         * lib/same-inode.h (SAME_INODE): New file/macro.
100236         * lib/chdir-safer.c (SAME_INODE): Remove definition.
100237         Include "same-inode.h", instead.
100238         * lib/same.c: Likewise.
100239         * lib/cycle-check.h: Include "same-inode.h".
100240         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
100241         * lib/cycle-check.c (SAME_INODE): Remove definition.
100242         * lib/root-dev-ino.h: Include "same-inode.h".
100244         2006-03-11  Eric Blake  <ebb9@byu.net>
100246         * lib/same.c (same_name): s/base_name/last_component/
100247         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
100248         * lib/filenamecat.c (file_name_concat): Likewise.
100250         2006-03-11  Eric Blake  <ebb9@byu.net>,
100251                     Paul Eggert  <eggert@cs.ucla.edu>
100253         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
100254         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
100255         drive prefix.
100256         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
100257         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
100258         (last_component): New method.
100259         * lib/dirname.c (dir_len): Determine when drive letters need a
100260         subsequent slash.  Preserve // when it is special.
100261         (dir_name): Don't append dot when drive letter is absolute.
100262         [TEST_DIRNAME]: Move into a full-blown gnulib test.
100263         * lib/basename.c (base_name): New semantics - malloc the result.
100264         Preserve // when it is special.  Preserve relative files that look
100265         like drive letters.
100266         (base_len): Preserve // when it is special.
100267         (last_component): New method, similar to old base_name semantics.
100268         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
100269         base_name.  Strip redundant slashes from ///.
100271 2006-07-03  Jim Meyering  <jim@meyering.net>
100273         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
100274         macro is used before the first cycle_check call.
100276 2006-07-03  Eric Blake  <ebb9@byu.net>
100278         * modules/dirname (Depends-on): Add xstrndup.
100280 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100282         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
100283         test cases, so that config.log is a bit easier to follow.
100285 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100287         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
100288         both are 64 bits, since this seems to be the tradition, and this
100289         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
100290         we ever run into a host that prefers long long to long in this
100291         case, we'll need another configure-time test.  Problem reported by
100292         Jim Meyering.
100294 2006-07-02  Eric Blake  <ebb9@byu.net>
100296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
100298 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100300         * modules/inttypes (Depends-on): No longer depends on stdint.
100301         * modules/stdint (Description): Say more about assumptions.
100302         Say that the fast types might differ.  Say macros are used.
100303         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
100304         (Makefile.am): Revise list of substituted symbols to match
100305         new stdint.m4.
100306         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
100307         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
100308         * tests/test-stdint.c (verify_same_types)
100309         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
100310         the code conforms to C99/C89.
100311         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
100312         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
100314 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100316         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
100317         but fix a bug, by requiring at least 64 bits.
100318         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100319         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
100320         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
100321         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
100323         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
100324         changes.  Make 2.59 a prerequisite.  Check and substitute for
100325         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
100326         inttypes.h.  Do not use special include files; just use the
100327         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
100328         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
100329         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100330         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100331         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100332         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100333         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100334         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100335         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100336         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100337         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100338         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100339         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100340         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100341         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100342         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100343         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100344         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100345         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100346         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100347         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100348         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100349         not check for things that C99 does not require, e.g., int8_t.  If
100350         a test isn't needed unless <stdint.h> isn't working, and is
100351         unlikely to be needed for any other reason, then don't do it
100352         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100353         size_t, since we assume C89 freestanding at least.  Do not check
100354         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100355         the right thing even if the types are not defined.  Instead use:
100356         (gl_STDINT_TYPE_PROPERTIES): New macro.
100357         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100358         testing whether <sys/types.h> clashes, as Autoconf does this for
100359         us now.  All uses removed.
100360         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100361         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100362         (gl_CHECK_TYPE_SAME):
100363         Remove; no longer needed.
100364         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100365         exists, since we'll return 0 anyway in that case.
100366         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100368 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100370         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100371         possible collision with system files.
100372         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100373         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100374         WCHAR_MIN and WCHAR_MAX in this case.
100375         (<stddef.h>): Do not include; no longer needed.
100376         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100377         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100378         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100379         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100380         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100381         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100382         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100383         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100384         !defined(__c99))]: Include in this case too, since it's harmless
100385         now.
100386         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100387         dangerous to do so.
100388         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100389         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100390         (_STDINT_MIN, _STDINT_MAX): New macros.
100391         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100392         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100393         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100394         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100395         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100396         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100397         macros, not typedefs; this simplifies things quite a bit.
100398         Use long int for all types narrower than int64_t.
100399         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100400         Define in terms of long long int or int64_t or long int,
100401         not int64_t or int32_t.  This saves some compile-time testing.
100402         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100403         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100404         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100405         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100406         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100407         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100408         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100409         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100410         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100411         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100412         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100413         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100414         undef any previous version and define our own version, for
100415         simplicity and consistency with the new macros for types.
100416         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100417         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100418         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100419         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100420         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100421         @WINT_T_SUFFIX@ to keep things simple here.
100422         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100423         Simplify by assuming typical 8/16/32/64 host, since we're
100424         already doing that elsewhere anyway.
100425         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100426         and assume long long int is 64 bits if available.  This
100427         speeds up 'configure'.
100429 2006-07-01  Eric Blake  <ebb9@byu.net>
100431         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100432         Reported by Andreas Buening.
100434 2006-07-01  Eric Blake  <ebb9@byu.net>
100436         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100438 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100440         * lib/getaddrinfo.c: fixed typo
100442 2006-06-29  Jim Meyering  <jim@meyering.net>
100444         * modules/strftime (Maintainer): Add my name, since with the
100445         FPRINTFTIME changes strftime.c has forked from glibc.
100447 2006-06-29  Eric Blake  <ebb9@byu.net>
100449         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100451 2006-06-29  Eric Blake  <ebb9@byu.net>
100453         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100455 2006-06-29  Eric Blake  <ebb9@byu.net>
100457         * lib/stat_.h: New file.
100459 2006-06-29  Eric Blake  <ebb9@byu.net>
100461         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100462         unused static function.
100464 2006-06-29  Eric Blake  <ebb9@byu.net>
100466         * doc/functions.texi (Function Portability): Document missing lstat
100467         on mingw.
100469 2006-06-29  Eric Blake  <ebb9@byu.net>
100471         * MODULES.html.sh: Add sys_stat.
100472         * modules/sys_stat: New module.
100473         * modules/mkstemp (Depends-on): Add sys_stat.
100475 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100477         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100479 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100481         * m4/c-bs-a.m4: Removed.
100483 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100485         * lib/strftime.c: Assume strftime() exists.
100487 2006-06-29  Derek Price  <derek@ximbiot.com>
100489         * modules/c-bs-a: Removed - \a is C89.
100490         * MODULES.html.sh: Remove c-bs-a.
100492 2006-06-29  Bruno Haible  <bruno@clisp.org>
100494         * modules/wcwidth (License): Change to LGPL.
100496 2006-06-28  Simon Josefsson  <jas@extundo.com>
100498         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100499         on _WIN32.
100501         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100502         getnameinfo.
100504 2006-06-28  Simon Josefsson  <jas@extundo.com>
100506         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100508 2006-06-28  Simon Josefsson  <jas@extundo.com>
100510         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100511         functions there.  It will succeed on Windows XP, but on Windows
100512         2000 and (presumably) earlier, it will fail, and use the internal
100513         re-implementation.
100514         (use_win32_p): New function.
100515         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100516         Support AI_NUMERICSERV to disable getservbyname.
100517         (getnameinfo): New function, only supports
100518         NI_NUMERICHOST|NI_NUMERICSERV for now.
100520         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100521         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100522         getnameinfo.
100524 2006-06-28  Eric Blake  <ebb9@byu.net>
100526         * modules/wcwidth: New file.
100527         * modules/mbchar (Depends-on): Add wcwidth.
100528         * modules/mbswidth (Depends-on): Add wcwidth.
100529         * MODULES.html.sh: Add wcwidth.
100531 2006-06-28  Eric Blake  <ebb9@byu.net>
100533         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100534         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100536 2006-06-28  Eric Blake  <ebb9@byu.net>
100538         * lib/xvasprintf.h: Fix comments.
100540 2006-06-28  Eric Blake  <ebb9@byu.net>
100542         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100543         * lib/mbswidth.c (wcwidth): Move from here...
100544         * lib/wcwidth.h: ...to this new file.
100546 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100548         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100550         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100551         it's obsolete.
100552         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100554 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100556         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100557         Autoconf 2.60 says this stuff was obsolete.
100559 2006-06-28  Bruno Haible  <bruno@clisp.org>
100561         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100563 2006-06-28  Bruno Haible  <bruno@clisp.org>
100565         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100566         gt_TYPE_WCHAR_T.
100568 2006-06-28  Bruno Haible  <bruno@clisp.org>
100570         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100571         declaration for wcwidth.
100572         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100574 2006-06-28  Bruno Haible  <bruno@clisp.org>
100576         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100577         (mkdir): Define using _mkdir.
100579 2006-06-28  Bruno Haible  <bruno@clisp.org>
100581         * lib/getaddrinfo.h: Fix POSIX URL.
100582         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100583         _WIN32.
100584         (use_win32_p): Make static.
100585         (getaddrinfo): Reject service name if it is empty or does not consist
100586         solely of decimal digits, or if its value is > 65535.
100587         (getnameinfo): Remove useless casts.
100589 2006-06-27  Simon Josefsson  <jas@extundo.com>
100591         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100592         Eggert and Martin Lambers.
100594 2006-06-27  Simon Josefsson  <jas@extundo.com>
100596         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100597         Eggert and Martin Lambers.
100599 2006-06-27  Bruno Haible  <bruno@clisp.org>
100601         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100602         result to 0, not to empty.
100603         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100605 2006-06-27  Bruno Haible  <bruno@clisp.org>
100607         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100609 2006-06-26  Simon Josefsson  <jas@extundo.com>
100611         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100612         present.
100614 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100616         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100617         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100618         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100620 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100622         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100624 2006-06-26  Bruno Haible  <bruno@clisp.org>
100626         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100628 2006-06-26  Bruno Haible  <bruno@clisp.org>
100630         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100632 2006-06-26  Bruno Haible  <bruno@clisp.org>
100634         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100635         SGI C compiler in pre-C99 mode.
100636         Suggested by Mark D. Baushke and Larry Jones.
100638 2006-06-26  Bruno Haible  <bruno@clisp.org>
100640         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100641         WCHAR_MAX.
100642         Reported by Mark D. Baushke and Larry Jones.
100644 2006-06-26  Bruno Haible  <bruno@clisp.org>
100646         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100647         in pre-C99 mode.
100648         Suggested by Mark D. Baushke and Larry Jones.
100650 2006-06-23  Simon Josefsson  <jas@extundo.com>
100651             Bruno Haible  <bruno@clisp.org>
100653         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100654         Emit mostlyclean-local rule.
100655         (func_emit_tests_Makefile_am): Likewise.
100656         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100658 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100660         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100662 2006-06-23  Bruno Haible  <bruno@clisp.org>
100664         * tests/test-stdint.c: Update to match ISO C 99 Technical
100665         Corrigendum 1.
100667 2006-06-23  Bruno Haible  <bruno@clisp.org>
100669         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100671 2006-06-23  Bruno Haible  <bruno@clisp.org>
100673         * lib/stdint_.h: Treat IRIX like OpenBSD.
100675 2006-06-23  Bruno Haible  <bruno@clisp.org>
100677         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100678         ISO C 99 Technical Corrigendum 1.
100680 2006-06-22  Simon Josefsson  <jas@extundo.com>
100682         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100683         MinGW.
100685 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100687         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100688         needed.  Some compiler complained about some of them.  Problem reported
100689         by Larry Jones in
100690         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100692 2006-06-21  Simon Josefsson  <jas@extundo.com>
100694         * tests/test-getaddrinfo.c: New file.
100696         * modules/getaddrinfo-tests: New file.
100698         * MODULES.html.sh: Add inet_pton.
100700         * modules/inet_pton: New file.
100702 2006-06-21  Simon Josefsson  <jas@extundo.com>
100704         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100705         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100706         of using the (limited) gnulib implementation on Windows XP.
100708         * m4/inet_pton.m4: New file.
100710 2006-06-21  Simon Josefsson  <jas@extundo.com>
100712         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100713         variable.
100715         * lib/socket_.h: Don't define WINVER.
100717         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100718         slightly modified to work in gnulib.
100720 2006-06-21  Simon Josefsson  <jas@extundo.com>
100722         * doc/gnulib.texi (Windows sockets): Add.
100724 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100726         * lib/read-file.c (fread_file): Start with buffer allocation of
100727         0 bytes rather than 1 byte; this simplifies the code.
100728         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100729         code to free buffer and save/restore errno.
100730         (internal_read_file): Remove unused local.
100732 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100734         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100735         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100736         Problem reported by Denis Excoffier in
100737         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100739 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100741         * modules/sys_socket, modules/socklen: Include sys/types since
100742         FreeBSD 4.x's sys/socket.h needs it.
100744 2006-06-19  Simon Josefsson  <jas@extundo.com>
100746         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100748 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100750         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100752 2006-06-19  Bruno Haible  <bruno@clisp.org>
100754         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100755         and FULL_PATH_INTTYPES_H in angle brackets.
100756         Reported by Mark D. Baushke <mdb@gnu.org>.
100758 2006-06-17  Eric Blake  <ebb9@byu.net>
100760         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100761         errno.
100763 2006-06-17  Bruno Haible  <bruno@clisp.org>
100765         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100766         <sys/inttypes.h>.
100768 2006-06-17  Bruno Haible  <bruno@clisp.org>
100770         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100771         whether errno is declared. Assume <errno.h> declares errno.
100773 2006-06-17  Bruno Haible  <bruno@clisp.org>
100775         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100777 2006-06-17  Bruno Haible  <bruno@clisp.org>
100779         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100780         problem on Solaris 2.5.1.
100782 2006-06-16  Eric Blake  <ebb9@byu.net>
100784         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100785         * lib/unicodeio.c [!defined errno]: Likewise.
100786         * lib/strtol.c [!defined errno]: Likewise.
100787         * lib/strtod.c [!defined errno]: Likewise.
100789 2006-06-15  Eric Blake  <ebb9@byu.net>
100791         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100793 2006-06-15  Eric Blake  <ebb9@byu.net>
100795         * config/srclist.txt (ssize_t.m4): Lose sync.
100797 2006-06-15  Bruno Haible  <bruno@clisp.org>
100799         * modules/stdint (Files): Include m4/full-header-path.m4,
100800         m4/size_max.m4, m4/wchar_t.m4.
100801         (Makefile.am): Many more substitutions.
100802         * modules/stdint-tests: New file.
100803         * tests/test-stdint.c: New file.
100805 2006-06-15  Bruno Haible  <bruno@clisp.org>
100807         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100808         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100809         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100810         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100811         gl_CHECK_TYPE_SAME): New macros.
100813 2006-06-15  Bruno Haible  <bruno@clisp.org>
100815         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100817 2006-06-15  Bruno Haible  <bruno@clisp.org>
100819         * lib/stdint_.h: Rewritten to be fully auto-configured.
100820         Fixes bug on HP-UX/IA64.
100822 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100824         * lib/getdate.y (__attribute__): Don't define if already defined.
100825         Problem reported by Larry Jones.
100826         * lib/utimens.c (__attribute__): Likewise.
100828 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100830         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100831         reported by Andreas Schwab.
100833 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100834             Bruno Haible  <bruno@clisp.org>
100836         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100837         check for the declaration of strnlen and a run test that exposes the
100838         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100839         rpl_strndup.
100841 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100842             Bruno Haible  <bruno@clisp.org>
100844         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100846 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100848         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100849         compile test, for Tru64 4.0D.
100851 2006-05-28  Karl Berry  <karl@gnu.org>
100853         * config/srclist.txt (printf-args.c): lose sync.
100855 2006-05-26  Martin Lambers  <marlam@marlam.de>
100857         * lib/getpass.c: Updates the test for the native W32 API, and adds
100858         missing includes, thus fixing compilation warnings.
100860 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100862         * lib/exclude.c (exclude_fnmatch): New function.
100863         (excluded_file_name): Call exclude_fnmatch.
100864         * lib/exclude.h (excluded_file_name): New prototype
100866 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100868         * lib/tempname.c (small_open, large_open): New macros.
100869         (__open, __open64) [!_LIBC]: Remove.
100870         (__gen_tempname): Use small_open and large_open instead of __open
100871         and __open64.  This fixes a portability bug on HP-UX 11.11i
100872         reported by Simon Wing-Tang in
100873         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100875 2006-05-24  Bruno Haible  <bruno@clisp.org>
100877         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100878         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100879         Reported by Thorsten Maerz <torte@netztorte.de> via
100880         Aaron Stone <aaron@serendipity.cx>.
100882 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100885         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100886         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100887         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100888         not really conditional on the cache.
100889         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100891 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100893         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100894         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100895         (my_usleep): Don't mishandle maximum value.
100897 2006-05-19  Jim Meyering  <jim@meyering.net>
100899         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100901 2006-05-17  Bruno Haible  <bruno@clisp.org>
100903         Cygwin portability.
100904         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100906 2006-05-17  Bruno Haible  <bruno@clisp.org>
100908         * lib/stdint_.h: Fix recognition of Cygwin.
100910 2006-05-15  Bruno Haible  <bruno@clisp.org>
100912         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100913         on libtool patch by Ralf Wildenhues.
100915 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100917         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100918         test for C99 conformance; (bool) 0.5 is an integer constant
100919         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100920         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100922 2006-05-11  Simon Josefsson  <jas@extundo.com>
100924         * m4/xvasprintf.m4: Fix obvious typo.
100926 2006-05-11  Jim Meyering  <jim@meyering.net>
100928         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100929         James Lemley.
100931 2006-05-10  Simon Josefsson  <jas@extundo.com>
100933         * lib/md4.c: Typo fix, update copyright years.
100934         (K1, K2): Don't use L because it turn computations into 64-bit on
100935         64-bit platforms.
100937 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100939         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100940         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100941         unwanted sign propagation, e.g., on hosts with 64-bit int.
100942         There still are some problems with reeelly weird theoretical hosts
100943         (e.g., 33-bit int) but it's not worth worrying about now.
100944         * lib/sha1.c (rol): Likewise.
100945         (K1, K2, K3, K4): Remove unnecessary L suffix.
100947 2006-05-10  Bruno Haible  <bruno@clisp.org>
100949         * lib/des.c: Cast to avoid warnings.
100951 2006-05-09  Bruno Haible  <bruno@clisp.org>
100953         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100954         (Depends-on): Depend also on xsize, stdarg.
100955         (configure.ac): Add gl_XVASPRINTF.
100957 2006-05-09  Bruno Haible  <bruno@clisp.org>
100959         * m4/xvasprintf.m4: New file.
100961 2006-05-09  Bruno Haible  <bruno@clisp.org>
100963         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100964         (EOVERFLOW): Define fallback value.
100965         (xstrcat): New function.
100966         (xvasprintf): Recognize the special case of a string concatenation.
100968 2006-05-08  Eric Blake  <ebb9@byu.net>
100970         * gnulib-tool (func_version): Base copyright year on CVS date.
100971         (func_emit_copyright_notice): New function.
100972         (func_emit_lib_Makefile_am): Use it.
100973         (func_emit_tests_Makefile_am): Likewise.
100974         (func_import): Likewise.
100976 2006-05-08  Bruno Haible  <bruno@clisp.org>
100978         * modules/stdarg: New file.
100979         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100981 2006-05-08  Bruno Haible  <bruno@clisp.org>
100983         * m4/stdarg.m4: New file, from GNU gettext.
100985 2006-05-08  Bruno Haible  <bruno@clisp.org>
100987         * config/srclist.txt (build-aux/config.rpath): different from latest
100988         release.
100990 2006-05-08  Bruno Haible  <bruno@clisp.org>
100992         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100994 2006-05-05  Jim Meyering  <jim@meyering.net>
100996         * m4/warning.m4: New file, derived from bison's file by the same name.
100998 2006-05-03  Bruno Haible  <bruno@clisp.org>
101000         * lib/stdint_.h: Shorter URL.
101001         * lib/inttypes.h: Likewise.
101003 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101005         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
101007 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101009         * lib/verify.h: Document the internals better.  Most of this change
101010         was written by Bruno Haible.
101012 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101014         * doc/verify.texi: New file, partly based on a proposal by
101015         Bruno Haible.
101017 2006-05-02  Bruno Haible  <bruno@clisp.org>
101019         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
101020         test from here...
101021         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
101023 2006-04-29  Bruno Haible  <bruno@clisp.org>
101025         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
101026         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
101028 2006-04-29  Bruno Haible  <bruno@clisp.org>
101030         * gnulib-tool: Make --update option actually work.
101032 2006-04-29  Bruno Haible  <bruno@clisp.org>
101034         * doc/gcd.texi: New file.
101035         * doc/gnulib.texi: Include it.
101037 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
101039         * lib/getdate.y (get_date): When adding relative date, start with the
101040         initial time, not with the result of the first mktime call.
101042 2006-04-25  Bruno Haible  <bruno@clisp.org>
101044         * gnulib-tool (func_import): Output the include directives in three
101045         blocks, sorted separately.
101046         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101048 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
101050         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
101051         to define main with arguments, for C++.  Reported by Eric Blake.
101052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
101053         Prefer 'int main ()' to 'int main (void)', for C++.
101054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
101055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
101056         for 'main', for C99 and C++.
101058 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
101060         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
101061         Don't assume that exit status -1 is valid.
101062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101063         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
101064         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
101065         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
101066         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
101067         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
101068         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
101069         functions can be used without declaring them, or that you can
101070         exit with status -1.
101071         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
101073 2006-04-24  Karl Berry  <karl@gnu.org>
101075         * config/srclist.txt (longdouble.m4): sync lost.
101077 2006-04-24  Eric Blake  <ebb9@byu.net>
101079         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
101081 2006-04-24  Bruno Haible  <bruno@clisp.org>
101083         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
101084         poll() implementation in AIX.
101085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101087 2006-04-24  Bruno Haible  <bruno@clisp.org>
101089         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
101090         assigned exactly once.
101092 2006-04-23  Claudio Fontana  <claudio@gnu.org>
101093             Bruno Haible  <bruno@clisp.org>
101095         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
101096         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
101097         for AM_CPPFLAGS.
101099 2006-04-23  Bruno Haible  <bruno@clisp.org>
101101         * modules/copy-file: Depend on unistd.
101102         * modules/execute: Likewise.
101103         * modules/fatal-signal: Likewise.
101104         * modules/findprog: Likewise.
101105         * modules/mkdtemp : Likewise.
101106         * modules/pipe: Likewise.
101107         * modules/wait-process: Likewise.
101109 2006-04-23  Bruno Haible  <bruno@clisp.org>
101111         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
101112         condition was already detected.
101113         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101115 2006-04-23  Bruno Haible  <bruno@clisp.org>
101117         * lib/copy-file.c: Include <unistd.h> unconditionally.
101118         * lib/execute.c: Likewise.
101119         * lib/fatal-signal.c: Likewise.
101120         * lib/findprog.c: Likewise.
101121         * lib/mkdtemp.c: Likewise.
101122         * lib/pipe.h: Likewise.
101123         * lib/pipe.c: Likewise.
101124         * lib/wait-process.h: Likewise.
101126 2006-04-23  Bruno Haible  <bruno@clisp.org>
101128         * gnulib-tool (func_usage): Fix --import description. Document
101129         --update.
101130         (func_import): Create temporary file in a temporary directory, if
101131         --dry-run is specified. Silence errors from 'grep' when there are no
101132         m4 files in $m4dir.
101133         (func_create_testdir): Silence errors from 'grep' when there are no
101134         m4 files in $m4dir.
101135         Reported by Karl Berry <karl@freefriends.org>.
101137 2006-04-20  Bruno Haible  <bruno@clisp.org>
101139         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
101140         one argument, so that the code will be portable to Autoconf 2.60.
101141         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
101142         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
101143         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
101145 2006-04-19  Derek Price  <derek@ximbiot.com>
101146             Eric Blake  <ebb9@byu.net>
101148         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
101149         rather than "/full/path.h".  Update comment to match.  Shorten &
101150         generalize m4_translit call via AS_TR_CPP.
101152 2006-04-19  Derek Price  <derek@ximbiot.com>
101153             Eric Blake  <ebb9@byu.net>
101155         * lib/inttypes.h: Correct grammar in comment.
101157 2006-04-18  Derek Price  <derek@ximbiot.com>
101158             Paul Eggert  <eggert@cs.ucla.edu>
101160         * modules/inttypes: New file.
101161         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
101163 2006-04-18  Derek Price  <derek@ximbiot.com>
101164             Paul Eggert  <eggert@cs.ucla.edu>
101166         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
101167         New files.
101169 2006-04-18  Derek Price  <derek@ximbiot.com>
101170             Paul Eggert  <eggert@cs.ucla.edu>
101172         * lib/inttypes.h: New file.
101173         * lib/strtoimax.c: Assume <inttypes.h>.
101175 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
101177         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
101178         isn't mounted.  Problem reported by Kir Kolyshkin.
101180 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101182         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
101183         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
101184         Derek R. Price.
101185         * lib/regex.h (RE_DUP_MAX): Update comment to match current
101186         implementation.
101188 2006-04-12  Eric Blake  <ebb9@byu.net>
101190         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
101191         is now done automatically by the corresponding Autoconf macro.
101193 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
101195         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
101196         time_r.h.
101198 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101200         Merge regex changes from libc, removing some of our
101201         POSIX-conformance changes that were rejected and redoing them in a
101202         less-intrusive way.
101204         * lib/regcomp.c (re_compile_internal, init_dfa):
101205         Length arg is now size_t, not Idx.  All uses changed.
101206         (peek_token): Forward decl now says internal_function.
101207         (__re_error_msgid, __re_error_msgid_idx):
101208         Now static rather than extern with attribute_hidden.
101209         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
101210         For some reason libc prefers K&R style defns for external functions.
101211         (regerror) [!defined _LIBC]: Likewise.
101212         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
101213         (seek_collating_symbol_entry, lookup_collation_sequence_value):
101214         (build_range_exp, build_collating_symbol):
101215         Use K&R-style defn.
101216         (re_compile_fastmap): Use '\0' to memset, not 0.
101217         (utf8_sb_map): Make the calculations more obvious.
101218         (init_dfa, parse_bracket_exp, build_charclass_op):
101219         Call calloc and cast result, as glibc does.
101220         (init_word_char, fetch_token, peek_token, peek_token_bracket):
101221         (build_range_exp, build_collating_symbol):
101222         Now internal functions.
101224         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
101226         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
101227         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
101228         Don't depend on VMS; depend on __VMS instead, for POSIX
101229         namespace cleanness.
101230         (regoff_t): Define to ssize_t, not long int.
101232         Remove the REG_ macros named below.  Instead, make the old names
101233         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
101234         __USE_GNU_REGEX.
101235         (REG_BACKSLASH_ESCAPE_IN_LISTS):
101236         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
101237         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
101238         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
101239         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
101240         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
101241         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
101242         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
101243         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
101244         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
101245         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
101246         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
101247         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
101248         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
101249         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
101250         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
101251         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
101252         (REG_NREGS):
101253         Remove.  All uses replaced by the old RE_* names.
101254         (RE_BACKSLASH_ESCAPE_IN_LISTS):
101255         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
101256         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
101257         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
101258         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
101259         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
101260         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
101261         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
101262         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
101263         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
101264         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
101265         Don't bother having these macros be independent of each others'
101266         values, since they no longer exist in the POSIX name space.
101268         Rename the following member names back to their old names,
101269         unless !__USE_GNU_REGEX.  All uses changed back.
101270         (buffer): Renamed from re_buffer.
101271         (allocated): Renamed from re_allocated.
101272         (used): Renamed from re_used.
101273         (syntax): Renamed from re_syntax.
101274         (fastmap): Renamed from re_fastmap.
101275         (translate): Renamed from re_translate.
101276         (can_be_null): Renamed from re_can_be_null.
101277         (regs_allocated): Renamed from re_regs_allocated.
101278         (fastmap_accurate): Renamed from re_fastmap_accurate.
101279         (no_sub): Renamed from re_no_sub.
101280         (not_bol): Renamed from re_not_bol.
101281         (not_eol): Renamed from re_not_eol.
101282         (newline_anchor): Renamed from re_newline_anchor.
101283         (num_regs): Renamed from rm_num_regs.
101284         (start): Renamed from rm_start.
101285         (end): Renamed from rm_end.
101287         (free_state): Move up a bit.
101289         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
101290         #define to be empty.
101291         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
101292         when that is what is intended.
101293         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
101294         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
101295         (MAX): New macro.
101296         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
101297         All uses changed back to re_malloc, etc.  It's now the caller's
101298         responsibility to check for overflow; all callers changed.
101299         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
101300         (re_x2nrealloc): Remove.
101301         (free_state): Remove decl.
101303         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
101304         (re_set_registers, re_exec):
101305         Use K&R-style defn.
101307         2006-01-31  Roland McGrath  <roland@redhat.com>
101309         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
101310         Reported by Mike Frysinger <vapier@gentoo.org>.
101312         2006-01-15  Andreas Jaeger  <aj@suse.de>
101314         [BZ #1950]
101315         * lib/regex_internal.c (re_string_reconstruct): Adjust for
101316         build_wcs_upper_buffer change.
101317         (build_wcs_upper_buffer): Change return type.
101319         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
101321         * lib/regex_internal.h: Include <stdint.h> if available.
101323         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
101325         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
101327         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101329         * lib/regcomp.c: Adjust for changed secondary hash function.
101331         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101333         * lib/regex.h: Pretty printing.
101334         Clean up namespace a bit.
101336         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101338         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101339         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101341         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101342                     Ulrich Drepper  <drepper@redhat.com>
101344         [BZ #1302]
101345         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101346         changed.
101347         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101349         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101351         [BZ #281]
101352         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101353         * lib/regcomp.c: Remove unnecessary uses of
101354         unsigned RE_TRANSLATE_TYPE.
101355         * lib/regex_internal.h: Likewise.
101356         * lib/regex_internal.c: Likewise.
101357         * lib/regexec.c: Likewise.
101358         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101360         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101362         * lib/regexec.c (find_recover_state): Remove unnecessary
101363         initialization.
101364         (transit_state_bkref): Make DFA a const pointer.
101365         (get_subexp): Likewise.
101366         (check_arrival): Likewise.
101367         (update_cur_sifted_state): Likewise.
101368         (re_search_internal): Likewise.
101369         (prune_impossible_nodes): Likewise.
101370         (acquire_init_state_context): Likewise.
101371         (proceed_next_node): Likewise.
101372         (set_regs): Likewise.
101373         (free_fail_stack_return): Likewise.
101374         (check_arrival_expand_ecl): Mark DFA parameter as const.
101375         (check_arrival_expand_ecl_sub): Likewise.
101376         (check_subexp_limits): Likewise.
101377         (sub_epsilon_src_nodes):  Likewise.
101378         (add_epsilon_src_nodes):  Likewise.
101379         (merge_state_array): Likewise.
101380         (update_regs): Likewise.
101381         (build_trtable): Likewise.
101382         (sift_states_backward): Mark MCTX parameter as const.
101383         (build_sifted_states): Likewise.
101384         (update_cur_sifted_state): Likewise.
101385         (sift_states_mkref): Likewise.
101386         (check_arrival_expand_ecl): Mark eclosure as const.
101387         (check_dst_limits_calc_pos_1): Likewise.
101388         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101389         pointer.
101391         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101393         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101394         (transit_state_sb): Likewise.
101395         (transit_state_mb): Likewise.
101396         (sift_states_iter_mb): Likewise.
101397         (check_arrival_add_next_nodes): Likewise.
101398         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101399         [_LIBC] (re_search_2_stub): Use mempcpy.
101401         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101402         mbrtowc for very simple UTF-8 case.
101404         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101405         a pointer-to-const.
101406         (re_acquire_state_context): Likewise.
101407         * lib/regex_internal.h: Adjust prototypes.
101409         * lib/regex.c: Prevent using C++ compilers.
101411         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101412         (re_acquire_state_context): Likewise.
101414 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101416         * modules/regex (Depends-on): Add ssize_t.
101418 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101420         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101421         translation table.
101423 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101425         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101427 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101428             Bruno Haible  <bruno@clisp.org>
101430         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101431         <sys/types.h> and <inttypes.h>.
101433 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101435         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101436         `__error_t_defined', so argp.h will not typedef the former.
101438 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101440         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101441         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101442         glibc names.  Even if glibc is changed to conform to POSIX, the
101443         traditional names will be available anyway, since regex depends on
101444         the extensions module.  Also, fix a longstanding typo in the
101445         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101446         reported by Emanuele Giaquinta.  Also, change sense of cached
101447         variable, so that the message makes sense.
101449 2006-03-24  Simon Josefsson  <jas@extundo.com>
101451         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101452         including some doc fixes.
101453         (base64_encode_alloc): Fix +1 bug on allocation failures.
101455 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101457         * lib/base64.c (base64_encode): Do not read past end of array with
101458         unsanitized input on systems with CHAR_BIT > 8.
101460 2006-03-24  Eric Blake  <ebb9@byu.net>
101462         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101464 2006-03-22  Karl Berry  <karl@gnu.org>
101466         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101467         * config/srclistvars.sh (COREUTILS): new var.
101469 2006-03-17  Jim Meyering  <jim@meyering.net>
101471         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101472         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101474 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101476         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101477         no longer needs it.  Instead, check that regoff_t is as least
101478         as wide as ptrdiff_t.
101480         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101481         so that our regex.h stays compatible with the installed regex.
101482         This is helpful for installers who configure --without-included-regex.
101483         Problem reported by Emanuele Giaquinta.
101485 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101487         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101488         Typedef to long int, not to off_, as POSIX will likely change
101489         in that direction.
101491 2006-03-15  Eric Blake  <ebb9@byu.net>
101493         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101495 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101497         * lib/argp-help.c (validate_uparams): Fix typo
101498         * lib/argp-parse.c (argp_default_options): Consistently begin help
101499         messages with a lowercase letter.
101501 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101503         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101504         overrun buffers and shouldn't be used (much as gets shouldn't be
101505         used).
101506         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101508 2006-03-08  Simon Josefsson  <jas@extundo.com>
101510         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101511         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101513 2006-03-08  Simon Josefsson  <jas@extundo.com>
101515         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101516         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101518 2006-03-08  Simon Josefsson  <jas@extundo.com>
101520         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101521         signal that configure disabled the device.
101523 2006-03-08  Simon Josefsson  <jas@extundo.com>
101525         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101526         languages.
101528 2006-03-07  Simon Josefsson  <jas@extundo.com>
101530         * modules/getopt (Depends-on): Add unistd.
101532         * modules/unistd: New file.
101534 2006-03-07  Simon Josefsson  <jas@extundo.com>
101536         * modules/gc-random: New file.
101538 2006-03-07  Simon Josefsson  <jas@extundo.com>
101540         * m4/unistd_h.m4: New file.
101542 2006-03-07  Simon Josefsson  <jas@extundo.com>
101544         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101545         test to be side-effect free by storing the result in the cache
101546         variable gl_cv_lib_readline, and moving the assignment of
101547         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101548         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101550 2006-03-07  Simon Josefsson  <jas@extundo.com>
101552         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101553         error on missing devices (the functions will return an error).
101555         * m4/gc.m4: Move random stuff to gc-random.m4
101557 2006-03-07  Simon Josefsson  <jas@extundo.com>
101559         * lib/unistd_.h: New file.
101561 2006-03-07  Simon Josefsson  <jas@extundo.com>
101563         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101565 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101567         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101568         Problem reported by Juan Manuel Guerrero.
101570 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101572         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101573         the unistd module.
101574         * lib/getlogin_r.c: Likewise.
101575         * lib/getlogin_r.h: Likewise.
101576         * lib/glob.c: Likewise.
101577         * lib/pagealign_alloc.c: Likewise.
101578         * lib/unistd_.h: Remove; no longer needed.
101580 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101582         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101583         Add unistd.
101584         * modules/c-stack (Depends-on): Add unistd.
101585         * modules/getlogin_r: Likewise.
101586         * modules/glob: Likewise.
101587         * modules/pagealign_alloc: Likewise.
101588         * modules/unistd (Files): Remove lib/unistd_.h.
101589         (EXTRA_DIST): Remove.
101590         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101591         need unistd_.h.
101592         (MOSTLYCLEANFILES): Remove unistd.h-t.
101594 2006-03-03  Simon Josefsson  <jas@extundo.com>
101596         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101598 2006-03-03  Simon Josefsson  <jas@extundo.com>
101600         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101601         libidn and bison.
101603 2006-03-03  Simon Josefsson  <jas@extundo.com>
101605         * build-aux/maint.mk: Add indent target.
101607 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101609         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101610         our replacement poll.h in any case, to avoid a differing
101611         declaration from a system header.  Seen on AIX.
101613 2006-03-01  Simon Josefsson  <jas@extundo.com>
101615         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101616         <kasal@ucw.cz>.
101618 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101620         * modules/gettime (Depends-on): Add extensions module.
101621         * modules/nanosleep (Depends-on): Likewise.
101622         * modules/settime (Depends-on): Likewise.
101624 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101626         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101627         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101628         pedantically.
101629         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101630         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101632         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101633         not "==".  Reported by Ralf Wildenhues.
101635 2006-03-01  Karl Berry  <karl@gnu.org>
101637         * doc/Copyright/request-*: new files, synced from gnuorg.
101639 2006-03-01  Karl Berry  <karl@gnu.org>
101641         * config/srclist.txt (Copyright/*): new entries.
101643 2006-02-28  Simon Josefsson  <jas@extundo.com>
101645         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101647 2006-02-27  Simon Josefsson  <jas@extundo.com>
101649         * lib/base64.h: Indent #define's.  From Jim Meyering
101650         <jim@meyering.net>.
101652 2006-02-27  Jim Meyering  <jim@meyering.net>
101654         Revert the change of 2006-02-24, so these files can continue
101655         to be sync'd from gettext.
101656         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101657         of `config.h'.
101659 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101661         * modules/intprops: New file.
101662         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101663         Add intprops.
101664         * modules/getloadavg (Files): Remove lib/intprops.h.
101665         (Depends-on): Add intprops.
101666         * modules/human: Likewise.
101667         * modules/inttostr: Likewise.
101668         * modules/openat: Likewise.
101669         * modules/sig2str: Likewise.
101670         * modules/userspec: Likewise.
101671         * modules/utimecmp: Likewise.
101672         * modules/xnanosleep: Likewise.
101673         * modules/xstrtol: Likewise.
101675 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101677         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101678         * modules/lock-tests (TESTS): Use $(EXEEXT).
101679         * modules/tls-tests: Likewise.
101680         * modules/argp-tests: Likewise.
101681         (check_PROGRAMS): New var, replacing...
101682         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101684 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101686         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101687         `config.h'.
101689 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101691         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101693 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101695         Sync from coreutils.
101696         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101697         gl_CHDIR_SAFER.
101699 2006-02-22  Jim Meyering  <jim@meyering.net>
101701         Sync from coreutils.
101702         * m4/chdir-safer.m4: New file.
101704 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101706         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101707         AT_FDCWD exceeds INT_MAX.
101708         * lib/openat.h (AT_FDCWD): Likewise.
101710 2006-02-17  Eric Blake  <address@hidden>
101712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101714 2006-02-16  Simon Josefsson  <jas@extundo.com>
101716         * modules/getaddrinfo (Depends-on): Add sys_socket.
101718 2006-02-15  Simon Josefsson  <jas@extundo.com>
101720         * build-aux/maint.mk: Add dsyntax-check rule.
101722 2006-02-15  Eric Blake  <ebb9@byu.net>
101724         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101725         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101726         'present but cannot compile' warnings on cygwin.
101727         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101728         use ws2tcpip.h if sys/socket.h works.
101729         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101730         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101732 2006-02-14  Simon Josefsson  <jas@extundo.com>
101734         * modules/maintainer-makefile (Files): Rename.
101736         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101737         and (the local) Makefile.cfg to maint-cfg.mk.
101739         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101740         to the latter.
101742         * modules/maintainer-makefile: New module.
101744         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101745         severaly stripped to make it possible to build it up from scratch
101746         with reliable tests.
101748         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101749         fixes to permit overriding the default actions when configure and
101750         makefile are not available.
101752 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101754         Sync from coreutils.
101755         * modules/lstat (Depends-on): Don't depend on xalloc.
101756         (License): Change from GPL to LGPL, since this is now simply a
101757         replacement for a libc function.
101759 2006-02-14  Jim Meyering  <jim@meyering.net>
101761         Sync from coreutils.
101763         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101764         failure on deficient systems, and simplify gnulib lgpl dependencies.
101765         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101766         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101768         * lib/xalloc-die.c: Remove unused definition of N_.
101770 2006-02-14  Jim Meyering  <jim@meyering.net>
101772         Sync from coreutils.
101773         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101774         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101775         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101776         double-quote uses of that variable, to accommodate the rare case in
101777         which getmntent is available in none of the libraries checked.  This
101778         happens at least on FreeBSD 5.0.
101780 2006-02-13  Simon Josefsson  <jas@extundo.com>
101782         * gnulib-tool (Usage): Fix --import, from
101783         karl@freefriends.org (Karl Berry).
101785 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101787         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101789 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101791         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101792         "autoupdate" on 2005-12-12.
101794 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101796         * modules/closeout (Depends-on): Remove atexit.
101798 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101800         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101801         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101803 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101805         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101806         __EXTENSIONS__ if this causes compilation to fail.  Problem
101807         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101808         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101810 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101812         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101813         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101814         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101815         All uses changed.
101817 2006-01-26  Simon Josefsson  <jas@extundo.com>
101819         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101820         prototype is visible on mingw32.
101822         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101823         for mingw32.
101825         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101826         mingw32).
101828 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101830         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101831         attempt to open for write; this always fails, at least on POSIX
101832         hosts.  This reinstates the 2006-01-09 change, which was
101833         inadvertently removed.
101835 2006-01-26  Bruno Haible  <bruno@clisp.org>
101837         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101838         Reported by Paul Eggert.
101840 2006-01-26  Bruno Haible  <bruno@clisp.org>
101841             Paul Eggert  <eggert@cs.ucla.edu>
101843         * lib/stdbool_.h (_Bool)
101844         [(! (defined __cplusplus || defined __BEOS__)
101845           && !defined __GNUC__
101846           && !(defined __HP_cc || defined __xlc__
101847                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101848                || defined __sgi))]:
101849         #define to signed char in these cases too; this simplifies
101850         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101851         etc., separately) and makes it more conservative.
101853 2006-01-25  Simon Josefsson  <jas@extundo.com>
101855         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101856         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101857         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101859 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101861         * lib/argp-namefrob.h: Bugfix. Remove stray #
101863 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101865         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101866         so that we test the test.
101867         Check for yet another HP-UX cc bug involving *bool |= bool.
101869 2006-01-25  Karl Berry  <karl@gnu.org>
101871         * config/srclist.txt (vasnprintf.c): sync lost.
101873 2006-01-25  Jim Meyering  <jim@meyering.net>
101875         Sync from the stable (b5) branch of coreutils:
101877         * lib/fts.c (fts_children): Don't let close() clobber errno from
101878         failed fchdir().
101880         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101881         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101882         a dangling symlink.  That can also happen at least for ELOOP.
101883         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101884         FYI, this bug predates the inclusion of fts.c in coreutils.
101886         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101887         in their own block, so pre-c99 compilers don't object.
101889         Avoid the double-free (first in fts_read, second in fts_close) that
101890         would occur when an `active' directory is made inaccessible (e.g.,
101891         via chmod a-x) during a traversal.
101892         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101893         before returning.  Reproduce this failure by
101894         mkdir -p a/b; cd a; chmod a-x . b
101895         Reported by Stavros Passas.
101897 2006-01-25  Jim Meyering  <jim@meyering.net>
101899         * lib/fileblocks.c: Remove more useless parentheses.
101900         * lib/readutmp.h: Likewise.
101902 2006-01-25  Bruno Haible  <bruno@clisp.org>
101904         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101905         warnings.
101906         Reported by Paul Eggert.
101908 2006-01-25  Bruno Haible  <bruno@clisp.org>
101910         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101911         rid of a trap command. For Solaris sh.
101912         Reported by Mark D. Baushke <mdb@gnu.org>.
101914 2006-01-24  Simon Josefsson  <jas@extundo.com>
101916         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101917         Bruno.
101919 2006-01-24  Karl Berry  <karl@gnu.org>
101921         * config/srclist.txt (argp-namefrob.h): sync lost.
101923 2006-01-24  Jim Meyering  <jim@meyering.net>
101925         * modules/openat (Files): Add lib/intprops.h.
101926         From Mark D. Baushke.
101928 2006-01-24  Jim Meyering  <jim@meyering.net>
101930         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101931         Reported by Mark D. Baushke.
101933 2006-01-24  Jim Meyering  <jim@meyering.net>
101935         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101937 2006-01-24  Bruno Haible  <bruno@clisp.org>
101939         * modules/strnlen (Maintainer): Change from glibc to all.
101941 2006-01-24  Bruno Haible  <bruno@clisp.org>
101943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101944         Patch by Paul Eggert.
101946 2006-01-24  Bruno Haible  <bruno@clisp.org>
101948         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101949         already has it.
101950         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101951         2005-11-26.
101953         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101954         'signed char' to avoid problems with the built-in _Bool type.
101955         Reported by Paul Eggert on 2005-11-26.
101957 2006-01-24  Bruno Haible  <bruno@clisp.org>
101959         * gnulib-tool (func_import): Avoid constructing complicated sed
101960         expressions inside backquote.
101961         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101963 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101965         These changes imported from libc.
101966         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101967         test and two separate function calls.
101968         * lib/strndup.c (__strndup): Add libc_hidden_def.
101970 2006-01-23  Simon Josefsson  <jas@extundo.com>
101972         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101973         Remove the test_*_SOURCES variable: automake infers it by default.
101974         * modules/tls-tests: Likewise.
101976 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101978         Work around porting bugs reported by Dieter in
101979         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101980         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101981         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101982         Include "getopt.h" first, to check interface.
101983         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101984         !HAVE_DECL_GETENV.
101985         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101986         (__strndup): Revert to K&R-style function dfns, the glibc style.
101987         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101988         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101989         Include strnlen.h first, to get prototype properly.
101990         (strnlen): Renamed from __strnlen.
101991         Remove weak alias.
101993 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101995         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101997 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101999         * config/srclist.txt: Adjust to reflect glibc reorganization.
102000         This affects only comments.
102002 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102004          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
102005          Reported by Bruce Korb <bkorb@gnu.org>.
102007 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
102009         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
102010         to pacify gcc -Wswitch-default.
102012 2006-01-22  Bruno Haible  <bruno@clisp.org>
102014         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
102015         temporary buffer for sprintf, take into account the precision also
102016         for 'd', 'i', 'u', 'o', 'x', 'X'.
102018 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
102020         * modules/argp-tests: New module
102021         * tests/test-argp.c: New file
102022         * tests/test-argp-2.sh: New file
102024 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
102026         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
102027         (__argp_base_name): Removed
102028         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
102029         typo.
102030         (__argp_base_name): Provide macro definition or extern declaration
102031         depending on the configuration
102033 2006-01-20  Simon Josefsson  <jas@extundo.com>
102035         * modules/inet_ntop (Depends-on): Depend on sys_socket.
102037 2006-01-20  Simon Josefsson  <jas@extundo.com>
102039         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
102041 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102043         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
102044         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
102045         Suggested by Bruno Haible.
102047 2006-01-20  Karl Berry  <karl@gnu.org>
102049         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
102050         until changes propagate, I guess.
102052 2006-01-19  Simon Josefsson  <jas@extundo.com>
102054         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
102056 2006-01-19  Simon Josefsson  <jas@extundo.com>
102058         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
102060 2006-01-19  Simon Josefsson  <jas@extundo.com>
102062         * gnulib-tool: Set check_PROGRAMS.
102064         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
102065         modules/des-tests, modules/gc-arcfour-tests,
102066         modules/gc-arctwo-tests, modules/gc-des-tests,
102067         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
102068         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
102069         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
102070         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
102071         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
102072         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
102073         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
102074         test_*_SOURCES.
102076 2006-01-18  Simon Josefsson  <jas@extundo.com>
102078         * modules/socklen (Depends-on): Depend on sys_socket.
102080 2006-01-18  Simon Josefsson  <jas@extundo.com>
102082         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
102083         modules/des-tests, modules/gc-arcfour-tests,
102084         modules/gc-arctwo-tests, modules/gc-des-tests,
102085         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
102086         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
102087         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
102088         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
102089         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
102090         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
102091         $(EXEEXT) to automake TESTS variable, for mingw32.
102093 2006-01-17  Simon Josefsson  <jas@extundo.com>
102095         * modules/socklen (Include): Need sys/socket.h.
102097 2006-01-17  Bruno Haible  <bruno@clisp.org>
102099         * modules/ssize_t (Include): Add <sys/types.h>.
102101 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
102103         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
102104         it's not portable and it doesn't work with cross-compiles.
102105         Problem reported by Bruno Haible.  Fix missing-$ typo in
102106         'test "gl_cv_ignore_unused_libraries" ...' that prevented
102107         -zignore from being used with Sun's C compiler.
102109 2006-01-12  Simon Josefsson  <jas@extundo.com>
102111         * lib/base64.c: Fix warning, reported by Bruno Haible
102112         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
102114 2006-01-12  Bruno Haible  <bruno@clisp.org>
102116         * modules/ldd: New file.
102117         * build-aux/ldd.sh.in: New file.
102118         * MODULES.html.sh (Support for building libraries and executables): Add
102119         ldd.
102121 2006-01-12  Bruno Haible  <bruno@clisp.org>
102123         * m4/ldd.m4: New file.
102125 2006-01-12  Bruno Haible  <bruno@clisp.org>
102127         * gnulib-tool (func_import, func_create_testdir): Don't go into an
102128         endless loop while replacing $auxdir with build-aux.
102130 2006-01-11  Simon Josefsson  <jas@extundo.com>
102132         * lib/stdint_.h (SIZE_MAX): Add missing (.
102134 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
102136         Sync from coreutils.
102137         * lib/md5.c: Fix commentary typos.
102138         (alignof, UNALIGNED_P): No need for a GCC-specific version.
102139         * lib/md5.h (__attribute__): Remove; unused.
102140         * lib/sha1.c: Fix commentary to match md5 better.
102141         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
102142         so that we don't need to worry about alignment.  All uses changed.
102143         This merges the 2005-10-28 md5 change into sha1.
102145 2006-01-11  Jim Meyering  <jim@meyering.net>
102147         Sync from coreutils.
102148         * lib/md5.c (OP): Fix spacing.
102150 2006-01-11  Bruno Haible  <bruno@clisp.org>
102152         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102153         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
102154         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
102156 2006-01-11  Bruno Haible  <bruno@clisp.org>
102158         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102159         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
102160         the "early" section as well.
102162 2006-01-11  Bruno Haible  <bruno@clisp.org>
102164         Avoid "ar: no archive members specified" error on MacOS X.
102165         * gnulib-tool (func_modules_add_dummy): New function.
102166         (func_import, func_create_testdir): Invoke it.
102168 2006-01-11  Bruno Haible  <bruno@clisp.org>
102170         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
102171         with $auxdir in AC_CONFIG_FILES statements.
102173 2006-01-11  Bruno Haible  <bruno@clisp.org>
102175         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102176         Initialize also noinst_HEADERS to empty.
102178 2006-01-11  Bruno Haible  <bruno@clisp.org>
102180         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
102181         variables.
102182         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
102183         autoreconf.
102185 2006-01-11  Bruno Haible  <bruno@clisp.org>
102187         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
102188         overridable by the user.
102189         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102191 2006-01-10  Simon Josefsson  <jas@extundo.com>
102193         * modules/sys_socket: New file.
102195 2006-01-10  Simon Josefsson  <jas@extundo.com>
102197         * m4/sys_socket_h.m4: New file.
102199 2006-01-10  Simon Josefsson  <jas@extundo.com>
102201         * lib/socket_.h: New file.
102203 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102205         * modules/readutmp (Maintainer): Add myself.
102207 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102209         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
102210         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
102211         People who are still concerned with buggy memcmp implementations
102212         can invoke gl_FUNC_MEMCMP themselves.
102214 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102216         * lib/regex_internal.h (BITSET_WORD_BITS):
102217         Work around a bug in 64-bit PGC (before version 6.1-2), where the
102218         preprocessor mishandles large unsigned values as if they were signed.
102219         Problem reported by Claudio Fontana in
102220         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
102222 2006-01-10  Jim Meyering  <jim@meyering.net>
102224         Avoid the double-free (first in fts_read, second in fts_close) that
102225         would occur when an `active' directory is made inaccessible (e.g.,
102226         via chmod a-x) during a traversal.
102227         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
102228         before returning.  Reproduce this failure by
102229         mkdir -p a/b; cd a; chmod a-x . b
102230         Reported by Stavros Passas.
102232         Sync from coreutils.
102233         * lib/sha1.c: Tweak grammar in a comment.
102235 2006-01-10  Jim Meyering  <jim@meyering.net>
102237         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
102238         Patch by Joerg Sonnenberger.
102240 2006-01-10  Bruno Haible  <bruno@clisp.org>
102242         * modules/readutmp: Depend on module free.
102243         * modules/strtok_r: Depend on module restrict.
102245 2006-01-10  Bruno Haible  <bruno@clisp.org>
102247         * modules/gettext (configure.ac): Add an invocation of
102248         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
102250 2006-01-10  Bruno Haible  <bruno@clisp.org>
102252         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
102253         Reported by Werner Lemberg <wl@gnu.org>.
102255 2006-01-10  Bruno Haible  <bruno@clisp.org>
102257         * lib/localcharset.c: Update from GNU gettext.
102259 2006-01-10  Bruno Haible  <bruno@clisp.org>
102261         * lib/argp.h (__const): Remove macro. Use const instead.
102262         * lib/argp-fmtstream.h (__const): Likewise.
102263         * lib/glob_.h (__const): Remove macro.
102264         * lib/glob-libc.h: Use const instead of __const.
102266 2006-01-10  Bruno Haible  <bruno@clisp.org>
102268         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
102269         variable.
102270         Needed to avoid an automake error regarding the 'gettext' module.
102272 2006-01-09  Simon Josefsson  <jas@extundo.com>
102274         * modules/inet_ntop (Depends-on): Add restrict.
102276 2006-01-09  Simon Josefsson  <jas@extundo.com>
102278         * modules/gc-rijndael-tests (License): Put under LGPL.
102280         * modules/gc-des-tests (License): Likewise.
102282         * modules/gc-arcfour-tests (License): Likewise.
102284         * modules/gc-arctwo-tests (License): Likewise.
102286         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
102288         * modules/gc-hmac-sha1-tests (Files): Likewise.
102290         * modules/gc-hmac-md5-tests (License): Likewise.
102292         * modules/gc-sha1-tests (License): Likewise.
102294         * modules/gc-md5-tests (License): Likewise.
102296         * modules/gc-md4-tests (License): Likewise.
102298         * modules/gc-md2-tests (License): Likewise.
102300         * modules/gc-tests (License): Likewise.
102302         * modules/des-tests (License): Likewise.
102304         * modules/md4-tests (License): Likewise.
102306         * modules/md2-tests (License): Likewise.
102308 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102310         Sync from coreutils:
102312         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
102313         * modules/lib-ignore: New file.
102314         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
102315         chdir-safer.m4, lchmod.m4.
102316         * modules/openat: Add mkdirat.c, openat-priv.h.
102318 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102320         Sync from coreutils.
102321         * m4/lib-ignore.m4: New file.
102322         * m4/lchmod.m4: New file.
102324 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102326         Sync from coreutils.
102327         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
102328         for write access: POSIX says that must fail.
102329         * lib/fts.c (diropen): Likewise.
102330         * lib/save-cwd.c (save_cwd): Likewise.
102331         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102332         well, for minor improvements on hosts that lack O_DIRECTORY.
102333         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102334         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102335         Fall back on chown if open failed with EACCES.
102337         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102338         Report an error at compile-time if only a 1-second nominal clock
102339         resolution is found.
102341         * lib/lchmod.h: New file.
102342         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102343         (make_dir_parents): Use lchown rather than chown, and
102344         lchmod rather than chmod.
102346         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102347         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102348         "proc" reported by n0dalus.
102350         * lib/mountlist.c: Include <limits.h>.
102351         (dev_from_mount_options)
102352         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102353         New function.  It no longer assumes "dev=" has the System V meaning
102354         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102355         (read_file_system_list)
102356         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102357         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102358         dev= in that case.
102360         * lib/posixtm.h (PDS_PRE_2000): New macro.
102361         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102362         allow_century.  All usages changed.  Reject dates outside the range
102363         1969-1999 if PDS_PRE_2000 is used.
102365 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102367         Sync from coreutils.
102368         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102369         (Time of day items): Mention the possibility of leap seconds.
102370         Problem reported by Dr. David Alan Gilbert.
102372 2006-01-09  Jim Meyering  <jim@meyering.net>
102374         Sync from coreutils.
102376         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102378         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102380         * lib/modechange.c (mode_compile): Reject an invalid mode string
102381         that starts with an octal digit.  From Andreas Gruenbacher.
102383         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102384         and dup to open_safer and dup_safer, respectively.
102385         (openat_permissive): Fix typo in comment.
102387         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102388         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102389         (_): Remove; no longer needed.
102390         (openat): Renamed from rpl_openat; no need for rpl_openat
102391         since openat.h renames openat for us.
102392         Replace most of the body with a call to openat_permissive,
102393         to avoid duplicate code.
102394         Port to (probably hypothetical) environments were mode_t is
102395         wider than int.
102396         (openat_permissive): Require mode arg, so that we can check
102397         types better.  Put it just after flags.  Change cwd failure
102398         indicator from pointer-to-bool to pointer-to-errno-value.
102399         All callers changed.
102400         Invoke openat_save_fail and/or openat_restore_fail if
102401         cwd_errno is null, so that openat can call us.
102402         (openat_permissive, fdopendir, fstatat, unlinkat):
102403         Simplify errno handling to avoid some duplicate code,
102404         as it's OK to set errno on success.
102405         * lib/openat.h: Revamp code so that function macros depend on
102406         __OPENAT_PREFIX only, not also on AT_FDCWD.
102407         (openat_ro): Remove.  Caller changed to use openat_permissive.
102408         (openat_permissive): Now a macro, if not a function.
102409         (openat_restore_fail, openat_save_fail): Now always functions,
102410         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102412         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102413         and openat.c.
102414         * lib/mkdirat.c: Include openat-priv.h.
102415         Remove definitions of macros defined therein.
102416         * lib/openat.c: Likewise.
102418         * lib/mkdirat.c (mkdirat): New file and function.
102419         * lib/openat.h (mkdirat): Declare.
102421         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102423         * lib/openat.h (openat_permissive): Declare.
102424         (openat_ro): Define.
102426         * lib/openat.c (EXPECTED_ERRNO): New macro.
102427         (openat_permissive): New function -- used in remove.c rewrite.
102428         (all functions): Set errno just before returning, only if there
102429         was an actual failure.
102430         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102432         Emulate openat-family functions using Linux's procfs, if possible.
102433         Idea and some code based on Ulrich Drepper's glibc changes.
102435         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102436         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102437         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102438         before falling back on save_cwd and restore_cwd.
102439         (fdopendir, fstatat, unlinkat): Likewise.
102441         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102442         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102444         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102445         as second argument to va_arg.  Otherwise, some versions of gcc
102446         warn that `if this code is reached, the program will abort'.
102448 2006-01-09  Jim Meyering  <jim@meyering.net>
102450         Sync from coreutils.
102451         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102452         Require openat-priv.h.
102454 2006-01-09  Bruno Haible  <bruno@clisp.org>
102456         * modules/strnlen (Include): Use strnlen.h.
102458 2006-01-09  Bruno Haible  <bruno@clisp.org>
102460         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102462 2006-01-09  Bruno Haible  <bruno@clisp.org>
102464         * lib/sysexit_.h (EX_OK): New macro.
102465         Suggested by Martin Lambers <marlam@marlam.de>.
102467 2006-01-09  Bruno Haible  <bruno@clisp.org>
102469         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102470         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102472 2006-01-09  Bruno Haible  <bruno@clisp.org>
102474         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102475         numbers.
102477 2006-01-09  Bruno Haible  <bruno@clisp.org>
102479         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102480         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102481         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102482         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102484 2006-01-09  Bruno Haible  <bruno@clisp.org>
102486         * build-aux/javacomp.sh.in: New file, moved from lib/.
102487         * modules/javacomp-script (Files): Update.
102488         (configure.ac): Add AC_CONFIG_FILES invocation.
102489         (EXTRA_DIST): Remove variable.
102491         * build-aux/javaexec.sh.in: New file, moved from lib/.
102492         * modules/javaexec (Files): Update.
102493         (configure.ac): Add AC_CONFIG_FILES invocation.
102494         (EXTRA_DIST): Remove javaexec.sh.in.
102496         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102497         * modules/csharpcomp-script (Files): Update.
102498         (configure.ac): Add AC_CONFIG_FILES invocation.
102499         (EXTRA_DIST): Remove variable.
102501         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102502         * modules/csharpexec (Files): Update.
102503         (configure.ac): Add AC_CONFIG_FILES invocation.
102504         (EXTRA_DIST): Remove csharpexec.sh.in.
102506 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102508         Sync from coreutils.
102510         Add POSIX ACL support
102511         * lib/acl.h (copy_acl, set_acl): Add declarations.
102512         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102513         systems other than Linux.
102514         (chmod_or_fchmod): New function: use fchmod when possible,
102515         and chmod otherwise.
102516         (file_has_acl): Add a POSIX ACL implementation, with a
102517         Linux-specific subcase.
102518         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102519         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102520         acls are unsupported.
102521         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102522         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102523         are unsupported.
102525 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102527         Sync from coreutils.
102528         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102530 2006-01-07  Bruno Haible  <bruno@clisp.org>
102532         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102533         gl_EARLY.
102535 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102537         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102538         Problem reported for Mingw by Mark Junker.
102540 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102542         * README: Gnulib normally doesn't generate a tarball.
102544 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102546         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102547         long int, not int, for nanosecond counts, so that people who are
102548         used to POSIX struct timespec won't be surprised.  Reported by Jim
102549         Meyering.
102551 2005-12-28  Bruno Haible  <bruno@clisp.org>
102553         * build-aux/config.rpath: Update from GNU gettext.
102555 2005-12-16  Jim Meyering  <jim@meyering.net>
102557         * modules/fprintftime: New module.
102558         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102560 2005-12-16  Jim Meyering  <jim@meyering.net>
102562         * m4/fprintftime.m4: New file.
102564 2005-12-16  Jim Meyering  <jim@meyering.net>
102566         * lib/fprintftime.c, lib/fprintftime.h: New files.
102568 2005-12-15  Simon Josefsson  <jas@extundo.com>
102570         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102571         new m4/socklen.m4.
102573 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102575         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102576         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102578 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102580         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102581         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102582         struct uparams is valid. Fall back to the default values if it is
102583         not.
102585 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102587         * modules/argp (Files): Add argp-pin.c
102588         (Depends-on): dirname
102589         (lib_SOURCES): Add argp-pin.c
102591 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102593         * m4/argp.m4:  Check if program_invocation_name and
102594         program_invocation_short_name are declared and define appropriate
102595         macros if they are not.
102597 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102599         * lib/argp-help.c (__argp_base_name): New function
102600         (__argp_short_program_name): Rewrite using __argp_base_name
102601         * lib/argp-namefrob.h: Define program_invocation_name and
102602         program_invocation_short_name if requested
102603         (__argp_base_name): Add prototype
102604         * lib/argp-parse.c (argp_def): Use gettext wrappers
102605         (argp_default_parser): Use __argp_base_name
102606         * lib/argp-pin.c: New file. Defines program_invocation_name and
102607         program_invocation_short_name on systems that lack them.
102609 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102611         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102612         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102613         porting problem reported by Georg Schwarz in
102614         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102616 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102618         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102619         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102620         porting problem reported by Georg Schwarz in
102621         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102623 2005-12-05  Bruno Haible  <bruno@clisp.org>
102625         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102626         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102627         Reported by Mark Junker <mjscod@gmx.de>.
102629 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102631         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102632         Use implementation from Albert Chin, with some
102633         comments/corrections by Stepan Kasal and myself.
102635 2005-12-02  Bruno Haible  <bruno@clisp.org>
102637         * gnulib-tool (func_import): Accept GPLed build tool modules when
102638         --lgpl is given.
102639         * modules/csharpcomp-script: New file.
102640         * modules/csharpcomp: Depend on it.
102641         * modules/javacomp-script: New file.
102642         * modules/javacomp: Depend on it.
102643         Suggested by Simon Josefsson.
102645 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102647         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102648         statement, to work around an HP-UX 10.20 compiler bug reported by
102649         Peter O'Gorman.
102651 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102653         * modules/savedir (Depends-on): Add openat.
102655 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102657         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102658         (uintmax_t) [defined uintmax_t]: Do not declare.
102659         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102660         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102661         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102662         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102663         sake of portability to weird hosts that C allows (though we don't
102664         know of any practical examples).
102666         * lib/savedir.h (fdsavedir): New decl.
102667         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102668         contains most of the former guts of savedir.
102669         (savedir): Use savedirstream.
102670         Include "openat.h".
102672 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102674         * modules/obstack (Files): Add m4/ulonglong.m4.
102675         Problem reported by Davide Angelocola.
102677 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102679         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102680         coreutils no longer futzes with rounding modes.
102682 2005-11-14  Jim Meyering  <jim@meyering.net>
102684         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102685         replacement of mkstemp.
102687 2005-11-10  Simon Josefsson  <jas@extundo.com>
102689         * lib/readline.c: Remove EOL.
102691 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102693         * modules/gethrxtime (Depends-on): Add gettime.
102695 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102697         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102698         or gettimeofday; no longer needed.
102700 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102702         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102703         time business.
102704         (gethrxtime) [! (HAVE_NANOUPTIME
102705         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102706         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102707         our own approximation.
102709 2005-11-08  Eric Blake  <ebb9@byu.net>
102711         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102713 2005-11-08  Eric Blake  <ebb9@byu.net>
102715         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102717 2005-11-04  Bruno Haible  <bruno@clisp.org>
102719         * gnulib-tool: Implement --update mode.
102721 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102723         Fix porting problem reported by Theodoros V. Kalamatianos.
102724         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102725         Don't assume that futimes failing means we must fail.
102727 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102729         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102730         variables to suggest the intended function of the PATH_MAX check.
102732 2005-10-30  Kean Johnston  <jkj@sco.com>
102734         Trivial changes to support SCO systems.
102735         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102736         as PATH_MAX.
102737         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102738         where __ptr is null when no I/O is pending.
102740 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102742         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102743         leave errno alone.  Problem reported by Dmitry V. Levin.
102745 2005-10-28  Simon Josefsson  <jas@extundo.com>
102747         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102748         Test more.
102750         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102752         * modules/md2, modules/md2-tests: New files.
102754 2005-10-28  Simon Josefsson  <jas@extundo.com>
102756         * m4/inet_ntop.m4: More tests.
102758         * m4/gc-md2.m4, md2.m4: New file.
102760 2005-10-28  Simon Josefsson  <jas@extundo.com>
102762         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102763         "restrict" keywords, as per POSIX.  Protect the function
102764         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102765         Don't use K&R prototypes.  Check the sprintf return values.
102766         Re-define EAFNOSUPPORT if not present.  Indent.
102768         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102769         suggested by Bruno Haible <bruno@clisp.org>.
102771         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102773         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102775         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102776         libgcrypt).
102778         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102780         * lib/md2.h, lib/md2.c: New files.
102782 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102784         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102785         errno alone.  Problem reported by Frederic Jolliton.
102787 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102789         * modules/verify (License): Change from GPL to LGPL.  This is a
102790         tiny module and there are apparently near-equivalents that are
102791         under the BSD license.
102793 2005-10-24  Simon Josefsson  <jas@extundo.com>
102795         * modules/sha1: Relicense to LGPL.
102797 2005-10-24  Simon Josefsson  <jas@extundo.com>
102799         * lib/md4.h: Shrink buffer size, now that we changed the type.
102801 2005-10-23  Simon Josefsson  <jas@extundo.com>
102803         * gnulib-tool (func_import): Fix --tests-base.
102805 2005-10-22  Simon Josefsson  <jas@extundo.com>
102807         * modules/arcfour (Depends-on): Need stdint.
102809 2005-10-22  Simon Josefsson  <jas@extundo.com>
102811         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102812         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102814 2005-10-22  Simon Josefsson  <jas@extundo.com>
102816         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102817         suggested by Bruno Haible <bruno@clisp.org>.
102819 2005-10-22  Simon Josefsson  <jas@extundo.com>
102821         * lib/crc.h: Include stddef.h, for size_t.
102823 2005-10-22  Simon Josefsson  <jas@extundo.com>
102825         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102826         arcfour_context struct (simplify test vector testing in GNU
102827         Shishi).
102829 2005-10-21  Simon Josefsson  <jas@extundo.com>
102831         * modules/des, modules/des-tests: New files.
102833         * modules/gc-des, modules/gc-des-tests: New files.
102835         * tests/test-des.c, tests/test-gc-des.c: New file.
102837 2005-10-21  Simon Josefsson  <jas@extundo.com>
102839         * modules/arctwo, modules/arctwo-tests: New files.
102841         * tests/test-arctwo.c: New file.
102843         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102845         * tests/test-gc-arctwo.c: New file.
102847 2005-10-21  Simon Josefsson  <jas@extundo.com>
102849         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102850         Bruno Haible <bruno@clisp.org>.
102852         * m4/gc-des.m4: New file.
102854 2005-10-21  Simon Josefsson  <jas@extundo.com>
102856         * m4/arctwo.m4: New file.
102858         * m4/gc-arctwo.m4: New file.
102860 2005-10-21  Simon Josefsson  <jas@extundo.com>
102862         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102863         block.
102865 2005-10-21  Simon Josefsson  <jas@extundo.com>
102867         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102868         <bruno@clisp.org>.
102870         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102872         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102873         Bruno Haible <bruno@clisp.org>.
102875         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102876         <bruno@clisp.org>.
102878 2005-10-21  Simon Josefsson  <jas@extundo.com>
102880         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102882 2005-10-21  Simon Josefsson  <jas@extundo.com>
102884         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102886 2005-10-21  Simon Josefsson  <jas@extundo.com>
102888         * lib/des.h, lib/des.c: New files.
102890         * lib/gc-gnulib.c: Support DES.c
102892 2005-10-21  Simon Josefsson  <jas@extundo.com>
102894         * lib/arctwo.h, lib/arctwo.c: New files.
102896         * lib/gc-gnulib.c: Support ARCTWO.
102898 2005-10-21  Simon Josefsson  <jas@extundo.com>
102900         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102901         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102903 2005-10-21  Simon Josefsson  <jas@extundo.com>
102905         * gnulib-tool (func_import, func_create_testdir): Define automake
102906         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102907         Makefile.am snippet),
102908         suggested by Bruno Haible <bruno@clisp.org>.
102910         * modules/gc (Makefile.am): Use it.
102912 2005-10-21  Bruno Haible  <bruno@clisp.org>
102914         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102915         patch.
102917 2005-10-19  Simon Josefsson  <jas@extundo.com>
102919         * tests/test-gc-rijndael.c: New file.
102921         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102923 2005-10-19  Simon Josefsson  <jas@extundo.com>
102925         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102926         interface too.
102928 2005-10-19  Simon Josefsson  <jas@extundo.com>
102930         * tests/test-gc-arcfour.c: New file.
102932         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102934 2005-10-19  Simon Josefsson  <jas@extundo.com>
102936         * modules/gc-md4, modules/gc-md4-tests: New file.
102938         * tests/test-gc-md4.c: New file.
102940 2005-10-19  Simon Josefsson  <jas@extundo.com>
102942         * m4/gc-md4.m4: New file.
102944 2005-10-19  Simon Josefsson  <jas@extundo.com>
102946         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102947         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102948         <kasal@ucw.cz>.
102950 2005-10-19  Simon Josefsson  <jas@extundo.com>
102952         * m4/gc-arcfour.m4: New file.
102954         * m4/gc-rijndael.m4: New file.
102956 2005-10-19  Simon Josefsson  <jas@extundo.com>
102958         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102960 2005-10-19  Simon Josefsson  <jas@extundo.com>
102962         * lib/gc-gnulib.c: Support ARCFOUR.
102964 2005-10-19  Simon Josefsson  <jas@extundo.com>
102966         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102967         support.
102969         * lib/gc.h: Add ECB enum type.
102971         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102973 2005-10-18  Simon Josefsson  <jas@extundo.com>
102975         * tests/test-md5.c: New file.
102977         * modules/md5-tests: New file.
102979 2005-10-18  Simon Josefsson  <jas@extundo.com>
102981         * tests/test-md4.c: New file.
102983         * modules/md4, modules/md4-tests: New files.
102985 2005-10-18  Simon Josefsson  <jas@extundo.com>
102987         * m4/md4.m4: New file.
102989 2005-10-18  Simon Josefsson  <jas@extundo.com>
102991         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102993 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102995         * gnulib-tool (func_create_testdir): Omit the second check whether
102996         BUILT_SOURCES in nonempty.
102998 2005-10-17  Simon Josefsson  <jas@extundo.com>
103000         * tests/test-rijndael.c: New file.
103002 2005-10-17  Simon Josefsson  <jas@extundo.com>
103004         * modules/sha1: Depend on stdint instead of md5.
103006         * modules/md5: Depend on stdint, remove uint32_t.
103008 2005-10-17  Simon Josefsson  <jas@extundo.com>
103010         * modules/gc-sha1-tests: New file.
103012         * tests/test-gc-sha1.c: New file.
103014 2005-10-17  Simon Josefsson  <jas@extundo.com>
103016         * m4/md5.m4: Remove call to uint32_t.m4.
103018 2005-10-17  Simon Josefsson  <jas@extundo.com>
103020         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
103022         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
103023         md5.h.
103025         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
103027         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
103029 2005-10-17  Simon Josefsson  <jas@extundo.com>
103031         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
103033 2005-10-17  Simon Josefsson  <jas@extundo.com>
103035         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
103037 2005-10-17  Simon Josefsson  <jas@extundo.com>
103039         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
103041         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
103043 2005-10-17  Bruno Haible  <bruno@clisp.org>
103045         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
103046         that it can also be used in a test.
103048 2005-10-16  Bruno Haible  <bruno@clisp.org>
103050         * gnulib-tool (func_emit_tests_Makefile_am): Also define
103051         TESTS_ENVIRONMENT, so that individual tests can augment it.
103053         * gnulib-tool (func_create_testdir): Use an intermediate target for
103054         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
103055         macros, like $(ALLOCA_H), which cannot be passed through the command
103056         line.
103058 2005-10-15  Simon Josefsson  <jas@extundo.com>
103060         * modules/rijndael-tests: New file.
103062         * modules/rijndael: New file.
103064 2005-10-15  Simon Josefsson  <jas@extundo.com>
103066         * m4/rijndael.m4: New file.
103068 2005-10-15  Simon Josefsson  <jas@extundo.com>
103070         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
103072         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
103074 2005-10-14  Simon Josefsson  <jas@extundo.com>
103076         * tests/test-arcfour.c: New file.
103078         * modules/arcfour, modules/arcfour-tests: New files.
103080 2005-10-14  Simon Josefsson  <jas@extundo.com>
103082         * m4/arcfour.m4: New file.
103084 2005-10-14  Simon Josefsson  <jas@extundo.com>
103086         * lib/arcfour.h, lib/arcfour.c: New files.
103088 2005-10-14  Roland McGrath  <roland@redhat.com>
103090         Import from libc.  [BZ #1331]
103091         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
103092         macro argument.
103093         Reported by Matej Vela <vela@debian.org>.
103095 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103097         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
103098         include <wchar.h>; no longer needed.
103100 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103102         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
103104 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
103105         and  Ulrich Drepper  <drepper@redhat.com>
103107         Import from libc.
103108         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
103109         instead of inline stream orientation test and two separate
103110         function calls.  Pay no attention to USE_IN_LIBIO.
103112 2005-10-13  Simon Josefsson  <jas@extundo.com>
103114         * modules/gc-hmac-md5-tests: New file.
103116         * tests/test-gc-hmac-sha1.c: New file.
103118         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
103120         * modules/gc-hmac-md5-tests: New file.
103122         * tests/test-gc-md5.c: New file.
103124         * modules/gc-md5-tests: New file.
103126 2005-10-13  Simon Josefsson  <jas@extundo.com>
103128         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
103129         Move memory allocation outside of loop.
103131 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
103133         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
103134         intermediate directory is in a read-only file system.  Problem
103135         reported by Eric Blake.
103137 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
103139         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
103141 2005-10-12  Simon Josefsson  <jas@extundo.com>
103143         * tests/test-hmac-sha1.c: New file.
103145         * modules/hmac-sha1-tests: New file.
103147         * modules/hmac-sha1: New file.
103149 2005-10-12  Simon Josefsson  <jas@extundo.com>
103151         * modules/gc-sha1: New file.
103153 2005-10-12  Simon Josefsson  <jas@extundo.com>
103155         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
103157         * tests/test-gc-pbkdf2-sha1.c: New file.
103159 2005-10-12  Simon Josefsson  <jas@extundo.com>
103161         * modules/gc-md5, modules/gc-hmac-md5: New files.
103163         * modules/gc (Files): Remove md5, memxor and hmac files.
103165 2005-10-12  Simon Josefsson  <jas@extundo.com>
103167         * m4/gc-pbkdf2-sha1.m4: New file.
103169         * m4/gc-hmac-sha1.m4: New file.
103171         * m4/gc-sha1: New file.
103173         * m4/hmac-sha1.m4: New file.
103175 2005-10-12  Simon Josefsson  <jas@extundo.com>
103177         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
103179         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
103181 2005-10-12  Simon Josefsson  <jas@extundo.com>
103183         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
103184         suggested by Bruno Haible <bruno@clisp.org>.
103186 2005-10-12  Simon Josefsson  <jas@extundo.com>
103188         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
103190 2005-10-12  Simon Josefsson  <jas@extundo.com>
103192         * lib/gc-pbkdf2-sha1.c: New file.
103194         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
103196 2005-10-12  Simon Josefsson  <jas@extundo.com>
103198         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
103200         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
103202 2005-10-12  Simon Josefsson  <jas@extundo.com>
103204         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
103205         GC_USE_HMAC_MD5, respectively.
103207         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
103208         (gc_md5): Fix typo.
103210         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
103212         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
103214         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
103216 2005-10-12  Bruno Haible  <bruno@clisp.org>
103218         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
103219         Reported by Stepan Kasal <kasal@ucw.cz>.
103221 2005-10-11  Simon Josefsson  <jas@extundo.com>
103223         * tests/test-crc.c: New file.
103225         * modules/crc, modules/crc-tests: New files.
103227 2005-10-11  Simon Josefsson  <jas@extundo.com>
103229         * m4/crc.m4: New file.
103231 2005-10-11  Simon Josefsson  <jas@extundo.com>
103233         * lib/gc.h: Add gc_hash and gc_hash_buffer.
103235         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
103237         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
103239 2005-10-11  Simon Josefsson  <jas@extundo.com>
103241         * lib/crc.h, lib/crc.c: New files.
103243         * lib/gc.h (gc_hash_buffer): Add doc.
103245 2005-10-11  Bruno Haible  <bruno@clisp.org>
103247         * modules/c-strcasestr: New file.
103248         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
103250 2005-10-11  Bruno Haible  <bruno@clisp.org>
103252         * modules/c-strcase: New file.
103253         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
103255 2005-10-11  Bruno Haible  <bruno@clisp.org>
103257         * lib/strcasecmp.c: Include limits.h.
103258         (strcasecmp): Avoid integer overflow on exotic platforms.
103259         * lib/strncasecmp.c: Include limits.h.
103260         (strncasecmp): Avoid integer overflow on exotic platforms.
103261         Reported by Paul Eggert.
103263 2005-10-11  Bruno Haible  <bruno@clisp.org>
103265         * lib/c-strcasestr.h: New file, from GNU gettext.
103266         * lib/c-strcasestr.c: New file, from GNU gettext.
103268 2005-10-11  Bruno Haible  <bruno@clisp.org>
103270         * lib/c-strcase.h: New file, from GNU gettext.
103271         * lib/c-strcasecmp.c: New file, from GNU gettext.
103272         * lib/c-strncasecmp.c: New file, from GNU gettext.
103274 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103276         * modules/mempcpy (License): GPL -> LGPL.
103277         * modules/strchrnul (License): Likewise.
103278         * modules/sysexits (License): Likewise.
103280 2005-10-08  Simon Josefsson  <jas@extundo.com>
103282         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
103284 2005-10-07  Simon Josefsson  <jas@extundo.com>
103286         * m4/memxor.m4: Remove gl_C_RESTRICT call.
103288 2005-10-06  Simon Josefsson  <jas@extundo.com>
103290         * tests/test-hmac-md5.c: New file.
103292         * modules/hmac-md5-tests: New file.
103294         * modules/hmac-md5: New file.
103296 2005-10-06  Simon Josefsson  <jas@extundo.com>
103298         * m4/hmac-md5.m4: New file.
103300         * m4/memxor.m4: Require gl_C_RESTRICT.
103302 2005-10-06  Simon Josefsson  <jas@extundo.com>
103304         * lib/memxor.c (memxor): Avoid casts and warnings.
103306 2005-10-06  Simon Josefsson  <jas@extundo.com>
103308         * lib/hmac-md5.c: New file.
103310         * lib/hmac.h: New file.
103312 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103314         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
103315         promotes to int, not unsigned int, to catch the AIX 5.3
103316         compiler bug.
103318 2005-10-05  Simon Josefsson  <jas@extundo.com>
103320         * modules/memxor: New file.
103322         * modules/iconv (Files): Move config.rpath to havelib, it is used
103323         there.
103325         * modules/havelib (Files): Add config.rpath.
103327 2005-10-05  Simon Josefsson  <jas@extundo.com>
103329         * m4/memxor.m4: New file.
103331 2005-10-05  Simon Josefsson  <jas@extundo.com>
103333         * lib/memxor.c (memxor): Fix compiler error.
103335         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103336         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103338         * lib/memxor.h, lib/memxor.c: New files.
103340         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103341         we assume all systems have it, suggested by Jim Meyering
103342         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103343         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103344         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103345         same reasons.
103347 2005-10-05  Simon Josefsson  <jas@extundo.com>
103349         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103351 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103354         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103355         needed, since the source code now assumes these .h files.
103357 2005-10-05  Derek Price  <derek@ximbiot.com>
103359         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103361 2005-10-05  Bruno Haible  <bruno@clisp.org>
103363         * modules/stdint (License): Change to LGPL.
103365 2005-10-04  Simon Josefsson  <jas@extundo.com>
103367         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103368         D. Baushke" <mdb@gnu.org>.
103370 2005-10-04  Bruno Haible  <bruno@clisp.org>
103372         * lib/verify.h (verify_true): Provide alternative definition for C++.
103374 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103376         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103377         (SSIZE_MAX): New macro, if not already defined.
103378         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103379         than 2 GiB.
103381 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103383         Sync from coreutils.
103384         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103385         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103386         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103387         ULLONG_MAX doesn't work with 2.7.2.1.
103389 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103391         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103392         From Ben Pfaff.
103394         * modules/exclude (Depends-on): Depend on verify.
103395         * modules/strtoimax (Depends-on): Likewise.
103396         * modules/utimecmp (Depends-on): Likewise.
103398 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103400         * lib/exclude.c: Include verify.h.
103401         (verify): Remove.  All callers changed to use verify.h's version.
103402         * lib/strtoimax.c: Likewise.
103403         * lib/utimecmp.c: Likewis.e
103405         Sync from coreutils.
103406         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103407         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103408         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103409         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103410         bother returning ENOSYS if settimeofday or stime fails; just let
103411         them return whatever errno they want to return.
103412         * lib/utimens.c: Include unistd.h, for dup2.
103413         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103414         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103416 2005-10-02  Jim Meyering  <jim@meyering.net>
103418         Sync from coreutils.
103419         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103420         from glibc-2.2.5 that fails for read-only files.
103422 2005-10-02  Jim Meyering  <jim@meyering.net>
103424         Sync from coreutils.
103425         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103426         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103427         `#if HAVE_CONFIG_H'.
103428         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103429         Remove AT_FDCWD test.
103430         Do not consume the fd unless successful.
103431         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103432         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103433         block, so that we don't even try to compile it if settimeofday is
103434         available.  This works around a compilation failure on OSF1 V5.1,
103435         due to stime requiring a `long int*' while tv_sec is `int'.
103437 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103439         Sync from coreutils.
103440         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103441         against `yes', rather than just testing for nonempty.
103443 2005-10-01  Simon Josefsson  <jas@extundo.com>
103445         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103446         and Darwin.
103448         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103449         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103450         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103451         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103452         Check if struct addrinfo is declared.
103454 2005-10-01  Simon Josefsson  <jas@extundo.com>
103456         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103457         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103458         AI_* and EAI_* definitions.  Protect function declarations.
103460 2005-10-01  Jim Meyering  <jim@meyering.net>
103462         Sync from coreutils.
103464         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103465         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103466         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103467         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103468         in the inet and nsl libraries.  Required on Solaris 5.7.
103470 2005-10-01  Jim Meyering  <jim@meyering.net>
103472         Sync from coreutils.
103473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103474         in the inet and nsl libraries.  Required on Solaris 5.7.
103476 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103478         * lib/getdelim.c (getdelim): Remove unused variables.
103480 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103482         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103483         so that the code works even with ancient cpp.  Portability problem
103484         with GCC 2.7.2.1 reported by Thomas M.Ott.
103486 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103488         * modules/regex (Depends-on): Add strcase.
103490         * modules/gethostname (Licence): Change from GPL to LGPL, since
103491         gethostname.c is a trivial implementation of a standard library
103492         function.
103493         * modules/poll (License): Change from GPL to LGPL, since it's
103494         derived from LGPL code.
103496 2005-09-27  Jim Meyering  <jim@meyering.net>
103498         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103499         HAVE_CONFIG_H.
103501         * lib/intprops.h (signed_type_or_expr__): Define.
103502         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103503         for unsigned types.
103505 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103507         * lib/verify.h (verify_expr): Remove, replacing with:
103508         (verify_true): New macro that returns true instead of void.
103509         (verify_type__): Remove.
103510         (verify): Use verify_true rather than verify_type__.
103512 2005-09-26  Bruno Haible  <bruno@clisp.org>
103514         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103515         is necessary.
103516         (lib_SOURCES): Remove mbchar.c.
103517         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103518         (Files): Add m4/mbrtowc.m4.
103519         * modules/mbiter: Likewise.
103520         * modules/mbuiter: Likewise.
103522 2005-09-26  Bruno Haible  <bruno@clisp.org>
103524         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103525         compile mbchar.c if they are not both present.
103526         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103527         * m4/mbiter.m4 (gl_MBITER): Likewise.
103528         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103529         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103530         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103532 2005-09-25  Jim Meyering  <jim@meyering.net>
103534         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103535         also uses socklen_t.
103537 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103539         * lib/utimens.c (ENOSYS): Define if not already defined.
103540         (futimens): Support having a null PATH if the file descriptor
103541         is nonnegative.
103543         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103544         Remove.
103545         (__attribute): Define to empty unless GCC 3.1 or later.
103546         This works around a core dump on OpenBSD 3.4, which has GCC
103547         2.95.3, which dumps core when given __attribute__(()).  It also
103548         simplifies other tests, since we really don't want to bother with
103549         worrying about which ancient version of GCC supported what.
103550         Original problem reported by Yoann Vandoorselaere, with part of
103551         the fix suggested by Derek Price.
103553 2005-09-24  Jim Meyering  <jim@meyering.net>
103555         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103556         so we can once again use a positive bitfield width of 1 -- now we
103557         don't have to explain why we were using a bitfield width of 2.
103559 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103561         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103562         and similarly for the other external symbols.  Problem reported
103563         by James Gallager.
103565         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103566         bug reported by Jim Meyering.
103568         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103570         not needed, since socklen is a prerequisite module.
103572 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103574         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103575         Problem reported by Eric Blake.
103576         (getaddrinfo): Initialize se so that it's not garbage.
103577         Redo internal storage allocation so that it doesn't make unportable
103578         assumptions about alignment.
103579         Fix a memory leak.
103581         * lib/utimens.c (futimens): Use futimesat if available.
103582         Prefer it to futimes since it doesn't have the futimes bug.
103584         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103585         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103586         Instead, declare a function that returns a pointer to an array,
103587         and use verify_type__ to declare the size of the array.
103588         Problem and germ of a solution reported by Bruno Haible.
103589         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103590         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103592 2005-09-23  Jim Meyering  <jim@meyering.net>
103594         Sync from coreutils.
103595         Correct build failure (socklen_t not defined) on at least
103596         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103597         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103599 2005-09-23  Jim Meyering  <jim@meyering.net>
103601         * modules/getaddrinfo (Depends-on): Add socklen.
103603 2005-09-23  Bruno Haible  <bruno@clisp.org>
103605         * tests/test-verify.c: New file.
103607 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103609         Sync from coreutils.
103611         * modules/argmatch (Depends-on): Add verify.
103612         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103613         unistd-safer.
103614         * modules/save-cwd (Depends-on): Likewise.
103616         * modules/openat (Files): Add lib/openat-die.c.
103617         (Depends-on): Remove error, exitfail.
103618         Add dirname.
103620         * modules/verify: New file.
103621         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103622         with "verify" module.
103624 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103626         Sync from coreutils.
103628         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103629         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103630         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103631         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103632         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103633         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103634         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103635         Don't bother checking for string.h, stdlib.h, unistd.h.
103636         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103638         module's job.
103639         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103640         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103642         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103643         (gl_GETDATE): Use it.
103645         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103649         Sync from coreutils.
103651         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103652         stat-time.h.
103653         * lib/argmatch.h: Include verify.h
103654         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103655         (ARGMATCH_ASSERT): Remove; unused.
103656         * lib/canonicalize.c: Assume STDC_HEADERS.
103657         * lib/exclude.c: Include "strcase.h".
103658         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103659         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103660         and stdio-safer.h.
103661         (getusershell): Call fopen, not fopen_safer.
103662         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103663         Do not include unistd-safer.h.
103664         (save_cwd): Don't call fd_safer; no longer needed
103665         now that we include fcntl--.h.
103667         * lib/getdate.y (relative_time): New type.
103668         (RELATIVE_TIME_0): New constant.
103669         (parser_control): Use relative_time instead of doing it ourselves.
103670         (%union): Add new relative_time rel member.
103671         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103672         Now typeless.
103673         (relunit, relunit_snumber): Now of type rel.
103674         (zone, rel, relunit, get_date): Adjust to above changes.
103676         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103677         Do not include unistd-safer.h.
103678         (getloadavg): Don't call fd_safer; no longer needed
103679         now that we include fcntl--.h.
103681         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103682         (make_dir_parents): Treat ENOSYS like EEXIST.
103684         Improve quality of diagnostics on restore_cwd failure.
103685         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103686         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103687         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103688         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103689         each time through the loop.  Do not diagnose restore_cwd failure;
103690         that is the caller's job (and perhaps the caller does not care).
103692         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103693         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103694         If the file already exists but is not a directory, don't bother
103695         to try to make its parents.
103696         Close potential file descriptor leak if we can't chdir("/") (!).
103697         Don't always return true if chdir($PWD) fails; return true only
103698         if the requested action was done successfully (except for the
103699         chdir($PWD)).
103700         Don't log final directory unless we actually made it.
103701         Refactor to avoid duplicate code to fix up permissions.
103702         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103704         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103705         to make it a bit faster and (I hope) clearer.
103706         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103707         Fix bug in formats like %2N.
103709         * lib/verify.h: New file.
103711 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103713         Sync from coreutils.
103714         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103716 2005-09-22  Jim Meyering  <jim@meyering.net>
103718         Sync from coreutils.
103720         * m4/lstat.m4 (gl_FUNC_LSTAT):
103721         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103722         Remove obsolete comment.
103723         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103724         * m4/xstrtod.m4: Likewise.
103726         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103728 2005-09-22  Jim Meyering  <jim@meyering.net>
103730         Sync from coreutils.
103732         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103734         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103735         the .tm_year member, since otherwise gcc-4.0 would now warn about
103736         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103738         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103739         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103741         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103742         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103743         when run in a time zone for which daylight savings time is in effect
103744         for the starting date.
103746         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103747         stop us from restricting permissions of just-created absolute-named
103748         directories.
103749         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103750         to restore initial working directory.
103751         * lib/mkdir-p.c (make_dir_parents): New parameter:
103752         different_working_dir, to tell caller if/when we change the working
103753         directory and are unable to return to the initial one.
103754         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103755         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103756         `return false'.  This fixes a bug introduced on 2004-07-30.
103758         * lib/openat.c (fdopendir): Be sure to close the supplied
103759         file descriptor before returning.  This makes our replacement
103760         implementation a little closer to Solaris's, where fdopendir
103761         ties the file descriptor to the returned DIR* pointer.
103762         * lib/openat.c (unlinkat): New function.
103763         * lib/openat.h (unlinkat): Add prototype.
103764         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103765         (openat_restore_fail): Rename from openat_restore_die.
103766         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103768         Provide an alternative to exiting immediately upon save_cwd or
103769         restore_cwd failure.  Now, an application can arrange e.g.,
103770         to perform a longjump in that case.
103771         * lib/openat.c: Include dirname.h.
103772         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103773         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103774         and openat_restore_die rather than calling error directly.
103775         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103777         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103778         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103779         define.
103781         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103782         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103783                             int utc, int nanoseconds);
103784         Background:
103785         date should not have to allocate a megabyte of virtual memory to
103786         handle a format argument like +%1048575T.  When implemented with
103787         strftime, it must allocate such a buffer, use strftime to fill it
103788         in, print it, then free it.
103789         With fprintftime, it simply prints everything and exits.
103790         With no need for memory allocation, that's one fewer way to fail.
103791         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103792         optional field width, not before, so we accept %9:z, not %:9z.
103793         (my_strftime): Be sure to use L_('x') for literals.
103795         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103796         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103797         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103798         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103799         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103800         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103801         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103802         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103803         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103804         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103805         * lib/xgethostname.c, lib/xreadlink.c:
103806         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103808         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103809         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103810         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103811         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103812         and don't include <sys/file.h>).
103814 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103816         Sync from coreutils.
103818         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103819         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103820         [!LDAV_DONE]: Avoid unused variable warning.
103822 2005-09-21  Bruno Haible  <bruno@clisp.org>
103824         * lib/unicodeio.h (unicode_to_mb): New declaration.
103826 2005-09-20  Derek Price  <derek@ximbiot.com>
103828         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103829         getaddrinfo.h.
103831 2005-09-20  Bruno Haible  <bruno@clisp.org>
103833         * gnulib-tool: Remove trailing slashes from the values specified for
103834         --source-base, --m4-base, --tests-base, --aux-dir.
103835         Suggested by Simon Josefsson <jas@extundo.com>.
103837 2005-09-20  Bruno Haible  <bruno@clisp.org>
103839         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103840         func_modules_to_filelist, func_import, func_create_testdir): Make all
103841         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103842         change when gnulib-tool is invoked in a different locale.
103844 2005-09-19  Simon Josefsson  <jas@extundo.com>
103846         * m4/socklen.m4: Fix typo.
103848 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103850         Use a consistent style for including <config.h>.
103851         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103852         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103853         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103854         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103855         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103856         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103857         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103858         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103859         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103860         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103861         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103862         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103863         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103864         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103865         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103866         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103867         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103868         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103869         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103870         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103871         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103872         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103873         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103874         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103875         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103876         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103877         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103878         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103879         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103880         lib/xstrtoumax.c, lib/yesno.c:
103881         Standardize inclusion of config.h.
103882         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103883         lib/inttostr.h:  Removed inclusion of config.h from header files.
103884         * lib/inttostr.c:  Adjusted in-tree users.
103885         * lib/timespec.h: Remove superfluous warning to include config.h.
103886         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103887         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103888         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103889         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103890         config.h with HAVE_CONFIG_H.
103892 2005-09-19  Jim Meyering  <jim@meyering.net>
103894         * modules/pathmax (License): Change to LGPL.
103896 2005-09-19  Derek Price  <derek@ximbiot.com>
103898         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103900 2005-09-19  Bruno Haible  <bruno@clisp.org>
103902         * gnulib-tool (import): Provide default for --tests-base.
103904 2005-09-19  Bruno Haible  <bruno@clisp.org>
103906         * doc/quote.texi: New file, extracted from gnulib.texi.
103907         * doc/ctime.texi: New file, extracted from gnulib.texi.
103908         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103909         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103910         * doc/gnulib.texi: Include them.
103912 2005-09-18  Bruno Haible  <bruno@clisp.org>
103914         Portability fix.
103915         * gnulib-tool (func_readlink): New function.
103916         (func_ln_if_changed): Use it.
103918 2005-09-18  Bruno Haible  <bruno@clisp.org>
103920         * gnulib-tool: Support --with-tests also with --import.
103921         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103922         (func_import): Use variables $testsbase and $inctests. Emit a
103923         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103924         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103925         SUBDIRS += $testsdir.
103926         (func_create_testdir): Update.
103928 2005-09-18  Bruno Haible  <bruno@clisp.org>
103930         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103931         instead of $dry_run.
103932         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103933         (func_ln_if_changed): Don't handle dry-run here.
103934         (func_import): In dry-run mode, detect more precisely which actions
103935         would be performed, and don't use "...ing" verbs.
103937 2005-09-18  Bruno Haible  <bruno@clisp.org>
103939         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103940         (func_import): Use join on two temporary files instead of three nested
103941         loops, in order to determine which files are new or old.
103943 2005-09-18  Bruno Haible  <bruno@clisp.org>
103945         * gnulib-tool (func_import): Comment out code that spits out the
103946         new files with --dry-run.
103948 2005-09-18  Bruno Haible  <bruno@clisp.org>
103950         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103952 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103954         * lib/stat-time.h: New file.
103955         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103956         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103957         in a different way.
103958         (timespec_cmp): New function.
103959         * lib/utimecmp.c: Include stat-time.h.
103960         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103961         members exist, not on the obsolescent ST_MTIM_NSEC.
103962         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103964 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103966         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103968 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103970         * MODULES.html.sh (File system functions): Add stat-time.
103971         * modules/stat-time: New file.
103972         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103973         is now done in a different way, by the stat-time module.
103974         * modules/utimecmp (Depends-on): Add stat-time.
103976 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103978         * m4/st_mtim.m4: Remove.  Superseded by...
103979         * m4/stat-time.m4: New file.
103980         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103981         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103983 2005-09-15  Derek Price  <derek@ximbiot.com>
103985         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103987 2005-09-15  Derek Price  <derek@ximbiot.com>
103989         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103990         * lib/regex_internal.c: Ditto, using this...
103991         (__GNUC_PREREQ): ...new macro.
103992         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103993         using...
103994         (__GNUC_PREREQ): ...this new macro.
103996         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103998 2005-09-15  Derek Price  <derek@ximbiot.com>
103999             Paul Eggert  <eggert@cs.ucla.edu>
104001         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
104002         changes, consolidating in...
104003         * lib/regex_internal.h: ...this file.
104005 2005-09-13  Jim Meyering  <jim@meyering.net>
104007         * lib/canon-host.c: Filter through gnu indent and reword comments
104008         slightly.
104009         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
104011 2005-09-13  Derek Price  <derek@ximbiot.com>
104013         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
104014         failure.
104015         Reported by Jim Meyering  <jim@meyering.net>.
104017 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104019         * lib/base64.c: Typo.
104020         (base64_encode): Put b64str in initialized data section.
104022 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
104024         Merge glibc and coreutils changes into gnulib, plus a few
104025         extra fixes.
104026         * lib/md5.c: Use #error rather than a string.
104027         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
104028         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
104029         (__attribute__): Define to empty for non recent-GCC.
104030         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
104031         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
104032         Renamed from their non-__ counterparts, with new macros replacing
104033         them if not _LIBC.  Add __THROW attribute.
104034         (rol): Remove.
104035         (struct md5_ctx): Align buffer if using GCC.
104036         * lib/sha1.h (struct sha1_ctx): Likewise.
104037         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
104038         The old name was backwards.
104039         (NOTSWAP): Remove; not used.
104040         (rol): New macro, moved here from md5.h.
104041         (sha1_process_block): Remove a FIXME that doesn't make sense.
104043 2005-09-12  Derek Price  <derek@ximbiot.com>
104045         Return usable errors from canon-host.
104046         * lib/canon-host.h: New file.
104047         * lib/canon-host.c (canon_host): Wrap...
104048         (canon_host_r): ...this new function, which now relies exclusively on
104049         getaddrinfo.
104050         (ch_strerror): New function.
104051         (last_cherror): New global.
104052         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
104053         interface.
104054         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
104055         void *.
104056         (freeaddrinfo): Free ai->ai_canonname when set.
104058 2005-09-12  Derek Price  <derek@ximbiot.com>
104060         Make canon-host require getaddrinfo.
104061         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
104062         AC_LIBSOURCE canon-host.h.  Call...
104063         (gl_PREREQ_CANON_HOST): ...this new function, which requires
104064         gl_GETADDRINFO.
104065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
104067 2005-09-12  Derek Price  <derek@ximbiot.com>
104069         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
104070         LGPL.
104071         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
104073 2005-09-12  Derek Price  <derek@ximbiot.com>
104075         * lib/gai_strerror.c: Include config.h when available.  Include
104076         getaddrinfo.h before other headers to test interface.
104077         Reported by Larry Jones <lawrence.jones@ugs.com>.
104079 2005-09-12  Derek Price  <derek@ximbiot.com>
104080             Paul Eggert  <eggert@cs.ucla.edu>
104082         * modules/glob (Files): Add glob-libc.h.
104084 2005-09-12  Derek Price  <derek@ximbiot.com>
104085             Paul Eggert  <eggert@cs.ucla.edu>
104087         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
104088         glob_.h, glob-libc.h.
104089         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
104091 2005-09-12  Derek Price  <derek@ximbiot.com>
104092             Paul Eggert  <eggert@cs.ucla.edu>
104094         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
104095         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
104096         protecting things that should be done only in gnulib contexts.
104097         * lib/glob_.h: New file, containing only the glob things needed for
104098         gnulib.
104099         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
104100         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
104101         (glob, globfree, glob_pattern_p): Now defined simply in terms of
104102         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
104103         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
104104         and to respect the namespace rules better.
104106 2005-09-08  Simon Josefsson  <jas@extundo.com>
104108         * modules/socklen: New file.
104110 2005-09-08  Simon Josefsson  <jas@extundo.com>
104112         * m4/socklen.m4: New file.
104114 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104116         * modules/utimens (Files): Add m4/utimbuf.m4, since
104117         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
104118         Reported by Sergey Poznyakoff.
104120 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104122         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
104123         definitions, since that's the preferred style in glibc.
104124         Fix a minor spacing issue, and update copyright notice to match
104125         glibc's.
104127 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104129         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
104131 2005-09-06  Simon Josefsson  <jas@extundo.com>
104133         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
104134         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
104136 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104138         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
104139         warning.
104141 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104143         * config/srclist.txt: Add glibc bug 1302.
104145 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
104147         Change bitset word type from unsigned int to unsigned long int,
104148         as this has better performance on typical 64-bit hosts.
104149         Port bitset code to hosts with unusual word sizes.
104150         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
104151         (build_collating_symbol):
104152         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
104153         argument is a bitset.  This is merely a style issue, but it makes
104154         it clearer that an entire array is expected.
104155         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
104156         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
104157         Port to the case where bitset_word is not the same as unsigned int.
104158         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104159         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
104160         Likewise.
104161         * lib/regexec.c (check_dst_limits_calc_pos_1,
104162         check_subexp_matching_top):
104163         (build_trtable, group_nodes_into_DFAstates):
104164         Likewise.
104165         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
104166         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
104167         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
104168         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
104169         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
104170         * lib/regcomp.c (optimize_subexps, lower_subexp):
104171         Work even if bitset_word has holes in its bitwise representation.
104172         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
104173         * lib/regexec.c (check_dst_limits_calc_pos_1,
104174         check_subexp_matching_top):
104175         Likewise.
104176         * lib/regex_internal.c (re_string_reconstruct):
104177         Don't assume UCHAR_MAX == 255.
104178         * lib/regex_internal.h (bitset_set_all): Likewise.
104179         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
104180         All uses changed.
104181         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
104182         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
104183         All uses changed.
104184         (BITSET_WORD_MAX): New macro.
104185         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
104186         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
104187         (bitset_empty, bitset_copy):
104188         Prefer sizeof (bitset) to multiplying it out ourselves.
104189         (bitset_not_merge): Remove; unused.
104190         (bitset_contain): Return bool, not unsigned int with one bit on.
104191         All callers changed.
104192         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
104193         alignment than re_node_set; do this by defining a new internal
104194         type struct dests_alloc and using it to allocate memory.
104196 2005-09-05  Bruno Haible  <bruno@clisp.org>
104198         * gnulib-tool (func_import): Fix comparison in handling of symbolic
104199         links.
104201 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
104203         * modules/size_max (Makefile.am): Add size_max.h
104205 2005-09-04  Derek Price  <derek@ximbiot.com>
104207         * gnulib-tool (func_import): Fix reversed $symbolic logic.
104209 2005-09-03  Simon Josefsson  <jas@extundo.com>
104211         * gnulib-tool: Fix typo.
104213 2005-09-03  Simon Josefsson  <jas@extundo.com>
104215         * config/srclist.txt: Add glibc bug 1293.
104217 2005-09-03  Derek Price  <derek@ximbiot.com>
104219         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
104220         From Larry Jones <lawrence.jones@ugs.com>.
104222 2005-09-02  Simon Josefsson  <jas@extundo.com>
104224         * modules/socklen: New file.
104226 2005-09-02  Simon Josefsson  <jas@extundo.com>
104228         * modules/havelib: New module.
104230         * modules/gettext, modules/iconv, modules/lock, modules/readline:
104231         Use havelib.
104233 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104235         Check for arithmetic overflow when calculating sizes, to prevent
104236         some buffer-overflow issues.  These patches are conservative, in the
104237         sense that when I couldn't determine whether an overflow was possible,
104238         I inserted a run-time check.
104239         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
104240         macros.
104241         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
104242         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
104243         (re_xnrealloc, re_x2nrealloc): New inline functions.
104244         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
104245         parse_bracket_exp):
104246         (build_equiv_class, build_charclass): Check for arithmetic overflow
104247         in size expression calculations.
104248         * lib/regex_internal.c (re_string_realloc_buffers):
104249         (build_wcs_upper_buffer, re_node_set_add_intersect):
104250         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
104251         (re_dfa_add_node, register_state): Likewise.
104252         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
104253         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
104254         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
104255         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
104257 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104259         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104260         m4/ulonglong.m4.  Problem reported by Martin Lambers.
104262 2005-09-02  Bruno Haible  <bruno@clisp.org>
104264         Support for lib vs. lib64 distinction on biarch platforms.
104265         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
104266         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
104267         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
104269 2005-09-02  Bruno Haible  <bruno@clisp.org>
104271         * gnulib-tool (import): In the other first-use case, provide defaults
104272         as well.
104274 2005-09-02  Bruno Haible  <bruno@clisp.org>
104276         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
104277         patches not yet found in the latest gettext release.
104279 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104281         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
104282         to avoid a collision with bits/local_lim.h in glibc.
104283         All uses changed.  Problem reported by Dmitry V. Levin in
104284         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
104286         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
104287         bugs in int versus size_t comparisons.
104288         (re_string_context_at): Fix bug where the code assumed that
104289         Idx is signed.
104291         Use bool where appropriate.
104292         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
104293         All callers changed.
104294         (calc_eclosure_iter): Likewise, for ROOT arg.
104295         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
104296         (build_charclass_op): Likewise, for NON_MATCH arg.
104297         * lib/regex_internal.c (re_string_allocate, re_string_construct):
104298         (re_string_construct_common): Likewise, for ICASE arg.
104299         * lib/regexec.c (re_search_2_stub, re_search_stub):
104300         Likewise, for RET_LEN arg.
104301         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
104302         (set_regs): Likewise, for FL_BACKTRACK arg.
104303         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
104304         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
104305         (calc_eclosure_iter, parse_bracket_exp):
104306         Use bool for internal variables that are booleans.
104307         * lib/regexec.c (re_search_internal, check_matching,
104308         proceed_next_node):
104309         (set_regs, build_sifted_states, sift_states_bkref):
104310         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
104311         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104312         (find_collation_sequence_value):
104313         Likewise.
104314         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
104315         (re_node_set_compare):
104316         Return bool, not int. All callers changed.
104317         * lib/regexec.c (check_halt_node_context, check_dst_limits):
104318         (build_trtable, check_node_accept): Likewise.
104319         * lib/regex_internal.h: Include stdbool.h.
104321         Fix bugs uncovered when converting to bool.
104322         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
104323         failure instead of charging ahead blindly.
104324         * lib/regex_internal.c (register_state): Likewise.
104325         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
104326         for freeing internal storage.
104327         (group_nodes_into_DFA_states): Use unsigned int, not int, for
104328         bitset pieces used as boolean, to avoid undefined behavior
104329         on hosts that do int overflow checking.
104331 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104333         * config/srclist.txt: Add glibc bugs 1285-1287.
104335 2005-09-01  Jim Meyering  <jim@meyering.net>
104337         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104338         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104339         Require gl_STAT_MACROS, too.
104341 2005-09-01  Bruno Haible  <bruno@clisp.org>
104343         * gnulib-tool (import): In the first-use case, provide defaults.
104345 2005-09-01  Bruno Haible  <bruno@clisp.org>
104347         * gnulib-tool (func_import): Remove the .tmp files.
104349 2005-09-01  Bruno Haible  <bruno@clisp.org>
104351         * gnulib-tool (func_import): Fix handling of symbolic links.
104353 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104355         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104356         old glibc regex code mishandles strings longer than 2**31 bytes.
104357         This patch fixes this when the regex code is used in gnulib
104358         (i.e., outside glibc).
104360         This patch should not affect the use of the regex code inside
104361         glibc.  No doubt this problem also needs to be handled for glibc
104362         as well, but the result will be an incompatible change to the
104363         glibc ABI, and the old ABI will have to be supported too.  That
104364         can be the subject for another patch.
104366         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104367         governing whether the rest of this patch is active.  By default,
104368         the macro is disabled and the patch has no effect.
104369         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104370         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104371         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104372         (re_match_2, re_set_registers): Use the new types.
104373         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104374         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104375         New macros.
104376         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104377         (re_string_context_at, bin_tree_t, re_dfastate_t):
104378         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104379         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104380         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104381         (re_string_char_size_at, re_string_wchar_at):
104382         (re_string_elem_size_at):
104383         Use the new types and macros to port to 64-bit hosts.
104384         Use unsigned types for internal values, so that the code
104385         mostly works even for arrays larger than SSIZE_MAX.
104386         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104387         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104388         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104389         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104390         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104391         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104392         (calc_inveclosure, parse_dup_op, build_range_exp):
104393         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104394         (fetch_number, create_token_tree, mark_opt_subexp):
104395         Likewise.
104396         * lib/regex_internal.c (re_string_construct_common,
104397         create_ci_newstate):
104398         (create_cd_newstate, re_string_allocate, re_string_construct):
104399         (re_string_realloc_buffers, build_wcs_upper_buffer):
104400         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104401         (re_string_reconstruct, re_string_peek_byte_case):
104402         (re_string_fetch_byte_case, re_string_context_at):
104403         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104404         (re_node_set_init_copy, re_node_set_add_intersect):
104405         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104406         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104407         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104408         (re_acquire_state, re_acquire_state_context, register_state):
104409         Likewise.
104410         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104411         search_cur_bkref_entry):
104412         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104413         (re_search_internal, re_search_2_stub, re_search_stub)
104414         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104415         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104416         (update_cur_sifted_state, check_dst_limits):
104417         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104418         (check_subexp_limits, sift_states_bkref, merge_state_array):
104419         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104420         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104421         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104422         (expand_bkref_cache, check_node_accept_bytes):
104423         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104424         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104425         (acquire_init_state_context, check_halt_node_context):
104426         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104427         (sift_states_backward, clean_state_log_if_needed):
104428         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104429         (find_recover_state, transit_state_sb, transit_state_mb):
104430         (transit_state_bkref, build_trtable, match_ctx_clean):
104431         Likewise.
104432         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104433         to work around an assumption that REG_MISSING is negative.
104435         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104436         (seek_collating_symbol_entry) [defined _LIBC]:
104437         (lookup_collation_sequence_value) [defined _LIBC]:
104438         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104439         Use prototypes rather than old-style function definitions.
104440         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104441         (transit_state_sb) [0]:
104442         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104444         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104445         rm_eo.
104447         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104448         (optimize_subexps, lower_subexp):
104449         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104450         since the signed shift might overflow.  Use 1u<<31 instead.
104451         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104452         Likewise.
104453         * lib/regexec.c (check_dst_limits_calc_pos_1,
104454         check_subexp_matching_top): Likewise.
104456         * lib/regcomp.c (optimize_subexps, lower_subexp):
104457         Use CHAR_BIT rather than 8, for clarity.
104458         * lib/regexec.c (check_dst_limits_calc_pos_1):
104459         (check_subexp_matching_top): Likewise.
104460         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104461         have to worry about portability issues when shifting it left.
104462         Remove no-longer-needed test for table_size > 0.
104463         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104464         in a word, as the resulting behavior is undefined.
104465         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104466         in one case, a <= should have been an <, and in another case the
104467         whole test was missing.
104468         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104469         the standard name CHAR_BIT.
104470         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104471         this is not true on one's complement and signed-magnitude hosts.
104473         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104474         next_last_offset.
104475         (struct re_dfa_t): Remove unused member states_alloc.
104476         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104478 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104480         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104481         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104482         and large-file glibc and in 32-bit large-file Solaris.
104484 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104486         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104487         lengths fit in regoff_t; this isn't true if regoff_t is the same
104488         width as size_t.
104489         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104490         (= START + RANGE) instead of RANGE.  This avoids overflow
104491         problems when regoff_t is the same width as size_t.
104492         All callers changed.
104493         (re_search_2_stub): Check for overflow when adding the
104494         sizes of the two strings.
104495         (re_search_stub): Check for overflow when adding START
104496         to RANGE; if it occurs, substitute the extreme value.
104498 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104500         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104502 2005-08-31  Jim Meyering  <jim@meyering.net>
104504         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104505         a pointer-to-const.
104506         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104507         (register_state): Likewise.
104508         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104509         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104510         (group_nodes_into_DFAstates): Likewise.
104512 2005-08-31  Jim Meyering  <jim@meyering.net>
104514         * check-module: Add a FIXME comment.
104516 2005-08-31  Eric Blake  <ebb9@byu.net>
104518         * modules/unistd-safer (Files): Add unistd--.h.
104519         * modules/stdio-safer (Files): Add stdio--.h.
104521 2005-08-31  Derek Price  <derek@ximbiot.com>
104523         * lib/getdelim.c (getdelim): Return EOF on EOF.
104524         Reported by Larry Jones <lawrence.jones@ugs.com>.
104526 2005-08-31  Bruno Haible  <bruno@clisp.org>
104528         Avoid unnecessary diffs in the generated lib/Makefile.am.
104529         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104530         the generated files.
104531         (func_import): Don't set cmd.
104533 2005-08-31  Bruno Haible  <bruno@clisp.org>
104535         * lib/strstr.c: Include <stddef.h>, for NULL.
104536         * lib/strcasestr.c: Likewise.
104537         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104539 2005-08-31  Bruno Haible  <bruno@clisp.org>
104541         * gnulib-tool: New option --macro-prefix.
104542         (func_import): Use macro_prefix.
104543         (import): Handle option --macro-prefix.
104545 2005-08-31  Bruno Haible  <bruno@clisp.org>
104547         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104548         Also use new variables cached_lgpl, cached_libtool.
104550 2005-08-31  Bruno Haible  <bruno@clisp.org>
104552         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104553         always instantiating them.
104555 2005-08-31  Bruno Haible  <bruno@clisp.org>
104557         * gnulib-tool (func_import): Read the previous cached settings
104558         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104559         earlier added by gnulib but are now dropped. Warn when a gnulib file
104560         overwrites a non-gnulib file.
104562 2005-08-31  Bruno Haible  <bruno@clisp.org>
104564         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104565         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104566         projects that don't keep autogenerated files in CVS. Put into
104567         actioncmd only the specified modules, not the transitive closure.
104569 2005-08-31  Bruno Haible  <bruno@clisp.org>
104571         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104572         Create directories that shall be filled.
104573         (import): Don't look for gl_* macros in configure.ac. Recurse across
104574         all directories containing a gnulib-cache.m4 files, if meaningful.
104576 2005-08-31  Bruno Haible  <bruno@clisp.org>
104578         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104579         (import): Set seen_libtool when we see gl_LIBTOOL.
104581 2005-08-31  Bruno Haible  <bruno@clisp.org>
104583         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104584         declaration macro definitions from generated gnulib.m4.
104586 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104588         * lib/iconvme.h: Add prototype for iconv_alloc.
104590 2005-08-29  Simon Josefsson  <jas@extundo.com>
104592         * lib/iconvme.c: Fix errno.
104594 2005-08-29  Bruno Haible  <bruno@clisp.org>
104596         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104597         that it works when the directory contains spaces.
104599 2005-08-29  Bruno Haible  <bruno@clisp.org>
104601         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104603 2005-08-29  Bruno Haible  <bruno@clisp.org>
104605         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104606         Emit more advice.
104608 2005-08-29  Bruno Haible  <bruno@clisp.org>
104609         and Stepan Kasal  <kasal@ucw.cz>
104611         * check-module: If more parameters are given, check each of them
104612         separately; add more exceptions, as noted by Jim Meyering.
104613         (check_module): New procedure.
104614         (%exempt_header): Now contains all exceptions.
104616 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104618         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104620 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104622         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104624 2005-08-28  Bruno Haible  <bruno@clisp.org>
104626         * m4/gnulib-tool.m4: New file.
104628 2005-08-27  Jim Meyering  <jim@meyering.net>
104630         * modules/unistd-safer (Files): Add pipe-safer.c.
104631         * modules/fcntl-safer (Files): Add creat-safer.c.
104633 2005-08-27  Jim Meyering  <jim@meyering.net>
104635         * m4/stdlib-safer.m4: New file.  From coreutils.
104636         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104637         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104638         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104639         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104640         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104642 2005-08-27  Jim Meyering  <jim@meyering.net>
104644         * lib/fopen-safer.c: Merge minor changes from coreutils.
104645         * lib/dup-safer.c: Likewise.
104646         * lib/fd-safer.c: Likewise.
104648         Merge from coreutils.
104649         * lib/stdio--.h: New file.
104650         * lib/stdlib--.h: New file.
104651         * lib/mkstemp-safer.c: New file.
104653         GNU tar needs these.
104654         * lib/pipe-safer.c: New file.
104655         * lib/creat-safer.c: New file.
104656         * lib/fcntl--.h (creat): Define to creat_safer.
104657         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104658         * lib/unistd--.h (pipe): Define to pipe_safer.
104659         * lib/unistd-safer.h: Declare pipe_safer.
104661 2005-08-26  Simon Josefsson  <jas@extundo.com>
104663         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104664         Haible <bruno@clisp.org>.
104666 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104668         * lib/regex_internal.h: Remove all references to
104669         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104670         or better.
104671         (bitset_not, bitset_merge, bitset_not_merge):
104672         (bitset_mask, re_string_allocate, re_string_construct):
104673         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104674         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104675         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104676         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104677         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104678         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104679         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104680         (re_acquire_state_context):
104681         Remove unnecessary forward decls.
104682         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104683         Put __attribute at function definition,
104684         now that the function decl has been removed.
104685         * lib/regex_internal.c (re_string_peek_byte_case):
104686         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104687         Likewise.
104689 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104691         * m4/regex.m4: Add AC_PREREQ(2.50).
104692         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104694 2005-08-25  Simon Josefsson  <jas@extundo.com>
104696         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104697         __fsetlocking.
104699 2005-08-25  Simon Josefsson  <jas@extundo.com>
104701         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104702         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104703         GLIBC specific code.
104705 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104707         Make regex safe for g++.  This fixes one real bug (an "err"
104708         that should have been "*err").  g++ problem reported by
104709         Sam Steingold.
104710         * lib/regex_internal.h (re_calloc): New macro, consistent with
104711         re_malloc etc.  All callers of calloc changed to use re_calloc.
104712         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104713         not int.  All callers changed.
104714         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104715         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104716         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104717         (find_recover_state): Change "err" to "*err"; this fixes what
104718         appears to be a real bug.
104719         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104720         versus int.
104722 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104724         * modules/regex (Depends-on): Add malloc, since the code
104725         assumes that !malloc(0) means failure.
104727 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104729         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104731         alloca modernization/simplification for regex.
104732         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104733         needs to be at the start of the file, and can be moved into
104734         regex_internal.h and simplified.
104735         * lib/regex_internal.h: Include <alloca.h>.
104736         (__libc_use_alloca) [!defined _LIBC]: New macro.
104737         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104738         now works outside glibc.
104740 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104742         * config/srclist.txt: Add glibc bugs 1241, 1245.
104744 2005-08-25  Jim Meyering  <jim@meyering.net>
104746         * lib/open-safer.c: Include <config.h>.
104747         Otherwise, we'd lose LARGEFILE support in any file using
104748         e.g. "fcntl--.h"
104750 2005-08-25  Bruno Haible  <bruno@clisp.org>
104752         * m4/minmax.m4: Require autoconf 2.52.
104753         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104754         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104755         alternatives of translit over the alphabet.
104756         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104758 2005-08-24  Simon Josefsson  <jas@extundo.com>
104760         * tests/test-getpass.c: New file.
104762 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104764         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104765         for GNU regex features.
104767 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104769         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104770         * lib/regex.h (regerror): Likewise.
104772         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104773         requires this.  (The code never needed it.)
104775         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104776         All uses of recently-renamed identifiers changed to use the new,
104777         POSIX-compliant names.  The code will build and run just fine
104778         without these changes, but it's better to eat our own dog food
104779         and use the standard-conforming names.
104781         * lib/regex.h: Fix a multitude of POSIX name space violations.
104782         These changes have an effect only for programs that define
104783         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104784         do not change anything for programs compiled in the normal way.
104785         Also, there is no effect on the ABI.
104787         (_REGEX_SOURCE): New macro.
104788         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104789         defined and _GNU_SOURCE is not; this fixes a name space violation.
104791         Rename the following macros to obey POSIX requirements.
104792         The old names are still visible as macros if _REGEX_SOURCE is defined.
104793         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104794         RE_BACKSLASH_ESCAPE_IN_LISTS.
104795         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104796         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104797         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104798         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104799         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104800         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104801         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104802         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104803         (REG_INTERVALS): renamed from RE_INTERVALS.
104804         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104805         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104806         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104807         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104808         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104809         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104810         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104811         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104812         RE_UNMATCHED_RIGHT_PAREN_ORD.
104813         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104814         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104815         (REG_DEBUG): renamed from RE_DEBUG.
104816         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104817         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104818         unusual, since we can't clash with the POSIX REG_ICASE.
104819         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104820         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104821         (REG_NO_SUB): renamed from RE_NO_SUB.
104822         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104823         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104824         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104825         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104826         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104827         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104828         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104829         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104830         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104831         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104832         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104833         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104834         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104835         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104836         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104837         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104838         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104839         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104840         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104841         (REG_FIXED): Renamed from REGS_FIXED.
104842         (REG_NREGS): Renamed from RE_NREGS.
104844         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104845         of other REG_* macros, since POSIX says the user is allowed to
104846         #undef these macros selectively.
104848         (reg_errcode_t): Update comment stating what other tables need
104849         to be consistent.
104851         Rename the following enum values to obey POSIX requirements.
104852         The old names are still visible as macros.
104853         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104854         is not defined, since GNU is supposed to be a superset of POSIX as
104855         much as possible, and since we want reg_errcode_t to be a signed
104856         type for implementation consistency.
104857         (_REG_NOERROR): Renamed from REG_NOERROR.
104858         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104859         (_REG_BADPAT): Renamed from REG_BADPAT.
104860         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104861         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104862         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104863         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104864         (_REG_EBRACK): Renamed from REG_EBRACK.
104865         (_REG_EPAREN): Renamed from REG_EPAREN.
104866         (_REG_EBRACE): Renamed from REG_EBRACE.
104867         (_REG_BADBR): Renamed from REG_BADBR.
104868         (_REG_ERANGE): Renamed from REG_ERANGE.
104869         (_REG_ESPACE): Renamed from REG_ESPACE.
104870         (_REG_BADRPT): Renamed from REG_BADRPT.
104871         (_REG_EEND): Renamed from REG_EEND.
104872         (_REG_ESIZE): Renamed from REG_ESIZE.
104873         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104874         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104875         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104876         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104877         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104879         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104880         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104881         changed.  But support the old name if the new one is not defined
104882         and if _REGEX_SOURCE.
104884         Change the following member names in struct re_pattern_buffer.
104885         The old names are still supported if !_REGEX_SOURCE.
104886         The new names are always supported, regardless of _REGEX_SOURCE.
104887         (re_buffer): Renamed from buffer.
104888         (re_allocated): Renamed from allocated.
104889         (re_used): Renamed from used.
104890         (re_syntax): Renamed from syntax.
104891         (re_fastmap): Renamed from fastmap.
104892         (re_translate): Renamed from translate.
104893         (re_can_be_null): Renamed from can_be_null.
104894         (re_regs_allocated): Renamed from regs_allocated.
104895         (re_fastmap_accurate): Renamed from fastmap_accurate.
104896         (re_no_sub): Renamed from no_sub.
104897         (re_not_bol): Renamed from not_bol.
104898         (re_not_eol): Renamed from not_eol.
104899         (re_newline_anchor): Renamed from newline_anchor.
104901         Change the following member names in struct re_registers.
104902         The old names are still supported if !_REGEX_SOURCE.
104903         The new names are always supported, regardless of _REGEX_SOURCE.
104904         (rm_num_regs): Renamed from num_regs.
104905         (rm_start): Renamed from start.
104906         (rm_end): Renamed from end.
104908         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104909         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104910         Prepend __ to parameter names.
104912         Undo yesterday's changes.
104914 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104916         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104917         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104918         lib/regex.c.
104920 2005-08-24  Jim Meyering  <jim@meyering.net>
104922         Sync from coreutils.
104923         * m4/fcntl-safer.m4: New file.
104925         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104926         and object files for this module.
104928 2005-08-24  Jim Meyering  <jim@meyering.net>
104930         Sync from coreutils.
104931         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104933 2005-08-24  Jim Meyering  <jim@meyering.net>
104935         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104936         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104938 2005-08-24  Jim Meyering  <jim@meyering.net>
104940         * modules/fcntl-safer: New module.
104941         * modules/fts (Depends-on): Add fcntl-safer.
104942         * MODULES.html.sh (File descriptor based Input/Output):
104943         Add fcntl-safer.
104945 2005-08-24  Bruno Haible  <bruno@clisp.org>
104947         Support for unit test modules.
104948         * modules/README: Mention tests modules.
104949         * modules/TEMPLATE-TESTS: New file.
104950         * gnulib-tool: New options --extract-tests-module, --with-tests and
104951         --tests-base (unused for the moment).
104952         (testsbase, inctests): New variables.
104953         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104954         (func_verify_module): Exclude TEMPLATE-TESTS.
104955         (func_verify_nontests_module, func_verify_tests_module): New functions.
104956         (func_get_dependencies): Add implicit dependency for tests modules.
104957         (func_get_tests_module): New function.
104958         (func_modules_transitive_closure): When --with-tests was specified,
104959         include the unit tests as well, unless explicitly avoided.
104960         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104961         (func_emit_tests_Makefile_am): New function.
104962         (func_create_testdir): When --with-tests was specified, emit a
104963         tests/ directory.
104964         * MODULES.html.sh (Future developments): Update.
104966 2005-08-24  Bruno Haible  <bruno@clisp.org>
104968         * modules/tls-tests: New file.
104969         * tests/test-tls.c: New file, from GNU gettext.
104971 2005-08-24  Bruno Haible  <bruno@clisp.org>
104973         * modules/lock-tests: New file.
104974         * tests/test-lock.c: New file, from GNU gettext.
104976 2005-08-24  Bruno Haible  <bruno@clisp.org>
104978         * lib/lock.h: Add multiple inclusion guard.
104979         * lib/tls.h: Add multiple inclusion guard.
104981 2005-08-24  Bruno Haible  <bruno@clisp.org>
104983         * gnulib-tool: Add support for the --aux-dir option to
104984         --create-testdir, --create-megatestdir, --test, --megatest.
104985         (func_create_testdir, func_create_megatestdir): Optionally emit a
104986         AC_CONFIG_AUX_DIR directive.
104987         (create-testdir, create-megatestdir, test, megatest): Provide a
104988         default value for $auxdir.
104990 2005-08-24  Bruno Haible  <bruno@clisp.org>
104992         * gnulib-tool (import): Use compound statement instead of subshell
104993         where possible.
104995 2005-08-24  Bruno Haible  <bruno@clisp.org>
104997         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104999 2005-08-24  Bruno Haible  <bruno@clisp.org>
105001         * gnulib-tool (func_version): Update.
105003 2005-08-24  Bruno Haible  <bruno@clisp.org>
105005         * gnulib-tool (func_import, func_create_testdir,
105006         func_create_megatestdir): Quote all autoconf macro arguments.
105008 2005-08-24  Bruno Haible  <bruno@clisp.org>
105010         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
105011         option --force, because --force causes the aclocal.m4 of each
105012         subdirectory to be newer than the corresponding config.h.in.
105014 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105016         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
105017         All contents moved to gl_REGEX.
105018         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
105019         assume that it does.
105021 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105023         * lib/regex.h (REG_NOSYS)
105024         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
105025         Define, since POSIX requires it as of 2001.
105026         (_REG_ENOSYS)
105027         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
105028         New private symbol, used to keep the enum signed in all cases.
105029         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
105030         Youngman in
105031         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
105033         * lib/regex_internal.c (re_string_skip_chars, register_state):
105034         (calc_state_hash):
105035         Remove forward decls; no longer needed now that we use prototypes.
105036         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
105037         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
105038         (clean_state_log_if_needed): Likewise.
105040 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105042         * config/srclist.txt: Add glibc bugs 1231-1233.
105044 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105046         Fix problems reported by Sam Steingold in
105047         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
105048         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
105049         assumed that reg_errcode_t is a signed type, which is not
105050         necessarily true if _XOPEN_SOURCE is not defined.
105051         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
105052         since some compilers warn about it otherwise.
105054 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105056         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
105057         (init_word_char, create_initial_state, duplicate_node_closure):
105058         (fetch_token, peek_token_bracket, build_range_exp):
105059         (build_collating_symbol): Remove forward decls; no longer needed
105060         now that we use prototypes.
105062         * lib/regcomp.c:
105063         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
105064         (re_compile_fastmap_iter, regcomp, regerror, regfree):
105065         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
105066         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
105067         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
105068         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
105069         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
105070         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
105071         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
105072         (build_range_exp, build_collating_symbol, parse_bracket_exp):
105073         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
105074         (build_charclass, build_charclass_op, fetch_number, create_tree):
105075         (create_token_tree, mark_opt_subexp, duplicate_tree):
105076         Use prototypes rather than old-style definitions.
105078         * lib/regex_internal.c:
105079         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
105080         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
105081         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
105082         (re_string_reconstruct, re_string_peek_byte_case):
105083         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
105084         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
105085         (re_node_set_init_copy, re_node_set_add_intersect):
105086         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
105087         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
105088         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
105089         (re_acquire_state, re_acquire_state_context, register_state):
105090         (create_ci_newstate, create_cd_newstate, free_state):
105091         Likewise.
105092         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
105093         re_search_2):
105094         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
105095         (re_search_internal, prune_impossible_nodes):
105096         (acquire_init_state_context, check_matching, static):
105097         (check_halt_node_context, check_halt_state_context, proceed_next_node):
105098         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
105099         (update_regs, sift_states_backward, build_sifted_states):
105100         (clean_state_log_if_needed, merge_state_array):
105101         (update_cur_sifted_state, add_epsilon_src_nodes):
105102         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
105103         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
105104         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
105105         (find_recover_state, check_subexp_matching_top, transit_state_mb):
105106         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
105107         (check_arrival, check_arrival_add_next_nodes):
105108         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
105109         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
105110         (check_node_accept_bytes, check_node_accept, extend_buffers):
105111         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
105112         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
105113         (sift_ctx_init):
105114         Likewise.
105116         * lib/regex_internal.h:
105117         (re_string_allocate, re_string_construct, re_string_reconstruct):
105118         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
105119         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
105120         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
105121         (re_string_context_at, re_string_peek_byte_case):
105122         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
105123         is defined, since we now use prototypes always.
105125         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
105126         C89 or better.  All uses removed.
105128 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105130         * config/srclist.txt: Add glibc bugs 1220-1227.
105132 2005-08-20  Jim Meyering  <jim@meyering.net>
105134         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
105135         of unused local, dfa.
105137 2005-08-20  Bruno Haible  <bruno@clisp.org>
105139         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
105141 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105143         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
105144         (re_node_set_insert_last, re_dfa_add_node):
105145         Rename local variables to avoid GCC shadowing warnings.
105147 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105149         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
105150         [defined lint]: Suppress bogus uninitialized-variable warnings.
105152         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
105153         and let the caller return REG_ESPACE if out of space.  This
105154         removes an uninitialied-variable warning with GCC 4.0.1, and also
105155         avoids taking the address of a local variable.  All callers
105156         changed.
105158 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105160         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
105161         $LIBCSRC/posix/regexec.c.
105162         Add glibc bug 1217 for regcomp.c.
105164 2005-08-19  Jim Meyering  <jim@meyering.net>
105166         * lib/regexec.c (proceed_next_node): Redo local variables to
105167         avoid GCC shadowing warnings.
105169 2005-08-18  Bruno Haible  <bruno@clisp.org>
105171         * lib/strstr.c (strstr): Fix return value in multibyte case.
105172         * lib/strcasestr.c (strcasestr): Likewise.
105174 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105176         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
105178 2005-08-17  Jim Meyering  <jim@meyering.net>
105180         Make the %s format (seconds since the epoch) work for a negative
105181         number and when used with a zero-padded field width, e.g. %015s.
105183         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
105184         label so that it precedes the code to set `digits'.  Otherwise,
105185         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
105186         print `00-22'.  Now, it prints `-0022', as it should.
105188 2005-08-17  Bruno Haible  <bruno@clisp.org>
105190         * modules/strstr (Files): Add m4/mbrtowc.m4.
105191         (Depends-on): Add mbuiter.
105193 2005-08-17  Bruno Haible  <bruno@clisp.org>
105195         * modules/strcasestr: New file.
105196         * MODULES.html.sh (String handling, based on ANSI C 89): Add
105197         strcasestr.
105199 2005-08-17  Bruno Haible  <bruno@clisp.org>
105201         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
105203 2005-08-17  Bruno Haible  <bruno@clisp.org>
105205         * modules/mbuiter: New file.
105206         * MODULES.html.sh (Extended multibyte and wide character utilities):
105207         Add mbuiter.
105209 2005-08-17  Bruno Haible  <bruno@clisp.org>
105211         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
105212         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
105214 2005-08-17  Bruno Haible  <bruno@clisp.org>
105216         * m4/strcasestr.m4: New file.
105218 2005-08-17  Bruno Haible  <bruno@clisp.org>
105220         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
105221         * lib/strstr.c: Completely rewritten, with multibyte locale support.
105223 2005-08-17  Bruno Haible  <bruno@clisp.org>
105225         * lib/strcasestr.h: New file.
105226         * lib/strcasestr.c: New file.
105228 2005-08-17  Bruno Haible  <bruno@clisp.org>
105230         * lib/strcasecmp.c: Use mbuiter.h.
105232 2005-08-17  Bruno Haible  <bruno@clisp.org>
105234         * lib/mbuiter.h: New file.
105236 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
105238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
105239         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
105240         and gl_GETOPT are both invoked via different paths (as happens
105241         with GNU tar CVS because it uses both argp and getopt), the former
105242         wins.
105244 2005-08-16  Bruno Haible  <bruno@clisp.org>
105246         * modules/tls: New file.
105247         * MODULES.html.sh (Multithreading): Add tls.
105249 2005-08-16  Bruno Haible  <bruno@clisp.org>
105251         * modules/strnlen1: New file.
105252         * MODULES.html.sh (String handling): Add strnlen1.
105254 2005-08-16  Bruno Haible  <bruno@clisp.org>
105256         * modules/strcase (Files): Add m4/mbrtowc.m4.
105257         (Depends-on): Add strnlen1, mbchar.
105259 2005-08-16  Bruno Haible  <bruno@clisp.org>
105261         * modules/mbiter: New file.
105262         * MODULES.html.sh (Extended multibyte and wide character utilities):
105263         Add mbiter.
105265 2005-08-16  Bruno Haible  <bruno@clisp.org>
105267         * modules/mbfile: New file.
105268         * MODULES.html.sh (Extended multibyte and wide character utilities):
105269         Add mbfile.
105271 2005-08-16  Bruno Haible  <bruno@clisp.org>
105273         * modules/mbchar: New file.
105274         * MODULES.html.sh (Extended multibyte and wide character utilities):
105275         New section.
105277 2005-08-16  Bruno Haible  <bruno@clisp.org>
105279         * m4/tls.m4: New file, from GNU gettext.
105281 2005-08-16  Bruno Haible  <bruno@clisp.org>
105283         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
105284         always.
105285         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
105287 2005-08-16  Bruno Haible  <bruno@clisp.org>
105289         * m4/mbiter.m4: New file.
105291 2005-08-16  Bruno Haible  <bruno@clisp.org>
105293         * m4/mbfile.m4: New file.
105295 2005-08-16  Bruno Haible  <bruno@clisp.org>
105297         * m4/mbchar.m4: New file.
105299 2005-08-16  Bruno Haible  <bruno@clisp.org>
105301         * lib/tls.h: New file, from GNU gettext.
105302         * lib/tls.c: New file, from GNU gettext.
105304 2005-08-16  Bruno Haible  <bruno@clisp.org>
105306         * lib/strnlen1.h: New file.
105307         * lib/strnlen1.c: New file.
105309 2005-08-16  Bruno Haible  <bruno@clisp.org>
105311         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
105312         (mbi_init): Update.
105313         (mbi_avail, mbi_advance): Let the iteration end before the terminating
105314         NUL byte, not after it.
105316 2005-08-16  Bruno Haible  <bruno@clisp.org>
105318         * lib/strcase.h (strcasecmp): Add note in comments.
105319         * lib/strncasecmp.c: Use code from strcasecmp.c.
105320         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
105321         (strcasecmp): Work correctly in multibyte locales.
105323 2005-08-16  Bruno Haible  <bruno@clisp.org>
105325         * lib/mbiter.h: New file.
105327 2005-08-16  Bruno Haible  <bruno@clisp.org>
105329         * lib/mbfile.h: New file.
105331 2005-08-16  Bruno Haible  <bruno@clisp.org>
105333         * lib/mbchar.h: New file.
105334         * lib/mbchar.c: New file.
105336 2005-08-16  Bruno Haible  <bruno@clisp.org>
105338         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105339         the valid ones. Makes the comparison operations transitive:
105340         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105341         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105343 2005-08-15  Simon Josefsson  <jas@extundo.com>
105345         * modules/ssize_t (License): Change to 'unlimited'.
105347         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105349 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105351         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105352         Add comments for each pending glibc patch.
105354 2005-08-15  Bruno Haible  <bruno@clisp.org>
105356         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105357         __cplusplus is defined.
105359 2005-08-14  Jim Meyering  <jim@meyering.net>
105361         Sync from coreutils.
105363         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105364         Use the hash-table-based cycle-detection code not just when
105365         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105366         Reported by James Youngman in
105367         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105368         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105369         FTS_TIGHT_CYCLE_CHECK.
105370         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105371         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105372         once again.
105373         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105374         * lib/fts.c (fd_safer): Remove decl.
105375         Include fcntl--.h rather than unistd-safer.h
105376         (fts_safe_changedir): Don't call fd_safer; no longer needed
105377         now that we include fcntl--.h.
105379 2005-08-12  Simon Josefsson  <jas@extundo.com>
105381         * modules/getndelim2: Use ssize_t module.
105382         * modules/getnline: Likewise.
105383         * modules/safe-read: Likewise.
105384         * modules/xreadlink: Likewise.
105386         * modules/ssize_t: New file.
105388 2005-08-12  Simon Josefsson  <jas@extundo.com>
105390         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105392 2005-08-12  Simon Josefsson  <jas@extundo.com>
105394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105395         ssize_t.
105397 2005-08-12  Simon Josefsson  <jas@extundo.com>
105399         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105400         readline, getdelim and check_version.
105401         (Support for systems lacking ISO C 99: Sizes of integer types):
105402         Add size_max.
105404 2005-08-12  Bruno Haible  <bruno@clisp.org>
105406         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105408 2005-08-11  Simon Josefsson  <jas@extundo.com>
105410         * modules/readline: New file.
105412         * modules/strnlen (Files): Add strnlen.h.
105414 2005-08-11  Simon Josefsson  <jas@extundo.com>
105416         * m4/readline.m4: New file.
105418 2005-08-11  Simon Josefsson  <jas@extundo.com>
105420         * lib/readline.h, readline.c: New file.
105422 2005-08-11  Simon Josefsson  <jas@extundo.com>
105424         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105425         gl_AVOID.
105427 2005-08-11  Bruno Haible  <bruno@clisp.org>
105429         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105431 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105433         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105435 2005-08-10  Simon Josefsson  <jas@extundo.com>
105437         * tests/test-iconvme.c: New file.
105439 2005-08-10  Simon Josefsson  <jas@extundo.com>
105441         * m4/strnlen.m4: New file.
105443         * m4/strndup.m4: Don't check for strnlen declaration, done in
105444         strnlen.m4.
105446 2005-08-10  Simon Josefsson  <jas@extundo.com>
105448         * lib/strndup.c: Use strnlen.h.
105450         * lib/strnlen.h: New file.
105452 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105454         * README: Typos.
105456 2005-08-02  Simon Josefsson  <jas@extundo.com>
105458         * modules/readline: New file.
105460 2005-08-02  Simon Josefsson  <jas@extundo.com>
105462         * modules/getdelim: New file.
105464         * modules/getline: Rewrite, don't use getndelim2.
105466 2005-08-02  Simon Josefsson  <jas@extundo.com>
105468         * m4/getline.m4: Separate out getdelim stuff into separate module.
105470         * m4/getdelim.m4: New file.
105472 2005-08-02  Simon Josefsson  <jas@extundo.com>
105474         * lib/getline.h, getline.c: Rewrite.
105476         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105478 2005-07-31  Bruno Haible  <bruno@clisp.org>
105480         * lib/lock.h (gl_lock_initializer): New macro.
105481         (gl_lock_define_initialized): Use it.
105482         (gl_rwlock_initializer): New macro.
105483         (gl_rwlock_define_initialized): Use it.
105484         (gl_recursive_lock_initializer): New macro.
105485         (gl_recursive_lock_define_initialized): Use it.
105487 2005-07-30  Karl Berry  <karl@gnu.org>
105489         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105490         Report from Ben Pfaff, regarding getopt.
105492 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105494         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105495         normal way.
105496         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105497         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105498         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105499         (gl_GETOPT): Use the new macros.  Most of the implementation
105500         is moved to the new macros.  This is for programs like Emacs
105501         that don't want all the functionality of gl_GETOPT.
105503 2005-07-26  Bruno Haible  <bruno@clisp.org>
105505         * m4/lock.m4: Update from GNU gettext.
105507 2005-07-26  Bruno Haible  <bruno@clisp.org>
105509         * lib/lock.h: Update from GNU gettext.
105510         * lib/lock.c: Update from GNU gettext.
105512 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105514         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105515         obsolescent AC_TRY_RUN.  Include the default includes files, for
105516         'exit'.
105518 2005-07-24  Bruno Haible  <bruno@clisp.org>
105520         * modules/visibility: New file.
105521         * MODULES.html.sh (Misc): Add visibility.
105523 2005-07-24  Bruno Haible  <bruno@clisp.org>
105525         * m4/visibility.m4: New file.
105527 2005-07-24  Bruno Haible  <bruno@clisp.org>
105529         * doc/visibility.texi: New file.
105531 2005-07-22  Bruno Haible  <bruno@clisp.org>
105533         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105534         $(ALLOCA_H), redundant through BUILT_SOURCES.
105535         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105536         redundant through BUILT_SOURCES.
105537         * modules/byteswap (Makefile.am): Remove explicit dependency on
105538         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105539         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105540         $(FNMATCH_H), redundant through BUILT_SOURCES.
105541         * modules/getopt (Makefile.am): Remove explicit dependency on
105542         $(GETOPT_H), redundant through BUILT_SOURCES.
105543         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105544         redundant through BUILT_SOURCES.
105545         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105546         redundant through BUILT_SOURCES.
105547         * modules/stdbool (Makefile.am): Remove explicit dependency on
105548         $(STDBOOL_H), redundant through BUILT_SOURCES.
105549         * modules/stdint (Makefile.am): Remove explicit dependency on
105550         $(STDINT_H), redundant through BUILT_SOURCES.
105551         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105552         Remove explicit dependency on $(SYSEXITS_H).
105553         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105555 2005-07-18  Simon Josefsson  <jas@extundo.com>
105557         * lib/check-version.c (check_version): Accept identical versions too.
105559 2005-07-18  Bruno Haible  <bruno@clisp.org>
105561         * modules/lock: New file.
105562         * MODULES.html.sh (Multithreading): New section.
105564 2005-07-18  Bruno Haible  <bruno@clisp.org>
105566         * m4/lock.m4: New file, from GNU gettext.
105568 2005-07-18  Bruno Haible  <bruno@clisp.org>
105570         * lib/lock.h: New file, from GNU gettext.
105571         * lib/lock.c: New file, from GNU gettext.
105573 2005-07-18  Bruno Haible  <bruno@clisp.org>
105575         * lib/lock.h (gl_once_t): New type.
105576         (gl_once_define, gl_once): New macros.
105577         * lib/lock.c (fresh_once): New variable.
105578         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105579         functions.
105581 2005-07-16  Simon Josefsson  <jas@extundo.com>
105583         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105584         workaround, suggested by Bruno.
105586 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105588         * modules/xalloc (Depends-on): Add xalloc-die.
105589         * modules/xvasprintf (Depends-on): Add xalloc-die.
105591 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105593         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105594         with a minor change.
105596 2005-07-15  Bruno Haible  <bruno@clisp.org>
105598         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105599         When using lib/poll.c, define poll as rpl_poll.
105601 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105603         * modules/argp (Depends-on): Remove unlocked-io.
105605 2005-07-14  Derek Price  <derek@ximbiot.com>
105607         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105608         for glob symlink bug.
105610 2005-07-14  Bruno Haible  <bruno@clisp.org>
105612         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105613         Instead, test for *_unlocked function declarations directly.
105615 2005-07-11  Simon Josefsson  <jas@extundo.com>
105617         * modules/size_max: New file.
105619         * modules/xsize: Depend on size_max module for size_max.m4.
105621 2005-07-11  Simon Josefsson  <jas@extundo.com>
105623         * lib/size_max.h: New file.
105625 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105627         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105628         copyright symbol and the year.
105629         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105630         (version_etc_va): Use parameterized copyright notice.
105631         Reword to conform to the current GNU coding standards.
105633 2005-07-11  Karl Berry  <karl@gnu.org>
105635         * doc/gnulib.texi (Quoting): new node.
105636         (Initial import): more info, from Patrice.
105638 2005-07-11  Bruno Haible  <bruno@clisp.org>
105640         * gnulib-tool (func_usage): Document option --avoid.
105641         (Command line options): Handle --avoid.
105642         (func_acceptable): New function.
105643         (func_modules_transitive_closure): Use it.
105645 2005-07-11  Bruno Haible  <bruno@clisp.org>
105647         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105648         Reported by Jim Meyering.
105650 2005-07-10  Bruno Haible  <bruno@clisp.org>
105652         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105653         Needed when size_t is smaller than 'unsigned int'.
105654         Reported by Paul Eggert.
105656 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105658         * modules/argp (Depends-on): Add unlocked-io
105660 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105662         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105663         block of defines.
105665 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105667         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105668         fix now.
105670 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105671         and Paul Eggert  <eggert@cs.ucla.edu>
105673         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105674         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105676 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105678         * modules/regex (Files): Add lib/regex_internal.c,
105679         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105680         (Depends-on): Add extensions.
105681         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105683 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105685         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105686         pathconf.
105687         * m4/same.m4 (gl_SAME): Likewise.
105688         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105690         * m4/regex.m4: Adjust to new libc regex implementation.
105691         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105692         all the .c and .h parts of (the new) regex.
105693         Quote the m4 stuff better.
105694         Check for RE_ICASE bug of old gnulib.
105695         Check for REG_STARTEND of recent libc.
105696         Rename local variables from jm_* to gl_*.
105697         Quote operand of "test -f".
105698         Say "recent enough" version of libc, not "version 2".
105699         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105700         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105701         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105702         Remove check for btowc, isascii.
105703         Require AM_LANGINFO_CODESET.
105705 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105707         * lib/regex.c, regex.h: Sync from libc.
105708         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105709         * lib/regexec.c:
105710         New files, synced from libc, except that regex_internal.h
105711         currently has a small porting fix.
105713 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105715         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105716         regex_internal.c, regexec.c.
105717         Add regex_internal.h too, but as a comment, since the libc version
105718         is currently broken in gnulib mode.
105720 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105722         Support programs like Emacs that use gnulib but not gettext.
105723         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105724         * modules/gettext-h: New file.
105725         * modules/gettext (Files): Remove lib/gettext.h.
105726         (Depends-on): Add gettext-h.
105727         (Makefile.am): Remove lib_SOURCES.
105728         * modules/argmatch, modules/c-stack, modules/closeout:
105729         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105730         * modules/execute, modules/file-type, modules/getaddrinfo:
105731         * modules/getopt, modules/human, modules/javacomp:
105732         * modules/javaexec, modules/mkdir-p, modules/obstack:
105733         * modules/openat, modules/pagealign_alloc, modules/pipe:
105734         * modules/quotearg, modules/regex, modules/rpmatch:
105735         * modules/unicodeio, modules/userspec, modules/version-etc:
105736         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105737         * modules/xsetenv:
105738         Depend on gettext-h, not gettext.
105740 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105742         * gnulib-tool (func_import): Add support for 'public domain' license.
105743         * modules/alloca, modules/atexit, modules/memmove:
105744         Now public domain, not GPL.
105745         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105746         * modules/realloc, modules/strerror, modules/strtod:
105747         Now LGPL, not GPL.
105749 2005-07-05  Bruno Haible  <bruno@clisp.org>
105751         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105752         autoconf CVS. Needed for mingw.
105754 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105756         Remove the dependency of the strftime module on the tzset module.
105757         * modules/strftime (Depends-on): Remove dependency on tzset.
105759 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105761         Remove the dependency of the strftime module on the tzset module.
105762         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105763         gl_FUNC_TZSET_CLOBBER.
105765 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105767         Remove the dependency of the strftime module on the tzset module.
105768         * lib/strftime.c (my_strftime)
105769         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105770         Copy the input structure, to work around some of the bug with
105771         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105772         Solaris releases, you should also use the tzset module, but we won't
105773         require it as a dependency any more since we don't want LGPLed code
105774         to depend on GPLed code.
105776 2005-07-02  Jim Meyering  <jim@meyering.net>
105778         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105779         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105780         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105781         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105783 2005-07-02  Jim Meyering  <jim@meyering.net>
105785         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105787 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105789         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105790         declares only 'struct timespec;' (!).
105792 2005-07-01  Jim Meyering  <jim@meyering.net>
105794         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105795         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105796         * lib/save-cwd.c, tempname.c:
105797         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105798         and don't include <sys/file.h>).
105800 2005-06-29  Jim Meyering  <jim@meyering.net>
105802         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105803         type name.  Use the variable name instead.
105804         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105805         Likewise.
105807 2005-06-28  Simon Josefsson  <jas@extundo.com>
105809         * modules/check-version (Files): Add check-version.m4.
105811 2005-06-28  Simon Josefsson  <jas@extundo.com>
105813         * m4/check-version.m4: New file, suggested by Jim Meyering
105814         <jim@meyering.net>.
105816 2005-06-28  Simon Josefsson  <jas@extundo.com>
105818         * lib/check-version.h, lib/check-version.c: New files.
105820 2005-06-28  Simon Josefsson  <jas@extundo.com>
105822         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105823         collision with global variable.  Better indentation.  Don't
105824         increment buffer pointer beyond buffer end.  Based on comments
105825         from Paul Eggert <eggert@cs.ucla.edu>.
105827         * lib/base64.h: Indent.
105829 2005-06-28  Simon Josefsson  <jas@extundo.com>
105831         * doc/gnulib.texi (Library version handling): New section.
105833 2005-06-28  Jim Meyering  <jim@meyering.net>
105835         * check-module (find_included_lib_files): Hard-code another
105836         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105837         but modules/fts-lgpl (correctly) does not list those files.
105839         * modules/canonicalize (Files): Add lib/pathmax.h.
105841 2005-06-25  Simon Josefsson  <jas@extundo.com>
105843         * modules/check-version: New file.
105845 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105847         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105848         initializer of struct addrinfo, as an indication that we don't
105849         care how many members the structure has.
105851 2005-06-24  Derek Price  <derek@ximbiot.com>
105852         and Bruno Haible  <bruno@clisp.org>
105854         Remove stat module & update lstat.
105855         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105856         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105857         * m4/stat.m4: Remove this file.
105859 2005-06-24  Derek Price  <derek@ximbiot.com>
105860         and Bruno Haible  <bruno@clisp.org>
105862         Remove stat module & update lstat.
105863         * lib/stat.c: Remove this file...
105864         (slash_aware_lstat): ...moving this content and its support...
105865         * lib/lstat.c (rpl_lstat): ...into here.
105866         * lib/lstat.h: New file.
105868 2005-06-24  Derek Price  <derek@ximbiot.com>
105869         and Bruno Haible  <bruno@clisp.org>
105871         Remove stat module & update lstat.
105872         * config/srclist.txt (libc sources): Remove stat.
105874 2005-06-24  Derek Price  <derek@ximbiot.com>
105875         and Bruno Haible  <bruno@clisp.org>
105877         Remove stat module & update lstat.
105878         * MODULES.html.sh (stat): Remove.
105879         * MODULES.html: Regenerated.
105880         * modules/lstat (Description): Correct function name.
105881         (Files): Add "lstat.h".
105882         (Depends-on): Remove stat, add xalloc, stat-macros.
105883         * modules/stat: Remove this file.
105884         (Include): Add "lstat.h", remove <sys/stat.h>.
105886 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105888         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105889         (ranged_convert): Don't save conversion in a temporary struct.
105890         This causes a warning with GCC 4.0.0, and anyway in the typical
105891         case it's not worth the extra 100 bytes or so of code.
105892         (ranged_convert, __mktime_internal): When calling a function via a
105893         pointer P, use P () rather than (*P) (), as we now assume C89 or
105894         better.
105896 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105898         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105899         "who -r" failed to give output.  Problem reported by Tim Waugh.
105901         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105902         (xcalloc): Use it to avoid needless tests.
105903         Problem reported by Jim Meyering.
105905 2005-06-20  Derek Price  <derek@ximbiot.com>
105907         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105908         unnecessary for Autoconfs > 2.59c.
105910 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105912         * lib/argp.h (__option_is_short): Check upper limit of
105913         __key. Isprint() requires its argument to have the value
105914         of an unsigned char or EOF.
105916 2005-06-16  Jim Meyering  <jim@meyering.net>
105918         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105919         when either N or S is zero.
105921 2005-06-16  Derek Price  <derek@ximbiot.com>
105923         * m4/bison.m4: Declare YACC & YFLAGS precious.
105925 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105927         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105928         multibyte string or pattern, fall back on unibyte matching.
105929         Problem reported by James Youngman.
105931 2005-06-08  Bruno Haible  <bruno@clisp.org>
105933         * modules/csharpcomp: New file.
105934         * MODULES.html.sh (C#): Add csharpcomp.
105936 2005-06-08  Bruno Haible  <bruno@clisp.org>
105938         * m4/csharpcomp.m4: New file, from GNU gettext.
105940 2005-06-08  Bruno Haible  <bruno@clisp.org>
105942         * lib/csharpcomp.h: New file, from GNU gettext.
105943         * lib/csharpcomp.c: New file, from GNU gettext.
105944         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105946 2005-06-08  Bruno Haible  <bruno@clisp.org>
105948         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105949         warning on mingw.
105951 2005-06-07  Derek Price  <derek@ximbiot.com>
105953         Sync from CVS.
105954         * lib/glob_.h: Indent nested #ifdef.
105956 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105958         Sync from coreutils.
105959         Use "file name" when talking about file names, instead of "filename"
105960         or "path", as per the GNU coding standards.
105961         * lib/mkdir-p.c: Renamed from makepath.c.
105962         (make_dir_parents): Renamed from make_path.  All callers changed.
105963         * lib/mkdir-p.h: Likewise.  All includers changed.
105964         * lib/filenamecat.c: Renamed from path-concat.c.
105965         (file_name_concat): Renamed from path_concat.  All callers changed.
105966         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105967         * lib/filenamecat.h: Likewise.  All includers changed.
105968         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105969         in comments or local variable names.
105970         * lib/basename.c: Likewise.
105971         * lib/canonicalize.c, canonicalize.h: Likewise.
105972         * lib/dirname.c, dirname.h: Likewise.
105973         * lib/euidaccess.c: Likewise.
105974         * lib/exclude.c: Likewise
105975         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105976         * lib/fsusage.c, fsuage.h: Likewise.
105977         * lib/fts.c, fts_.h: Likewise.
105978         * lib/getcwd.c: Likewise.
105979         * lib/getloadavg.c: Likewise.
105980         * lib/mkstemp.c: Likewise.
105981         * lib/mountlist.c, mountlist.h: Likewise.
105982         * lib/openat.c, openat.h: Likewise.
105983         * lib/readlink-stub.c: Likewise.
105984         * lib/readutmp.c, readutmp.h: Likewise.
105985         * lib/rename.c: Likewise.
105986         * lib/rmdir.c: Likewise.
105987         * lib/same.c: Likewise.
105988         * lib/savedir.c: Likewise.
105989         * lib/stripslash.c: Likewise.
105990         * lib/tempname.c: Likewise.
105991         * lib/xreadlink.c: Likewise.
105992         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105993         All uses changed.
105994         * lib/exclude.h: Likewise.
105996         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105997         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105998         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105999         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106000         * lib/pathmax.h: Include <limits.h> unconditionally, since other
106001         files have been getting away with it for years (MORE/BSD 4.3
106002         is extinct now).
106003         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
106004         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106006         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
106007         Define to 256, not 255, as per modern POSIX.
106009 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106011         Sync from coreutils.
106012         Use "file name" when talking about file names, instead of "filename"
106013         or "path", as per the GNU coding standards.
106014         * MODULES.html.sh: mkdir-p renamed from makepath.
106015         filenamecat renamed from path-concat.
106016         * modules/filenamecat: Renamed from modules/path-concat.
106017         (Files): filenamecat.h and filenamecat.c renamed from
106018         path-concat.h and path-concat.c.
106019         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
106020         (Include): filenamecat.h, not path-concat.h.
106021         * modules/mkdir-p: Renamed from modules/makepath.
106022         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
106023         makepath.c.
106024         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
106025         (Include): mkdir-p.h, not makepath.h.
106027 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106029         Sync from coreutils.
106030         * m4/mkdir-p.m4: Renamed from makepath.m4.
106031         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
106032         Rename files from makepath.c to mkdir-p.c, and from
106033         makepath.h to mkdir-p.h.
106034         * m4/filenamecat.m4: Renamed from path-concat.m4.
106035         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
106036         Rename files from path-concat.c to filenamecat.c,
106037         and from path-concat.h to filenamecat.h.
106038         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
106039         "file name" in local variables or comments.
106040         * m4/rename.m4: Likewise.
106042 2005-06-01  Bruno Haible  <bruno@clisp.org>
106044         * modules/csharpexec: New file.
106045         * MODULES.html.sh (C#): New section.
106047 2005-06-01  Bruno Haible  <bruno@clisp.org>
106049         * m4/csharp.m4: New file, from GNU gettext.
106050         * m4/csharpexec.m4: New file, from GNU gettext.
106052 2005-06-01  Bruno Haible  <bruno@clisp.org>
106054         * lib/csharpexec.h: New file, from GNU gettext.
106055         * lib/csharpexec.c: New file, from GNU gettext.
106056         * lib/csharpexec.sh.in: New file, from GNU gettext.
106058 2005-05-31  Derek Price  <derek@ximbiot.com>
106059             Paul Eggert  <eggert@cs.ucla.edu>
106061         Sync from cvs.
106062         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
106064 2005-05-31  Derek Price  <derek@ximbiot.com>
106065             Paul Eggert  <eggert@cs.ucla.edu>
106067         Sync from cvs.
106068         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
106070 2005-05-29  Derek Price  <derek@ximbiot.com>
106072         * config/srclist.txt (glob_.h, glob.c): Add these files.
106074 2005-05-29  Derek Price  <derek@ximbiot.com>
106076         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
106077         * modules/glob: New file.
106078         * modules/getlogin_r: Add link to POSIX spec in description.
106080 2005-05-29  Derek Price  <derek@ximbiot.com>
106081             Paul Eggert  <eggert@cs.ucla.edu>
106083         * m4/glob.m4: New file.
106085 2005-05-29  Derek Price  <derek@ximbiot.com>
106086             Paul Eggert  <eggert@cs.ucla.edu>
106088         * lib/glob_.h, lib/glob.c: New files.
106090 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106092         * modules/fts (Files): Remove m4/inttypes-pri.m4.
106093         * modules/fts-lgpl (Depends-on): Remove gettext.
106095 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
106098         and don't require gt_INTTYPES_PRI.
106100 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106102         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
106104         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
106105         the configuration hassle isn't worth it.
106106         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
106107         (LONGEST_MODIFIER, PRIuMAX): Remove.
106109 2005-05-27  Bruno Haible  <bruno@clisp.org>
106111         * lib/getlogin_r.h: Remove second include of <stddef.h>.
106113 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
106115         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
106116         _POSIX_PTHREAD_SEMANTICS for Solaris.
106118 2005-05-25  Derek Price  <derek@ximbiot.com>
106120         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
106122 2005-05-25  Derek Price  <derek@ximbiot.com>
106123             Paul Eggert  <eggert@cs.ucla.edu>
106125         * modules/getlogin_r, m4/getlogin_r.m4: New files.
106126         * lib/getlogin_r.c, getlogin_r.h: New files.
106128 2005-05-25  Bruno Haible  <bruno@clisp.org>
106129             Derek Price  <derek@ximbiot.com>
106131         * lib/getlogin_r.h: Simplify API documentation.
106133 2005-05-23  Derek Price  <derek@ximbiot.com>
106135         * modules/minmax (Files): Add m4/minmax.m4.
106136         (configure.ac): Add gl_MINMAX.
106138 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
106140         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
106141         so that unistd-safer.h (GPL'ed code) need not be included.
106143 2005-05-22  Bruno Haible  <bruno@clisp.org>
106145         * m4/minmax.m4: New file.
106146         Based on a patch by Derek Price <derek@ximbiot.com>.
106148 2005-05-22  Bruno Haible  <bruno@clisp.org>
106150         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
106151         (INT64_MIN): Fix definition.
106152         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
106154         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
106155         NEED_SIGNED_INT_TYPES.
106157         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
106158         HAVE_SYSTEM_INTTYPES.
106160 2005-05-22  Bruno Haible  <bruno@clisp.org>
106162         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
106163         Also include <sys/param.h> if it defines MIN, MAX.
106164         Based on a patch by Derek Price <derek@ximbiot.com>.
106166 2005-05-21  Jim Meyering  <jim@meyering.net>
106168         * modules/fts (Files): Add m4/inttypes-pri.m4.
106169         (Depends-on): Add lstat and remove gettext.  Alphabetize.
106171 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106173         New fts module.
106174         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
106175         (setup_dir, free_dir): New functions.
106176         (enter_dir, leave_dir): Define trivial
106177         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
106178         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
106179         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
106180         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
106181         Move to fts-cycle.c.
106182         (fts_open): Use setup_dir.
106183         (fts_close): Use free_dir.
106184         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
106185         This adds a label and some gotos, but the alternatives were messier.
106186         Check for memory allocation failure when entering a dir.
106187         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
106188         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
106189         (FTS): New member fts_cycle, that is a union that contains the
106190         old active_dir_ht and cycle_state.  All uses changed to mention
106191         fts_cycle.ht and fts_cycle.state.
106192         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
106193         fts.c, with the following changes:
106194         (setup_dir, free_dir): New functions.
106195         (enter_dir): Now returns bool.  Return true if successful, false
106196         if memory exhausted.  All callers changed.
106197         Do not bother partly cleaning up on
106198         memory allocation failure; that is free_dir's job.
106199         However, free ad if hash_insert fails, to avoid memory leak.
106200         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
106201         fts->fts_options to see which union member to use.
106203 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
106206         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
106208 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106210         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
106212 2005-05-20  Jim Meyering  <jim@meyering.net>
106214         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
106215         Now a macro, to pacify GCC.
106217 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106219         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
106220         of -1.
106222 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106224         * lib/chown.c (rpl_chown): Return -1 on failure.
106226 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106228         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
106229         Don't check for stddef.h.
106230         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
106231         don't use its results.
106232         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
106233         since we include them unconditionally.  Don't require
106234         AM_STDBOOL_H, since stdbool is a prerequisite.
106235         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
106236         since we assume C89 or better.
106237         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
106238         as we don't use their results.
106239         Don't check for fchdir, memmove, memset, strrchr, as we use
106240         them unconditionally.
106241         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
106242         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
106244 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106246         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
106247         Include <stddef.h> unconditionally, since we assume C89 now.
106248         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
106249         * lib/fts.c: Include fts_.h first, to check interface.
106250         Do not include intprops.h; no longer needed.
106251         Include cycle-check.h and hash.h, since fts_.h no longer does.
106252         Remove unnecessary casts of closedir to void.
106253         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
106254         decide whether to decrement nlinks.
106255         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
106256         (FTS): Use struct hash_table * instead of Hash_table, so that
106257         we no longer need to include hash.h here.
106259 2005-05-18  Jim Meyering  <jim@meyering.net>
106261         * modules/dirfd (License): Change to LGPL.  Most of the code
106262         is already in the public domain.
106264 2005-05-18  Jim Meyering  <jim@meyering.net>
106266         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
106267         Reported by Yoann Vandoorselaere.
106269 2005-05-17  Jim Meyering  <jim@meyering.net>
106271         * m4/fts.m4: New file, from coreutils.
106273 2005-05-17  Jim Meyering  <jim@meyering.net>
106275         * lib/fts.c, lib/fts_.h: New files, from coreutils.
106277 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106279         Sync from coreutils.
106280         * m4/unlinkdir.m4: New file.
106282 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106284         Sync from coreutils.
106285         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
106286         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
106287         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
106288         White space changes only.
106289         * lib/makepath.c (make_path): Port to hosts where leading "//" is
106290         special.
106291         * lib/yesno.c: Include getline.h, not ctype.h.
106292         (yesno): Don't remove leading white space; POSIX doesn't allow it.
106293         Use getline to remove arbitrary restriction on response length.
106295 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106297         * config/srclist-update: Spell out "Street" in FSF postal
106298         mail address; this is the style the FSF seems to prefer.
106300         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
106301         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
106302         this updates FSF postal mail address.
106304         Sync from coreutils.
106305         * modules/unlinkdir: New file.
106306         * modules/yesno (Depends-on): Add getline.
106307         * MODULES.html.sh (File system functions): Add unlinkdir.
106309 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106311         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
106312         lib/strsep.h:
106313         Change the initial comment to refer to GPL, not LGPL.
106314         gnulib-tool will change it to LGPL as needed.
106316         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
106317         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
106318         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
106319         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
106320         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
106321         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
106322         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
106323         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
106324         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
106325         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
106326         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
106327         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
106328         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
106329         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106330         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106331         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106332         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106333         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106334         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106335         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106336         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106337         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106338         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106339         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106340         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106341         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106342         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106343         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106344         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106345         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106346         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106347         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106348         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106349         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106350         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106351         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106352         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106353         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106354         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106355         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106356         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106357         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106358         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106359         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106360         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106361         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106362         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106363         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106364         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106365         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106366         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106367         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106368         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106369         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106370         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106371         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106372         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106373         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106374         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106375         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106376         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106377         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106378         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106379         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106380         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106381         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106382         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106383         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106384         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106385         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106386         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106387         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106388         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106389         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106390         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106391         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106392         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106393         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106394         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106395         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106396         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106397         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106398         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106399         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106400         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106401         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106402         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106403         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106404         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106405         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106406         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106407         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106408         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106409         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106410         lib/yesno.c, lib/yesno.h:
106411         Update FSF postal mail address.
106413 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106415         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106416         tests/test-memmem.c, tests/test-stpncpy.c:
106417         Update FSF postal mail address.
106419 2005-05-13  Bruno Haible  <bruno@clisp.org>
106421         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106422         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106423         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106424         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106425         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106426         Add support for 64-bit integers in the MSVC compiler.
106428 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106430         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106432 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106434         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106436 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106438         * doc/getdate.texi (General date syntax): Don't say that date
106439         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106440         Problem reported by Nic Ferrier.
106442 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106444         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106445         specified in ai_socktype. Fix invalid ai_protocol
106446         check. ai_protocol is usually set to 0 or depending on
106447         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106448         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106449         ai_socktype / ai_protocol in the returned addrinfo structure.
106451 2005-05-10  Simon Josefsson  <jas@extundo.com>
106453         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106454         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106456 2005-05-10  Karl Berry  <karl@gnu.org>
106458         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106459         (from http://www.gnu.org/licenses).
106460         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106461         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106462         fdl.texi suffices.
106464 2005-05-10  Karl Berry  <karl@gnu.org>
106466         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106467         (COPYING.DOC): remove.
106469         * config/srclist-update: new FSF address.
106471 2005-05-10  Derek Price  <derek@ximbiot.com>
106473         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106474         possible.
106476 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106477             Bruno Haible  <bruno@clisp.org>
106479         * modules/inet_ntop: New file.
106480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106481         inet_ntop.
106483 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106484             Bruno Haible  <bruno@clisp.org>
106486         * m4/inet_ntop.m4: New file.
106488 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106489             Bruno Haible  <bruno@clisp.org>
106491         * lib/inet_ntop.h: New file.
106492         * lib/inet_ntop.c: New file, from glibc with modifications.
106494 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106496         * modules/time_r (License): Change to LGPL.
106497         * modules/extensions (License): Change to LGPL.  Actually,
106498         the license is more permissive than that, but currently gnulib-tool
106499         doesn't know how to handle more-permissive licenses.
106501         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106502         Problem reported by Dave Love.
106504 2005-05-08  Jim Meyering  <jim@meyering.net>
106506         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106507         blank.
106509 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106511         * modules/argmatch (Depends-on): Add stdbool.
106512         * modules/backupfile (Depends-on): Likewise.
106513         * modules/chdir-long (Depends-on): Likewise.
106514         * modules/closeout (Depends-on): Likewise.
106515         * modules/cycle-check (Depends-on): Likewise.
106516         * modules/dirname (Depends-on): Likewise.
106517         * modules/fnmatch (Depends-on): Likewise.
106518         * modules/fsusage (Depends-on): Likewise.
106519         * modules/fwriteerror (Depends-on): Likewise.
106520         * modules/getcwd (Depends-on): Likewise.
106521         * modules/getloadavg (Depends-on): Likewise.
106522         * modules/hard-locale (Depends-on): Likewise.
106523         * modules/makepath (Depends-on): Likewise.
106524         * modules/mountlist (Depends-on): Likewise.
106525         * modules/nanosleep (Depends-on): Likewise.
106526         * modules/posixtm (Depends-on): Likewise.
106527         * modules/quotearg (Depends-on): Likewise.
106528         * modules/readtokens (Depends-on): Likewise.
106529         * modules/readtokens0 (Depends-on): Likewise.
106530         * modules/readutmp (Depends-on): Likewise.
106531         * modules/save-cwd (Depends-on): Likewise.
106532         * modules/strftime (Depends-on): Likewise.
106533         * modules/userspec (Depends-on): Likewise.
106534         * modules/utimecmp (Depends-on): Likewise.
106535         * modules/xgetcwd (Depends-on): Likewise.
106536         * modules/xnanosleep (Depends-on): Likewise.
106537         * modules/xstrtod (Depends-on): Likewise.
106538         * modules/yesno (Depends-on): Likewise.
106540 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106542         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106543         needless checks.
106545 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106547         Merge from coreutils.  Among other things,
106548         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106549         * lib/fd-safer.c: New file.
106550         * lib/fcntl-safer.h, open-safer.c: Remove.
106551         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106552         * lib/dup-safer.c: Include unistd-safer.h first.
106553         Don't include errno.h.
106554         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106555         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106556         * lib/file-type.c: Rely on file-type.h change.
106557         * lib/getloadavg.c: Include unistd-safer.h.
106558         (getloadavg): Use safer open.
106559         * lib/getusershell.c: Include "stdio-safer.h".
106560         (getusershell): Use safer fopen.
106561         * lib/long-options.c (long_options): Use NULL rather than 0.
106562         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106563         'free'.
106564         * lib/modechange.c: Likewise.
106565         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106566         (MODE_DONE): New constant.
106567         (struct mode_change): Remove 'next' member.
106568         (make_node_op_equals): New function; like the old one of the
106569         same name, except it allocates an array.
106570         (mode_compile, mode_create_from_ref): Use it.
106571         (mode_compile): Allocate result as an array, not a linked list.
106572         Parse octal string ourself, so that we catch mistakes like "+0".
106573         (mode_adjust): Arg is an array, not a linked list.
106574         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106575         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106576         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106577         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106578         Remove.  This is now stat-macros.h's job.
106579         (talloc): Remove.  All callers replaced by xalloc, so that
106580         our invokers don't have to worry about reporting memory failures.
106581         (make_node_op_equals): Remove.
106582         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106583         New constants.
106584         (struct mode_change): Moved here from modechange.h.
106585         (mode_append_entry): Remove.
106586         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106587         apps to have incorrect behavior.  Use simpler algorithm for head
106588         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106589         Detect more invalid usages rather than having somewhat-random behavior.
106590         Don't insert an "a=" action, as that leads to incorrect behavior.
106591         (mode_compile, mode_create_from_ref): Return NULL on error instead
106592         of an enum, since now there's only one way to have an error.  All
106593         callers changed.
106594         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106595         at the correct time.  Simplify calculation of "+u" and its ilk.
106596         Don't mishandle "+X".
106597         (mode_free): Remove "register" and localize decls.
106598         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106599         (struct mode_change): Move to modechange.c; callers don't
106600         need to see this stuff.
106601         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106602         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106603         (mode_change, mode_adjust): Reflect the new signatures noted above.
106604         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106605         that might redefine system include files.
106606         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106607         (my_usleep): Use NULL rather than (void *) 0.
106608         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106609         Use siginterrupt to specify that system calls should be interrupted.
106610         (rpl_nanosleep): Move initialization of suspended closer to call of
106611         my_usleep.
106612         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106613         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106614         (desirable_utmp_entry): New function.
106615         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106616         using x2nrealloc, to simplify logic.
106617         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106618         size calculation.  Do not assume utmp file is a regular file.
106619         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106620         (READ_UTMP_CHECK_PIDS): New constant.
106621         * lib/save-cwd.c: Include unistd-safer.h.
106622         (save_cwd): Use fd_safer.
106623         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106624         [!_LIBC] Include "stat-macros.h" instead.
106625         * lib/unistd-safer.h (fd_safer): New decl.
106627 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106629         * modules/getloadavg (Depends-on): Add unistd-safer.
106630         * modules/getusershell (Depends-on): Add stdio-safer.
106631         * modules/lstat (Depends-on): Remove xalloc.
106632         * modules/mkstemp (Depends-on): Add stat-macros.
106633         * modules/modechange (Depends-on): Remove xstrtol.
106634         Add stat-macros, xalloc.
106635         * modules/save-cwd (Depends-on): Add unistd-safer.
106636         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106637         * modules/unistd-safer (Files): Add lib/fd-safer.c
106638         (Makefile.am): Remove lib_SOURCES.
106640         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106641         Remove fcntl-safer; unistd-safer supersedes it.
106643 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106645         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106646         AC_HEADER_STAT.
106647         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106648         (gl_PREREQ_CHOWN): Remove.
106649         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106650         it.  Don't require AC_HEADER_STAT.
106651         (gl_PREREQ_LSTAT): Remove.
106652         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106653         Don't require AC_HEADER_STAT.
106654         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106655         (gl_PREREQ_RMDIR): Remove.
106656         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106657         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106658         the stat-macros module a prerequisite.
106659         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106660         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106661         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106662         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106663         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106664         variable names.
106665         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106666         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106667         variable prefixes.
106668         * m4/fcntl-safer.m4: Remove.
106669         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106670         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106671         Invoke gl_PREREQ_FD_SAFER.
106672         (gl_PREREQ_FD_SAFER): New macro.
106673         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106674         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106675         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106676         Remove duplicate call to AC_LIBOBJ(readutmp).
106677         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106679         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106680         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106682 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106684         * MODULES.html.sh (Misc): Add byteswap.
106686 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106688         * modules/getcwd (Depends-on): Add extensions.
106689         * modules/openat (Depends-on): Likewise.
106691 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106693         * modules/byteswap: New file.
106695 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106697         * m4/byteswap.m4: New file.
106699 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106701         * lib/byteswap_.h: New file.
106703 2005-04-25  Karl Berry  <karl@gnu.org>
106705         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106707 2005-04-25  Albert Chin  <china@thewrittenword.com>
106709         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106710         Toolkit C bug.
106712 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106714         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106715         (func_ln_if_changed): Remove forcibly for no error message
106716         in case file does not exist.
106718 2005-04-19  Simon Josefsson  <jas@extundo.com>
106720         * gnulib-tool (Options): Make --symlink mean --symbolic.
106722 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106724         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106726 2005-04-16  Simon Josefsson  <jas@extundo.com>
106728         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106730 2005-04-15  Simon Josefsson  <jas@extundo.com>
106732         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106734 2005-04-15  Simon Josefsson  <jas@extundo.com>
106736         * gnulib-tool: Rename --symlink to --symbolic.
106738 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106740         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106741         symbolic links to files instead of copying/moving.  Add --aux-dir,
106742         specifying directory relative --dir where auxiliary build tools
106743         are placed.
106745 2005-04-14  Bruno Haible  <bruno@clisp.org>
106747         * modules/allocsa (License): Change to LGPL.
106748         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106750 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106752         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106753         that "UTC +1 second" continues to work.  Problem reported
106754         by Dmitry V. Levin.
106755         (relunit_snumber): New rule.
106756         (relunit): Use it.
106758 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106760         * lib/getdate.y (universal_time_zone_table): New constant.
106761         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106762         universal_time_zone_table.
106763         (lookup_zone): Prefer universal_time_zone_table to
106764         local_time_zone_table, so that "GMT" time stamps are allowed in
106765         London during the summer.  Problem reported by Ian Abbott.
106767 2005-04-12  Jim Meyering  <jim@meyering.net>
106769         * lib/human.c (humblock): Set *options even when returning due to
106770         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106771         warning from gcc-4.
106773 2005-04-09  Jim Meyering  <jim@meyering.net>
106775         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106776         -Wuninitialized: initialize tm0.tm_year.
106778 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106780         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106781         count, since there's no maximum.  All uses changed.
106782         Add member dsts_seen.
106783         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106784         not being INT_MAX.
106785         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106786         Use pc_rels_seen to decide whether a date is absolute.
106788         * lib/getdate.y (number): Don't overwrite year.
106789         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106790         check.
106792 2005-04-02  Simon Josefsson  <jas@extundo.com>
106794         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106795         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106797 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106799         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106800         where no absolute path name can be longer than PATH_MAX.
106802 2005-03-27  Jim Meyering  <jim@meyering.net>
106804         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106806 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106808         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106809         "one's complement" -> "ones' complement" in comment, as per Knuth.
106810         "value of type" -> "type or expression" in comment.
106811         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106813 2005-03-26  Jim Meyering  <jim@meyering.net>
106815         Comment nits.
106816         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106817         Correct typos: s/or/of/.
106819 2005-03-26  Jim Meyering  <jim@meyering.net>
106821         * modules/check-include-files: Move to ../ and rename to...
106822         * check-module: ...this.
106824 2005-03-25  Jim Meyering  <jim@meyering.net>
106826         * modules/xvasprintf (Files): Add xalloc.h.
106828 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106830         * modules/gettext (Files): config/config.rpath ->
106831         build-aux/config.rpath
106832         * modules/iconv (Files): Likewise.
106833         Problem reported by Oskar Liljeblad.
106835 2005-03-23  Jim Meyering  <jim@meyering.net>
106837         * modules/check-include-files: New script to check for
106838         missing dependencies, multiple includes, etc.
106840         * modules/c-strtold (Depends-on): Add xalloc.
106841         * modules/c-strtod (Depends-on): Add xalloc.
106842         * modules/hash (Depends-on): Add xalloc.
106843         (Files): Remove lib/xalloc.h.
106845         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106846         * modules/userspec (Files): Add lib/inttostr.h.
106848 2005-03-23  Jim Meyering  <jim@meyering.net>
106850         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106852 2005-03-22  Jim Meyering  <jim@meyering.net>
106854         * modules/stat-macros: New module.
106855         * modules/canonicalize, modules/euidaccess, modules/file-type,
106856         * modules/filemode, modules/lchown, modules/makepath,
106857         * modules/rmdir, modules/stat: Depend on new stat-macros module
106858         rather than listing lib/stat-macros.h manually.
106859         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106861 2005-03-22  Jim Meyering  <jim@meyering.net>
106863         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106865 2005-03-22  Bruno Haible  <bruno@clisp.org>
106867         * config/srclist.txt: Replace target directory 'config' with
106868         'build-aux'.
106869         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106870         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106871         ../build-aux/.
106873 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106875         * modules/chdir-long (Depends-on): Add mempcpy.
106877         * modules/acl, modules/backupfile, modules/c-strtod,
106878         modules/c-strtold, modules/canon-host, modules/canonicalize,
106879         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106880         modules/exclude, modules/exitfail, modules/file-type,
106881         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106882         modules/getdate, modules/getline, modules/getpagesize,
106883         modules/getpass, modules/getugroups, modules/group-member,
106884         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106885         modules/inttostr, modules/long-options, modules/makepath,
106886         modules/md5, modules/memcasecmp, modules/memcoll,
106887         modules/modechange, modules/mountlist, modules/path-concat,
106888         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106889         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106890         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106891         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106892         modules/strftime, modules/strndup, modules/strverscmp,
106893         modules/timespec, modules/unlocked-io, modules/userspec,
106894         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106895         modules/yesno:
106896         Remove lib_SOURCES line from Makefile.am section, as this is now
106897         done automatically by the corresponding Autoconf macro.
106899 2005-03-21  Jim Meyering  <jim@meyering.net>
106901         Changes imported from coreutils.
106903         * lib/cycle-check.c: Don't include xalloc.h.
106905         * lib/path-concat.c: Don't include assert.h.
106906         (path_concat): Remove assertion that would have triggered
106907         for ABASE starting with more than one slash.
106908         Reported by Andreas Schwab.
106910         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106911         properly when ABASE is an absolute file name.
106912         Correct the description of this function.
106913         Include <assert.h>.
106914         Add an assertion and a test driver.
106915         This fixes a bug introduced on 2004-07-02.
106916         Andreas Schwab reported the resulting failure of cp --parents:
106917         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106919 2005-03-21  Jim Meyering  <jim@meyering.net>
106921         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106922         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106924 2005-03-21  Jim Meyering  <jim@meyering.net>
106925         and  Paul Eggert  <eggert@cs.ucla.edu>
106927         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106928         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106929         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106930         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106931         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106932         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106933         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106934         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106935         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106936         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106937         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106938         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106939         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106940         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106941         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106942         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106943         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106944         for these modules.
106946 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106948         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106949         (which shouldn't happen), generate nothing instead of returning 0
106950         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106952 2005-03-16  Bruno Haible  <bruno@clisp.org>
106954         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106955         HAVE_LONGLONG_64BIT.
106957 2005-03-16  Bruno Haible  <bruno@clisp.org>
106959         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106960         HAVE_LONGLONG_64BIT.
106962 2005-03-16  Bruno Haible  <bruno@clisp.org>
106964         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106965         HAVE_LONGLONG_64BIT.
106967 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106969         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106970         reliably distinguish strftime failure from empty output on POSIX
106971         hosts.
106973 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106975         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106976         (iconv_string): Don't guess a size-zero buffer, as that might cause
106977         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106978         result would be 'too large', where 'too large' is (heuristically)
106979         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106980         overflow concerns.  This will prevent some unwanted malloc failures
106981         when the inputs are very large.
106983 2005-03-15  Karl Berry  <karl@gnu.org>
106985         * config/srclist.txt (config.rpath): from gettext.
106986         * config/config.rpath: update.
106988 2005-03-15  Bruno Haible  <bruno@clisp.org>
106990         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106991         to 'negate'.
106993         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106994         variable.
106996         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106997         results.
106999 2005-03-14  Simon Josefsson  <jas@extundo.com>
107001         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
107002         <fx@gnu.org>.
107004 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
107006         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
107007         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
107008         intprops.h.
107009         * lib/strtol.c: Likewise.
107011 2005-03-14  Jim Meyering  <jim@meyering.net>
107013         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
107014         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
107015         to be nonzero so that we (and caller) can detect the difference
107016         between a valid zero-length expansion and an error return, even
107017         when the underlying strftime fails before writing anything into
107018         that location.
107020 2005-03-14  Bruno Haible  <bruno@clisp.org>
107022         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
107023         Update from GNU gettext 0.14.3.
107025 2005-03-10  Jim Meyering  <jim@meyering.net>
107027         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
107029 2005-03-10  Jim Meyering  <jim@meyering.net>
107031         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
107032         so that this module works on systems without fchdir.
107034 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
107036         Factor int-properties macros into a single file, except for
107037         glibc-related files.
107038         * lib/intprops.h: New file.
107039         * lib/getloadavg.c: Include it instead of limits.h.
107040         (INT_STRLEN_BOUND): Remove.
107041         * lib/human.c: Include intprops.h.
107042         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
107043         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
107044         302/1000.
107045         * lib/inttostr.h: Include intprops.h instead of limits.h.
107046         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
107047         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
107048         for consistency with intprops.h.
107049         (time_t_is_integer, twos_complement_arithmetic): Use them.
107050         * lib/sig2str.h: Include <signal.h>, intprops.h.
107051         (INT_STRLEN_BOUND): Remove.
107052         * lib/strftime.c (TYPE_SIGNED): Remove.
107053         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
107054         * lib/strtol.c: Adjust comments to match intprops.h.
107055         * lib/userspec.c: Include intprops.h.
107056         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
107057         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
107058         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
107059         instead of rolling our own expressions.
107060         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
107062         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
107063         instead of int.
107064         (my_strftime): Do not mishandle years close to INT_MAX, by doing
107065         the right thing even if adding 1900 would overflow.  Similarly
107066         for tm_mon + 1 and tm_yday + 1.
107067         Make %Y always equivalent to %C%y, and similarly for %G and %g.
107068         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
107069         (DO_SIGNED_NUMBER): New macro.
107070         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
107072 2005-03-07  Bruno Haible  <bruno@clisp.org>
107074         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
107076 2005-03-07  Bruno Haible  <bruno@clisp.org>
107078         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
107080 2005-03-04  Derek R. Price  <derek@ximbiot.com>
107082         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
107083         (func_import): Only replace files via --import when they have actually
107084         changed.
107086 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107088         * m4/mmap-anon.m4: New file.
107089         * m4/pagealign_alloc.m4: New file.
107091 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107092             Bruno Haible  <bruno@clisp.org>
107094         * modules/pagealign_alloc: New file.
107095         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
107097 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107098             Bruno Haible  <bruno@clisp.org>
107100         * lib/pagealign_alloc.h: New file.
107101         * lib/pagealign_alloc.c: New file.
107103 2005-03-03  Bruno Haible  <bruno@clisp.org>
107105         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
107106         Use an all-permissive copyright notice, recommended by RMS.
107108 2005-03-02  Bruno Haible  <bruno@clisp.org>
107110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
107111         of AIX, the replacement has to be done only after <string.h> is
107112         included, therefore not in config.h. stpncpy.h does the replacement,
107113         and stpncpy.c uses it.
107115 2005-03-02  Bruno Haible  <bruno@clisp.org>
107117         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
107118         stpncpy.c uses it.
107120 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107122         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
107123         The workaround isn't strictly needed for POSIX conformance, and
107124         it's too much of a pain to configure and maintain.  We'll ask
107125         people to fix their kernels instead.
107126         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
107127         (NANOSLEEP_BUG_WORKAROUND): Remove.
107128         (xnanosleep): Remove the workaround.
107130 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107132         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
107133         Reported by Derek Price.
107134         (Include): Add "timespec.h".
107136         * modules/xnanosleep (Depends-on): Remove gethrxtime.
107138 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107140         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
107141         to detect nanosleep bug.
107143 2005-03-01  Bruno Haible  <bruno@clisp.org>
107145         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
107147 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
107149         * modules/gethrxtime: New file.
107150         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
107151         (Depends-on): Add gethrxtime.
107152         (configure.ac): Add gl_XNANOSLEEP.
107153         (Makefile.am): Remove lib_SOURCES line.
107155 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107157         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
107158         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
107160 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107162         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
107163         * lib/timespec.h (gettime): Return void, since it always
107164         succeeds now.  All uses changed.
107165         * lib/gettime.c (gettime): Likewise.
107166         [HAVE_NANOTIME]: Prefer nanotime.
107167         Assume gettimeofday succeeds, as POSIX requires.
107168         Assime time () succeeds, since other code already does.
107169         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
107170         (timespec_subtract): Remove.
107171         (NANOSLEEP_BUG_WORKAROUND): New constant.
107172         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
107173         things considerably.  Use it only on GNU/Linux hosts, since the
107174         workaround shouldn't be needed elsewhere.
107176 2005-02-24  Bruno Haible  <bruno@clisp.org>
107178         * modules/gettext (Files): Add m4/glibc2.m4.
107180 2005-02-24  Bruno Haible  <bruno@clisp.org>
107182         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
107183         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
107184         * m4/progtest.m4:
107185         Update from GNU gettext 0.14.2.
107186         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
107188 2005-02-24  Bruno Haible  <bruno@clisp.org>
107190         * lib/localcharset.c: Update from GNU gettext 0.14.2.
107191         * lib/config.charset: Update from GNU gettext 0.14.2.
107193 2005-02-24  Bruno Haible  <bruno@clisp.org>
107195         * lib/gettext.h: Update from GNU gettext 0.14.2.
107197 2005-02-23  Simon Josefsson  <jas@extundo.com>
107199         * m4/iconvme.m4: New file.
107201 2005-02-23  Jim Meyering  <jim@meyering.net>
107203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
107204         change.
107205         Thanks to Bruno Haible for catching it.
107207 2005-02-22  Simon Josefsson  <jas@extundo.com>
107209         * modules/iconvme: New file.
107211         * MODULES.html.sh: Add iconvme.
107213 2005-02-22  Simon Josefsson  <jas@extundo.com>
107215         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
107217 2005-02-22  Simon Josefsson  <jas@extundo.com>
107219         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
107221 2005-02-22  Jim Meyering  <jim@meyering.net>
107223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
107224         s/ifndef/ifdef/.
107226 2005-02-20  Neil Conway  <neilc@samurai.com>
107228         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
107229         returned by OSX/Darwin if the specified buffer is not large
107230         enough for the hostname.
107232 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107234         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
107235         pass it to _help, otherwise the latter coredumps trying to
107236         dereference state.root_argp.
107238 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107240         * modules/chdir-long (Depends-on): Add memrchr.
107241         * modules/memrchr (Files): Add lib/memrchr.h.
107242         (Include): "memrchr.h".
107244 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107246         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
107248 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107250         * lib/memrchr.h: New file.
107251         * lib/chdir-long.c: Include it.
107252         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
107253         Don't bother including stddef.h.
107255 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107257         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
107258         inclusion.
107259         Include <sys/types.h>, for dev_t.
107260         (ME_DUMMY, ME_REMOTE): Move from here....
107261         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
107262         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
107263         Dmitry V. Levin.
107264         Include mountlist.h first, to test the interface.
107266 2005-01-29  Bruno Haible  <bruno@clisp.org>
107268         * lib/progname.c (program_name): Initialize.
107269         Needed when linking statically on MacOS X.
107271 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107273         Sync from coreutils.
107274         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
107275         (Depends-on): Add c-strtod.
107276         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
107278 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107280         Sync from coreutils.
107281         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
107283         Remove files that are specific to coreutils.
107284         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
107286 2005-01-28  Bruno Haible  <bruno@clisp.org>
107288         * modules/javacomp: New file.
107289         * MODULES.html.sh (Java): Add javacomp.
107291 2005-01-28  Bruno Haible  <bruno@clisp.org>
107293         * m4/javacomp.m4: New file, from GNU gettext.
107295 2005-01-28  Bruno Haible  <bruno@clisp.org>
107297         * lib/javacomp.sh.in: New file, from GNU gettext.
107298         * lib/javacomp.h: New file, from GNU gettext.
107299         * lib/javacomp.c: New file, from GNU gettext.
107301 2005-01-26  Simon Josefsson  <jas@extundo.com>
107303         * lib/gai_strerror.c: Use GPL in header.
107305 2005-01-26  Bruno Haible  <bruno@clisp.org>
107307         * modules/javaexec: New file.
107308         * MODULES.html.sh (Java): Add javaexec.
107310 2005-01-26  Bruno Haible  <bruno@clisp.org>
107312         * m4/javaexec.m4: New file, from GNU gettext.
107314 2005-01-26  Bruno Haible  <bruno@clisp.org>
107316         * lib/javaexec.sh.in: New file, from GNU gettext.
107317         * lib/javaexec.h: New file, from GNU gettext.
107318         * lib/javaexec.c: New file, from GNU gettext.
107320 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107322         * modules/lchown (Depends-on): Remove lchown.h
107324 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107326         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
107327         must be defined if the header file was not found, in order
107328         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107330 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107332         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107333         initializers for struct pentry_state.
107334         (__argp_error): Check return value of __asprintf
107335         (__argp_failure): Translate error message
107337         * lib/argp-parse.c: Removed braces around the expansion of N_()
107339 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107341         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107342         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107343         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107344         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107345         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107346         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107347         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107348         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107349         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107350         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107351         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107352         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107353         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107354         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107355         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107356         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107357         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107358         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107359         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107360         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107361         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107362         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107363         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107364         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107365         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107366         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107367         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107368         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107369         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107370         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107371         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107372         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107373         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107374         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107375         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107376         Use an all-permissive copyright notice, recommended by RMS.
107378 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107380         * modules/chdir-long (Depends-on): Remove mempcpy.
107382 2005-01-21  Jim Meyering  <jim@meyering.net>
107384         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107385         same value as for Solaris 9.
107387         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107388         component length.  This included changing the parameter to be
107389         of type `char *' rather than `char const *'.
107390         * lib/chdir-long.h (chdir_long): Update prototype.
107392         * lib/openat.c (fdopendir, fstatat): New functions.
107393         * lib/openat.h: Include headers required for use of DIR and struct
107394         stat.
107395         [AT_SYMLINK_NOFOLLOW]: Define.
107396         (fdopendir, fstatat): Add prototypes.
107398 2005-01-21  Bruno Haible  <bruno@clisp.org>
107400         * modules/classpath: New file.
107401         * MODULES.html.sh (Java): Add classpath.
107403 2005-01-21  Bruno Haible  <bruno@clisp.org>
107405         * lib/classpath.h: New file, from GNU gettext.
107406         * lib/classpath.c: New file, from GNU gettext.
107408 2005-01-20  Simon Josefsson  <jas@extundo.com>
107410         * modules/version-etc-fsf: New file.
107412 2005-01-20  Simon Josefsson  <jas@extundo.com>
107414         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107415         * lib/version-etc.c: Remove version_etc_copyright.
107416         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107417         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107419 2005-01-20  Simon Josefsson  <jas@extundo.com>
107421         * lib/base64.h (isbase64): Add.
107423         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107424         using a unsigned prototype, don't inline.
107425         (base64_decode): Use it.
107427 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107429         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107430         it.
107432 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107434         * lib/save-cwd.c (save_cwd): Remove code to support the case
107435         where fchdir is missing or flaky.
107437 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107439         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107441 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107443         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107444         AC_LIBSOURCES now does this.
107445         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107446         with new ullong_max module.
107448 2005-01-19  Bruno Haible  <bruno@clisp.org>
107450         * modules/sh-quote: New file.
107451         * MODULES.html.sh (Executing programs): Add sh-quote.
107453 2005-01-19  Bruno Haible  <bruno@clisp.org>
107455         * lib/sh-quote.h: New file, from GNU gettext.
107456         * lib/sh-quote.c: New file, from GNU gettext.
107458 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107460         Merge from coreutils.
107461         * m4/ullong_max.m4: New file.
107462         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107463         (gl_MACROS): Assume localeconv exists.
107465 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107467         Merge changes from coreutils, as described below in several
107468         changelogs dated today.
107470         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107471         (O_DIRECTORY): Remove; not needed here, since "." must be
107472         a directory.  All uses removed.
107473         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107474         universal on Suns, and we also need to test for IRIX.
107475         Revamp code to use 'if' rather than '#if'.
107476         Avoid unnecessary comparison of cwd->desc to 0.
107478         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107479         for known valid error numbers rather than observed invalid ones.
107481 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107483         * modules/ullong_max: New file.
107485         * modules/chdir-long, modules/openat: New files.
107486         * modules/save-cwd (Depends-on): Depend on chdir-long.
107487         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107489 2005-01-18  Jim Meyering  <jim@meyering.net>
107491         Merge from coreutils.
107492         * m4/chdir-long.m4, m4/openat.m4: New files.
107493         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107494         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107495         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107496         is sane and DOES follow symlinks.  Besides, testing 20 different
107497         systems found no broken chown implementations.
107498         Prompted by a change in rsync's copy of this macro.
107499         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107501         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107503         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107504         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107505         NULL-means-set-to-current-time semantics.
107506         Remove temporary file immediately, rather than waiting
107507         for configure's at-exit trap code to do it.
107509 2005-01-18  Jim Meyering  <jim@meyering.net>
107511         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107513         * lib/utimens.c (futimens): Account for the fact that futimes
107514         can also fail with errno == ENOSYS or errno == ENOENT.
107515         Patch from Dmitry V. Levin.
107517         Change the name of the robust chdir function from chdir to chdir_long.
107518         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107519         (restore_cwd): Use chdir_long, not chdir.
107520         * lib/chdir-long.c: Renamed from chdir.c.
107521         * lib/chdir-long.h: Renamed from chdir.h.
107522         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107523         Hurd.
107525 2005-01-18  Bruno Haible  <bruno@clisp.org>
107527         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107528         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107529         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107530         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107531         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107532         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107533         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107534         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107535         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107536         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107537         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107538         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107539         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107540         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107541         Use an all-permissive copyright notice, recommended by RMS.
107543 2005-01-18  Bob Proulx  <bob@proulx.com>
107545         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107546         simplify offsetof() macro construct to avoid compile failure with
107547         native HP-UX 11.0 ANSI C compiler.
107549 2005-01-17  Bruno Haible  <bruno@clisp.org>
107551         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107552         redundant because stpncpy.m4 takes care of it.
107554 2005-01-17  Bruno Haible  <bruno@clisp.org>
107556         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107558 2005-01-17  Bruno Haible  <bruno@clisp.org>
107560         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107561         used.
107563 2005-01-17  Bruno Haible  <bruno@clisp.org>
107565         * lib/fwriteerror.h (fwriteerror): Change specification to include
107566         fclose.
107567         * lib/fwriteerror.c: Include <stdbool.h>.
107568         (fwriteerror): At the end, close the file stream. Record whether
107569         stdout was already closed.
107571 2005-01-17  Bruno Haible  <bruno@clisp.org>
107573         * lib/execute.c (environ): Declare if needed.
107574         * lib/pipe.c (environ): Likewise.
107575         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107577 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107579         * modules/argp: Depend on vsnprintf
107581 2005-01-10  Jim Meyering  <jim@meyering.net>
107583         * modules/closeout (Depends-on): Add atexit.
107585 2005-01-06  Bruno Haible  <bruno@clisp.org>
107587         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107589 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107591         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107592         definitions to be after all include files, to avoid collisions.
107593         Problem reported by Bob Proulx.
107595 2005-01-04  Jim Meyering  <jim@meyering.net>
107597         Changes imported from coreutils.
107598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107599         as the mkstemp template, use a temporary directory and an
107600         8.3-friendly template to avoid trouble on systems like DJGPP.
107601         Reported by Juan M. Guerrero via Stepan Kasal.
107602         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107603         close. Remove the temporary directory right away, rather than waiting
107604         for configure's at-exit trap code to do it.
107605         Suggestion from Stepan Kasal.
107607 2005-01-01  Simon Josefsson  <jas@extundo.com>
107609         * gnulib-tool: Print #include directives when --import'ing.
107611 2004-12-28  Simon Josefsson  <jas@extundo.com>
107613         * tests/test-base64.c: Include required header files.  Remove
107614         unused variables.
107616 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107618         * modules/error (Depends-on): Remove gettext.
107620 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107622         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107623         not needed.  This removes a dependency on the gettext module.
107624         [defined _LIBC]: Do not include <libintl.h>; not needed.
107626 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107628         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107629         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107631 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107633         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107634         HAVE_DECL_STRTOLD.
107636 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107638         * modules/getdate (Depends-on): Remove alloca-opt.
107640 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107642         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107644 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107646         * lib/argp-parse.c: Include <stddef.h>.
107647         (alignof, alignto): New macros.
107648         (parser_init): Don't assume that void * is aligned sufficiently
107649         for struct option.
107651         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107652         need to extend the stack.
107653         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107654         large.
107656 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107658         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107660 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107662         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107663         (2004-10-24) change.  Apparently this was a false alarm.
107665         * modules/getdate: Depend on alloca-opt, not alloca.
107667 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107669         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107670         Remove now-obsolete comment about AIX.
107671         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107672         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107673         (YYMAXDEPTH): New macro.
107675 2004-12-18  Simon Josefsson  <jas@extundo.com>
107677         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107679 2004-12-18  Bruno Haible  <bruno@clisp.org>
107681         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107683 2004-12-18  Bruno Haible  <bruno@clisp.org>
107685         * lib/fatal-signal.c (fatal_signals): Make non-const.
107686         (init_fatal_signals): New function.
107687         (uninstall_handlers, install_handlers): Ignore signals that were set to
107688         SIG_IGN.
107689         (at_fatal_signal): Call init_fatal_signals.
107690         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107691         SIG_IGN.
107692         Reported by Paul Eggert.
107694 2004-12-18  Bruno Haible  <bruno@clisp.org>
107696         * doc/alloca.texi: New file.
107697         * doc/alloca-opt.texi: New file.
107699 2004-12-17  Jim Meyering  <jim@meyering.net>
107701         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107702         Otherwise, install-sh could exit with improper exit status when
107703         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107705 2004-12-16  Simon Josefsson  <jas@extundo.com>
107707         * tests/test-base64.c: Add license.
107709 2004-12-15  Stepan Kasal  <address@hidden>
107711         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107713 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107715         * modules/getcwd (Files): Add m4/d-ino.m4.
107716         Suggested by Mark D. Baushke.
107718 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107720         * lib/getdate.y (textint): New member "negative".
107721         (time_zone_hhmm): New function.
107722         Expect 14 shift-reduce conflicts, not 13.
107723         (o_colon_minutes): New rule.
107724         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107725         (yylex): Set the "negative" member of signed numbers.
107727 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107729         * doc/getdate.texi (Time of day items, Time zone items):
107730         Describe new formats +00:00, UTC+00:00.
107732 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107734         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107735         spurious "-l"s.  Problem reported by Stepan Kasal.
107737 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107739         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107740         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107742 2004-12-04  Simon Josefsson  <jas@extundo.com>
107744         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107745         Vandoorselaere <yoann@prelude-ids.org>.
107747 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107749         Changes imported from coreutils.
107750         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107751         exist.
107752         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107754 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107756         Changes imported from coreutils.
107757         * lib/hard-locale.c: Assume <locale.h> exists.
107758         Include "strdup.h".
107759         (GLIBC_VERSION): New macro.
107760         (hard_locale): Assume setlocale exists.
107761         Rewrite to avoid #ifdef.
107762         Use strdup rather than malloc + strcpy.
107763         * lib/human.c: Assume <locale.h> exists.
107764         (human_readable): Assume localeconv exists.
107766 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107768         * modules/hard-locale (Depends-on): Add strdup.
107770 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107772         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107773         convert T2, not T.  (Imported from libc.)
107775 2004-11-30  Simon Josefsson  <jas@extundo.com>
107777         * modules/restrict (License): Change to LGPL.
107779 2004-11-30  Simon Josefsson  <jas@extundo.com>
107781         * m4/restrict.m4: Add copyright and copying conditions.
107783 2004-11-30  Simon Josefsson  <jas@extundo.com>
107785         * m4/base64.m4: New file.
107787 2004-11-30  Simon Josefsson  <jas@extundo.com>
107789         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107790         base64.
107792         * tests/test-base64.c: New file.
107794         * modules/base64: New file.
107796 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107798         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107799         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107801         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107803 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107805         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107806         (__getcwd.c): Don't restore errno; glibc doesn't.
107807         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107808         first, falling back to our code only if its results look suspicious.
107809         Ensure that the resulting buffer is only as large as necessary.
107811         * lib/readutmp.c: Include readutmp.h first.
107812         Include <errno.h>, since readutmp.h no longer does that.
107813         * lib/readutmp.h: Don't include <errno.h>,
107814         <sys/param.h>, <time.h>; not needed to establish interface.
107815         (errno): Remove decl.
107816         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107817         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107818         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107820 2004-11-28  Simon Josefsson  <jas@extundo.com>
107822         * lib/base64.h, base64.c: New file.
107824 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107826         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107828 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107830         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107831         (Depends-on): Remove pathmax, same.  Add mempcpy.
107832         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107833         (Makefile.am): Append getcwd.h to lib_SOURCES.
107834         (Include): Add getcwd.h.
107835         (Maintainer): Change from Jim Meyering to "all, glibc",
107836         since getdate now uses intended-for-glibc code.
107837         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107838         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107840 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107842         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107843         HP's ANSI C compiler.
107844         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107845         Declaring int functions causes warnings on some modern systems and
107846         shouldn't be needed to compile on ancient ones.
107847         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107848         defined.
107850         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107851         with the following changes.
107852         (__set_errno): Parenthesize properly.
107853         Include <stdbool.h>.
107854         (MIN, MAX, MATCHING_INO): New macros.
107855         (__getcwd): Define with prototype, not K&R form.
107856         Use heuristics to allocate default buffer on stack if possible.
107857         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107858         behavior, and to avoid the PATH_MAX limit when computing
107859         ../../../../...
107860         Use MATCHING_INO to compare inode number to file.
107861         Check for arithmetic overflow in size calculations.
107862         Fix bug in reallocation of dot array that caused getcwd to fail
107863         on directories nested deeper than 75.
107864         Be more careful about saving errno on error.
107865         Do not use realloc; use only free+malloc, as this is a bit
107866         more flexible and avoids a needless copy operation.
107867         Do not inspect st_dev and st_ino for symbolic links; POSIX
107868         doesn't specify the latter.
107869         Check for closedir errors.
107870         Avoid needless casts.
107871         Use "#ifdef weak_alias" around weak_alias, to be like other
107872         glibc code.
107873         The following changes to getcwd.c have effect only when used in
107874         gnulib; they have no effect inside glibc proper.
107875         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107876         as alloca isn't used.
107877         (alloca, __alloca): Likewise.
107878         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107879         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107880         unconditionally, as gnulib assumes C89 or better.
107881         Do not include <sys/param.h>.
107882         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107883         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107884         better.
107885         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107886         Include <dirent.h> in a way that is compatible with modern Autoconf.
107887         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107888         New macros, if not already defined.
107889         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107890         Use "_LIBC", not "defined _LIBC", for consistency.
107891         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107892         a mempcpy module.
107893         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107894         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107895         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107896         credit only to Jim Meyering and adjust the copyright dates.
107897         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107898         <stdlib.h>, <unistd.h>, "pathmax.h".
107899         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107900         (INITIAL_BUFFER_SIZE): Remove.
107901         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107903 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107906         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107907         Use the _ONCE methods, for efficiency.
107908         Check for fcntl.h.  In test program, include <errno.h>
107909         and <fcntl.h> if available.  Remove old K&R cruft from
107910         test program.  Check for common errors in GNU/Linux,
107911         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107912         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107913         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107914         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107915         name accordingly.
107916         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107917         accommodate new getcwd.c.
107918         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107919         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107920         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107921         that's all we need now.
107923 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107925         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107926         argp-parse.c depends on getopt internals, that means we should
107927         always use our getopt, to be on the safe side.
107928         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107929         order not to spoil the result of an eventual previous invocation
107930         of gl_GETOPT_SUBSTITUTE.
107932 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107934         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107935         redefinition warnings. To avoid them, include the defines
107936         in `#if !defined __need_getopt ... #endif'. The only place
107937         where __getopt_argv_const is used is in definitions
107938         of getopt_long and getopt_long_only below, which are as well
107939         protected by `#ifndef __need_getopt'.
107940         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107941         __need_getopt after including <stdio.h> and <unistd.h> These
107942         headers might have defined it.
107944 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107946         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107948 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107950         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107951         (futimens): New function, which uses futimes if available.
107952         (futimens, utimens): Support timespec==NULL, with same semantics
107953         as utime and utimens.
107954         * lib/utimens.h (futimens): New decl.
107956 2004-11-23  Jim Meyering  <jim@meyering.net>
107958         * lib/getopt_.h: Remove trailing blanks.
107960 2004-11-23  Jim Meyering  <jim@meyering.net>
107962         * lib/__fpending.c: Add comment.
107964 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107966         * modules/canonicalize (Depends-on): Add xreadlink.
107967         Problem reported by James Youngman.
107969 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107971         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107972         New macros.
107973         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107974         optopt): Use them instead of invoking ## directly; otherwise, the
107975         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107977 2004-11-19  Bruno Haible  <bruno@clisp.org>
107979         * lib/strtok_r.c: Move comments from here...
107980         * lib/strtok_r.h: ... to here.
107982 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107984         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107985         implementations that mishandle size_t overflow.
107987 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107989         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107990         might fail.  Problem reported by Yoann Vandoorselaere.
107991         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107992         implementations that mishandle size_t overflow.
107994 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107996         * modules/canon-host (Depends-on): Add strdup.
107998 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108000         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
108002 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108004         * lib/canon-host.c: Include "strdup.h".
108005         (canon_host): Use getaddrinfo if available, so that IPv6 works.
108006         Use strdup instead of malloc/strcpy to duplicate strings.
108008         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
108009         (human_space_before_unit): New constant.
108010         * lib/human.c (human_readable): Support it.
108012         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
108013         (xgetcwd): Set errno correctly when failing.
108014         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
108015         the failure is actually due to a PATH_MAX problem.
108017         Further getopt changes to make it more likely that glibc will
108018         buy the changes back.
108019         * lib/getopt.c (POSIXLY_CORRECT): New constant.
108020         (getopt): Use it, so to preserve glibc semantic
108021         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
108022         when compiling for libc.
108023         * lib/getopt_.h (__getopt_argv_const): Bring it back.
108024         (getopt_long, getopt_long_only): Use it.
108026         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
108027         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
108028         (getopt): Argv is now char * const *, as per standard.
108029         (_getopt_internal_r, _getopt_internal): Argv is now char **,
108030         not char *__getopt_argv_const *.
108031         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
108032         _getopt_long_only_r): Likewise.
108033         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
108034         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
108035         _getopt_long_r, _getopt_long_only_r): Likewise.
108036         * lib/getopt_.h (__getopt_argv_const): Remove.
108037         (getopt): Argv is now char * const *, as per standard.
108039         * lib/getdate.y (tORDINAL): New token.
108040         (day, relunit): Allow it for relative times.
108041         (relative_time_table): Use tORDINAL for ordinals.
108043 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108045         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
108046         Document that "second" isn't allowed as an ordinal number.
108048 2004-11-16  Jim Meyering  <jim@meyering.net>
108050         * modules/closeout (Depends-on): Add fpending.
108052 2004-11-15  Jim Meyering  <jim@meyering.net>
108054         * lib/closeout.c: Include "__fpending.h" once again.
108055         Include <stdbool.h>.
108056         (close_stdout): Don't fail just because stdout was closed initially,
108057         since some programs don't write to stdout in the normal course of
108058         operation (other than --version and --help), and we don't want this
108059         function to make e.g. `touch file >&-' fail.
108060         But do fail if it was closed and someone has tried to write to it.
108061         E.g., `printf foo >&-' must fail.
108063 2004-11-13  Jim Meyering  <jim@meyering.net>
108065         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
108067 2004-11-12  Simon Josefsson  <jas@extundo.com>
108069         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
108070         small doc fix is still pending.
108072 2004-11-11  Simon Josefsson  <jas@extundo.com>
108074         * modules/strtok_r: New file.
108076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108077         strtok_r.
108079 2004-11-11  Simon Josefsson  <jas@extundo.com>
108081         * m4/strtok_r.m4: New file.
108083         * m4/getopt.m4: Replace opterr.
108085 2004-11-11  Simon Josefsson  <jas@extundo.com>
108087         * lib/strtok_r.h, strtok_r.c: New file.
108089 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
108091         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
108092         of replacing opterr, getopt, etc.  This should handle the
108093         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
108095 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
108097         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
108098         we can stop lying to compilers about the constness of argv when we
108099         are compiled outside glibc.
108100         (getopt, getopt_long, getopt_long_only): Use it.
108101         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
108102         _getopt_internal, getopt): Likewise.
108103         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
108104         _getopt_long_only_r): Likewise.
108105         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
108106         _getopt_long_r, _getopt_long_only_r): Likewise.
108108         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
108109         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
108110         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
108111         the other external symbols.
108112         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
108113         declaration, since the above renaming now works around collisions.
108115 2004-11-11  Jim Meyering  <jim@meyering.net>
108117         * lib/linebreak.c: Remove trailing blanks.
108118         * lib/alloca_.h: Likewise.
108119         * lib/acosl.c: Likewise.
108120         * lib/euidaccess.c: Likewise.
108121         * lib/allocsa.h: Likewise.
108123 2004-11-10  Simon Josefsson  <jas@extundo.com>
108125         * m4/getaddrinfo.m4: New file.
108127 2004-11-10  Simon Josefsson  <jas@extundo.com>
108129         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
108131 2004-11-10  Simon Josefsson  <jas@extundo.com>
108133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108134         getaddrinfo.
108136         * modules/getaddrinfo: New file.
108138 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108140         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
108142 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108144         * lib/mktime.c (SHR): New macro, which is a portable
108145         substitute for >> that should work even on Crays.
108146         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
108147         Problem reported by Mark D. Baushke in
108148         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
108149         * lib/getdate.y (SHR): Likewise.
108150         (tm_diff): Use it.
108151         * lib/strftime.c (SHR): Likewise.
108152         (tm_diff): Use it.
108153         * lib/quotearg.c (struct quoting_options): Use unsigned int for
108154         quote_these_too, so that right shifts are well defined.  All uses
108155         changed.
108157 2004-11-10  Jim Meyering  <jim@meyering.net>
108159         Ensure that no close failure goes unreported.
108160         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
108161         return early when it seems there's nothing to flush.
108162         Don't include __fpending.h.
108164 2004-11-10  Jim Meyering  <jim@meyering.net>
108166         * modules/closeout (Depends-on): Remove fpending.
108168 2004-11-10  Jim Meyering  <jim@meyering.net>
108170         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
108172 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108174         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
108175         gl_FUNC_STRFTIME.
108176         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
108177         and AC_REQUIRE when possible, to avoid duplicate checks.
108178         Check for <wchar.h>.
108180 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108182         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
108184 2004-11-09  Bruno Haible  <bruno@clisp.org>
108186         * m4/sockpfaf.m4: New file.
108188 2004-11-05  Bruno Haible  <bruno@clisp.org>
108190         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
108191         Reported by Mark D. Baushke <mdb@cvshome.org>.
108193 2004-11-04  Bruno Haible  <bruno@clisp.org>
108195         2004-09-11  Bruno Haible  <bruno@clisp.org>
108196                 * allocsa.valgrind: New file.
108197         2004-02-06  Bruno Haible  <bruno@clisp.org>
108198                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
108199                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
108200                 Reported by Christopher Seip <chris.seip@hp.com>.
108202 2004-11-04  Bruno Haible  <bruno@clisp.org>
108204         * modules/allocsa (Files): Add lib/allocsa.valgrind.
108205         (Makefile.am): Distribute it.
108207 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108209         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
108210         with errno == ERANGE if the buffer is too small.
108211         Problem reported by Mark D. Baushke.
108213 2004-11-03  Albert Chin  <china@thewrittenword.com>
108214             Paul Eggert  <eggert@cs.ucla.edu>
108216         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
108217         equivalent, substitute $ac_type for equivalent type rather than
108218         blindly using uint32_t *always* which won't work if uint32_t is not
108219         available.  Define _UINT32_T to work around typedef of uint32_t if
108220         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
108221         2.5.1.
108223 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108225         * m4/jm-macros.m4: Sync from coreutils.
108226         (gl_MACROS): Check for mbrlen, for pathchk.
108227         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
108229 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108231         * lib/xreadlink.c (MAXSIZE): New macro.
108232         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
108233         size does not exceed MAXSIZE.  Avoid cast.
108234         As suggested by Mark D. Baushke in
108235         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
108236         if readlink fails with buffer size just under MAXSIZE, try again
108237         with MAXSIZE.
108239 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108241         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
108243 2004-11-02  Derek R. Price  <derek@ximbiot.com>
108244         and  Paul Eggert  <eggert@cs.ucla.edu>
108246         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
108247         (get_date): Overparenthesize to avoid GCC warning.
108249 2004-11-02  Bruno Haible  <bruno@clisp.org>
108251         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
108252         returns void.
108254 2004-11-02  Bruno Haible  <bruno@clisp.org>
108256         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
108257         function returns void.
108259 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108261         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
108262         fflush_unlocked, flockfile, funlockfile, funlockfile,
108263         fputs_unlocked, putc_unlocked.
108265 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108267         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108268         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
108269         already declared.
108271 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108273         * modules/getdate (Files): Add doc/getdate.texi.
108274         (Depends-on): Add setenv, xalloc.
108276 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108278         * lib/getdate.y: Add support for TZ="foo" within a date string.
108279         Fix some bugs near time_t boundaries.  Reject dates with
108280         out-of-range components, e.g., "Sept 31".
108281         Include <stdlib.h>, "setenv.h", "xalloc.h".
108282         (ISDIGIT_LOCALE): Remove; unused.
108283         Note that the TZ and time functions used here are not reentrant.
108284         (mktime_ok, get_tz): New functions.
108285         (TZBUFSIZE): New constant.
108286         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
108287         This requires that we sometimes generate our own TZ="XXX..." setting.
108289 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108291         * doc/getdate.texi: New file, from coreutils with modifications for
108292         the new TZ parsing.
108294 2004-10-27  Derek R. Price  <derek@ximbiot.com>
108296         * lib/mktime.c (not_equal_tm): Remove redundant check.
108298 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108300         * modules/regex (lib_SOURCES): Add regex.c.
108301         Reported by James Youngman in
108302         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
108304 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108306         * lib/getdate.y: Use Bison 1.875 features, and some minor
108307         code cleanups.  This change does not affect semantics.
108308         Don't include <stdlib.h>; no longer needed.
108309         Don't include unlocked-io.h; only the "#if TEST" code uses
108310         stdio, and performance isn't crucial there.
108311         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
108312         Bison 1.875 features as described below.
108313         All uses of "PC." replaced by "pc->".
108314         (YYSTYPE): Add a forward declaration.
108315         (yylex, yyerror): Use full prototypes in forward decls.
108316         Use "%pure-parser" rather than obsolescent "%pure_parser".
108317         Use %parse-param and %lex-param instead of obsolescent
108318         YYPARSE_PARAM and YYLEX_PARAM.
108319         (meridian_table, month_and_day_table, time_units_table,
108320         relative_time_table, time_zone_table, military_table,
108321         lookup_zone, lookup_word, get_date):
108322         Use NULL instead of 0 where appropriate.
108323         (to_hour): Avoid abort (), to avoid a dependency on
108324         stdlib.h.
108325         (yyerror, yylex): Now accepts parser_control * arg.
108326         (main) [TEST]: Use '\0' rather than 0 for char.
108328 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108330         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108332 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108334         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108335         It's now the caller's responsibility to handle the case where
108336         !HAVE_GETPAGESIZE && !defined getpagesize.
108338         * lib/mktime.c (leapyear): Arg is long int, not int.
108340 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108342         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108344 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108346         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108347         missing.  Problem reported by James Youngman.
108349 2004-10-16  Simon Josefsson  <jas@extundo.com>
108351         * gnulib-tool: Fix comments.  Fix parse problem.
108352         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108354 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108356         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108357         implementation of getopt_long.  Problem reported by Alexander Taler in:
108358         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108360 2004-10-15  Bruno Haible  <bruno@clisp.org>
108362         * gnulib-tool: Untabify. Initialize supplied_libname.
108363         (func_usage): More homogenous output.
108364         (func_modules_transitive_closure, func_modules_to_filelist,
108365         func_emit_lib_Makefile_am): New functions.
108366         (func_import): New function, extracted from big case statement. Use
108367         func_get_license, func_modules_transitive_closure,
108368         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108369         opt_lgpl. Don't use test -a, as it's not portable.
108370         (func_create_testdir): Use func_modules_transitive_closure,
108371         func_modules_to_filelist, func_emit_lib_Makefile_am.
108373 2004-10-15  Bruno Haible  <bruno@clisp.org>
108375         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108377 2004-10-15  Bruno Haible  <bruno@clisp.org>
108379         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108380         the portions belonging to each module.
108381         Suggested by Derek Robert Price <derek@ximbiot.com>.
108383 2004-10-12  Simon Josefsson  <jas@extundo.com>
108385         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108386         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108387         to real functions.
108389 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108391         * modules/vsnprintf: New file.
108393 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108395         * m4/vsnprintf.m4: New file.
108397 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108399         * lib/vsnprintf.h: New file.
108400         * lib/vsnprintf.c: New file.
108402 2004-10-11  Bruno Haible  <bruno@clisp.org>
108404         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108405         vsnprintf.
108407 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108409         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108411 2004-10-07  Bruno Haible  <bruno@clisp.org>
108413         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108414         fits into the provided buffer.
108416 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108418         * lib/diacrit.c, diacrit.h: Add GPL notice.
108420         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108421         notice.
108422         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108423         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108424         This avoids a potential constant-folding bug.
108426 2004-10-05  Bruno Haible  <bruno@clisp.org>
108428         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108429         for the declaration of strsep.
108431 2004-10-05  Bruno Haible  <bruno@clisp.org>
108433         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108435 2004-10-04  Simon Josefsson  <jas@extundo.com>
108437         * modules/memmem: New file.
108438         * tests/test-memmem.c: New file.
108439         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108441 2004-10-04  Simon Josefsson  <jas@extundo.com>
108443         * m4/memmem.m4: New file.
108445 2004-10-04  Simon Josefsson  <jas@extundo.com>
108447         * lib/memmem.h: New file.
108448         * lib/memmem.c: New file, taken from glibc.
108450 2004-10-04  Simon Josefsson  <jas@extundo.com>
108452         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108453         '#ifdef USE_UNLOCKED_IO'.
108455 2004-10-04  Simon Josefsson  <jas@extundo.com>
108457         * config/srclist.txt: Add memmem from glibc.
108459 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108461         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108463         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108464         modules/exclude, modules/getdate, modules/getline,
108465         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108466         modules/getusershell, modules/linebuffer, modules/md5,
108467         modules/mountlist, modules/posixtm, modules/readtokens,
108468         modules/readutmp, modules/regex, modules/sha1,
108469         modules/version-etc, modules/yesno:
108470         Remove dependency on unlocked-io.
108472 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108474         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108476         * m4/unlocked-io.m4: Add copyright notice.
108477         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108479 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108481         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108482         * lib/xmalloc.c (xmemdup): Likewise.
108483         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108484         XFREE): Remove these long-obsolescent macros.
108485         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108486         * lib/xstrdup.c: Remove.
108488         * lib/regex.c (re_comp): Cast gettext return value to char *,
108489         Problem reported by Martin Neitzel via Mark D. Baushke.
108491 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108493         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108494         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108495         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108496         regex.c, sha1.c, version-etc.c, yesno.c:
108497         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108498         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108499         the includer's responsibility.
108501         Sync from coreutils.
108503         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108504         points to the start of a string, as the C Standard says the
108505         resulting behavior is undefined.
108507         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108508         simple -> simple_backups, numbered_existing ->
108509         numbered_existing_backups, numbered -> numbered_backups
108510         to avoid shadowing problems.  All uses changed.
108511         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108512         * lib/backupfile.c (check_extension, numbered_backup):
108513         Rename locals to avoid shadowing 'basename'.
108514         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108515         once.
108517         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108518         * lib/.cvsignore: Add getopt.h.
108520 2004-10-04  Bruno Haible  <bruno@clisp.org>
108522         * modules/README: New file.
108523         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108524         not a module.
108526 2004-10-02  Jim Meyering  <jim@meyering.net>
108528         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108530 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108532         * modules/strsep: New file.
108534 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108536         * m4/strsep.m4: New file.
108538 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108540         * lib/strsep.h: New file.
108541         * lib/strsep.c: New file.
108543 2004-10-01  Simon Josefsson  <jas@extundo.com>
108545         * lib/snprintf.c (snprintf): Handle size==0.
108547 2004-10-01  Simon Josefsson  <jas@extundo.com>
108548             Bruno Haible  <bruno@clisp.org>
108550         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108551         (snprintf): Declare 'args'.
108553 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108555         * lib/snprintf.c: Remove comments as to why each header is needed.
108557 2004-10-01  Bruno Haible  <bruno@clisp.org>
108559         * MODULES.html.sh: Add strsep.
108561 2004-09-30  Simon Josefsson  <jas@extundo.com>
108563         * modules/snprintf: New file.
108565 2004-09-30  Simon Josefsson  <jas@extundo.com>
108567         * m4/snprintf.m4: New file.
108569 2004-09-30  Simon Josefsson  <jas@extundo.com>
108571         * lib/snprintf.h, lib/snprintf.c: New files.
108573 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108575         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108576         (hol_entry_help): Never translate an empty string.
108577         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108578         * lib/argp.h (OPTION_NO_TRANS): New option.
108580 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108582         * modules/argp (Maintainer): Replace Simon Josefsson
108583         by Sergey Poznyakoff.
108585 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108587         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108588         changes merged back into glibc.
108590 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108592         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108594 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108596         * lib/xvasprintf.c: Include xalloc.h.
108597         (xvasprintf): Use xalloc_die, not xmalloc_die.
108599 2004-09-29  Bruno Haible  <bruno@clisp.org>
108601         * modules/alloca-opt: New file, derived from modules/alloca.
108602         * modules/allocsa: Depend on alloca-opt instead of alloca.
108603         * modules/setenv: Likewise.
108604         * modules/vasnprintf: Likewise.
108605         * MODULES.html.sh: Add alloca-opt.
108607 2004-09-28  Simon Josefsson  <jas@extundo.com>
108609         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108610         LGPL, and to replace license template from GPL to LGPL.
108612 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108614         * modules/dummy: Change license to LGPL.
108616 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108618         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108620 2004-09-24  Simon Josefsson  <jas@extundo.com>
108622         * modules/minmax (License): Change from GPL to LGPL.
108624 2004-09-23  Simon Josefsson  <jas@extundo.com>
108626         * gnulib-tool (--import): Typo.
108628 2004-09-23  Simon Josefsson  <jas@extundo.com>
108630         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108632 2004-09-22  Bruno Haible  <bruno@clisp.org>
108634         * modules/*: Add 'License' field.
108635         * gnulib-tool: Accept --extract-license option.
108636         (func_get_license): New function.
108638 2004-09-21  Bruno Haible  <bruno@clisp.org>
108640         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108641         Reported by Simon Josefsson.
108643 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108645         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108646         gl_AC_TYPE_LONG_LONG.
108648 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108650         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108652 2004-09-18  Simon Josefsson  <jas@extundo.com>
108653         and  Paul Eggert  <eggert@cs.ucla.edu>
108655         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108656         calls with autoreconf.  Define GL_LIB.
108658 2004-09-14  Karl Berry  <karl@gnu.org>
108660         * config/srclist.txt: unsync setenv.c, sigh.
108662 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108664         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108665         Problem reported by Bruno Haible in:
108666         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108668 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108670         * config/srclist.txt: Comment out argp-pvh.c.
108672 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108674         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108675         in case some system header has #define'd it.  Problem reported by
108676         Soeren D. Schulze in
108677         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108679 2004-09-09  Karl Berry  <karl@gnu.org>
108681         * regex.[ch]: delete from the root.  These were supposed to be
108682                 synced with emacs cvs, but this has not happened for about
108683                 a year, and anyway nothing else uses emacs regex.[ch].
108684                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108685                 lib/regex[.ch] is untouched.
108687 2004-09-09  Bruno Haible  <bruno@clisp.org>
108689         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108691 2004-09-09  Bruno Haible  <bruno@clisp.org>
108693         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108694         modifications.
108695         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108697 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108699         * modules/xvasprintf: New file.
108700         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108702 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108704         * lib/xvasprintf.h: New file.
108705         * lib/xvasprintf.c: New file.
108706         * lib/xasprintf.c: New file.
108708 2004-09-08  Bruno Haible  <bruno@clisp.org>
108710         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108712 2004-09-08  Bruno Haible  <bruno@clisp.org>
108714         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108715         length is > INT_MAX.
108716         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108717         more.
108719 2004-09-08  Bruno Haible  <bruno@clisp.org>
108721         * lib/stdint_.h: New file, taken from GNU clisp.
108723 2004-09-08  Bruno Haible  <bruno@clisp.org>
108724             Oskar Liljeblad  <oskar@osk.mine.nu>
108726         * modules/stdint: New file.
108727         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108729 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108731         Import from coreutils.
108732         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108733         strings on unbounded length.  alloca's performance benefits aren't
108734         that important here.
108735         (V_STRDUP): Remove.
108736         (parse_with_separator): New function, with most of the internals
108737         of the old parse_user_spec.  Allow user to omit both user and group,
108738         for compatibility with FreeBSD.
108739         Clone only the user name, not the entire spec.
108740         Do not set *uid, *gid unless entirely successful.
108741         Avoid memory leak in some failing cases.
108742         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108743         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108744         (parse_user_spec): Rewrite to use parse_with_separator.
108746 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108748         * modules/userspec: Don't depend on alloca.
108750 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108752         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108754 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108756         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108757         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108758         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108760 2004-08-16  Simon Josefsson  <jas@extundo.com>
108762         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108763         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108764         Add --dry-run for --import.
108765         Let user provided command line parameters override configure.ac
108766         settings.
108768 2004-08-12  Simon Josefsson  <jas@extundo.com>
108770         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108771         as discussed with Paul Eggert in threads rooted at
108772         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108773         and
108774         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108775         Before, the test was empty, and relied on ELIDE_CODE in source
108776         code.)
108777         (gl_PREREQ_GETOPT): New macro.
108778         (gl_GETOPT): Use them.
108780 2004-08-12  Simon Josefsson  <jas@extundo.com>
108782         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108783         * lib/getopt_.h: Renamed from getopt.h.
108785 2004-08-12  Simon Josefsson  <jas@extundo.com>
108787         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108788         Change default library name from libfoo to libgnu.
108789         Now, if you have a configure.ac that says:
108790                 gl_SOURCE_BASE(gl)
108791                 gl_M4_BASE(gl/m4)
108792                 gl_MODULES(error getopt etcetera)
108793                 gl_INIT
108794         you can import all you need by running:
108795                 ../gnulib/gnulib-tool --import
108797         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108798         (Makefile.am): Rewrite, use logic from argz.
108799         (Include): Use <getopt.h> instead of "getopt.h".
108801 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108803         * modules/argp (Files): Add m4/unlocked-io.m4.
108804         (Depends-on): Add extensions.
108806 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108808         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108809         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108810         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108811         Check for program_invocation_name, program_invocation_short_name,
108812         flockfile, funlockfile, features.h, _getopt_long_only_r.
108814 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108816         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108817         its complicated substitute.
108818         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108819         and program_invocation_name.
108820         (__argp_basename) [!_LIBC]: Remove; the only use was
108821         replaced by its body.
108822         (__argp_short_program_name): Change condition from
108823         !defined __argp_short_program_name to
108824         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108825         to match argp-namefrob.h.
108826         (__argp_failure): Don't assume strerror_r returns char *.
108827         * lib/argp-parse.c (N_): Define unconditionally.
108828         (argp_default_options): Fill out initializers with 0 to avoid
108829         gcc warnings.
108831 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108833         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108834         getopt1.c.
108836 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108838         Merge from coreutils.
108840         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108842         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108843         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108845 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108847         Merge from coreutils.
108849         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108850         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108851         for Reliant Unix 5.43.
108853         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108854         (union fooround): Use uintmax_t, not long int.
108855         The rest is a merge from libc:
108856         [defined _LIBC]: Include <shlib-compat.h>.
108857         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108859         * lib/settime.c (settime): Recode to avoid warning with
108860         Sun Forte C 6U2.
108862         * lib/strverscmp.c: Convert to UTF-8.
108864 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108866         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108867         m4/uintmax_t.m4.
108869 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108871         * modules/xalloc-die: New file.
108872         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108874         * modules/md5 (Files): Add m4/uint32_t.m4.
108875         * modules/sha1: Renamed from modules/sha.
108876         (Files):
108877         Rename lib/sha.h to lib/sha1.h.
108878         Rename lib/sha.c to lib/sha1.c.
108879         Rename m4/sha.m4 to m4/sha1.m4.
108880         (lib_SOURCES): Likewise.
108881         (configure.ac): Rename gl_SHA to gl_SHA1.
108882         (Include): sha.h -> sha1.h.
108884 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108886         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108887         * m4/sha1.m4: Renamed from sha.m4.
108888         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108890 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108892         * lib/obstack.h (obstack_empty_p):
108893         Don't assume that chunk->contents is suitably aligned.
108894         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108895         Likewise. Problem reported by Benno in
108896         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108898         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108899         readable.  This could be improved further but it'd take some work.
108901 2004-08-08  Simon Josefsson  <jas@extundo.com>
108903         * modules/xgethostname (Depends-on): Remove exit and error (not
108904         used).
108906         * modules/getpass-gnu: Add getpass.h.
108907         (Depends-on): Add stdbool.
108908         * modules/getpass: Add getpass.h.
108910 2004-08-08  Simon Josefsson  <jas@extundo.com>
108912         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108913         Check getpass declaration.
108915 2004-08-08  Simon Josefsson  <jas@extundo.com>
108917         * lib/xgethostname.c: Don't include error.h (not used).
108919         * lib/getpass.h: Add.
108920         * lib/getpass.c: Include getpass.h first.
108922 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108924         * lib/xalloc-die.c: New file.
108925         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108926         All uses removed.
108927         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108928         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108929         xalloc-die.c.
108930         (_, N_, xalloc_die): Move to xalloc-die.c.
108931         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108932         so that we needn't mess with xalloc_msg_memory_exhausted.
108934         * lib/sha1.h: Renamed from sha.h.
108935         (SHA1_H): Renamed from _SHA_H.
108936         (sha1_ctx): Renamed from sha_ctx.
108937         (sha1_init_ctx): Renamed from sha_init_ctx.
108938         (sha1_process_block): Renamed from sha_process_block.
108939         (sha1_process_bytes): Renamed from sha_process_bytes.
108940         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108941         (sha1_read_ctx): Renamed from sha_read_ctx.
108942         (sha1_stream): Renamed from sha_stream.
108943         (sha1_buffer): Renamed from sha_buffer.
108944         * lib/sha1.c: Likewise; renamed from sha.c.
108945         Do not include <sys/types.h>.
108946         Include <stddef.h> rather than <stdlib.h>.
108948 2004-08-08  Bruno Haible  <bruno@clisp.org>
108950         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108951         FILESYSTEM_PREFIX_LEN.
108952         * lib/progreloc.c: Likewise.
108953         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108955 2004-08-06  Simon Josefsson  <jas@extundo.com>
108957         * modules/progname (Depends-on): Don't depend on stdbool.
108959 2004-08-06  Simon Josefsson  <jas@extundo.com>
108961         * modules/getsubopt: New file.
108962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108963         getsubopt.
108965 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108967         More merge from coreutils.
108969         * m4/utimens.m4, m4/utimecmp.m4: New files.
108970         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108971         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108972         prereq.m4, sha.m4: Import changes from coreutils.
108974 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108976         More merge from coreutils.
108977         * modules/raise, modules/readtokens0, modules/utimens:
108978         * modules/utimecmp, module/xnanosleep: New files.
108979         * modules/strftime: Add lib/strftime.h.
108980         Change include from <time.h> to "strftime.h".
108981         * modules/yesno: Add lib/yesno.h.
108982         * modules/backupfile: Remove lib/addext.c.
108983         * modules/euidaccess: Add stat-macros.h.
108984         * modules/canonicalize, modules/euidaccess,
108985         modules/filemode, modules/lchown, modules/makepath,
108986         modules/rmdir, modules/stat: Likewise.
108988 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108990         Merge from tar.
108991         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108992         SIZE_MAX is a valid preprocessor constant.
108993         (__argp_basename): Change from "#ifndef _LIBC"
108994         to "#ifndef __argp_short_program_name", so that
108995         we don't compile these functions for tar.
108997         More merges from coreutils.
108998         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108999         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
109000         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
109001         * lib/addext.c: Remove; no longer needed.
109002         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
109003         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
109004         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
109005         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
109006         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
109007         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
109008         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
109009         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
109010         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
109011         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
109012         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
109013         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
109014         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
109015         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
109016         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
109017         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
109018         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
109019         Import changes from coreutils.
109021 2004-08-05  Simon Josefsson  <jas@extundo.com>
109023         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
109025 2004-08-05  Simon Josefsson  <jas@extundo.com>
109027         * m4/getsubopt.m4: New file.
109029 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109031         Merge from coreutils.
109033         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
109034         * m4/getcwd-path-max.m4: New files.
109036         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
109037         FILESYSTEM_PREFIX_LEN ->
109038         FILE_SYSTEM_PREFIX_LEN.
109039         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
109040         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
109041         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
109042         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
109044         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
109045         prerequisite modules now handle the DOS stuff.
109046         Don't check for unistd.h.
109048 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109050         Merge from coreutils.
109052         * lib/.gdb-history: Remove; this doesn't belong here.
109054         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
109055         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
109056         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
109057         * lib/getcwd.c: New files.
109059         * lib/dirname.h: Include <stdbool.h>.
109060         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
109061         for consistency with POSIX terminology.  All uses changed.
109062         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
109063         (strip_trailing_slashes): Use bool for booleans.
109064         * lib/stripslash.c (strip_trailing_slashes): Likewise.
109066         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
109067         sometimes returns a positive errno value even when it succeeds.
109068         (print_errno_message) [!LIBC]: Fall back on strerror if
109069         __strerror_r fails.
109071         * lib/path-concat.c (mempcpy): Don't define if a system header defines
109072         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
109073         (longest_relative_suffix): New function.
109074         (path_concat): Use it.  Assume first argument is not NULL.
109075         Port to DOS.  Omit redundant separators.
109076         Report an error instead of returning NULL.
109077         Use mempcpy instead of memcpy.
109078         (xpath_concat): Remove: not declared or used.
109080         * lib/same.h: Include <stdbool.h>
109081         (same_name): Return bool, not int.
109082         * lib/same.c (same_name): Likewise.
109083         (errno): Don't declare; we assume C89 or better now.
109085         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
109086         if not already defined.
109088         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
109089         * lib/dup-safer.c (errno): Likewise.
109091 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109093         Merge from coreutils.
109094         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
109095         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
109096         * modules/path-concat: Don't depend on strdup.
109098 2004-08-03  Simon Josefsson  <jas@extundo.com>
109100         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
109101         * lib/progname.h: Don't include stdbool.h.
109103 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109105         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
109106         * MODULES.html.sh (func_all_modules): Remove fatal.
109108 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109110         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
109112 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109114         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
109115         working.
109117 2004-08-02  Simon Josefsson  <jas@extundo.com>
109119         * lib/getsubopt.h: New file, with comments from Bruno Haible.
109120         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
109121         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
109123 2004-08-01  Simon Josefsson  <jas@extundo.com>
109125         * lib/xgetdomainname.c: Include stdlib.h, for free().
109127 2004-07-19  Bruno Haible  <bruno@clisp.org>
109129         * MODULES.html.sh (func_all_modules): Add dummy.
109131 2004-07-16  Simon Josefsson  <jas@extundo.com>
109133         * modules/dummy: New file.
109135 2004-07-16  Simon Josefsson  <jas@extundo.com>
109137         * lib/dummy.c: New file.
109139 2004-07-16  Bruno Haible  <bruno@clisp.org>
109141         * lib/backupfile.h: Add extern "C" for C++.
109142         * lib/closeout.h: Likewise.
109143         * lib/copy-file.h: Likewise.
109144         * lib/findprog.h: Likewise.
109145         * lib/full-write.h: Likewise.
109146         * lib/pathname.h: Likewise.
109147         * lib/progname.h: Likewise.
109148         * lib/stpcpy.h: Likewise.
109149         * lib/stpncpy.h: Likewise.
109150         * lib/strcase.h: Likewise.
109151         * lib/strstr.h: Likewise.
109152         * lib/xalloc.h: Likewise.
109154         * lib/mbswidth.h: Add extern "C" for C++.
109155         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
109157 2004-07-13  Robert Millan  <robertmh@gnu.org>
109159         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
109161 2004-07-09  Simon Josefsson  <jas@extundo.com>
109163         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
109164         failed without this.)
109166 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109168         * modules/chown (Files): Add lib/fchown-stub.c, since
109169         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
109171 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109173         * lib/fchown-stub.c: New file.
109175 2004-06-24  Jim Meyering  <jim@meyering.net>
109177         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
109179 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109181         * modules/argz: Omit "#include".
109183         * MODULES.html.sh (func_all_modules): Add calloc, to match
109184         2004-06-01 addition of calloc module.
109186 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109188         * m4/argz.m4: New file, which is autoupdated from libtool.
109190 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109192         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
109193         libtool.
109195 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109197         * config/srclist-update: Don't insist on "USA." before the
109198         close-comment, as libtool omits the period and puts the */ on a
109199         separate line.
109200         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
109201         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
109203 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
109205         * modules/argz: New file.
109206         * MODULES.html.sh (func_all_modules): Add argz.
109208 2004-06-12  Jim Meyering  <jim@meyering.net>
109209         and  Paul Eggert  <eggert@cs.ucla.edu>
109211         * modules/hash (Files): Add lib/xalloc.h.
109212         * modules/pipe (Depends-on): Add wait-process.
109213         * modules/stat (Depends-on): Add xalloc.
109214         * modules/userspec (Files): Add lib/userspec.h.
109215         * modules/xstrto
109217         Upgrade from gettext-0.13.
109218         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
109219         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
109220         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
109222 2004-06-10  Jim Meyering  <jim@meyering.net>
109224         * lib/calloc.c: New file.
109226 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
109228         * lib/getdate.y (yylex): Allow space between sign and number.
109229         Problem reported by Dan Jacobson.
109231 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109233         Merge from coreutils CVS.
109235         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
109236         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
109237         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
109238         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
109239         xstrtol.m4: Fix copyright date and/or serial number.
109241         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
109242         See if we need an fchown replacement.
109243         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
109244         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
109245         and use the replacement function if we detect either defect.
109247         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
109248         gl_UTIMECMP.
109250 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109251         and  Jim Meyering  <jim@meyering.net>
109253         Merge from coreutils CVS.
109255         * lib/stat-macros.h: New file, with contents from file-type.h
109256         and coreutils' system.h.
109257         * lib/file-type.c: Include "stat-macros.h".
109258         * lib/file-type.h (file_type): Move all macro definitions to new file,
109259         stat-macros.h.
109261         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
109262         Wrap old code with this conditional.
109263         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
109264         function that does not dereference symlinks.
109265         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
109267         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
109268         dependency problems.
109269         (xreadlink): Accept new arg SIZE, for efficiency.
109270         All decls and uses changed.
109271         * lib/xreadlink.h: Include <stddef.h>, for size_t.
109273         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
109274         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
109276         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
109277         sysexits.h.
109279 2004-06-01  Jim Meyering  <jim@meyering.net>
109281         * m4/calloc.m4: New file.
109283 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
109285         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
109286         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
109287         Also, fix a typo in a diagnostic.
109289 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109291         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
109292         or AC_FUNC_REALLOC.
109294 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109296         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
109297         macros to be defined.
109298         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
109299         the allocator returns NULL because the requested size is zero.
109301 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
109303         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
109304         var.  Add comment explaining why libc still defines it.  This
109305         merges the following patch from glibc:
109306         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
109308 2004-05-20  Andreas Schwab  <schwab@suse.de>
109310         * m4/free.m4: Replace free if it not known to work, not the other
109311         way round.
109313 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
109315         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
109316         present in glibc since revision 1.1 of this file.
109317         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
109318         obstack_alignment_mask, obstack_alloc, obstack_base,
109319         obstack_blank, obstack_blank_fast, obstack_chunk_size,
109320         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
109321         obstack_grow0, obstack_init, obstack_int_grow,
109322         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
109323         obstack_next_free, obstack_object_size, obstack_ptr_grow,
109324         obstack_ptr_grow_fast, obstack_room): Remove declarations of
109325         nonexistent functions.
109327 2004-05-18  Karl Berry  <karl@gnu.org>
109329         * config/srclist.txt: break link for vasnprintf.c.
109331 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109333         Port obstack to the AS/400, where pointers are 16 bytes wide and
109334         you cannot cast an integer to a valid pointer.  This patch is
109335         currently waiting to be integrated into glibc; see
109336         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109338         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109339         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109340         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109341         (struct obstack): temp member is now a union of a pointer and
109342         an integer, instead of an integer.  All integer uses changed.
109343         This does not affect the physical layout of struct obstack,
109344         except on hosts (like the AS/400) where the size or alignment of
109345         void * is greater than that of ptrdiff_t.
109346         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109347         __STDC__)]: Store temporary in pointer member of union, not
109348         integer member.
109349         * lib/obstack.c: Include <stddef.h>, for offsetof.
109350         (struct fooalign): Remove; it doesn't need a name.
109351         (union fooround): Change double to long double, and add void *.
109352         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109353         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109354         not a macro.  Hence the values are always int; so remove all
109355         casts-to-int in uses.
109357 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109359         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109360         we can get this patch merged into glibc.
109362 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109363             Paul Eggert  <eggert@cs.ucla.edu>
109365         * m4/argp: Depend on alloca.
109367 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109368             Paul Eggert  <eggert@cs.ucla.edu>
109370         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109371         freecoding.
109373 2004-05-17  Bruno Haible  <bruno@clisp.org>
109375         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109376         precision that consists of a '.' followed by an empty digit string.
109377         Patch by Tor Lillqvist <tml@iki.fi>.
109379 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109381         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109382         for backward compatibility with older code.  We need our own
109383         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109384         it under some other name, and our alloca.h will define it.
109386 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109387             Derek Price  <derek@ximbiot.com>
109389         * lib/alloca.c: Include <alloca.h>, to get our interface.
109390         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109391         include <alloca.h> first.  Use C89 prototype for alloca; this
109392         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109393         Use #elif for simplicity, since we can assume C89 now.
109394         Don't try to source the system alloca.h since it will not be found
109395         and to prevent recursively including its replacement.
109396         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109397         * lib/regex.c: Likewise.
109399 2004-05-16  Derek Price  <derek@ximbiot.com>
109400             Paul Eggert  <eggert@cs.ucla.edu>
109402         getline cleanup.  This changes the getndelim2 API: both order of
109403         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109404         no delimiter).
109406         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109407         interface does that.
109408         (getline): Always use getdelim, so that we don't have two
109409         copies of this code.
109410         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109411         if available.
109412         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109413         (GETNDELIM2_MAXIMUM): New macro.
109414         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109415         instead of the old practice of delim2==0.  All callers changed.
109416         Return -1 on overflow, instead of returning junk.
109417         Do not set *linesize unless allocation succeeds.
109418         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109419         that we include sys/types.h.
109420         * lib/getnline.h: Likewise.
109421         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109422         (getndelim2): Reorder arguments.
109423         * lib/getnline.c (getnline, getndelim):
109424         Don't discard the NMAX argument.
109425         (getnline): Invoke getndelim, to avoid code duplication.
109426         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109427         of (size_t) -1 by callers of the getnline family.
109429 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109431         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109432         Check for gettimeofday.
109433         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109434         Check for settimeofday, stime.
109436 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109438         * lib/nanosleep.c (suspended): Change its type from int to
109439         sig_atomic_t volatile.
109440         (first_call): Make it private to rpl_nanosleep, and have it
109441         be zero initially as that's a bit faster.
109442         (my_usleep): Round up fractional times instead of truncating them,
109443         as this is the usual meaning for 'sleep'.
109445         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109446         doesn't work.
109447         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109448         (ENOSYS): Define if not defined.
109449         (settime): Fall back on stime if it exists and settimeofday fails.
109450         But don't bother with fallbacks if a method fails with errno == EPERM.
109452 2004-05-11  Jim Meyering  <jim@meyering.net>
109454         Prior to this change, the save_cwd caller required read access to the
109455         current directory on most systems (ones with the fchdir function).
109457         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109458         fails, try write-only, and finally, resort to using xgetcwd.
109460 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109462         * lib/obstack.c, obstack.h: Import changes from libc.
109464 2004-04-28  Bruno Haible  <bruno@clisp.org>
109466         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109467         also implicitly appends .exe to executables.
109468         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109469         accepts Windows pathnames.
109470         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109471         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109472         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109473         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109474         Reported by Derek Robert Price <derek@ximbiot.com>.
109476 2004-04-21  Karl Berry  <karl@gnu.org>
109478         * config/srclist.txt (localcharset.c): break sync.
109480 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109482         * m4/host-os.m4: Add a copyright notice.
109484 2004-04-20  Jim Meyering  <jim@meyering.net>
109486         Change UTILS_ to gl_ in AC_DEFINE'd names.
109487         Change utils_- and jm_-prefixed variables, too.
109488         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109489         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109492         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109493         Don't emit trailing blanks.
109494         Also rename jm_-prefixed variables to have gl_ prefix.
109496         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109497         Also rename jm_-prefixed variables to have gl_ prefix.
109499         * m4/jm-macros.m4: Reflect the renamings.
109500         * m4/prereq.m4: Likewise.
109502 2004-04-20  Jim Meyering  <jim@meyering.net>
109504         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109505         memory.
109507 2004-04-20  Jim Meyering  <jim@meyering.net>
109508             Bruno Haible  <bruno@clisp.org>
109510         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109511         memory when realloc fails.
109513 2004-04-19  Jim Meyering  <jim@meyering.net>
109515         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109516         now that readutmp.c may call `free (0)'.
109518 2004-04-19  Bruno Haible  <bruno@clisp.org>
109520         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109521         * m4/inttypes_h.m4: Likewise.
109522         * m4/stdint_h.m4: Likewise.
109523         * m4/intmax_t.m4: Likewise.
109524         * m4/uintmax_t.m4: Likewise.
109526 2004-04-18  Jim Meyering  <jim@meyering.net>
109528         * m4/prereq.m4: Don't forbid jm_ prefix.
109530         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109531         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109532         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109533         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109534         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109535         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109536         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109537         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109538         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109539         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109540         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109541         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109542         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109543         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109544         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109545         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109546         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109547         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109548         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109550 2004-04-18  Jim Meyering  <jim@meyering.net>
109552         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109553         failure, don't leak memory and do call END_UTMP_ENT.
109555 2004-04-16  Jim Meyering  <jim@meyering.net>
109557         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109558         coreutils' stat program.
109559         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109561 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109563         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109564         C89.
109565         (CHAR_BIT): Remove, since we assume C89.
109566         Include <stdint.h> if available, as per current Autoconf CVS advice.
109568 2004-03-31  Jim Meyering  <jim@meyering.net>
109570         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109571         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109572         * m4/xalloc.m4: Likewise.
109574 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109576         Merge from coreutils.
109578         * m4/inttostr.m4: New file.
109579         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109580         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109581         Require gl_CLOCK_TIME.
109582         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109584 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109586         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109587         not bool, to be more consistent with Unix conventions.
109588         Suggested by Bruno Haible.
109590         Merge from coreutils.
109592         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109593         * lib/umaxtostr.c: New files.
109595         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109596         the usual <time.h> dance.
109597         (get_date): Change signature to support fractional time stamps.
109598         All callers changed.
109599         * lib/getdate.y: Include "getdate.h" first, as we can now
109600         assume C89 and don't need to worry about 'const'.
109601         Similarly, include "unlocked-io.h" near start, not in middle.
109602         Include <limits.h>.
109603         (textint.value): Use long int rather than int.
109604         (textint.digits): Use size_t rather than int.
109605         (BILLION, LOG10_BILLION): New constants.
109606         (parser_control): New member rel_ns.  Members day_ordinal,
109607         time_zone, month, day, hour, minutes, rel_year, rel_month,
109608         rel_day, rel_hour, rel_minutes, rel_seconds
109609         are now long int, not int.  Member seconds is now struct timespec,
109610         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109611         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109612         not int.
109613         (%union.intval): Now long int, not int.
109614         New member timespec.
109615         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109616         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109617         (spec): Now is a timespec or an item list.
109618         (timespec, items): New nonterminals.
109619         (time, rel, relunit, number, get_date):
109620         Add support for fractional seconds.
109621         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109622         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109623         (to_hour): First arg is now long int, not int.
109624         (to_year): Returns long int, not int.
109625         Don't treat year -70 like 70.
109626         (tm_diff): Returns long int, not int.
109627         (lookup_word): Use bool instead of int when appropriate.
109628         (yylex): Use size_t for count, not int.
109629         Detect overflow when parsing large integer constants.
109630         Add support for fractions.
109631         (get_date): Make pointers 'const' if possible.
109632         Use more-portable code to detect integer overflow.
109633         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109634         Don't use ctime; it's not reliable if the year has >4 digits.
109636         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109637         This is for compatibility with BSD.
109639         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109640         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109641         From coreutils' system.h.
109643         * lib/userspec.c: Don't include "posixver.h".
109644         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109645         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109646         compatible extension.  Simplify code by removing a boolean int
109647         that was always nonzero if a string was nonnull.
109649 2004-03-30  Jim Meyering  <jim@meyering.net>
109651         Merge from coreutils.
109653         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109654         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109655         on some systems one must include <grp.h> before it.
109656         Reported by Christian Krackowizer.
109658 2004-03-30  Jim Meyering  <jim@meyering.net>
109660         Merge from coreutils.
109662         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109664         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109665         an empty input stream.
109667         * lib/readtokens.c: Include <stdbool.h>.
109668         (readtoken): Use `size_t' rather than int/long.
109669         All callers adjusted.
109670         Use `bool' rather than `int' where appropriate.
109671         Use memset rather than an explicit loop.
109672         Use x2nrealloc rather than xrealloc.
109673         Allow the use of `\0' as a delimiter.
109674         (readtokens): Likewise.
109675         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109677 2004-03-30  Jim Meyering  <jim@meyering.net>
109679         * m4/realloc.m4: Remove file, since now it does no more than
109680         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109681         the `configure.ac' section of module/realloc.
109682         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109684 2004-03-30  Bruno Haible  <bruno@clisp.org>
109686         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109687         nonnull.
109689 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109691         Merge changes to getloadavg.c from coreutils and Emacs.
109693         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109694         Define to an expression, not to the empty string.
109695         Include cloexec.h and xalloc.h.
109696         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109697         Use set_cloexec_flag rather than rolling our own.
109698         * lib/cloexec.c, lib/cloexec.h: New files.
109700 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109702         * m4/cloexec.m4: New file.
109704 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109706         * lib/getopt.h: Sync with libc CVS.
109708 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109709             Bruno Haible  <bruno@clisp.org>
109711         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109712         mbswidth.
109714 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109715             Bruno Haible  <bruno@clisp.org>
109717         * lib/mbswidth.h: Include <wchar.h> only if
109718         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109719         <wchar.h>.
109720         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109722 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109724         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109725         Sync with libc CVS.
109726         * lib/getopt_int.h: New file, also synced from libc.
109728 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109730         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109731         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109732         Bring back getopt.c, getopt.h, getopt1.c.
109734 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109736         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109737         All uses changed.  Check for sa_sigaction member; this fixes
109738         a bug first reported by Jason Andrade in
109739         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109741 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109743         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109744         '#if' expressions.  Unlike the code it replaces, it does not
109745         depend on (defined _SC_PAGESIZE).  However, it does depend on
109746         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109747         first reported by Jason Andrade in
109748         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109750 2004-02-25  Simon Josefsson  <jas@extundo.com>
109752         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109754 2004-02-25  Simon Josefsson  <jas@extundo.com>
109756         * lib/strdup.h: New file.
109757         * lib/strdup.c: Include it.
109758         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109759         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109761 2004-02-23  Karl Berry  <karl@gnu.org>
109763         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109764         (from fencepost.gnu.org:/gd/gnuorg).
109766 2004-02-23  Karl Berry  <karl@gnu.org>
109768         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109769         * config/srclist.txt: add maintain/standards documents.
109771 2004-02-18  Bruno Haible  <bruno@clisp.org>
109773         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109774         Reported by Derek Robert Price <derek@ximbiot.com>.
109776 2004-02-16  Karl Berry  <karl@gnu.org>
109778         * config/mkinstalldirs, install-sh: update from automake.
109780 2004-02-06  Karl Berry  <karl@gnu.org>
109782         * m4/po.m4: update from gettext 0.14.1.
109784 2004-02-06  Karl Berry  <karl@gnu.org>
109786         * lib/config.charset: update from gettext 0.14.1.
109788 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109790         Add comments and code, prompted by suggestions from Bruno Haible
109791         for sh-quote.
109792         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109793         describing the enum quoting_style values.
109794         * lib/quotearg.c (quotearg_alloc): New function.
109795         (quotearg_buffer_restyled): Treat lone { and } as special.
109796         Treat = as special.  Work around bug with older shells
109797         that "see" a '\' that is really the 2nd byte of a multibyte char.
109798         Quote empty string with shell_quoting_style.
109800 2004-02-03  Bruno Haible  <bruno@clisp.org>
109802         * m4/pipe.m4: New file, from GNU gettext.
109804 2004-02-03  Bruno Haible  <bruno@clisp.org>
109806         * lib/pipe.h: New file, from GNU gettext.
109807         * lib/pipe.c: New file, from GNU gettext.
109809 2004-01-27  Bruno Haible  <bruno@clisp.org>
109811         * m4/execute.m4: New file, from GNU gettext.
109813 2004-01-27  Bruno Haible  <bruno@clisp.org>
109815         * lib/execute.h: New file, from GNU gettext.
109816         * lib/execute.c: New file, from GNU gettext.
109817         * lib/w32spawn.h: New file, from GNU gettext.
109819 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109821         Merge from diffutils.
109823         * lib/file-type.c (file_type): Add typed memory objects.
109824         * lib/file-type.h (S_TYPEISTMO): New macro.
109826         * lib/c-stack.h (c_stack_action): Remove argv argument.
109827         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109828         (die): Don't calculate message unless segv_action returns.
109829         (get_stack_location, min_address_from_argv, max_address_from_argv,
109830         volatile stack_base, volatile_stack_size): Remove.
109831         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109832         that every segmentation violation is a stack overflow.  (Ouch!)
109833         See Debian bug 136249 (still outstanding) for more info about why
109834         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109836 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109838         Exit-status fix from coreutils.
109840         Use exit_failure consistently in place of EXIT_FAILURE,
109841         so that program exit statuses are consistent on failure.
109843         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109844         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109845         * lib/argmatch.h: Comment fix to match the above.
109846         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109847         Now a macro referring to exit_failure, instead of a separate
109848         variable.  Include "exitfail.h" to get it.
109849         * lib/xstrtol.h: Include "exitfail.h".
109850         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109852         * lib/long-options.c (parse_long_options): Use prototype
109853         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109854         for clarity.
109856 2004-01-21  Jim Meyering  <jim@meyering.net>
109858         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109859         so as not to conflict with a different-sized __mktime_internal
109860         function in GNU libc.
109861         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109862         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109864 2004-01-20  Karl Berry  <karl@gnu.org>
109866         * config/config.guess: update from config.
109868         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109870 2004-01-20  Bruno Haible  <bruno@clisp.org>
109872         Safer stack allocation.
109873         * lib/setenv.c: Include allocsa.h.
109874         (alloca): Remove fallback definition.
109875         (freea): Remove macro.
109876         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109877         instead of freea.
109879 2004-01-20  Bruno Haible  <bruno@clisp.org>
109881         * m4/eealloc.m4: New file, from GNU gettext.
109883 2004-01-20  Bruno Haible  <bruno@clisp.org>
109885         * m4/allocsa.m4: New file, from GNU gettext.
109887 2004-01-20  Bruno Haible  <bruno@clisp.org>
109889         * lib/xallocsa.h: New file, from GNU gettext.
109890         * lib/xallocsa.c: New file, from GNU gettext.
109892 2004-01-20  Bruno Haible  <bruno@clisp.org>
109894         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109896 2004-01-20  Bruno Haible  <bruno@clisp.org>
109898         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109899         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109900         specially.
109902 2004-01-20  Bruno Haible  <bruno@clisp.org>
109904         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109905         patch.
109907 2004-01-20  Bruno Haible  <bruno@clisp.org>
109909         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109911 2004-01-20  Bruno Haible  <bruno@clisp.org>
109913         * lib/eealloc.h: New file.
109915 2004-01-20  Bruno Haible  <bruno@clisp.org>
109917         * lib/binary-io.h: Avoid warnings on Cygwin.
109919 2004-01-20  Bruno Haible  <bruno@clisp.org>
109921         * lib/allocsa.h: New file, from GNU gettext.
109922         * lib/allocsa.c: New file, from GNU gettext.
109924 2004-01-18  Karl Berry  <karl@gnu.org>
109926         * doc/gpl.texi, doc/lgpl.texi: new files.
109928 2004-01-18  Karl Berry  <karl@gnu.org>
109930         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109931         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109933 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109935         Merge from coreutils.
109937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109938         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109939         (gl_DEFAULT_POSIX2_VERSION): Move
109940         the documentation from 'configure' into 'config.hin',
109941         so that 'configure --help' isn't burdened by it and
109942         we don't have to worry about its formatting there.
109943         Reword the documentation so that it's more succinct
109944         and can be run together into a single paragraph.
109945         * m4/same.m4 (gl_SAME): Check for pathconf.
109947 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109949         Merge from coreutils.
109951         * lib/posixver.c: Include posixver.h.
109953         * lib/same.c: Include <stdbool.h>, <limits.h>.
109954         (_POSIX_NAME_MAX): Define if not defined.
109955         (MIN): New macro.
109956         (same_name): If file names are silently truncated, report
109957         that the file names are the same if they are the same after
109958         the silent truncation.
109960         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109961         conversion function.
109962         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109963         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109964         longer needed.
109966 2004-01-15  Jim Meyering  <jim@meyering.net>
109968         Merge from coreutils.
109970         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109971         if no library is required.
109972         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109973         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109974         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109975         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109976         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109977         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109978         value, $ac_cv_search_crypt, if it's "none required".
109979         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109980         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109981         not gl_FUNC_GETLOADAVG.
109982         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109983         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109985 2004-01-15  Jim Meyering  <jim@meyering.net>
109987         Merge from coreutils.
109989         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109990         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109991         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109993         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109994         optional configure-time default.
109996         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109998         * lib/xreadlink.c (xreadlink): Correct outdated comment.
110000 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
110002         Merge from coreutils.
110004         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
110005         value, $ac_cv_search_nanosleep, if it's "none required".
110007 2004-01-14  Paul Eggert  <eggert@twinsun.com>
110009         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
110010         with like-named macro in fnmatch.c.
110011         (EXT): Use an internal constant instead.
110013         Merge fnmatch patches from glibc.
110014         * lib/fnmatch.c (mbsinit): Remove define.
110015         Add libc_hidden_ver (__fnmatch, fnmatch).
110016         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
110017         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
110019 2004-01-14  Karl Berry  <karl@gnu.org>
110021         * config/install-sh: update from automake.
110023 2004-01-13  Karl Berry  <karl@gnu.org>
110025         * config/install-sh: update from automake.
110027 2004-01-09  Karl Berry  <karl@gnu.org>
110029         * config/install-sh: update from automake.
110031 2004-01-05  Karl Berry  <karl@gnu.org>
110033         * config/config.{sub,guess}: update from config.
110035 2003-12-31  Karl Berry  <karl@gnu.org>
110037         * config/depcomp: update from automake.
110039 2003-12-14  Karl Berry  <karl@gnu.org>
110041         * lib/config.charset: update from gettext-runtime.
110043 2003-12-03  Paul Eggert  <eggert@twinsun.com>
110045         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
110046         Bug reported by Alfred M. Szmidt.
110048 2003-12-03  Bruno Haible  <bruno@clisp.org>
110050         * m4/gettext.m4: Upgrade from gettext-0.13.
110051         * m4/po.m4: Upgrade from gettext-0.13.
110052         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
110053         * m4/intmax.m4: New file, from gettext-0.13.
110054         * m4/printf-posix.m4: New file, from gettext-0.13.
110056 2003-11-29  Karl Berry  <karl@gnu.org>
110058         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
110060 2003-11-25  Paul Eggert  <eggert@twinsun.com>
110061             Bruno Haible  <bruno@clisp.org>
110063         * lib/printf-parse.h: Don't include sys/types.h.
110064         (ARG_NONE): New macro.
110065         (char_directive): Change type of *arg_index fields to size_t.
110066         * lib/printf-parse.c: Don't include sys/types.h.
110067         (SSIZE_MAX): Remove macro.
110068         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
110069         Remove unnecessary overflow check.
110070         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
110071         fields.
110073 2003-11-25  Bruno Haible  <bruno@clisp.org>
110075         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
110077 2003-11-25  Bruno Haible  <bruno@clisp.org>
110079         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
110080         gt_TYPE_SSIZE_T.
110082 2003-11-24  Paul Eggert  <eggert@twinsun.com>
110084         * modules/alloca: Remove dependency on xalloc.
110086 2003-11-24  Paul Eggert  <eggert@twinsun.com>
110088         * lib/alloca.c: Remove dependency on xalloc module.
110089         (xalloc_die): Remove.
110090         (memory_full) [!defined emacs]: New macro.
110091         [!defined emacs]: Don't include xalloc.h.
110092         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
110093         address arithmetic overflows.  Change datatypes a bit to avoid
110094         unnecessary casts.
110096 2003-11-22  Jim Meyering  <jim@meyering.net>
110098         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
110099         s/size/size_t/.
110101 2003-11-21  Karl Berry  <karl@gnu.org>
110103         * config/config.{sub,guess}: update from config.
110105 2003-11-18  Karl Berry  <karl@gnu.org>
110107         * config/config.{sub,guess}: update from config.
110109         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
110111 2003-11-17  Paul Eggert  <eggert@twinsun.com>
110113         * README: Mention that S+T cannot overflow if S is the size of
110114         an existing object and T is sufficiently small.
110116 2003-11-17  Jim Meyering  <jim@meyering.net>
110118         On systems without utime and without a utimes function capable of
110119         dealing with a NULL struct utimbuf* argument, this utime replacement
110120         could -- in unusual circumstances -- leak a file descriptor.
110121         * lib/utime.c: Include <unistd.h> and <errno.h>.
110122         (utime_null): Be sure to close `fd' and to preserve errno.
110123         Reported by Geoff Collyer via Arnold Robbins.
110125 2003-11-17  Bruno Haible  <bruno@clisp.org>
110127         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
110128         (Depends-on): Add xsize.
110130 2003-11-17  Bruno Haible  <bruno@clisp.org>
110132         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
110134 2003-11-17  Bruno Haible  <bruno@clisp.org>
110136         * lib/vasnprintf.c (alloca): Remove fallback definition.
110137         (freea): Remove definition.
110138         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
110139         Reported by Paul Eggert.
110141 2003-11-16  Paul Eggert  <eggert@twinsun.com>
110142             Bruno Haible  <bruno@clisp.org>
110144         Protect against address arithmetic overflow.
110145         * lib/printf-args.h: Include stddef.h.
110146         (arguments): Change type of field 'count' to size_t.
110147         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
110148         'unsigned int' where appropriate.
110149         * lib/printf-parse.h: Include sys/types.h.
110150         (char_directive): Change type of *arg_index fields to ssize_t.
110151         (char_directives): Change type of fields 'count', max_*_length to
110152         size_t.
110153         * lib/printf-parse.c: Include sys/types.h and xsize.h.
110154         (SSIZE_MAX): Define fallback value.
110155         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
110156         instead of 'int' where appropriate. Check a_allocated, d_allocated
110157         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
110158         * lib/vasnprintf.c: Include xsize.h.
110159         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
110160         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
110161         overflow. Avoid wraparound when converting a width or precision from
110162         decimal to binary.
110164 2003-11-16  Bruno Haible  <bruno@clisp.org>
110166         Update from GNU gettext.
110167         * lib/printf-parse.c: Generalize to it can be compiled for wide
110168         strings.
110169         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
110170         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
110171         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
110172         SNPRINTF): New macros.
110173         Don't include <alloca.h> if the file is used inside libintl.
110174         (local_wcslen): New function, for Solaris 2.5.1.
110175         (VASNPRINTF): Use it instead of wcslen.
110177 2003-11-16  Bruno Haible  <bruno@clisp.org>
110179         * lib/xsize.h (xmax): New function.
110180         (xsum, xsum3, xsum4): Declare as "pure" functions.
110182 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110184         * modules/xalloc (Files): Undo latest change, since xalloc.h
110185         no longer needs SIZE_MAX or PTRDIFF_MAX.
110187 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110189         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
110190         gl_PTRDIFF_MAX.
110192 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110194         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
110195         "return", to pacify some unknown compiler.  Problem reported
110196         by Joerg Schilling.
110198 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110200         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
110201         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
110202         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
110203         heuristic is just as accurate as far as we know, and it removes a
110204         dependency on size_max.m4 and ptrdiff_max.m4.
110206 2003-11-11  Bruno Haible  <bruno@clisp.org>
110208         * modules/xsize (Files): Add m4/size_max.m4.
110209         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
110211 2003-11-11  Bruno Haible  <bruno@clisp.org>
110213         * m4/size_max.m4: New file.
110214         * m4/ptrdiff_max.m4: New file.
110215         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
110216         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
110217         (gl_XALLOC): Invoke it.
110219 2003-11-11  Bruno Haible  <bruno@clisp.org>
110221         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
110222         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
110223         defined.
110225 2003-11-10  Paul Eggert  <eggert@twinsun.com>
110227         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
110228         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
110229         rejected some allocations of exactly SIZE_MAX - 2 bytes.
110230         From Bruno Haible.
110231         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
110232         not (size_t) -1, since it's defined here.
110234 2003-11-09  Karl Berry  <karl@gnu.org>
110236         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
110238 2003-11-06  Paul Eggert  <eggert@twinsun.com>
110240         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
110241         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
110242         Reject sizes of exactly SIZE_MAX bytes.
110243         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
110244         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
110246 2003-11-05  Bruno Haible  <bruno@clisp.org>
110248         * lib/xsize.h: Include limits.h, to avoid a possible collision with
110249         SIZE_MAX defined in <limits.h> on Solaris.
110251 2003-11-04  Jim Meyering  <jim@meyering.net>
110253         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
110254         variable names, rather than @VAR@.
110255         * modules/poll: Likewise.
110257 2003-11-04  Bruno Haible  <bruno@clisp.org>
110259         * modules/xsize: New file.
110260         * modules/linebreak: Depend on xsize.
110261         * MODULES.html.sh (func_all_modules): Add xsize.
110263 2003-11-04  Bruno Haible  <bruno@clisp.org>
110265         * m4/xsize.m4: New file.
110267 2003-11-04  Bruno Haible  <bruno@clisp.org>
110269         * lib/xsize.h: New file.
110270         * lib/linebreak.c: Include xsize.h.
110271         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
110272         argument for overflow.
110273         Suggested by Paul Eggert.
110275 2003-11-03  Karl Berry  <karl@gnu.org>
110277         * config/config.{guess,sub}: update from config.
110279 2003-11-03  Jim Meyering  <jim@meyering.net>
110281         * modules/userspec (lib_SOURCES): Add userspec.h.
110282         (Include): Add "userspec.h".
110283         Improve description.
110285 2003-11-03  Jim Meyering  <jim@meyering.net>
110287         * lib/userspec.c: Include "userspec.h".
110288         * lib/userspec.h: New file.
110290 2003-11-03  Bruno Haible  <bruno@clisp.org>
110292         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
110294 2003-11-03  Bruno Haible  <bruno@clisp.org>
110296         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
110297         available, to avoid (extremely rare) race condition.
110298         Suggested by Paul Eggert.
110300 2003-11-02  Karl Berry  <karl@gnu.org>
110302         * config/srclist.txt (vasprintf.c): sync broken, sigh.
110304 2003-10-31  Paul Eggert  <eggert@twinsun.com>
110306         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
110307         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
110308         (read_filesystem_list): Set and use me_type_malloced.
110309         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
110310         whatever the type happens to be), for brevity and consistency.
110311         Check for size calculation overflow on Alphas running OSF/1.
110313 2003-10-31  Jim Meyering  <jim@meyering.net>
110315         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
110317         * lib/linebuffer.c: Include <string.h> for declaration of memset.
110319 2003-10-30  Paul Eggert  <eggert@twinsun.com>
110320             Bruno Haible  <bruno@clisp.org>
110322         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
110323         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
110325 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110327         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
110328         netbsd*-gnu*.  Suggested by Robert Millan.
110330 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110332         * modules/group-member: Depend on stdbool.
110334 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110336         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110338 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110340         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110341         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110342         after the 'gnu' in these cases.  This fixes some bugs in the
110343         previous change, and is based on suggestions by Robert Millan.
110345 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110347         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110348         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110349         no longer needed.
110350         * lib/quotearg.c (quotearg_n_options): Use it.
110351         * lib/group-member.c: Include <stdbool.h>.
110352         (free_group_info): Arg is now const *; don't free arg.
110353         (get_group_info): Now returns bool and accepts struct group_info *,
110354         rather than returning a malloc'ed struct group_info *.
110355         All uses changed.  Check for overflow in internal size calculation.
110357         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110358         rather than xmalloc/xrealloc.
110359         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110360         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110361         conformance bug: the old code used a pointer after freeing the
110362         storage that it addressed.
110363         * lib/hash.c (hash_initialize): Simplify the code by using
110364         xalloc_oversized rather than doing it by hand.
110365         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110366         the buffer preserved.  Use free and xmalloc instead.
110367         * lib/quotearg.c (quotearg_n_options): Likewise.
110368         Use a simpler test for size overflow.  Don't use xalloc_oversized
110369         because unsigned int might be wider than size_t (!); this suggests
110370         that we should switch from unsigned int to size_t for slot numbers.
110372 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110374         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110375         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110376         NetBSD kernels.  Requested by Richard Stallman.
110378 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110380         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110381         to allocate the returned structure.  Do not allocate a subarray,
110382         as x2nrealloc will do that.
110383         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110384         instead of xnrealloc.
110385         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110387 2003-10-27  Bruno Haible  <bruno@clisp.org>
110389         * lib/stdbool_.h: Better support for BeOS.
110391 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110393         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110394         now uses inline.
110396 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110398         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110399         callers that want to do their own size-overflow checking.  Include
110400         <stdbool.h>, since xalloc_oversized returns bool.
110401         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110402         to use xalloc_oversized.
110404         Add two functions x2realloc, x2nrealloc, for programs that grow
110405         arrays dynamically by doubling their sizes.
110406         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110407         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110408         New functions.
110410         Port to C99 semantics for 'inline' of external functions.
110411         Bug reported by Bruno Haible.
110412         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110413         with the old contents of xnmalloc.
110414         (xnmalloc, xmalloc): Use it.
110415         (xnrealloc_inline): New static inline function,
110416         with the old contents of xnrealloc.
110417         (xnrealloc, xrealloc): Use it.
110419         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110420         that.
110422 2003-10-26  Karl Berry  <karl@gnu.org>
110424         * config/srclist.txt (COPYING.DOC): no longer available from
110425         /gd/gnuorg; don't know where the ultimate source is.
110427 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110429         Fix several address-calculation bugs in the hash modules,
110430         plus some minor code cleanup.
110432         * lib/hash.h: Include <stdbool.h>, for bool.
110433         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110434         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110435         hash_get_n_entries, hash_get_max_bucket_length,
110436         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110437         hash_rehash): Use size_t rather than unsigned.
110438         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110439         hash_get_n_buckets_used, hash_get_n_entries,
110440         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110441         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110442         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110443         Likewise.
110444         (SIZE_MAX): Define if not defined.
110445         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110446         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110447         hash_print):
110448         Use const * when possible.
110449         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110450         (check_tuning): Fix bug: if tuning parameters were very close to
110451         0 or 1, rounding errors could have caused subscript violations.
110452         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110453         (hash_initialize): Add 'fail:' label
110454         to free table and return NULL, and use it to simplify code.
110455         Use calloc rather than clearing the storage ourself.
110456         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110457         buffer size calculations.
110458         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110459         Include <stddef.h>, for size_t.
110460         * lib/hash-pjw.c (hash_pjw): Likewise.
110461         Switch to method described by Bruno Haible.
110462         Include <limits.h>, for CHAR_BIT.
110463         (SIZE_BITS): New macro.
110465 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110467         * m4/getline.m4 (AM_FUNC_GETLINE):
110468         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110469         hosts.  Problem reported by Derek Robert Price in
110470         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110471         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110472         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110474 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110476         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110477         ceiling the allocation at NMAX bytes rather than silently
110478         discarding input bytes before NMAX is reached.  This makes
110479         a difference only if NMAX exceeds SIZE_MAX / 2.
110481         * lib/obstack.c: Merge from glibc.
110482         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110483         Add libc_hidden_def (_obstack_newchunk).
110484         (_obstack_free) [! defined _LIBC]: Remove.
110485         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110486         a clone of the function body.
110487         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110488         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110490         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110491         glibc.
110492         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110493         arg to memcpy.
110495         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110496         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110497         Don't use lvalue casts, as GCC plans to remove support for them
110498         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110499         was also present in the non-GCC version, indicating that this
110500         code had always been buggy and had never been widely used.
110501         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110502         Use the fast variant of each macro, rather than copying the
110503         definiens of the fast variant; that way, we'll be more likely to
110504         catch future bugs in the fast variants.
110506 2003-10-20  Bruno Haible  <bruno@clisp.org>
110508         * modules/wait-process: New file.
110509         * MODULES.html.sh (func_all_modules): Add wait-process.
110511 2003-10-20  Bruno Haible  <bruno@clisp.org>
110513         * m4/wait-process.m4: New file.
110515 2003-10-20  Bruno Haible  <bruno@clisp.org>
110517         * lib/wait-process.h: New file, from GNU gettext.
110518         * lib/wait-process.c: New file, from GNU gettext.
110520 2003-10-19  Jim Meyering  <jim@meyering.net>
110522         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110523         HPUX 10.20.
110525 2003-10-18  Karl Berry  <karl@gnu.org>
110527         * config/config.guess: update from config.
110529 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110531         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110532         (getgroups): First arg is int, not size_t.
110533         Don't let 'free' mangle errno.
110535 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110537         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110539 2003-10-16  Karl Berry  <karl@gnu.org>
110541         * config/config.{guess,sub}: update from config.
110543 2003-10-16  Jim Meyering  <jim@meyering.net>
110545         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110546         memcpy.
110548 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110550         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110551         (SIZE_MAX): Remove.
110552         (new_exclude, add_exclude_file): Initial size no longer needs to
110553         be a power of 2.
110554         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110555         our own address arithmetic overflow checking.
110557         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110558         (fnmatch): Do not alloca more than 2000 wide characters;
110559         instead, use malloc for large buffers.
110560         Check for address arithmetic overflow, and return -1
110561         with errno set to ENOMEM in that case.
110562         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110563         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110564         instead, return -1.  Check for address arithmetic overflow.
110566 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110568         Handle invalid suffixes and overflow independently, so that
110569         callers can treat them independently as needed.  Fix some bugs in
110570         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110571         suffix for a human-readable blocksize.  The major caller-visible
110572         change is the addition of a new
110573         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110574         that both overflow and suffix chars were found.
110576         * lib/human.c (humblock): Don't check separately for invalid suffix
110577         char; that is xstrtoumax's job (now that its bug is fixed).
110578         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110579         INTMAX_MAX]: New macros.
110580         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110581         TYPE_MAXIMUM): New macros.
110582         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110583         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110584         if overflow occurs, as it's what __strtol does and it's more useful
110585         in practice.
110586         (__xstrtol): If __strtol reports some error other than ERANGE,
110587         reflect it to the caller as LONGINT_INVALID.  If it reports
110588         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110589         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110590         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110591         value.
110592         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110593         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110594         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110595         [defined UINTMAX_MAX]: New macros.
110597 2003-10-14  Bruno Haible  <bruno@clisp.org>
110599         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110601 2003-10-14  Bruno Haible  <bruno@clisp.org>
110603         * m4/sig_atomic_t: New file, from GNU gettext.
110604         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110606 2003-10-14  Bruno Haible  <bruno@clisp.org>
110608         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110609         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110610         Also use volatile where needed.
110612 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110614         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110615         Change maintainer from Bruno Haible to 'all'.
110617 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110619         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110621 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110623         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110624         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110625         and define in terms of the other primitives.
110626         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110627         (SIZE_MAX): Define if not already defined.
110628         (array_size_overflow): New function.
110629         (xalloc_die): Abort instead of exiting if 'error' returns.
110630         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110631         (xmalloc, xrealloc): Use them.
110632         (xcalloc): Check for address arithmetic overflow.
110633         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110634         a bit faster than strcpy.
110636 2003-10-10  Simon Josefsson  <jas@extundo.com>
110638         * modules/argp (Depends-on): Add restrict and strcase.
110640 2003-10-10  Simon Josefsson  <jas@extundo.com>
110642         * m4/argp.m4: Add AC_C_INLINE.
110644 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110646         Merge getpass from libc, plus a few fixes.
110648         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110649         Include <stdbool.h>.
110650         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110651         __fsetlocking to empty.
110652         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110653         do include <bits/libc-lock.h>.
110654         Do not include <fcntl.h>; not needed.
110655         [_LIBC]: Include <wchar.h>.
110656         (NOTCANCEL_MODE): New macro.
110657         (flockfile, funlockfile) [_LIBC]: New macros.
110658         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110659         [!_LIBC]: New macros.
110660         (call_fclose): New function.
110661         (getpass): Use it.  Save tty stream separately; this simplifies the
110662         code and makes it more reliable if stdin happens to equal stdout.
110663         Invoke __fsetlocking on tty.
110664         Handle thread cancellation if needed.
110665         Namespace cleanup (use __tcgetattr, __getline).
110666         Use bool for Booleans.
110667         [USE_IN_LIBIO]: Handle wide streams.
110668         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110669         stream might go where.
110671         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110672         doesn't have to include <stdio.h> before us.
110673         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110674         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110675         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110676         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110677         if not declared, so that we can use getpass.c code from libc without
110678         rewriting it.
110679         (flockfile, ftrylockfile, funlockfile): New macros.
110681 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110683         * modules/getpass: Depend on stdbool.
110685 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110687         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110689 2003-10-07  Karl Berry  <karl@gnu.org>
110691         * config/config.{guess,sub}: update from config.
110693 2003-10-06  Jim Meyering  <jim@meyering.net>
110694             Bruno Haible  <bruno@clisp.org>
110696         This lets translators provide better translations for the
110697         "Written by ..." part of --version output.
110698         * lib/version-etc.h: Include stdarg.h.
110699         (version_etc_copyright): Declare as readonly.
110700         (version_etc): Make this function variadic with a NULL-terminated list
110701         of author name strings.
110702         (version_etc_va): New declaration.
110703         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110704         (version_etc_copyright): Declare as readonly.
110705         (version_etc_va): New function. Provide a different translatable string
110706         for each possible number of authors < 10. Abbreviate when there are 10
110707         authors or more.
110708         (version_etc): Make this function variadic. Call version_etc_va.
110709         Suggestion from Gary V. Vaughan.
110711         * lib/long-options.h (parse_long_options): Change prototype: the
110712         authors string is moved to the end and becomes variadic.
110713         * lib/long-options.c: Include stdarg.h.
110714         (parse_long_options): Make this function variadic, too.
110715         Call version_etc_va, not version_etc.
110717 2003-10-06  Bruno Haible  <bruno@clisp.org>
110719         * modules/version-etc-2: Remove file.
110720         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110722 2003-10-06  Bruno Haible  <bruno@clisp.org>
110724         * modules/fatal-signal: New file.
110725         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110727 2003-10-06  Bruno Haible  <bruno@clisp.org>
110729         * m4/fatal-signal.m4: New file.
110730         * m4/signalblocking.m4: New file, from GNU gettext.
110732 2003-10-06  Bruno Haible  <bruno@clisp.org>
110734         * lib/version-etc-2.h: Remove file.
110735         * lib/version-etc-2.c: Remove file.
110737 2003-10-06  Bruno Haible  <bruno@clisp.org>
110739         * lib/fatal-signal.h: New file, from GNU gettext.
110740         * lib/fatal-signal.c: New file, from GNU gettext.
110742 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110744         * README: Rework advice for preventing empty .o files.
110745         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110746         not <sys/types.h>.
110748 2003-10-04  Karl Berry  <karl@gnu.org>
110750         * lib/argp*: update from libc.
110752 2003-10-04  Karl Berry  <karl@gnu.org>
110754         * config/config.{guess,sub}: update from config.
110756 2003-10-02  Bruno Haible  <bruno@clisp.org>
110758         * modules/lchown (Include): Add lchown.h.
110759         * modules/time_r (Include): Use "..." syntax.
110760         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110762 2003-10-01  Simon Josefsson  <jas@extundo.com>
110764         * MODULES.html.sh (func_all_modules): Move gethostname from section
110765         'based on' to section 'lacking' POSIX:2001.
110767 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110769         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110770         to output mode on the same stream.
110772 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110774         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110775         Fix arg typo in previous patch.
110777 2003-09-28  Jim Meyering  <jim@meyering.net>
110779         * lib/error.c: Correct cpp indentation.
110781 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110783         * modules/free: New file.
110785 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110787         * m4/free.m4: New file.
110789 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110791         * lib/minmax.h (MIN, MAX)
110792         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110793         Omit the special code that used __typeof__, since we worry that
110794         it could be more trouble than it's worth.  See:
110795         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110796         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110798         * lib/free.c: New file.
110800 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110802         Trivial fixes to Makefile.am parts of module listings.
110803         * modules/strstr: Append strstr.h to lib_SOURCES.
110804         * modules/strcase: Likewise, for strcase.h.
110806 2003-09-27  Karl Berry  <karl@gnu.org>
110808         * config/mkinstalldirs: update from automake.
110810 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110812         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110813         (error_tail): Do not loop, reallocating temporary buffer, since
110814         the output cannot contain more wide characters than the input
110815         contains bytes, the size must be big enough already.  This avoids
110816         one potential size overflow calculation.  Check for size overflow
110817         when calculating temporary buffer size.  Free temporary buffer
110818         when done, if it was allocated with malloc; this plugs a memory
110819         leak.  Remove casts from void * to pointers, that are no longer
110820         needed now that we're assuming C89 or better.
110822         Merge error changes from glibc.
110824         * lib/error.c, error.h: Update copyright notice header to match glibc.
110825         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110826         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110827         Disable cancellation while printing error.
110828         * lib/error.h: Prepend __ to parameter names.
110830 2003-09-26  Jim Meyering  <jim@meyering.net>
110832         * lib/error.c (error_tail): Move some declarations
110833         into inner scope where the local variables are used.
110835 2003-09-26  Bruno Haible  <bruno@clisp.org>
110837         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110838         stpncpy().
110839         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110841 2003-09-26  Bruno Haible  <bruno@clisp.org>
110843         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110844         (stpncpy): Define as alias for gnu_stpncpy.
110845         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110847 2003-09-25  Simon Josefsson  <jas@extundo.com>
110849         * lib/xgetdomainname.h: New file.
110850         * lib/xgetdomainname.c: New file.
110852 2003-09-25  Simon Josefsson  <jas@extundo.com>
110853             Bruno Haible  <bruno@clisp.org>
110855         * modules/getdomainname: New file.
110856         * modules/xgetdomainname: New file.
110857         * MODULES.html.sh (func_all_modules): Add getdomainname,
110858         xgetdomainname.
110860 2003-09-25  Simon Josefsson  <jas@extundo.com>
110861             Bruno Haible  <bruno@clisp.org>
110863         * m4/getdomainname.m4: New file.
110865 2003-09-25  Simon Josefsson  <jas@extundo.com>
110866             Bruno Haible  <bruno@clisp.org>
110868         * lib/getdomainname.h: New file.
110869         * lib/getdomainname.c: New file.
110871 2003-09-25  Karl Berry  <karl@gnu.org>
110873         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110875 2003-09-25  Karl Berry  <karl@gnu.org>
110877         * config/install-sh: update from automake.
110879 2003-09-25  Bruno Haible  <bruno@clisp.org>
110881         * modules/version-etc-2: New file, from modules/version-etc with
110882         modifications.
110883         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110885 2003-09-25  Bruno Haible  <bruno@clisp.org>
110887         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110888         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110890 2003-09-24  Simon Josefsson  <jas@extundo.com>
110892         * modules/xgethostname: Add xgethostname.h.
110894 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110896         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110897         the buffer associated with the argument.  Bug reported by
110898         Simon Josefsson.
110900 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110902         * README: Document assumptions that 'int' is at least 32 bits
110903         wide, that integer arithmetic is 2's complement without overflow,
110904         that there are no holes in integer values, that adding sizes of
110905         two nonoverlapping objects can't overflow, and that all-bits-zero
110906         yields scalar zero.  Fix spelling and capitalization typos.
110908 2003-09-19  Karl Berry  <karl@gnu.org>
110910         * lib/argp.h: update from libc.
110912 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110915         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110916         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110918 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110920         * gnulib-tool: Use "test -h", not "test -L", for portability
110921         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110922         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110923         (sed_extract_prog): Issue s commands one-by-one, rather than
110924         using \| in one s command.
110926 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110928         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110929         input error, instead of returning NULL the next time we are called
110930         (and therefore losing track of errno).
110932 2003-09-16  Bruno Haible  <bruno@clisp.org>
110934         * gnulib-tool (func_create_testdir): Warn about duplicated
110935         dependencies.
110937 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110939         * modules/argmatch, modules/fatal, modules/obstack,
110940         modules/xalloc, modules/xgethostname: Sort dependencies by
110941         importance, not alphabetically.
110943 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110945         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110946         fails, so that the caller gets the proper errno.
110948         * lib/readutmp.c (read_utmp): Likewise.
110949         Check for fstat error.  Close stream and free storage
110950         when failing.
110952 2003-09-14  Karl Berry  <karl@gnu.org>
110954         * config/srclist.txt (strdup.c): disable for c89 changes.
110956 2003-09-14  Jim Meyering  <jim@meyering.net>
110958         * lib/getloadavg.c: Correct cpp indentation.
110959         * lib/strdup.c: Likewise.
110960         * lib/vasnprintf.c: Likewise.
110962 2003-09-14  Bruno Haible  <bruno@clisp.org>
110964         * modules/fwriteerror: New file.
110965         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110967 2003-09-14  Bruno Haible  <bruno@clisp.org>
110969         * lib/fwriteerror.h: New file.
110970         * lib/fwriteerror.c: New file.
110972 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110974         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110975         modules/xgethostname, modules/xalloc: Depend on exit.
110977 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110979         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110981         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110982         and AC_MINIX, too, so that their extensions are available.
110984         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110985         This macro has been superseded by gl_BACKUPFILE.
110987         More patches to assume C89 or better.
110989         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110991         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110992         unconditionally.
110993         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110994         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110995         Include <string.h>, <stdlib.h> unconditionally.
110996         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110997         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110998         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110999         headers or for string.h.
111000         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
111001         or strtoul.
111003         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
111004         headers.
111005         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
111006         * m4/userspec.m4 (gl_USERSPEC): Likewise.
111007         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
111008         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
111009         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111010         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
111011         memcpy, memset.
111012         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
111013         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
111014         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
111015         strtol.
111016         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
111017         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
111018         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
111019         strtoul.
111021 2003-09-12  Paul Eggert  <eggert@twinsun.com>
111023         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
111024         * lib/obstack.c [!defined _LIBC]: Likewise.
111025         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
111026         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
111027         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
111029         More changes to assume C89 or better.
111031         * lib/error.c (error_tail): Assume vprintf.
111033         * lib/argmatch.c (getenv): Remove decl.
111034         * lib/progreloc.c (get_full_program_name): Define via prototype.
111035         * lib/setenv.c (clearenv): Likewise.
111036         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
111037         needed.
111038         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
111039         (malloc, memcpy): Remove decls.
111040         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
111041         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
111042         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
111043         (memcpy): Remove macro.
111044         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
111045         (__P): Remove.  All uses removed.
111046         (PTR): Remove.  All uses changed to void *.
111047         (CHAR_BIT, NULL): Remove.
111048         (spaces, zeros, memset_space, memset_zero)
111049         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
111050         Remove.
111051         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
111052         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
111053         Define with prototype.
111054         Remove now-unnecessary prototype decl.
111055         (extra_args_spec): Assume ANSI C.  All uses changed.
111056         (extra_args_spec_iso): Remove.
111057         (my_strftime, emacs_strftimeu): Define via prototype.
111058         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
111059         unconditionally.
111060         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
111061         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
111062         (strtoul, strtol): Remove decls.
111063         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
111064         LONG_MAX): Remove.
111065         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
111066         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
111067         (LOCALE_PARAM_PROTO): New macro.
111068         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
111069         (INTERNAL (strtol), strtol): Define with a prototype.
111070         (PARAMS): Remove.  All uses removed.
111071         * lib/tempname.c: Include <string.h> unconditionally.
111072         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
111073         * lib/xgethostname.c (main): Define with a prototype.
111074         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
111075         Include <stdlib.h> unconditionally.
111076         (calloc, malloc, realloc, free): Remove decls.
111077         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
111078         Include <stdlib.h> unconditionally.  Sort include file names.
111079         (strtod): Remove.
111080         (xstrtod): Define with a prototype.
111081         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
111082         (strtol, strtoul): Remove decls.
111084 2003-09-11  Paul Eggert  <eggert@twinsun.com>
111086         More patches to assume C89 or better.
111087         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
111088         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
111089         string.h, memchr, STDC_HEADERS.
111091 2003-09-11  Paul Eggert  <eggert@twinsun.com>
111093         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
111094         Include <stdlib.h>, <string.h> unconditionally.
111095         Remove now-unnecessary cast to char *.
111096         * lib/strnlen.c: Include <string.h> unconditionally.
111097         * lib/yesno.c (yesno): Define with a prototype.
111099 2003-09-11  Bruno Haible  <bruno@clisp.org>
111101         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
111103 2003-09-10  Jim Meyering  <jim@meyering.net>
111105         * lib/error.c: Correct indentation of cpp directives.
111107 2003-09-10  Bruno Haible  <bruno@clisp.org>
111109         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
111110         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
111111         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
111112         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
111113         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
111114         <stdlib.h> and <string.h> checks.
111115         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
111116         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
111118 2003-09-10  Bruno Haible  <bruno@clisp.org>
111120         * lib/strcspn.c: Include <string.h> unconditionally.
111121         * lib/strpbrk.c: Include <string.h> unconditionally.
111122         * lib/strstr.c: Include <string.h> unconditionally.
111123         * lib/unicodeio.c: Include <string.h> unconditionally.
111124         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
111125         * lib/unsetenv.c: Likewise.
111126         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
111127         * lib/yesno.c: Include <stdlib.h> unconditionally.
111128         (rpmatch): Add prototype.
111130 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111132         More patches to assume C89 or better.
111133         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
111134         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
111135         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
111136         or for string.h.
111137         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
111138         stdlib.h.
111139         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
111140         C headers.
111141         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
111142         string.h.
111143         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
111144         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
111145         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
111146         or for string.h.
111147         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
111148         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
111149         C headers.
111150         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
111151         memcpy.
111152         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
111153         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
111154         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
111155         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
111156         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
111157         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
111158         string.h, free.
111159         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
111160         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
111161         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
111162         C headers, or for string.h.
111163         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
111164         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
111165         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
111166         headers, memory.h, stdlib.h, string.h, strings.h.
111167         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
111168         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
111169         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
111170         strchr.
111171         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
111172         headers, memory.h, string.h.
111173         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
111174         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
111175         free.
111176         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
111177         headers.
111178         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
111179         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
111180         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
111181         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
111182         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
111184 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111186         More K&R removal.
111188         * lib/acosl.c (main): Use a prototype.
111189         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
111190         tanl.c: Likewise.
111192         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
111194         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
111195         (getopt, etopt_long, getopt_long_only, _getopt_internal)
111196         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
111197         with a prototype.
111198         * lib/getopt.c (const): Remove macro.
111199         Include <string.h> unconditionally.
111200         (my_index): Remove; all uses changed to strchr.
111201         (strlen): Remove decl.
111202         (exchange): Remove forward decl; no longer needed.
111203         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
111204         Define with prototype.
111205         * lib/getopt1.c (const): Remove macro.
111206         (getopt_long, getopt_long_only, main): Define with prototype.
111208         * lib/getugroups.c: Include <string.h> unconditionally.
111210         * lib/getusershell.c: Include <stdlib.h> unconditionally.
111211         (getusershell, setusershell, endusershell, readname, main):
111212         Define with prototypes.
111214         * lib/group-member.c: Include group-member.h first.
111215         Include <stdlib.h> unconditionally.
111217         * lib/hard-locale.c: Include hard-locale.h first.
111218         Include <stdlib.h>, <string.h> unconditionally.
111220         * lib/hash.c (free, malloc): Remove decls.
111221         Include <stdlib.h> unconditionally.
111223         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
111224         (getenv): Do not declare.
111226         * lib/idcache.c: Include <string.h> unconditionally.
111228         * lib/long-options.c: Include long-options.h first, to test interface.
111229         Include <stdlib.h> unconditionally.
111231         * lib/makepath.c: Include makepath.h first, to test interface.
111232         Include <stdlib.h> and <string.h> unconditionally.
111234         * lib/linebuffer.c: Include <stdlib.h>.
111235         (free): Remove decl.
111237         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
111238         stddef.h. rpl_malloc returns void *, not char *.
111239         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
111240         prototype.
111242         * lib/md5.h: Include <limits.h> unconditionally.
111243         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
111244         (__P): Remove; all uses removed.
111245         * lib/md5.c: Include "md5.h" first.
111246         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
111247         md5_buffer, md5_process_bytes, md5_process_block):
111248         Define with prototypes.
111249         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
111250         * lib/sha.c: Include "sha.h" first.
111251         Include <stdlib.h>, <string.h> unconditionally.
111253         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
111254         * lib/memcmp.c (__ptr_t): Likewise.
111255         * lib/memrchr.c (__ptr_t): Likewise.
111256         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
111257         Include <string.h> unconditionally.
111258         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
111259         * lib/memchr.c: Include <stdlib.h> unconditionally.
111260         * lib/memchr.c (LONG_MAX): Remove.
111261         * lib/memrchr.c (LONG_MAX): Likewise.
111262         * lib/memchr.c (__memchr): Define via a prototype.
111263         * lib/memrchr.c (__memrchr): Likewise.
111264         * lib/memcmp.c (__P): Remove, and remove all uses.
111265         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
111266         Remove forward decls; no longer needed.
111267         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
111268         Use types required by C89 in prototype.
111270         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
111271         * lib/savedir.c: Likewise.
111272         * lib/mkdir.c (free): Remove decl.
111273         * lib/rmdir.c (rmdir): Define with a prototype.
111274         * lib/savedir.c: Include savedir.h first, to test interface.
111276         * lib/mktime.c (STDC_HEADERS): Remove.
111277         Include <stdlib.h>, <string.h> unconditionally.
111279         * lib/modechange.c: Include <stdlib.h> unconditionally.
111280         (malloc): Remove decl.
111282         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
111283         (free): Remove decl.
111285         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
111286         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
111287         (This type really should be intptr_t, but that's a C99ism.)
111288         (_obstack_memcpy): Remove: all uses changed to memcpy.
111289         Include <string.h> unconditionally.
111290         (struct obstack): Assume __STDC__ for types of members
111291         chunkfun, freefun, extra_arg.
111292         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
111293         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
111294         obstack_begin, obstack_specify_allocation,
111295         obstack_specify_allocation_with_arg, obstack_chunkfun,
111296         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
111297         Remove unprototyped decls and the macros that use them.
111298         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
111299         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
111300         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
111301         (defined __STDC__ && __STDC__)]:
111302         Remove nonprototyped code.
111303         Include <stdlib.h> unconditionally.
111304         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
111305         _obstack_allocated_p, _obstack_free, obstack_free,
111306         _obstack_memory_used, print_and_abort):
111307         Define using prototypes.
111308         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
111309         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
111310         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
111311         obstack_next_free, obstack_object_size, obstack_room) [0]:
111312         Remove unused, unprototyped code.
111314         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
111316         * lib/physmem.c (physmem_total, physmem_available, main): Define
111317         with prototypes.
111319         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
111320         (main): Define with a prototype.
111322         * lib/posixver.c (getenv): Remove decl.
111324         * lib/putenv.c (malloc): Returns void *, not char *.
111325         Include <string.h> unconditionally.
111326         (strchr, memcpy, NULL): Do not define.
111328         * lib/readtokens.c: Include readtokens.h first, to test interface.
111329         Include <stdlib.h>, <string.h> unconditionally.
111330         (init_tokenbuffer): Define with a prototype.
111332         * lib/regex.c (PARAMS): Remove.  All uses removed.
111333         All uses of _RE_ARGS removed, too.
111334         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111335         unconditionally.
111336         (bzero): Assume memset exists.
111337         (memcmp, memcpy, NULL): Remove.
111338         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111339         char, or assignments to local vars of type signed char.
111340         (init_syntax_once, PREFIX(extract_number_and_incr),
111341         PREFIX(print_partial_compiled_pattern),
111342         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111343         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111344         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111345         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111346         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111347         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111348         wcs_compile_range, byte_compile_range, truncate_wchar,
111349         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111350         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111351         count_mbs_length, wcs_re_match_2_internal,
111352         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111353         PREFIX(alt_match_null_string_p),
111354         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111355         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111356         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111357         now-unnecessary declaration, if any.
111358         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111359         regcomp, regexec):
111360         Remove now-unnecessary casts among pointer types.
111361         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111363         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111364         (free): Remove decl.
111366         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111368         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111369         (free): Remove decl.
111371         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111372         * lib/xgetcwd.c: Likewise.
111374         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111375         (free): Remove decl.
111377         * lib/strchrnul.c (strchrnul): Define with a prototype.
111378         Fix bug: c_in was not converted to char before searching.
111380         The following changes are not K&R related:
111382         * lib/group-member.h: Include <sys/types.h>, so that this file is
111383         self-contained.
111384         * lib/makepath.h: Likewise.
111386         * lib/getusershell.c (readname, default_index, line_size, readname):
111387         Use size_t, not int, for sizes.
111388         (readname): If the size overflows, report an error instead of
111389         looping forever.
111391 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111393         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111394         libc.
111396 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111398         * README: New section: portability guidelines.
111400 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111402         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111403         C89 spec.
111405 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111407         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111409 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111411         Assume C89 or better; remove K&R cruft.
111412         A few of these changes were first proposed by Derek Robert Price
111413         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111415         * lib/addext.c: Include <string.h> unconditionally.
111416         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111417         Don't declare getenv or malloc.
111419         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111420         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111421         (NULL): Remove.
111422         (find_stack_direction, alloca): Use prototypes.
111424         * lib/atexit.c (atexit): Define using a prototype.
111426         * lib/basename.c, dirname.c, stripslash.c:
111427         Include <string.h> unconditionally.
111429         * lib/bcopy.c: Include <stddef.h>.
111430         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111432         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111434         * lib/error.h (error, error_at_line, error_print_progname)
111435         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111436         * lib/error.c: Include error.h first, to check interface.
111437         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111438         (VA_START): Remove; all uses changeed to va_start.
111439         (exit, strerror): Remove decls.
111440         (error_print_progname): Prototype uncondionally.
111441         Don't include <errno.h>; no longer needed.
111442         (private_strerror): Remove.
111443         (error_tail): Always define.
111444         (error, error_at_line): Assume C89 or better; always use prototypes.
111445         * lib/fatal.c: Include "fatal.h" first, to test interface.
111446         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111447         (VA_START): Remove; all uses changed to va_start.
111448         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111449         this case.
111450         (exit): Remove decl.
111451         (fatal): Prototype unconditionally.  Assume va_start works.
111452         Abort at end, to pacify gcc.
111454         * lib/euidaccess.c (main): Define with a prototype.
111456         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111458         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111460         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111461         prototypes.
111462         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111463         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111464         (getenv): Remove decl.
111465         (fnmatch): Define using a prototype.
111466         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111467         (FCT): Define using a prototype.
111469         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111471         * lib/gethostname.c: Include <stddef.h>.
111472         (gethostname): Define with prototype.  Length is size_t, not int.
111474 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111476         Assume C89 or better; remove K&R cruft.
111477         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111478         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111479         string.h, getenv, malloc.
111480         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111481         headers.
111482         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111483         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111484         do not check for strerror.
111485         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111486         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111487         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111488         do not check for doprnt or vprintf.
111489         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111490         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111492 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111494         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111495         getversion.c should have been removed then, but was accidentally
111496         preserved.
111498         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111499         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111501 2003-09-08  Karl Berry  <karl@gnu.org>
111503         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111504                 config, forget about prep.
111506         * config/depcomp, missing: update from automake.
111508 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111510         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111511         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111513 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111515         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111516         copy_tm_result.  Bug reported by Simon Josefsson in
111517         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111519 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111521         * m4/time_r.m4: New file.
111522         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111523         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111524         is. Check for timegm declaration.
111525         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111526         Do not check for gmtime_r.
111527         Replace mktime if __mktime_internal does not exist and if mktime
111528         hasn't been replaced already.
111530 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111532         * lib/time_r.c, lib/time_r.h: New files.
111534         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111535         __localtime_r.
111536         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111537         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111539         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111540         __gmtime_r.
111541         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111542         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111543         Include <time_r.h>.
111545         * lib/timegm.c: Switch to glibc implementation, with the following
111546         changes:
111547         [defined HAVE_CONFIG_H]: Include <config.h>.
111548         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111549         (__mktime_internal) [!defined _LIBC]: New decl.
111550         (__gmtime_r) [!defined _LIBC]: New macro and function.
111551         (timegm): Use a prototype, since gnulib assumes C89.
111552         Do not bother declaring tmp to be const, as it's not really usefu.
111553         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111554         (timegm): Declare only if HAVE_DECL_TIMEGM.
111556 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111558         * MODULES.html.sh (func_all_modules): Add time_r.
111559         * modules/time_r: New file.
111560         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111561         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111563 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111565         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111566         Bug reported by Lute Kamstra in
111567         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111569         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111570         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111571         course with correspondingly smaller numbers for tomorrow and
111572         yesterday.  From Tadayoshi Funaba.  Originally installed into
111573         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111574         coreutils merge?).
111576 2003-08-31  Simon Josefsson  <jas@extundo.com>
111578         * modules/timegm: New file.
111579         * MODULES.html.sh (func_all_modules): Add timegm.
111581 2003-08-31  Simon Josefsson  <jas@extundo.com>
111583         * m4/timegm.m4: New file.
111585 2003-08-31  Simon Josefsson  <jas@extundo.com>
111587         * lib/timegm.h: New file.
111588         * lib/timegm.c: New file.  Based on
111589         wget-1.8.2/src/http.c:mktime_from_utc.
111591 2003-08-31  Karl Berry  <karl@gnu.org>
111593         * lib/argp.h: update from libc.
111595 2003-08-28  Bruno Haible  <bruno@clisp.org>
111597         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111598         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111599         followed by '#define fnmatch fnmatch_posix' gives an error.
111601 2003-08-28  Bruno Haible  <bruno@clisp.org>
111603         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111604         warning on QNX, which defines O_BINARY to 000000.
111606 2003-08-27  Jim Meyering  <jim@meyering.net>
111608         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111609         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111610         would fail after 32.  Reported by Danny Levinson.  Details here:
111611         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111613 2003-08-24  Bruno Haible  <bruno@clisp.org>
111615         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111616         MSVC7 <stdio.h> is included later.
111618 2003-08-22  Simon Josefsson  <jas@extundo.com>
111620         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111622 2003-08-20  Karl Berry  <karl@gnu.org>
111624         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111626 2003-08-20  Bruno Haible  <bruno@clisp.org>
111628         * modules/progname: New file.
111629         * MODULES.html.sh (func_all_modules): Add progname.
111631 2003-08-20  Bruno Haible  <bruno@clisp.org>
111633         * lib/progname.h: New file, from GNU gettext.
111634         * lib/progname.c: New file, from GNU gettext.
111635         * lib/progreloc.c: New file, from GNU gettext.
111637 2003-08-19  Jim Meyering  <jim@meyering.net>
111639         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111640         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111642 2003-08-19  Bruno Haible  <bruno@clisp.org>
111644         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111645         more.
111647 2003-08-19  Bruno Haible  <bruno@clisp.org>
111649         * lib/xstrdup.c: Assume <string.h> exists.
111651 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111653         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111654         in makefile rules.
111656 2003-08-18  Jim Meyering  <jim@meyering.net>
111658         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111659         * m4/lib-ld.m4: Likewise.
111661 2003-08-18  Jim Meyering  <jim@meyering.net>
111663         * lib/setenv.h: Indent nested cpp directive.
111664         * lib/vasnprintf.c: Remove trailing blanks.
111666 2003-08-17  Simon Josefsson  <jas@extundo.com>
111668         * modules/xstrndup: New file.
111669         * MODULES.html.sh (func_all_modules): Add xstrndup.
111671 2003-08-17  Simon Josefsson  <jas@extundo.com>
111673         * modules/argp: Fix autoconf macro name. Add more dependencies.
111675 2003-08-17  Simon Josefsson  <jas@extundo.com>
111677         * m4/xstrndup.m4: New file.
111679 2003-08-17  Simon Josefsson  <jas@extundo.com>
111681         * m4/argp.m4: New file.
111683 2003-08-17  Simon Josefsson  <jas@extundo.com>
111684             Bruno Haible  <bruno@clisp.org>
111686         * lib/xstrndup.h: New file.
111687         * lib/xstrndup.c: New file.
111689 2003-08-17  Bruno Haible  <bruno@clisp.org>
111691         * modules/strndup (Files, Include): Add lib/strndup.h.
111693 2003-08-17  Bruno Haible  <bruno@clisp.org>
111695         * modules/euidaccess (Files): Add lib/euidaccess.h.
111697 2003-08-17  Bruno Haible  <bruno@clisp.org>
111699         * lib/strndup.h: New file.
111701 2003-08-17  Bruno Haible  <bruno@clisp.org>
111703         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111704         like AC_GNU_SOURCE.
111705         * modules/extensions (configure.ac): Comment out the invocation of
111706         gl_USE_SYSTEM_EXTENSIONS.
111708 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111710         Merges from coreutils, etc.
111711         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111712         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111713         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111714         fixing a typo.
111715         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111716         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111718 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111720         Document merge from coreutils.
111721         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111722         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111723         * modules/utime: Add m4/utimes-null.m4.
111725 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111727         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111728         space, undoing this 2003-08-12 change:
111729         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111731 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111733         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111734         strtoul.c from libc, undoing this 2003-08-12 change:
111735         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111737 2003-08-16  Jim Meyering  <jim@meyering.net>
111739         Merges from coreutils.
111740         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111741         prefix.  Adjust cache variables similarly.  Create 500 rather than
111742         just 300 files, to exercise bug on Darwin6.5, too.
111743         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111744         $missing_dir.
111745         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111746         AM_SYS_POSIX_TERMIOS.
111747         Reported by mkc@mathdogs.com.
111748         Also change use of $am_cv_sys_posix_termios
111749         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111750         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111751         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111752         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111753         in /proc/mounts until it finds one with matching device number.  This
111754         is unnecessary when the FILE argument *is* a mount point.  No stat call
111755         is necessary in that case.  So, disable the statvfs-testing code on
111756         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111757         as RedHat bug# 84846.
111758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111759         to 1MB, so as not to render systems with no stack size limit (e.g.,
111760         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111761         Include <unistd.h>.  On some systems,
111762         it is required for the definition of _SC_PAGESIZE.
111764 2003-08-16  Jim Meyering  <jim@meyering.net>
111766         Merge from coreutils.
111767         * lib/xstrtoimax.c: #else #if -> #elif.
111768         * lib/xstrtoumax.c: Likewise.
111770 2003-08-16  Jim Meyering  <jim@meyering.net>
111772         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111773         * m4/utimes.m4: Removed.
111774         * m4/utimes-null.m4: Renamed from utimes.m4.
111776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111777         to 1MB, so as not to render systems with no stack size limit (e.g.,
111778         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111779         Include <unistd.h>.  On some systems,
111780         it is required for the definition of _SC_PAGESIZE.
111782 2003-08-16  Jim Meyering  <jim@meyering.net>
111783         and Paul Eggert  <eggert@cs.ucla.edu>
111785         Merges from coreutils, etc.
111787         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111788         using the latest version from cvs.  This avoids problems with #line
111789         directives using a vendor (Sun) compiler.
111790         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111791         Don't set GETGROUPS_LIB here; now it's
111792         done via getgroups.m4's wrapper function.
111793         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111794         rather than just in sh-util/configure.in, so that the
111795         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111796         same.
111797         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111798         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111799         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111800         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111801         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111802         Remove code that is now done by the newly-required macros.
111803         Append $(EXEEXT) to DF_PROG.
111804         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111805         Do not invoke or require the following here,
111806         since prereq.m4 or some gnulib .m4 now does this for us:
111807         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111808         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111809         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111810         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111811         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111812         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111813         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111814         AC_FUNC_OBSTACK.
111815         Do not replace the following functions, as this is now the job
111816         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111817         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111818         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111819         atexit getpass, strdup, getpagesize.
111820         Replace 'raise'.
111821         Do not check for the following functions, as this is now the job
111822         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111823         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111824         setregid.
111825         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111826         Check for sys/sysctl.h.
111827         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111828         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111829         of checking for ssize_t ourselves.
111831         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111832         Require every macro that gnulib/modules/* suggests for us.
111833         (jm_PREREQ_ADDEXT): New macro.
111834         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111835         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111837         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111838         (gl_PHYSMEM): Use it.
111839         Also check for `table' function.
111840         Check for new headers and functions.
111841         Add check for sys/sysmp.h.
111842         With suggestions from Kaveh Ghazi.
111843         Ignore headers that are present but cannot be compiled.  This
111844         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111845         C 5.4.
111847 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111849         Document merge from coreutils.
111850         * modules/userspec: Depend on posixver.
111851         * modules/strftime: Depend on tzset.
111853 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111855         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111856         rather than tab, after '#' in shell-script copyright notices.
111857         Suggested by Bruno Haible.
111859 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111861         * config/srclist-update: Use three spaces, rather than tab, after '#'
111862         in shell-script copyright notices.  Suggested by Bruno Haible.
111863         Remove unnecessary parenthesization in regular expression.
111865 2003-08-15  Jim Meyering  <jim@meyering.net>
111867         Merge from coreutils.
111868         * lib/xgethostname.c: Include <stdlib.h>.
111869         (xghostname): Don't exit for anything other than memory-related
111870         failure; just return NULL.
111871         * lib/userspec.c: Include "posixver.h".
111872         (parse_user_spec): Accept `.' as a separator only
111873         in pre-POSIX-200112 mode.
111874         * lib/strtoimax.c: Use #elif rather than #else #if.
111875         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111876         Remove function, now that we can rely on a working tzset function.
111877         [!_LIBC]: Ensure that the required autoconf test has been run.
111878         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111879         Use underlying_strftime for %r.
111880         * lib/sha.c: Merge in some clean-up and optimization changes from
111881         glibc.
111882         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111883         Ensure that it is a multiple of 64.
111884         Rearrange loop exit tests so as to avoid performing an
111885         additional fread after encountering an error or EOF.
111886         * lib/realloc.c: Update copyright date.
111888 2003-08-15  Jim Meyering  <jim@meyering.net>
111889         and Paul Eggert  <eggert@twinsun.com>
111891         Merge from coreutils.
111892         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111893         member but strut utmpx does not.  Needed for AIX 4.3.3.
111894         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111896 2003-08-15  Jim Meyering  <jim@meyering.net>
111897         and Paul Eggert  <eggert@cs.ucla.edu>
111899         Merges from coreutils, etc.
111900         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111901         Require gl_FUNC_TZSET_CLOBBER.
111902         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111903         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111904         members.
111906 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111908         Help the merge from coreutils.
111909         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111910         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111911         * m4/tzset.m4: Use it too.
111913 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111915         * modules/tzset: New file.
111917 2003-08-14  Jim Meyering  <jim@meyering.net>
111919         Merges from coreutils.
111920         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111921         variable names, rather than @FNMATCH_H@.
111922         * modules/alloca: Likewise for $(ALLOCA_H).
111924         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111925         the three copies of the literal target, `fnmatch.h'.
111926         * modules/alloca (alloca.h): Likewise.
111928 2003-08-14  Jim Meyering  <jim@meyering.net>
111930         Merge from coreutils.
111931         * m4/tzset.m4: New file.
111932         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111933         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111934         otherwise, AIX 5.1 systems would end up using the latter.
111935         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111936         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111937         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111938         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111940 2003-08-14  Jim Meyering  <jim@meyering.net>
111942         Merge from coreutils.
111943         * lib/obstack.h: Whitespace changes.
111944         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111945         and xcalloc return values.
111946         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111947         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111948         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111949         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111950         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111951         error from mntctl.
111952         Use mntctl's return value to drive the entry-processing loop, since
111953         we can't rely on the value of the vmt_length member in the last
111954         entry.  On some systems doing so could result in exhausting
111955         virtual memory.  Based in part on a patch from Mike Jetzer.
111957 2003-08-14  Jim Meyering  <jim@meyering.net>
111958         and Paul Eggert  <eggert@twinsun.com>
111960         Merges from coreutils, plus other fixes.
111961         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111962         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111963         for credits and details.  Thanks to Kaveh Ghazi for helping
111964         to keep these files in sync.
111965         (ARRAY_SIZE): Define it.
111966         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111967         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111968         (memcasecmp): Don't assume size_t fits in unsigned int.
111969         Remove casts and duplicate code.
111970         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111971         (memcpy): Remove definition.
111972         Merge in some clean-up and optimization changes from glibc.
111973         [BLOCKSIZE]: Move definition to top of file.
111974         Ensure that it is a multiple of 64.
111975         Rearrange loop exit tests so as to avoid performing an
111976         additional fread after encountering an error or EOF.
111977         * lib/md5.h (md5_uintptr): Define.
111978         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111979         return to the initial working directory.  Preserve errno
111980         for caller.
111981         * lib/idcache.c: Include "xalloc.h".
111982         (xmalloc, xrealloc): Remove decls.
111983         (getuser): Remove casts no longer required in C89.
111984         * lib/human.c: Include stdio.h, for sprintf.
111985         * lib/group-member.c: Include "xalloc.h".
111986         (xmalloc, xrealloc): Remove decls.
111987         (get_group_info): Remove casts no longer required in C89.
111988         * lib/getusershell.c (readname): Remove casts no longer required in
111989         C89.
111990         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111991         * lib/getline.c: Whitespace fix, from coreutils.
111993 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111995         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111996         Check for isascii.
111998         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111999         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
112000         Undo previous (whitespace-only) change.
112002 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112004         * lib/exclude.c: Include <ctype.h>
112005         (IN_CTYPE_DOMAIN): New macro.
112006         (is_space): New fn.
112007         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
112008         and empty lines.
112010         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
112011         Undo previous (whitespace-only) change.
112013 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112015         * config/srclist-update: Change update back to the old behavior,
112016         leaving whitespace alone.  Use one 'sed' command rather than a
112017         pipeline.
112018         (fixlicense): Now a variable, not a function.
112019         (remove_trailing_blanks): Remove.
112020         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
112021         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
112022         Undo previous (whitespace-only) change.
112024 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112026         Merge from coreutils.
112027         * modules/euidaccess: Add lib_SOURCES, include for new
112028         file euidaccess.h
112030 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112032         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
112033         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
112034         Normalize leading white space and remove trailing white space.
112036         Merge from coreutils
112037         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
112039         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
112040         0.12.1.  These files are now being upgraded automatically by
112041         ../config/srclist-update.
112043 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112045         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
112046         Normalize leading white space and remove trailing white space.
112047         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
112048         notice, as per ../config/srclist-update.
112050         Merge from coreutils.
112051         * lib/euidaccess.h: New file.
112052         * lib/euidaccess.c: Include it.
112053         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
112054         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
112055         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
112057 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112059         * config/srclist-update: Add copyright notice.
112060         (remove_id_lines, remove_trailing_blanks): New constants.
112061         (fixfile): Use them to normalize spacing a bit in copied files.
112062         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
112063         Normalize leading white space and remove trailing white space.
112065         * config/texinfo.tex: Sync with texinfo.
112067         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
112068         strtoul.c from libc, to merge coreutils whitespace changes.
112070         * config/srclist.txt: Get the following m4 files from gettext:
112071         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
112072         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
112073         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
112074         wint_t.m4.
112076 2003-08-12  Karl Berry  <karl@gnu.org>
112078         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
112079         been made.
112081 2003-08-11  Paul Eggert  <eggert@twinsun.com>
112083         * modules/gnu-source, m4/gnu-source.m4:
112084         Remove; we're assuming Autoconf 2.54 or later now.
112085         Suggested by Bruno Haible.
112086         * MODULES.html.sh (func_all_modules): Remove gnu-source.
112088 2003-08-11  Bruno Haible  <bruno@clisp.org>
112090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
112092 2003-08-11  Bruno Haible  <bruno@clisp.org>
112094         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
112095         (vasnprintf): Use it instead of wcslen.
112097 2003-08-11  Bruno Haible  <bruno@clisp.org>
112099         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
112100         value to ensure that _Bool promotes to int. Use #define for _Bool when
112101         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
112103 2003-08-10  Karl Berry  <karl@gnu.org>
112105         * lib/regex.h: update from libc (whitespace fix).
112107 2003-08-09  Paul Eggert  <eggert@twinsun.com>
112109         Merge some files from coreutils.  These changes were
112110         originally made by Jim Meyering.
112111         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
112112         many older Unixes require this.
112113         * lib/alloca.c (alloca): Remove cast to argument of free;
112114         no longer needed in C89.
112115         * lib/alloca_.h, regex.h: Fix white space to match
112116         what GNU indent does.
112118 2003-08-09  Paul Eggert  <eggert@twinsun.com>
112120         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
112121         apparently Emacs's Unicode mode got confused before my 2003-08-05
112122         checkin.
112124 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112126         * m4/extensions.m4: New file.
112127         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
112128         Require gl_USE_SYSTEM_EXTENSIONS.
112129         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
112130         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
112132 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112134         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
112135         * modules/extensions, modules/gnu-source: New files.
112136         * modules/timespec, modules/unlocked-io: Depend on extensions.
112138 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112140         * modules/restrict: New file.
112141         * MODULES.html.sh (func_all_modules): Add restrict.
112142         * modules/regex: Depend on restrict.
112144 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112146         * m4/restrict.m4: New file.
112147         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
112149 2003-08-07  Bruno Haible  <bruno@clisp.org>
112151         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
112152         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
112154 2003-08-07  Bruno Haible  <bruno@clisp.org>
112156         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
112157         makes the module 'getndelim2' compatible with the module 'getline'.
112159 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112161         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
112162         byte with "\201" to avoid glitches when editing that source file
112163         with multi-gnome-terminal.
112165 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112167         * lib/bumpalloc.h: Remove.
112169 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112171         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
112172         * modules/bumpalloc: Remove.
112174 2003-08-04  Paul Eggert  <eggert@twinsun.com>
112176         * lib/getloadavg.c: Change copyright notice and spacing to conform to
112177         GNU coding style.
112179         Merge from coreutils.
112180         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
112181         1. From glibc.
112182         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
112183         from Karl Berry, implemented by Jim Meyering.
112184         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
112185         from Dmitry V. Levin.
112186         Remove anachronistic cast of xrealloc.
112187         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
112188         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
112189         type. Otherwise, it wouldn't compile with at least /bin/cc on
112190         ymp-cray-unicos9.0.2.X.
112191         Combine two mostly-identical uses of alloca into one.
112192         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
112194 2003-08-04  Dave Love  <d.love@dl.ac.uk>
112196         [From Emacs.]
112198         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
112199         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
112200         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
112201         obsolete NLIST_NAME_UNION.
112202         [__GNU__]: Undef BSD and FSCALE.
112203         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
112205 2003-08-03  Paul Eggert  <eggert@twinsun.com>
112207         * lib/stdbool_.h (_Bool): Make it signed char, instead of
112208         an enum type, so that it's guaranteed to promote to int.  See:
112209         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
112211 2003-08-03  Karl Berry  <karl@gnu.org>
112213         * config/depcomp: update from automake.
112215 2003-07-31  Paul Eggert  <eggert@twinsun.com>
112217         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
112218         (strerror): Don't assume that a printable int fits in 14 bytes.
112220 2003-07-31  Bruno Haible  <bruno@clisp.org>
112222         * modules/getpass-gnu: New file.
112223         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
112225 2003-07-31  Bruno Haible  <bruno@clisp.org>
112227         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
112229 2003-07-24  Karl Berry  <karl@gnu.org>
112231         * config/missing: update from automake.
112233 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
112234             Bruno Haible  <bruno@clisp.org>
112236         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
112237         * lib/getline.c (getline, getdelim): Likewise.
112238         Remove _GNU_SOURCE define; now it's defined in config.h through
112239         m4/getline.m4.
112241 2003-07-23  Karl Berry  <karl@gnu.org>
112243         * config/config.sub: update from prep.
112245 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112247         * modules/xalloc (Depends-on): Add exitfail.
112248         * modules/xmemcoll: Likewise.
112250 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112252         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
112253         over-parenthesization in macros.
112255         Sync with coreutils.
112257         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
112258         required by C99.
112260         Use `exit_failure' for xalloc and xmemcoll instead of their own
112261         private exit-failure variables.
112262         * lib/xalloc.h (xalloc_exit_failure): Remove.
112263         * lib/xmalloc.c: Likewise.  Include exitfail.h.
112264         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
112265         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
112266         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
112267         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
112269 2003-07-20  Jim Meyering  <jim@meyering.net>
112271         * modules/closeout (Depends-on): Add exitfail.
112272         Suggestion from Bruno Haible.
112274 2003-07-19  Karl Berry  <karl@gnu.org>
112276         * config/config.sub: update from prep.
112278 2003-07-18  Paul Eggert  <eggert@twinsun.com>
112280         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
112281         Remove.
112282         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
112283         to test that it can stand by itself.  Include "exitfail.h".
112284         Clients should set exit_failure instead.
112285         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
112287 2003-07-18  Bruno Haible  <bruno@clisp.org>
112289         * modules/getndelim2: New file.
112290         * modules/getline: Share files with module getndelim2.
112291         * modules/getnline: Depend on getndelim2 instead of sharing files with
112292         it. Add getnline.c to lib_SOURCES.
112293         * MODULES.html.sh (func_all_modules): Add getndelim2.
112295 2003-07-18  Bruno Haible  <bruno@clisp.org>
112297         * m4/getndelim2.m4: New file.
112298         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
112299         invoke gl_PREREQ_GETNDELIM2.
112300         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
112301         gl_PREREQ_GETNDELIM2.
112302         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
112303         gl_GETNDELIM2.
112305 2003-07-18  Bruno Haible  <bruno@clisp.org>
112307         * lib/getndelim2.h: New file.
112308         * lib/getndelim2.c: Make into a module of its own. Include config.h,
112309         getndelim2.h.
112310         (getndelim2): Make non-static. Change return type to ssize_t.
112311         * lib/getline.h: Change argument names.
112312         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
112313         * lib/getnline.c: Include getndelim2.h.
112315 2003-07-18  Andreas Schwab  <schwab@suse.de>
112317         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
112319 2003-07-17  Karl Berry  <karl@gnu.org>
112321         * config/config.sub: update from prep.
112323 2003-07-17  Bruno Haible  <bruno@clisp.org>
112325         * modules/getnline: New file.
112326         * modules/getline: Add lib/getndelim2.c to source file list.
112327         * MODULES.html.sh (func_all_modules): Add getnline.
112329 2003-07-17  Bruno Haible  <bruno@clisp.org>
112331         * m4/getnline.m4: New file.
112333 2003-07-17  Bruno Haible  <bruno@clisp.org>
112335         * m4/Makefile.am.in: Remove file.
112336         * m4/Makefile.am: Remove file.
112337         * m4/Makefile.in: Remove file.
112339 2003-07-17  Bruno Haible  <bruno@clisp.org>
112341         * lib/getnline.h: New file.
112342         * lib/getnline.c: New file.
112343         * lib/getndelim2.c: New file, extracted from getline.c.
112344         (getndelim2): Renamed from getdelim2, with added nmax argument.
112345         * lib/getline.c: Include getndelim2.c.
112346         (getdelim2): Moved out to getndelim2.c.
112347         (getline, getdelim): Update.
112349 2003-07-17  Bruno Haible  <bruno@clisp.org>
112351         * lib/Makefile.am: Remove file.
112352         * lib/Makefile.in: Remove file.
112354 2003-07-17  Bruno Haible  <bruno@clisp.org>
112356         * configure.in: Remove file.
112357         * Makefile.in: Remove file.
112359 2003-07-17  Bruno Haible  <bruno@clisp.org>
112361         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112363 2003-07-16  Karl Berry  <karl@gnu.org>
112365         * config/srclist-update: was running fixlicense twice, which caused
112366                 texinfo.tex to be nullified for some reason.  Simplify,
112367                 $gplsrc is no longer needed as far as I can see?
112369 2003-07-16  Jim Meyering  <jim@meyering.net>
112371         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112373 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112375         * config/srclist.txt: Get the following files from gettext-runtime/intl
112376         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112377         ref-del.sin.  From Bruno Haible.
112378         * config/srclist-update (fixfile): Change grep pattern again, since the
112379         previous fix didn't work (there was another trailing $).  Use
112380         '[$]' to escape the $s.
112382 2003-07-15  Karl Berry  <karl@gnu.org>
112384         * lib/vasnprintf.c: update from gettext.
112386 2003-07-15  Karl Berry  <karl@gnu.org>
112388         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112389         gets expanded when surrounded by '$'.
112391 2003-07-15  Jim Meyering  <jim@meyering.net>
112393         * modules/save-cwd: Don't depend on error.  From Derek Price.
112395 2003-07-15  Jim Meyering  <jim@meyering.net>
112397         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112399 2003-07-14  Simon Josefsson  <jas@extundo.com>
112401         * modules/mempcpy: New file.
112402         * MODULES.html.sh (func_all_modules): Add mempcpy.
112404 2003-07-14  Simon Josefsson  <jas@extundo.com>
112406         * m4/mempcpy.m4: New file.
112408 2003-07-14  Simon Josefsson  <jas@extundo.com>
112410         * lib/mempcpy.h: New file.
112411         * lib/mempcpy.c: New file.
112413 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112415         * modules/getdate, modules/posixtm: Depend on mktime.
112417 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112419         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112420         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112421         unicodeio.c, unicodeio.h, unlocked-io.h:
112422         Switch from LGPL to GPL.
112424 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112426         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112427         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112428         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112429         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112430         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112431         updated automatically by ../config/srclist-update.  This changes
112432         their license from LPGL to GPL.
112434 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112436         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112437         assumed to refer to the root of the most recent stable gettext version.
112438         * config/srclistvars.sh: Add defaults for eggert.
112439         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112440         Match "This program" as well as "The program".  This is needed
112441         for gettext.
112443 2003-07-14  Jim Meyering  <jim@meyering.net>
112445         Don't emit diagnostics.  Let callers do that.
112446         * lib/save-cwd.c: Don't include "error.h".
112447         (save_cwd): Don't call error.  Ensure that errno is valid
112448         when returning nonzero.
112450         * lib/save-cwd.h (restore_cwd): Update prototype.
112451         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112452         Simplify.  Don't call error upon failure.  Let callers do that.
112453         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112454         when auditing is enabled.  But don't bother updating the #if.
112456 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112458         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112459         it breaks C++ compilation.
112460         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112462 2003-07-10  Simon Josefsson  <jas@extundo.com>
112464         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112466 2003-07-10  Jim Meyering  <jim@meyering.net>
112468         * m4/clock_time.m4: Remove trailing blank.
112469         * m4/intmax_t.m4: Likewise.
112471 2003-07-10  Jim Meyering  <jim@meyering.net>
112473         * lib/vasnprintf.c: Remove trailing blanks.
112474         Make cpp indentation consistent.
112476 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112478         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112479         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112480         Switch from LGPL to GPL.
112482 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112484         * config/srclist.txt: Sort sublists.  Add
112485         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112486         that differ from gnulib for one reason or another; we'd like this list
112487         to be smaller but for now let's document what we have.
112489 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112491         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112492         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112493         and sweeter "eval x=$x".
112494         * config/srclist.txt: Get lib/argp* from glibc.
112496 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112498         * lib/mktime.c: Fix some boundary cases and remove need for floating
112499         point.
112501         Issue a compile-time diagnostic if time_t is floating point, or if
112502         two's complement arithmetic is not in effect, or if arithmetic
112503         right shift does not propagate the sign.  These assumptions were
112504         all in the original code but they weren't checked.
112506         (TIME_T_MIDPOINT, verify): New macros.
112507         (__isleap): Remove; it has integer overflow problems.
112508         (leapyear): New function, without those problems.
112509         (ydhms_tm_diff): Remove; splitting into two parts.
112510         (ydhms_diff): New function, containing the arithmetic part of
112511         the old ydhms_tm_diff function.  Issue a compile-time
112512         diagnostic if we are not using C99 integer division.
112513         Avoid casts when possible.
112514         (guess_time_tm): New function, containing the checking part of
112515         the old ydhms_tm_diff function.  Return the new value, rather than
112516         the difference between it and the old.  Accept a new argument T
112517         so that *T specifies the old value.  Check for overflow in the result.
112519         (__mktime_internal): Use a time_t offset, not a long int offset.
112520         This undoes the 2003-06-04 change, which is no longer needed now
112521         that we have better overflow checking.
112522         (localtime_offset): Likewise.
112524         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112525         and long are 64-bit but int is only 32-bit.
112526         (ydhms_diff): Use long int to store year1 and yday1.
112527         Issue a compile-time diagnostic if long int is not wide enough.
112529         (__mktime_internal): Use long int to store adjusted year and yday.
112530         Use plain C rather than preprocessor commands, if that doesn't
112531         affect efficiency.
112532         Check for overflow (and try to repair) after each probe
112533         rather than checking only at the very end.  This avoids some bugs
112534         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112535         does not equal GMT offset at maximum time).
112536         Use integer to check for overflow rather than floating point; this
112537         is more portable to non-IEEE hosts, and is a tad faster.
112538         When we detect that we are oscillating between two values,
112539         don't check whether tm_isdst has the requested value, since
112540         we already know the answer.  When tm_isdst has the wrong value,
112541         use a different heuristic to find the right one, based on the
112542         extreme values actually observed in practice in tz2003a,
112543         rather than the (overly optimistic) "previous 3 calendar quarters".
112545         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112546         "T const" to accommodate glibc style.
112547         (check_result): Use less-confusing report format.  "long" -> "long int.
112548         (main): Likewise.
112549         Don't loop if the iteration overflows time_t.
112550         Allow a negative step in the iteration.
112552 2003-07-06  Karl Berry  <karl@gnu.org>
112554         * config/depcomp: update from automake.
112555         * config/config.sub: update from prep.
112557 2003-07-03  Karl Berry  <karl@gnu.org>
112559         * config/config.guess: update from prep.
112561 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112563         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112564         xreadlink.c now includes it unconditionally.
112566 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112568         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112569         having it depend on HAVE_SYS_TYPES_H.
112571 2003-07-01  Bruno Haible  <bruno@clisp.org>
112573         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112574         <sys/types.h> should be sufficient.
112575         Reported by Paul Eggert.
112577 2003-06-26  Karl Berry  <karl@gnu.org>
112579         * config/depcomp: update from automake.
112581 2003-06-26  Bruno Haible  <bruno@clisp.org>
112583         * modules/human: Depend on module stdbool.
112585 2003-06-25  Bruno Haible  <bruno@clisp.org>
112587         * modules/readlink: New file.
112588         * modules/xreadlink: Depend on it.
112589         * MODULES.html.sh (func_all_modules): Add readlink.
112591 2003-06-25  Bruno Haible  <bruno@clisp.org>
112593         * m4/readlink.m4: New file.
112595 2003-06-25  Bruno Haible  <bruno@clisp.org>
112597         * lib/readlink.c: New file.
112599 2003-06-22  Karl Berry  <karl@gnu.org>
112601         * config/srclist.txt: update mkinstalldirs from automake.
112602         * config/mkinstalldirs: update.
112604 2003-06-22  Bruno Haible  <bruno@clisp.org>
112606         Portability to mingw32.
112607         * m4/ssize_t.m4: New file, from GNU gettext.
112608         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112609         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112611 2003-06-22  Bruno Haible  <bruno@clisp.org>
112613         * modules/safe-read: Add m4/ssize_t.m4.
112614         * modules/xreadlink: Add m4/ssize_t.m4.
112616 2003-06-20  Bruno Haible  <bruno@clisp.org>
112618         Assume C89, so PARAMS isn't needed.
112619         * lib/unicodeio.h (PARAMS): Remove.
112620         * lib/unicodeio.c: Don't use PARAMS.
112622 2003-06-18  Karl Berry  <karl@gnu.org>
112624         * config/config.{guess,sub}: update from prep.
112626 2003-06-18  Jim Meyering  <jim@meyering.net>
112628         Merge changes from coreutils.
112629         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112630         Remove explicit declarations of xmalloc and realloc.
112631         Include xalloc.h.
112632         (read_utmp): Remove anachronistic cast of xmalloc.
112634 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112636         Assume C89, so PARAMS isn't needed.
112637         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112638         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112639         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112640         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112641         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112642         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112643         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112644         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112645         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112646         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112647         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112648         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112649         no longer needed. Anyway, config.h should always be included before any
112650         other file.
112652 2003-06-11  Simon Josefsson  <jas@extundo.com>
112654         * modules/sysexits: New file.
112655         * MODULES.html.sh (func_all_modules): Add sysexits.
112657 2003-06-11  Simon Josefsson  <jas@extundo.com>
112659         * lib/sysexit_.h: New file.
112661 2003-06-11  Derek Price  <derek@ximbiot.com>
112663         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112664         necessary.
112666 2003-06-11  Bruno Haible  <bruno@clisp.org>
112668         * m4/sysexits.m4: New file.
112670 2003-06-10  Simon Josefsson  <jas@extundo.com>
112672         * lib/argp.h: New file, from glibc.
112673         * lib/argp-ba.c: New file, from glibc.
112674         * lib/argp-eexst.c: New file, from glibc.
112675         * lib/argp-fmtstream.c: New file, from glibc.
112676         * lib/argp-fmtstream.h: New file, from glibc.
112677         * lib/argp-fs-xinl.c: New file, from glibc.
112678         * lib/argp-help.c: New file, from glibc.
112679         * lib/argp-namefrob.h: New file, from glibc.
112680         * lib/argp-parse.c: New file, from glibc.
112681         * lib/argp-pv.c: New file, from glibc.
112682         * lib/argp-pvh.c: New file, from glibc.
112683         * lib/argp-xinl.c: New file, from glibc.
112685 2003-06-10  Simon Josefsson  <jas@extundo.com>
112687         * modules/strchrnul: New file.
112689 2003-06-10  Simon Josefsson  <jas@extundo.com>
112691         * modules/argp: New file.
112693 2003-06-10  Simon Josefsson  <jas@extundo.com>
112695         * m4/strchrnul.m4: New file.
112697 2003-06-10  Simon Josefsson  <jas@extundo.com>
112699         * lib/strchrnul.h: New file.
112700         * lib/strchrnul.c: New file.
112702 2003-06-10  Bruno Haible  <bruno@clisp.org>
112704         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112706 2003-06-07  Karl Berry  <karl@gnu.org>
112708         * config/config.{guess,sub}: update from prep.
112710 2003-06-07  Jim Meyering  <jim@meyering.net>
112712         * modules/strtod: Use $(...) notation, not @...@ for
112713         AC_REPLACE'd variables.
112714         * modules/localcharset: Likewise.
112716 2003-06-07  Jim Meyering  <jim@meyering.net>
112718         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112719         in place of my name in the copyright comment.
112720         Remove definition and uses of __P.
112722         From coreutils.
112723         * lib/stat.c: Don't declare xmalloc explicitly.
112724         Instead, include "xalloc.h".
112725         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112726         xrealloc, and xcalloc return values.
112727         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112728         Improve comment.
112729         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112731 2003-06-07  Bruno Haible  <bruno@clisp.org>
112733         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112734         avoid AC_CONFIG_LINKS.
112735         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112736         fnmatch.h, to avoid AC_CONFIG_LINKS.
112737         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112739 2003-06-07  Bruno Haible  <bruno@clisp.org>
112741         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112742         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112743         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112744         directory.
112745         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112746         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112747         directory.
112749 2003-06-06  Jim Meyering  <jim@meyering.net>
112751         Merge from coreutils.
112752         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112753         Consolidate declarations and initializations of *_base* locals.
112755         Merge from coreutils.
112756         This avoids a core dump on systems without GNU putenv,
112757         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112758         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112759         (unsetenv): New static function, from GNU libc.
112760         (rpl_putenv): Use it.
112762         * lib/modechange.c: Remove trailing blanks.
112764         Merge from coreutils.
112765         * lib/fsusage.c: Remove declaration of statfs.
112766         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112768         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112770 2003-06-06  Jim Meyering  <jim@meyering.net>
112772         * lib/stdbool_.h: Renamed from stdbool.h.in.
112774 2003-06-06  Jim Meyering  <jim@meyering.net>
112775             Bruno Haible  <bruno@clisp.org>
112777         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112778         Adjust Makefile.am snippet not to redirect directly to target.
112779         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112781 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112783         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112784         mismatch, look in future quarters as well as past.  This fixes a
112785         bug when processing fall-backwards gaps immediately after a long
112786         period of daylight-saving time.
112788         * lib/mktime.c: Assume freestanding C89 or better.
112789         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112790         (__P): Remove; not used.
112791         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112792         (mktime, not_equal_tm, print_tm, check_result,
112793         main): Use prototypes.  Use const * where appropriate.
112794         (main): Fix typo in testing code that uncovered by above changes.
112795         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112797 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112799         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112800         locale.h, localeconv.  This merges changes from coreutils.
112802         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112803         It can be removed after the next Autoconf is released.
112804         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112805         needed.
112807 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112809         * lib/mktime.c: Fix Debian bug 177940
112810         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112811         (localtime_offset): Now long int, not time_t, because we want it
112812         to be guaranteed to be signed.  All uses changed.
112813         (__mktime_internal): If overflow would occur when adding offset,
112814         don't add it.
112816         Merge 'human' changes from coreutils.  Rewrite to support
112817         locale-specific notations like thousands separators.
112818         * lib/human.c: Simplify authorship notice.
112819         Include human.h immediately after config.h.
112820         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112821         <limits.h>: Do not include, since human.h does.
112822         (SIZE_MAX, UINTMAX_MAX): New macros.
112823         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112824         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112825         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112826         (power_letter): Renamed from suffixes.
112827         (generate_suffix_backwards): Remove.
112828         (adjust_value): Now takes int style (because of human.h changes)
112829         and long double value (for greater precision on some platforms).
112830         (group_number): New function.
112831         (human_readable): Use it.  Use integer options, not enum.
112832         Put the options before the sizes in the arg list.
112833         Support all the new options.
112834         The old human_readable function has been removed;
112835         use inttostr.h instead.
112836         (human_readable, default_block_size, humblock):
112837         Use uintmax_t, not int, for block sizes.
112838         (human_readable_inexact, block_size_types): Remove.
112839         (block_size_opts): New constant.
112840         (human_options): Renamed from human_block_size, with new signature
112841         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112842         * lib/human.h: Add copyright and authorship notice.
112843         Include <limits.h> and <stdbool.h> unconditionally.
112844         (PARAMS): Remove.  All uses removed.
112845         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112846         (enum human_inexact_style): Remove tag; now a nameless enum.
112847         (human_floor, human_ceiling, human_round_to_even): Now have
112848         values 2, 0, 1 rather than -1, 1, 0.
112849         (human_group_digits, human_suppress_point_zero, human_autoscale,
112850         human_base_1024, human_SI, human_B): New constants.
112851         (human_readable_inexact, human_block_size): Remove.
112852         (human_readable): Size args are now uintmax_t, not int.
112853         (human_options): New decl.
112855         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112856         unnecessary now that we assume C89 or better.  This change
112857         imported from coreutils.
112859         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112860         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112861         in the 2003-05-30 sync from glibc.
112863         .h files should stand alone, but we shouldn't include <sys/types.h>
112864         if we can get away with just <stddef.h>.
112866         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112867         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112868         rather than <sys/types.h>, as we merely need size_t.
112869         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112870         to get size_t.
112871         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112872         Include <stdio.h>, to get FILE.
112873         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112874         memcasecmp.h has included <stddef.h> and all we need is size_t.
112875         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112876         our interface, instead of including <sys/types.h>
112878 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112880         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112881         now, as glibc mktime is buggy on non-glibc systems.
112883 2003-06-03  Karl Berry  <karl@gnu.org>
112885         * config/config.sub: update from prep.
112887 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112889         [from coreutils]
112890         Fix some minor time-related bugs with POSIX time arguments.
112891         Some valid time stamps were being rejected (notably -1, and
112892         time stamps before 1900 on 64-bit hosts).  And some invalid
112893         time stamps were being accepted, e.g. September 31.
112895         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112896         that we can return (time_t) -1 successfully.
112897         * lib/posixtm.c: Likewise.
112898         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112899         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112900         (t): Remove static var.
112901         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112902         of static var.  All uses changed.
112903         (year): Do not reject years before 1900; they can occur with
112904         64-bit time_t.
112905         (posix_time_parse): Do not check for out-of-range components;
112906         that is now the caller's responsibility, since our checks were
112907         only approximations.
112908         (posixtime): Use mktime to check for out-of-range components,
112909         since it knows them exactly.
112910         If mktime returns (time_t) -1, check whether an error actually occurred
112911         by invoking localtime on -1.
112912         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112913         posixtime failures better.
112914         Improve the test data (in comments only).
112916 2003-06-02  Karl Berry  <karl@gnu.org>
112918         * config/mkinstalldirs (version): new variable.
112919         (--version): new option.
112920         (usage): improve message.
112922 2003-05-30  Karl Berry  <karl@gnu.org>
112924         * lib/mktime.c: update from libc.
112926 2003-05-30  Bruno Haible  <bruno@clisp.org>
112928         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112929         * config/config.rpath: Upgrade to gettext-0.12.1.
112931 2003-05-30  Bruno Haible  <bruno@clisp.org>
112933         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112934         * m4/nls.m4: New file, from gettext-0.12.1.
112935         * m4/po.m4: New file, from gettext-0.12.1.
112936         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112938 2003-05-30  Bruno Haible  <bruno@clisp.org>
112940         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112941         * lib/localcharset.h: Likewise.
112942         * lib/localcharset.c: Likewise.
112944 2003-05-29  Karl Berry  <karl@gnu.org>
112946         * config/config.rpath: update from gettext.
112948 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112950         Assume the headers required for C89 freestanding compilers.
112951         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112952         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112953         * m4/human.m4 (gl_HUMAN): Likewise.
112954         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112955         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112956         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112957         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112958         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112959         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112961 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112963         Assume the headers required for C89 freestanding compilers.
112964         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112965         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112966         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112967         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112968         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112969         define, since <limits.h> is guaranteed to do that.
112970         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112971         * lib/exclude.c: Include <stdbool.h> unconditionally.
112972         * lib/tempname.c: Include <stddef.h> unconditionally.
112973         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112974         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112975         <stddef.h> does that.
112976         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112977         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112978         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112979         needed.
112980         * lib/xstrtol.c: Likewise.
112981         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112982         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112984         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112985         warnings on some platforms.
112987         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112988         arbitrarily.
112990 2003-05-26  Jim Meyering  <jim@meyering.net>
112992         Merge in a change from coreutils:
112993         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112994         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112995         that condition, rather than `-1' which is slightly misleading.
112996         Change the name of the cache variable to have the gl_ prefix.
112997         Prompted by a patch from Richard Dawe for DJGPP.
112999 2003-05-24  Karl Berry  <karl@gnu.org>
113001         * config/config.guess: update from prep.
113003 2003-05-22  Karl Berry  <karl@gnu.org>
113005         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
113007 2003-05-20  Karl Berry  <karl@gnu.org>
113009         * config/config.guess: update from prep.
113011 2003-05-18  Karl Berry  <karl@gnu.org>
113013         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
113014         might actually be set by the user.
113016         * config/depcomp, install-sh, mdate-sh: update from automake.
113018 2003-05-17  Bruno Haible  <bruno@clisp.org>
113020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
113021         invalid expansion for AC_EGREP_CPP.
113022         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
113023         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
113024         Suggested by Akim Demaille <akim@epita.fr> in
113025         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
113027 2003-05-12  Jim Meyering  <jim@meyering.net>
113029         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
113030         the space-padded-by-default conversion specifiers, %e, %k, %l.
113032 2003-05-12  Bruno Haible  <bruno@clisp.org>
113034         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
113035         the string is longer than 4 KB.
113037 2003-05-11  Karl Berry  <karl@gnu.org>
113039         * config/config.{guess,sub}: update from prep.
113041 2003-05-09  Bruno Haible  <bruno@clisp.org>
113043         * modules/error: Add m4/strerror_r.m4 to file list.
113045 2003-05-03  Bruno Haible  <bruno@clisp.org>
113047         Upgrade to Unicode-4.0.
113048         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
113049         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
113050         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
113051         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
113052         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
113053         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
113054         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
113055         Change width of U+E0100..U+E01EF from 1 to 0.
113057 2003-04-25  Jim Meyering  <jim@meyering.net>
113059         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
113060         of type size_t, not int.
113062 2003-04-25  Bruno Haible  <bruno@clisp.org>
113064         * lib/copy-file.c: Include <stddef.h>, for size_t.
113066 2003-04-21  Paul Eggert  <eggert@twinsun.com>
113068         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
113069         code which expansion is under static control.  Patch imported from
113070         Akim Demaille's patch to Bison; see
113071         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
113073 2003-04-14  Bruno Haible  <bruno@clisp.org>
113075         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
113077 2003-04-11  Jim Meyering  <jim@meyering.net>
113079         Merge changes from Coreutils.
113081         2003-03-22  Jim Meyering  <jim@meyering.net>
113083         * lib/strftime.c (widen): Cast alloca return value to proper type.
113085         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
113087         From GNU libc.
113088         * lib/strftime.c (my_strftime): Handle very large width
113089         specifications for numeric values correctly.  Improve checks for
113090         overflow.
113092         2003-01-19  Jim Meyering  <jim@meyering.net>
113094         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
113095         definitions.
113096         (nl_get_alt_digit) [! defined my_strftime]: Define.
113097         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
113098         _nl_get_alt_digit and _nl_get_walt_digit.
113100         * lib/strftime.c (my_strftime): Merge in locale-related changes from
113101         libc. These changes have no effect outside of _LIBC.
113103 2003-04-10  Bruno Haible  <bruno@clisp.org>
113105         * modules/findprog: New file.
113106         * MODULES.html.sh (func_all_modules): Add it.
113108 2003-04-10  Bruno Haible  <bruno@clisp.org>
113110         * m4/findprog.m4: New file.
113111         * m4/eaccess.m4: New file.
113113 2003-04-10  Bruno Haible  <bruno@clisp.org>
113115         * lib/findprog.h: New file, from GNU gettext.
113116         * lib/findprog.c: New file, from GNU gettext.
113118 2003-04-05  Jim Meyering  <jim@meyering.net>
113120         Merge changes from Coreutils.
113122         * lib/exclude.h (PARAMS): Remove definition and uses.
113123         * lib/exclude.c: Remove uses of `PARAMS'.
113125         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
113126         Add test-cases for DOS filenames. Declare program_name.
113127         (main): Set up program_name.  Patch by Rich Dawe.
113129         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
113130         error from mntctl.
113131         Use mntctl's return value to drive the entry-processing loop, since
113132         we can't rely on the value of the vmt_length member in the last
113133         entry.  On some systems doing so could result in exhausting
113134         virtual memory.  Based in part on a patch from Mike Jetzer.
113136 2003-04-04  Bruno Haible  <bruno@clisp.org>
113138         * modules/linebreak: New file.
113139         * MODULES.html.sh (func_all_modules): Add it.
113141 2003-04-04  Bruno Haible  <bruno@clisp.org>
113143         * m4/linebreak.m4: New file.
113145 2003-04-04  Bruno Haible  <bruno@clisp.org>
113147         * lib/linebreak.h: New file, from GNU gettext.
113148         * lib/linebreak.c: New file, from GNU gettext with slight
113149         modifications.
113150         * lib/lbrkprop.h: New file, from GNU gettext.
113152 2003-04-03  Bruno Haible  <bruno@clisp.org>
113154         * modules/utf8-ucs4: New file.
113155         * modules/utf16-ucs4: New file.
113156         * modules/ucs4-utf8: New file.
113157         * modules/ucs4-utf16: New file.
113158         * MODULES.html.sh (func_all_modules): Add them.
113160 2003-04-03  Bruno Haible  <bruno@clisp.org>
113162         * m4/utf-ucs4.m4: New file.
113163         * m4/ucs4-utf.m4: New file.
113165 2003-04-03  Bruno Haible  <bruno@clisp.org>
113167         * lib/utf8-ucs4.h: New file, from GNU gettext.
113168         * lib/utf16-ucs4.h: New file, from GNU gettext.
113169         * lib/ucs4-utf8.h: New file, from GNU gettext.
113170         * lib/ucs4-utf16.h: New file, from GNU gettext.
113172 2003-04-02  Bruno Haible  <bruno@clisp.org>
113174         * modules/binary-io: New file.
113175         * MODULES.html.sh (func_all_modules): Add it.
113177 2003-04-02  Bruno Haible  <bruno@clisp.org>
113179         * lib/binary-io.h: New file, from GNU gettext.
113181 2003-04-01  Bruno Haible  <bruno@clisp.org>
113183         * modules/pathname: New file.
113184         * MODULES.html.sh (func_all_modules): Add it.
113186 2003-04-01  Bruno Haible  <bruno@clisp.org>
113188         * lib/pathname.h: New file, from GNU gettext.
113189         * lib/concatpath.c: New file, from GNU gettext.
113191 2003-03-30  Bruno Haible  <bruno@clisp.org>
113193         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
113195 2003-03-30  Bruno Haible  <bruno@clisp.org>
113197         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
113198         function chown() doesn't exist.
113200 2003-03-28  Bruno Haible  <bruno@clisp.org>
113202         * modules/copy-file: New file.
113203         * MODULES.html.sh (func_all_modules): Add it.
113205 2003-03-28  Bruno Haible  <bruno@clisp.org>
113207         * m4/copy-file.m4: New file.
113209 2003-03-28  Bruno Haible  <bruno@clisp.org>
113211         * lib/copy-file.h: New file, from GNU gettext.
113212         * lib/copy-file.c: New file, from GNU gettext.
113214 2003-03-18  Jim Meyering  <jim@meyering.net>
113216         * lib/quote.c (quote_n): Fix typo in comment.
113218 2003-03-18  Bruno Haible  <bruno@clisp.org>
113220         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
113221         checking.
113222         * m4/onceonly_2_57.m4: Likewise.
113224 2003-03-17  Bruno Haible  <bruno@clisp.org>
113226         * m4/onceonly.m4: Require autoconf 2.54 or newer.
113227         (m4_quote): Remove macro.
113228         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
113230 2003-03-14  Jim Meyering  <jim@meyering.net>
113232         Merge changes from Coreutils.
113233         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
113234         to be const, in order to avoid warnings.
113235         (obstack_room): Likewise.
113236         (obstack_empty_p): Likewise.
113238 2003-03-14  Bruno Haible  <bruno@clisp.org>
113240         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
113241         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
113243 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113245         Merge changes from Bison.
113246         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
113247         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
113248         when compiling Bison 1.875's `bitset bset = obstack_alloc
113249         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
113250         * lib/hash.c: Include <stdbool.h> unconditionally.
113252 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113254         * m4/onceonly.m4 (m4_quote): New macro.
113255         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
113256         Quote AC_FOREACH variable-expansions properly.
113258 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113260         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
113262 2003-03-09  Paul Eggert  <eggert@twinsun.com>
113264         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
113265         Reported by Bruce Becker; see:
113266         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
113268 2003-03-03  Paul Eggert  <eggert@twinsun.com>
113269             Bruno Haible  <bruno@clisp.org>
113271         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
113272         Reported by John Hughes, see
113273         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
113275 2003-02-20  Bruno Haible  <bruno@clisp.org>
113277         * MODULES.html.sh (func_all_modules): Add poll.
113279 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113281         * modules/poll: New file.
113283 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113285         * lib/poll_.h: New file.
113286         * lib/poll.c: New file.
113288 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113290         * m4/poll.m4: New file.
113292 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113294         * modules/mathl: New file.
113296 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113298         * lib/mathl.h: New file.
113299         * lib/acosl.c: New file.
113300         * lib/asinl.c: New file.
113301         * lib/atanl.c: New file.
113302         * lib/ceill.c: New file.
113303         * lib/cosl.c: New file.
113304         * lib/expl.c: New file.
113305         * lib/floorl.c: New file.
113306         * lib/frexpl.c: New file.
113307         * lib/ldexpl.c: New file.
113308         * lib/logl.c: New file.
113309         * lib/sincosl.c: New file.
113310         * lib/sinl.c: New file.
113311         * lib/sqrtl.c: New file.
113312         * lib/tanl.c: New file.
113313         * lib/trigl.c: New file.
113314         * lib/trigl.h: New file.
113316 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113318         * m4/mathl.m4: New file.
113320 2003-02-18  Bruno Haible  <bruno@clisp.org>
113322         * MODULES.html.sh (func_all_modules): Add mathl.
113324 2003-02-17  Bruno Haible  <bruno@clisp.org>
113326         * modules/mkdtemp: New module.
113327         * MODULES.html.sh (func_all_modules): Add it.
113329 2003-02-17  Bruno Haible  <bruno@clisp.org>
113331         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113333 2003-02-17  Bruno Haible  <bruno@clisp.org>
113335         * lib/mkdtemp.h: New file, from GNU gettext.
113336         * lib/mkdtemp.c: New file, from GNU gettext.
113338 2003-02-02  Jim Meyering  <jim@meyering.net>
113340         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113341         e.g. glibc-2.2.93.
113343 2003-01-31  Bruno Haible  <bruno@clisp.org>
113345         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113346         'rpl_rename'.
113347         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113348         'rpl_strnlen'.
113349         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113350         'rpl_strtod'.
113351         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113352         'rpl_utime'.
113354 2003-01-31  Bruno Haible  <bruno@clisp.org>
113356         * lib/rename.c: #undef rename before defining rpl_rename.
113357         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113359 2003-01-30  Bruno Haible  <bruno@clisp.org>
113361         * modules/vasnprintf, modules/vasprintf: New modules.
113362         * MODULES.html.sh (func_all_modules): Add them.
113364 2003-01-30  Bruno Haible  <bruno@clisp.org>
113366         * m4/signed.m4: New file, from GNU gettext.
113367         * m4/longdouble.m4: New file, from GNU gettext.
113368         * m4/wchar_t.m4: New file, from GNU gettext.
113369         * m4/wint_t.m4: New file, from GNU gettext.
113370         * m4/vasnprintf.m4: New file.
113371         * m4/vasprintf.m4: New file.
113373 2003-01-30  Bruno Haible  <bruno@clisp.org>
113375         * lib/printf-args.h: New file, from GNU gettext.
113376         * lib/printf-args.c: New file, from GNU gettext.
113377         * lib/printf-parse.h: New file, from GNU gettext.
113378         * lib/printf-parse.c: New file, from GNU gettext.
113379         * lib/vasnprintf.h: New file, from GNU gettext.
113380         * lib/vasnprintf.c: New file, from GNU gettext.
113381         * lib/asnprintf.c: New file, from GNU gettext.
113382         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113383         * lib/vasprintf.c: New file, from GNU gettext.
113384         * lib/asprintf.c: New file, from GNU gettext.
113386 2003-01-29  Bruno Haible  <bruno@clisp.org>
113388         * modules/stpncpy: New module.
113389         * MODULES.html.sh (func_all_modules): Add it.
113391 2003-01-29  Bruno Haible  <bruno@clisp.org>
113393         * m4/stpncpy.m4: New file.
113395 2003-01-29  Bruno Haible  <bruno@clisp.org>
113397         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113398         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113400 2003-01-28  Bruno Haible  <bruno@clisp.org>
113402         * modules/c-ctype: New module.
113403         * MODULES.html.sh (func_all_modules): Add it.
113405 2003-01-28  Bruno Haible  <bruno@clisp.org>
113407         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113408         Paul Eggert.
113409         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113410         Paul Eggert.
113412 2003-01-27  Bruno Haible  <bruno@clisp.org>
113414         * modules/xsetenv: New module.
113415         * MODULES.html.sh (func_all_modules): Add it.
113417 2003-01-27  Bruno Haible  <bruno@clisp.org>
113419         * lib/xsetenv.h: New file, from GNU gettext.
113420         * lib/xsetenv.c: New file, from GNU gettext.
113422 2003-01-23  Jim Meyering  <jim@meyering.net>
113424         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113425         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113427 2003-01-23  Bruno Haible  <bruno@clisp.org>
113429         * modules/minmax: New module.
113430         * MODULES.html.sh (func_all_modules): Add it.
113432 2003-01-23  Bruno Haible  <bruno@clisp.org>
113434         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113435         Eggert.
113437 2003-01-22  Bruno Haible  <bruno@clisp.org>
113439         * modules/exit: New module.
113440         * MODULES.html.sh (func_all_modules): Add it.
113442 2003-01-22  Bruno Haible  <bruno@clisp.org>
113444         * lib/exit.h: New file, from GNU gettext.
113446 2003-01-19  Bruno Haible  <bruno@clisp.org>
113448         * gnulib-tool: Recognize option --extract-maintainer.
113449         (func_get_maintainer): New function.
113450         * modules/*: Add Maintainer entry.
113452 2003-01-16  Jim Meyering  <jim@meyering.net>
113454         * m4/regex.m4: The `regex' struct is both input and output.
113455         Initialize it before each use.  Patch by Tim Waugh.
113457 2003-01-16  Bruno Haible  <bruno@clisp.org>
113459         * MODULES.html.sh: Add a table of contents. Add the module name as
113460         leftmost column. Add hyperlinks.
113462 2003-01-15  Bruno Haible  <bruno@clisp.org>
113464         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113466 2003-01-15  Bruno Haible  <bruno@clisp.org>
113468         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113469         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113470         suffix.
113472 2003-01-15  Bruno Haible  <bruno@clisp.org>
113474         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113476 2003-01-15  Bruno Haible  <bruno@clisp.org>
113478         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113479         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113481 2003-01-14  Jim Meyering  <jim@meyering.net>
113483         * lib/same.c (same_name): Tweak a comment.
113485 2003-01-14  Bruno Haible  <bruno@clisp.org>
113487         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113488         when a string comparison is sufficient.
113490 2003-01-14  Bruno Haible  <bruno@clisp.org>
113492         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113493         'unsigned int'.
113495 2003-01-14  Bruno Haible  <bruno@clisp.org>
113497         * lib/hash-pjw.c: Add comment about low quality of this function.
113499 2003-01-13  Bruno Haible  <bruno@clisp.org>
113501         * modules/stpcpy: Distribute lib/stpcpy.h.
113502         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113504 2003-01-13  Bruno Haible  <bruno@clisp.org>
113506         * modules/*: Add a description.
113507         * modules/strpbrk: Fix Makefile.am snippet.
113508         * modules/strtoimax: Fix dependencies.
113509         * modules/strtoumax: Likewise.
113511 2003-01-13  Bruno Haible  <bruno@clisp.org>
113513         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113514         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113515         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113517 2003-01-13  Bruno Haible  <bruno@clisp.org>
113519         * gnulib-tool (func_create_testdir): Store config/* files in the main
113520         directory.
113521         * config.rpath: Move to ...
113522         * config/config.rpath: ... here.
113523         * modules/gettext: Contains config/config.rpath, not config.rpath.
113524         * modules/iconv: Likewise.
113526 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113528         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113529         to avoid collisions with libcurses and libreadline.
113531         * m4/getstr.m4: Remove.
113532         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113534 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113536         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113537         to avoid collisions with libcurses and libreadline.
113539         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113540         * lib/getstr.h, getstr.c: Remove.
113541         * lib/getline.c: Include "getline.h", to check interface.
113542         Move body of old getstr.c here: this defines MIN_CHUNK and
113543         declares getdelim2, which is renamed from getstr.
113544         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113546         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113547         All uses changed.
113548         * lib/linebuffer.h: Likewise.
113549         (readline): Remove backward-compatibility macro.
113551 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113553         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113554         to avoid collisions with libcurses and libreadline.
113555         * getstr: Remove.
113556         * MODULES.html.sh: Remove getstr.
113557         * modules/getline: Depend on unlocked-io, not getstr.
113559 2003-01-12  Jim Meyering  <jim@meyering.net>
113561         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113563 2003-01-10  Bruno Haible  <bruno@clisp.org>
113565         * modules/alloca: Change Makefile.am requirements. Simplify Include
113566         requirements. Add lib/alloca_.h to file list.
113568 2003-01-10  Bruno Haible  <bruno@clisp.org>
113570         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113572 2003-01-10  Bruno Haible  <bruno@clisp.org>
113574         * lib/alloca_.h: New file.
113575         * lib/getdate.y: Unconditionally include alloca.h.
113576         * lib/makepath.c: Likewise.
113577         * lib/setenv.c: Likewise.
113578         * lib/userspec.c: Likewise.
113580 2003-01-09  Karl Berry  <karl@gnu.org>
113582         * MODULES.html.sh: include `dirname $0` in PATH, to find
113583         gnulib-tool.
113585 2003-01-09  Bruno Haible  <bruno@clisp.org>
113587         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113588         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113590 2003-01-09  Bruno Haible  <bruno@clisp.org>
113592         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113594 2003-01-09  Bruno Haible  <bruno@clisp.org>
113596         * lib/stdbool.h.in: New file.
113598 2003-01-09  Bruno Haible  <bruno@clisp.org>
113600         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113601         * MODULES.html.sh: Likewise.
113603 2003-01-08  Jim Meyering  <jim@meyering.net>
113605         * lib/full-write.c: Undefine and define-away `const' after inclusion
113606         of errno.h, not before.  Suggestion from Bruno Haible.
113608 2003-01-08  Bruno Haible  <bruno@clisp.org>
113610         * modules/full-read: Depend on full-write.
113612 2003-01-08  Bruno Haible  <bruno@clisp.org>
113614         * lib/safe-read.c: Include specification header first, to ensure its
113615         selfcontainedness.
113616         * lib/full-write.c: Likewise.
113618 2003-01-07  Jim Meyering  <jim@meyering.net>
113620         * lib/full-write.c: Rework so that it may serve to define full_read,
113621         too.
113622         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113624 2003-01-07  Bruno Haible  <bruno@clisp.org>
113626         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113627         <inttypes.h>.
113628         * lib/xstrtol.h: Likewise.
113629         * lib/xstrtoimax.c: Likewise.
113630         * lib/xstrtoumax.c: Likewise.
113631         * lib/human.h: Likewise.
113633         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113634         on systems that have <inttypes.h> but not <stdint.h>.
113636 2003-01-07  Bruno Haible  <bruno@clisp.org>
113638         * MODULES.html.sh: Add copyright notice.
113639         (missed_files): Omit CVS directory entries.
113640         (func_module): Make it work with sed-3.02.
113641         * MODULES.txt: Remove file.
113643 2003-01-06  Jim Meyering  <jim@meyering.net>
113645         * lib/version-etc.c: Update year in translatable copyright string.
113647 2003-01-03  Karl Berry  <karl@gnu.org>
113649         * config/config.{guess,sub}: update from prep.
113651 2003-01-02  Karl Berry  <karl@gnu.org>
113653         * doc/COPYING.DOC: belatedly updated to 1.2.
113655 2003-01-01  Karl Berry  <karl@gnu.org>
113657         * gnulib-tool (func_verify_module): report module name $module in
113658         error message, not $1.
113659         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113660         be created, only if it doesn't exist.
113661         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113663 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113665         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113667 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113669         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113670         memcmp if strcoll doesn't work.
113672 2002-12-31  Bruno Haible  <bruno@clisp.org>
113674         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113675         nonempty.
113677 2002-12-31  Bruno Haible  <bruno@clisp.org>
113679         * lib/memcoll.c (STRCOLL): New macro.
113680         (memcoll): Use it.
113682 2002-12-31  Bruno Haible  <bruno@clisp.org>
113684         * lib/localcharset.h: New file.
113685         * lib/localcharset.c: Include it.
113686         * lib/unicodeio.c: Likewise.
113688 2002-12-31  Bruno Haible  <bruno@clisp.org>
113690         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113691         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113693 2002-12-31  Bruno Haible  <bruno@clisp.org>
113695         * lib/getline.h: Include <stddef.h>, for size_t.
113697         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113698         * lib/unicodeio.c: Don't include <stddef.h>.
113700 2002-12-31  Bruno Haible  <bruno@clisp.org>
113702         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113703         HAVE_TM_ZONE.
113705 2002-12-24  Karl Berry  <karl@gnu.org>
113707         * config/config.guess: update from prep.
113709 2002-12-24  Bruno Haible  <bruno@clisp.org>
113711         General infrasructure.
113712         * m4/README: Rewritten.
113713         * m4/onceonly.m4: New file.
113714         * m4/onceonly_2_57.m4: New file.
113716         Module atexit.
113717         * m4/atexit.m4: New file.
113719         Module strtod.
113720         * m4/strtod.m4: New file.
113722         Module strtol.
113723         * m4/strtol.m4: New file.
113725         Module strtoul.
113726         * m4/strtoul.m4: New file.
113728         Module memchr.
113729         * m4/memchr.m4: New file.
113731         Module memcmp.
113732         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113733         (jm_FUNC_MEMCMP): Invoke it.
113735         Module memcpy.
113736         * m4/memcpy.m4: New file.
113738         Module memmove.
113739         * m4/memmove.m4: New file.
113741         Module memset.
113742         * m4/memset.m4: New file.
113744         Module strcspn.
113745         * m4/strcspn.m4: New file.
113747         Module strpbrk.
113748         * m4/strpbrk.m4: New file.
113750         Module strstr.
113751         * m4/strstr.m4: New file.
113753         Module strerror.
113754         * m4/strerror.m4: New file.
113756         Module mktime.
113757         * m4/mktime.m4: Renamed from jm-mktime.m4.
113758         (gl_PREREQ_MKTIME): New macro.
113759         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113761         Module malloc.
113762         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113763         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113764         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113766         Module realloc.
113767         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113768         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113769         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113771         Module strftime.
113772         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113773         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113774         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113775         gl_TM_GMTOFF.
113776         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113778         Module xalloc.
113779         * m4/xalloc.m4: New file.
113781         Module alloca.
113782         * m4/alloca.m4: New file.
113784         Module putenv.
113785         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113786         (jm_FUNC_PUTENV): Invoke it.
113788         Module setenv.
113789         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113790         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113791         when invoked twice.
113792         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113793         gt_FUNC_SETENV.
113795         Module memrchr.
113796         * m4/memrchr.m4: New file.
113798         Module stpcpy.
113799         * m4/stpcpy.m4: New file.
113801         Module strcase.
113802         * m4/strcase.m4: New file.
113804         Module strdup.
113805         * m4/strdup.m4: New file.
113807         Module strnlen.
113808         * m4/strnlen.m4: New file.
113810         Module strndup.
113811         * m4/strndup.m4: New file.
113813         Module xstrtod.
113814         * m4/xstrtod.m4: New file.
113816         Module xstrtol.
113817         * m4/xstrtol.m4: New file.
113819         Module getdate.
113820         * m4/getdate.m4: New file.
113822         Module unlocked-io.
113823         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113824         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113825         * m4/jm-glibc-io.m4n: Remove file.
113827         Module long-options.
113828         * m4/long-options.m4: New file.
113830         Module md5.
113831         * m4/md5.m4: New file.
113833         Module sha.
113834         * m4/sha.m4: New file.
113836         Module getstr.
113837         * m4/getstr.m4: New file.
113839         Module getline.
113840         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113841         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113842         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113843         simply getline. Infoke gl_PREREQ_GETLINE.
113845         Module obstack.
113846         * m4/obstack.m4: New file.
113848         Module hash.
113849         * m4/hash.m4: New file.
113851         Module readtokens.
113852         * m4/readtokens.m4: New file.
113854         Module strverscmp.
113855         * m4/strverscmp.m4: New file.
113857         Module stdbool.
113858         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113859         OSF/1.
113861         Module strtoll.
113862         * m4/strtoll.m4: New file.
113864         Module strtoull.
113865         * m4/strtoull.m4: New file.
113867         Module strtoimax.
113868         * m4/strtoimax.m4: New file.
113870         Module strtoumax.
113871         * m4/strtoumax.m4: New file.
113873         Module xstrtoimax.
113874         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113875         jm_AC_PREREQ_XSTRTOIMAX.
113876         Moved the strtol prerequisites to strtol.m4.
113877         Moved the strtoll prerequisites to strtoll.m4.
113878         Moved the strtoimax prerequisites to strtoimax.m4.
113880         Module xstrtoumax.
113881         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113882         jm_AC_PREREQ_XSTRTOUMAX.
113883         Moved the strtoul prerequisites to strtoul.m4.
113884         Moved the strtoull prerequisites to strtoull.m4.
113885         Moved the strtoumax prerequisites to strtoumax.m4.
113887         Module chown.
113888         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113889         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113891         Module dup2.
113892         * m4/dup2.m4: New file.
113894         Module ftruncate.
113895         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113896         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113898         Module getgroups.
113899         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113900         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113902         Module gettimeofday.
113903         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113904         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113905         gl_PREREQ_GETTIMEOFDAY.
113907         Module mkdir.
113908         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113909         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113911         Module mkstemp.
113912         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113913         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113914         jm_AC_TYPE_UINTMAX_T.
113915         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113917         Module stat.
113918         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113919         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113921         Module lstat.
113922         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113923         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113925         Module timespec.
113926         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113927         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113928         * m4/st_mtim.m4: Indentation.
113930         Module nanosleep.
113931         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113932         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113933         gl_PREREQ_NANOSLEEP.
113935         Module regex.
113936         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113937         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113938         (gl_REGEX): New macro.
113940         Module rename.
113941         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113942         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113944         Module rmdir.
113945         * m4/rmdir.m4: New file.
113947         Module utime.
113948         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113949         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113950         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113952         Module dirname.
113953         * m4/dirname.m4: New file.
113955         Module getopt.
113956         * m4/getopt.m4: New file.
113958         Module unistd-safer.
113959         * m4/unistd-safer.m4: New file.
113961         Module fnmatch.
113962         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113963         declaration.
113964         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113965         (gl_FUNC_FNMATCH_POSIX): New macro.
113966         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113967         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113968         simply fnmatch.
113970         Module exclude.
113971         * m4/exclude.m4: New file.
113973         Module human.
113974         * m4/human.m4: New file.
113976         Module acl.
113977         * m4/acl.m4: Nop.
113979         Module backupfile.
113980         * m4/backupfile.m4: New file.
113981         * m4/d-ino.m4: Indentation.
113983         Module fsusage.
113984         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113985         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113986         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113988         Module dirfd.
113989         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113990         requirements.
113992         Module euidaccess.
113993         * m4/euidaccess.m4: New file.
113995         Module file-type.
113996         * m4/file-type.m4: New file.
113998         Module fileblocks.
113999         * m4/fileblocks.m4: New file.
114001         Module filemode.
114002         * m4/filemode.m4: New file.
114004         Module isdir.
114005         * m4/isdir.m4: New file.
114007         Module lchown.
114008         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
114009         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
114011         Module makepath.
114012         * m4/makepath.m4: New file.
114014         Module modechange.
114015         * m4/modechange.m4: New file.
114017         Module mountlist.
114018         * m4/mountlist.m4: New file.
114019         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
114020         Indentation.
114022         Module path-concat.
114023         * m4/path-concat.m4: New file.
114025         Module pathmax.
114026         * m4/pathmax.m4: New file.
114028         Module same.
114029         * m4/same.m4: New file.
114031         Module save-cwd.
114032         * m4/save-cwd.m4: New file.
114034         Module savedir.
114035         * m4/savedir.m4: New file.
114037         Module xgetcwd.
114038         * m4/xgetcwd.m4: New file.
114039         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
114041         Module xreadlink.
114042         * m4/xreadlink.m4: New file.
114044         Module safe-read.
114045         * m4/safe-read.m4: New file.
114047         Module safe-write.
114048         * m4/safe-write.m4: New file.
114050         Module closeout.
114051         * m4/closeout.m4: New file.
114053         Module stdio-safer.
114054         * m4/stdio-safer.m4: New file.
114056         Module getpass.
114057         * m4/getpass.m4: New file.
114059         Module getugroups.
114060         * m4/getugroups.m4: New file.
114062         Module group-member.
114063         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
114064         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
114066         Module idcache.
114067         * m4/idcache.m4: New file.
114069         Module userspec.
114070         * m4/userspec.m4: New file.
114072         Module gettime.
114073         * m4/clock_time.m4: New file.
114074         * m4/gettime.m4: New file.
114076         Module settime.
114077         * m4/settime.m4: New file.
114079         Module posixtm.
114080         * m4/posixtm.m4: New file.
114082         Module gethostname.
114083         * m4/gethostname.m4: New file.
114085         Module canon-host.
114086         * m4/canon-host.m4: New file.
114088         Module gettext.
114089         * m4/codeset.m4: New file, from gettext-0.11.5.
114090         * m4/gettext.m4: New file, from gettext-0.11.5.
114091         * m4/glibc21.m4: New file, from gettext-0.11.5.
114092         * m4/iconv.m4: New file, from gettext-0.11.5.
114093         * m4/intdiv0.m4: New file, from gettext-0.11.5.
114094         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
114095         * m4/inttypes.m4: New file, from gettext-0.11.5.
114096         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
114097         * m4/isc-posix.m4: New file, from gettext-0.11.5.
114098         * m4/lcmessage.m4: New file, from gettext-0.11.5.
114099         * m4/lib-ld.m4: New file, from gettext-0.11.5.
114100         * m4/lib-link.m4: New file, from gettext-0.11.5.
114101         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
114102         * m4/progtest.m4: New file, from gettext-0.11.5.
114103         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
114104         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
114105         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
114107         Module localcharset.
114108         * m4/localcharset.m4: New file.
114110         Module hard-locale.
114111         * m4/hard-locale.m4: New file.
114113         Module mbswidth.
114114         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
114115         onceonly macros.
114116         * m4/mbrtowc.m4: Add comment.
114118         Module memcasecmp.
114119         * m4/memcasecmp.m4: New file.
114121         Module memcoll.
114122         * m4/memcoll.m4: New file.
114124         Module unicodeio.
114125         * m4/unicodeio.m4: New file.
114127         Module rpmatch.
114128         * m4/rpmatch.m4: New file.
114130         Module yesno.
114131         * m4/yesno.m4: New file.
114133         Module exitfail.
114134         * m4/exitfail.m4: New file.
114136         Module c-stack.
114137         * m4/c-stack.m4 (gl_C_STACK): New macro.
114138         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
114140         Module error.
114141         * m4/error.m4 (gl_ERROR): New macro.
114142         (jm_PREREQ_ERROR): Use onceonly macros.
114144         Module fatal.
114145         * m4/fatal.m4: New file.
114147         Module getloadavg.
114148         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
114149         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
114151         Module getpagesize.
114152         * m4/getpagesize.m4: New file.
114154         Module getusershell.
114155         * m4/getusershell.m4: New file.
114157         Module physmem.
114158         * m4/physmem.m4: New file.
114160         Module posixver.
114161         * m4/posixver.m4: New file.
114163         Module quotearg.
114164         * m4/quotearg.m4: New file.
114166         Module quote.
114167         * m4/quote.m4: New file.
114169         Module readutmp.
114170         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
114172         Module sig2str.
114173         * m4/sig2str.m4: New file.
114175         Other.
114176         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
114177         ulonglong.m4.
114178         * m4/intmax_t.m4: New file.
114179         * m4/d-type.m4: Indentation.
114180         * m4/jm-macros.m4: Update.
114181         * m4/prereq.m4 (jm_PREREQ): Update.
114182         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
114183         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
114184         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
114185         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
114186         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
114187         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
114188         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
114189         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
114190         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
114191         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
114192         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
114193         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
114194         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
114195         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
114196         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
114197         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
114198         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
114199         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
114200         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
114202 2002-12-24  Bruno Haible  <bruno@clisp.org>
114204         * MODULES.txt: Update according to m4/ changes.
114206         Module gettext.
114207         * config.rpath: New file, from gettext-0.11.5.
114209         * modules/*: New module descriptions.
114210         * gnulib-tool: New file.
114211         * MODULES.html.sh: New file.
114213 2002-12-21  Karl Berry  <karl@gnu.org>
114215         * doc/fdl.texi: update to version 1.2.
114217 2002-12-19  Karl Berry  <karl@gnu.org>
114219         * config/config.guess: update from prep.
114221 2002-12-18  Bruno Haible  <bruno@clisp.org>
114223         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
114224         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
114226 2002-12-17  Bruno Haible  <bruno@clisp.org>
114228         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
114229         stdlib.h, string.h.
114231 2002-12-17  Bruno Haible  <bruno@clisp.org>
114233         * lib/canon-host.c (strdup): Remove unused declaration.
114235         * lib/fsusage.c: Include full_read.h.
114236         (get_fs_usage): Use full_read instead of safe_read.
114238         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
114240 2002-12-12  Karl Berry  <karl@gnu.org>
114242         * config/config.guess: update from prep.
114244 2002-12-11  Bruno Haible  <bruno@clisp.org>
114246         * m4/setenv.m4: New file, from gettext-0.11.5.
114248 2002-12-11  Bruno Haible  <bruno@clisp.org>
114250         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
114251         not unsetenv().
114252         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
114253         modifications:
114255         2002-12-11  Bruno Haible  <bruno@clisp.org>
114257                 * setenv.c (alloca): Fall back to malloc.
114258                 (freea): New macro.
114259                 (setenv): Use freea() to free memory allocated with alloca().
114261         2002-11-13  Bruno Haible  <bruno@clisp.org>
114263                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
114264                 function declarations.
114265                 * unsetenv.c (unsetenv): Likewise.
114267         2002-03-04  Bruno Haible  <bruno@clisp.org>
114269                 Portability to AIX 4.3.3.
114270                 * unsetenv.c: New file, extracted from setenv.c.
114271                 * setenv.c: Move the unsetenv() function to unsetenv.c.
114273         2001-12-20  Bruno Haible  <bruno@clisp.org>
114275                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
114276                 use malloc instead. For SunOS 4.
114278         2001-12-11  Bruno Haible  <bruno@clisp.org>
114280                 * setenv.c: Declare alloca.
114281                 (compar_fn_t): New typedef.
114282                 (KNOWN_VALUE, STORE_VALUE): Use it.
114284         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
114285         setenv.h.
114287 2002-12-10  Paul Eggert  <eggert@twinsun.com>
114289         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
114290         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
114291         Choose values that are less likely to collide with system fnmatch
114292         options.
114293         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
114294         defined (e.g., a pure POSIX system).
114295         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
114296         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
114298 2002-12-06  Paul Eggert  <eggert@twinsun.com>
114300         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
114301         a pain in practice to deal with generated m4 files.  This change
114302         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
114304         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
114305         and jm-glibc-io.m4, as they are no longer a special case.
114306         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
114307         kludge and the auto-generation stuff.  Check only whether the
114308         functions are declared, not whether they exist, since older hosts
114309         that don't declare the functions can't use the optimization anyway.
114311 2002-12-06  Jim Meyering  <jim@meyering.net>
114313         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
114315         Merge in changes from libc's misc/error.c, in preparation
114316         for the merge of gnulib's changes back into libc.
114318         * lib/error.c (_): Define only if not already defined.
114319         Move definition to follow all #include directives.
114320         Include unlocked-io.h only if !_LIBC.
114321         [_LIBC]: Include <libio/libioP.h>.
114322         [USE_IN_LIBIO]: Include <libio/iolibio.h>
114323         (fflush): Tweak definition to use INTUSE.
114324         (putc): Define.
114326 2002-12-05  Paul Eggert  <eggert@twinsun.com>
114328         * lib/alloca.c [defined emacs]: Include "lisp.h".
114329         (xalloc_die) [defined emacs]: New macro.
114330         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114331         [! defined emacs]: Include <xalloc.h>.
114332         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114333         (pointer): Typedef to POINTER_TYPE *.
114334         (malloc): Remove decl; we now always use xmalloc.
114335         (alloca): Use old-style definition, since Emacs needs this.
114336         Check for arithmetic overflow when computing combined size.
114338 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114340         Do not generate unlocked-io.h automatically, since it's easier to
114341         maintain it by hand.
114343         * lib/unlocked-io.h: New file, from GNU diffutils,
114344         but with proper copyright notice and attribution.
114345         * lib/gen-uio: Remove.
114346         * lib/Makefile.am: Add copyright notice.
114347         (libfetish_a_SOURCES): Add unlocked-io.h.
114348         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114349         (DISTCLEANFILES, io_functions): Remove macros.
114350         (EXTRA_DIST): Remove gen_uio.
114351         (unlocked-io.h): Remove rule.
114353 2002-12-04  Jim Meyering  <jim@meyering.net>
114355         Reflect the fact that stat.c and lstat.c are no longer generated.
114356         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114357         (DISTCLEANFILES): Likewise.
114358         (EXTRA_DIST): Likewise.
114359         (all_local): Don't depend on stat.c or lstat.c.
114360         (stat.c, lstat.c): Remove rules.
114361         (EXTRA_DIST): Remove xstat.in.
114363         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114364         * lib/stat.c: New file.  Contents mostly from xstat.in.
114365         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114366         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114368         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114369         too.
114370         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114372 2002-12-03  Jim Meyering  <jim@meyering.net>
114374         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114375         but not semantics, to minimize the differences between these two files.
114376         (safe_read): Change comment to mention SAFE_READ_ERROR.
114378         * lib/safe-read.c (IS_EINTR): Define.
114379         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114381 2002-12-02  Jim Meyering  <jim@meyering.net>
114383         * lib/safe-read.c (EINTR): Define.
114384         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114385         (INT_MAX): Provide fallback.
114386         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114388         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114390 2002-12-02  Bruno Haible  <bruno@clisp.org>
114392         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114393         Define, taken from safe-read.c.
114394         (INT_MAX): Provide fallback.
114395         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114396         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114398         * lib/safe-read.c (EINTR): Remove definition.
114399         (safe_read): Don't use EINTR if it is absent.
114401 2002-12-01  Jim Meyering  <jim@meyering.net>
114403         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114404         zero.
114405         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114407 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114409         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114410         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114411         with `if (! (value < limit)) abort ();', for readability.
114413 2002-11-26  Karl Berry  <karl@gnu.org>
114415         * lib/strdup.c: copy from libc again, with jim's ok.
114416         * lib/.cppi-disable: re-add strdup.c
114418 2002-11-25  Karl Berry  <karl@gnu.org>
114420         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114421         instead of "strtol.c".
114423 2002-11-25  Karl Berry  <karl@gnu.org>
114425         * config/install-sh: update from automake for variable quoting, $0 in
114426         error msgs, etc.
114428         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114429         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114430         entry.
114432 2002-11-25  Jim Meyering  <jim@meyering.net>
114434         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114436 2002-11-24  Karl Berry  <karl@gnu.org>
114438         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114439         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114441 2002-11-24  Jim Meyering  <jim@meyering.net>
114443         Update from coreutils:
114445         * lib/mktime.c: Merge in changes from libc.
114447         Avoid a link-time failure on some Linux systems.
114448         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114449         (otherwise).
114450         (__mon_yday): Declare with the STATIC attribute.
114451         (__mktime_internal): Likewise.
114452         Based on a report from Greg Schafer.
114454 2002-11-23  Jim Meyering  <jim@meyering.net>
114456         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114457         Use `unsigned', not `int', as type of index.
114459         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114461         * lib/fsusage.c: Remove unneeded parentheses around operands of
114462         `defined'.
114464 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114466         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114467         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114468         so that we can be included first.
114469         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114470         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114471         No need to include stddef.h or sys/types.h any more.
114472         Surround local include files with "", not "<>".
114473         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114474         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114475         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114476         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114477         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114478         (ISPRINT): Remove; no longer needed now that we assume C89.
114480         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114481         Preserve errno.
114483         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114484         quotearg_char): Use SIZE_MAX rather than
114485         (size_t) -1 when we are talking about "infinity".
114487         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114489 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114491         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114492         hint that one should use `if (! x) abort ();' rather than `assert
114493         (x);', and anyway it's one less thing to worry about configuring.
114494         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114495         hash_rehash, hash_insert): Use abort rather than assert.
114497 2002-11-22  Bruno Haible  <bruno@clisp.org>
114499         * lib/safe-read.h: Assume C89. Add comments.
114500         (safe_read): Change return type to size_t.
114501         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114502         byte counts > SSIZE_MAX correctly.
114503         * lib/safe-write.h: New file.
114504         * lib/safe-write.c: New file.
114505         * lib/full-read.h: New file.
114506         * lib/full-read.c: New file.
114507         * lib/full-write.h: Assume C89. Add comments.
114508         * lib/full-write.c: Include safe-write.h.
114509         (full_write): Rewritten to use safe_write.
114510         Suggested by Jim Meyering and Paul Eggert.
114512 2002-11-21  Jim Meyering  <jim@meyering.net>
114514         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114516         Merge in changes from the coreutils.
114518         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114519         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114520         <stdint.h>.
114521         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114522         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114523         int.  Work more efficiently if X is the same width as uintmax_t.
114524         Do not compare X to -1, to avoid bogus compiler warning.
114525         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114526         Don't assume that f_frsize and f_bsize are the same type.
114528         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114529         warning on FreeBSD.
114531         * lib/makepath.c (make_path): Restore umask *before* creating the final
114532         component.
114533         (make_path): Minor reformatting.
114535         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114536         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114537         HAVE_MALLOC/HAVE_REALLOC.
114539         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114540         dummy ones.  At least on GNU/Linux systems, `auto' means something
114541         else.
114542         From Michael Stone.
114544 2002-11-21  Bruno Haible  <bruno@clisp.org>
114546         Remove case insensitive option matching.
114547         * lib/argmatch.h (argcasematch): Remove declaration.
114548         (ARGCASEMATCH): Remove macro.
114549         (__xargmatch_internal): Remove case_sensitive argument.
114550         (XARGMATCH): Update.
114551         (XARGCASEMATCH): Remove macro.
114552         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114553         case_sensitive argument.
114554         (argcasematch): Remove function.
114555         (__xargmatch_internal): Remove case_sensitive argument.
114556         (main): Use XARGMATCH instead of XARGCASEMATCH.
114558         * lib/xmalloc.c: Change compile-time error message. Add comment about
114559         required autoconf version.
114561 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114563         Merge argmatch cleanups from Bison.  Assume C89.
114565         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114566         Include stdlib.h, for EXIT_FAILURE.
114567         Always include <string.h>, since we assume C89.
114568         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114569         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114570         Include <stddef.h> instead, since it's all we need for size_t.
114571         (PARAMS): Remove.  All uses removed.
114572         (ARRAY_CARDINALITY): Do not bother to #undef.
114573         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114574         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114575         Remove unnecessary parentheses.
114576         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114577         Insert necessary parentheses.
114578         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114579         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114581 2002-11-19  Bruno Haible  <bruno@clisp.org>
114583         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114584         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114586         * lib/mbswidth.h (PARAMS): Remove macro.
114587         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114588         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114590         * lib/gcd.h (PARAMS): Remove macro.
114591         (gcd): Use ANSI C function declarations.
114592         * lib/gcd.c (gcd): Likewise.
114594 2002-11-15  Bruno Haible  <bruno@clisp.org>
114596         * lib/strcspn.c: Include <stddef.h>.
114597         (strcspn): Use ANSI C function declaration. Change return type to
114598         size_t. Use NULL.
114599         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114600         (strpbrk): Use NULL.
114601         * lib/strpbrk.h (PARAMS): Remove macro.
114602         (strpbrk): Use ANSI C function declaration.
114603         * lib/strstr.c: Don't include <sys/types.h>.
114604         * lib/strstr.h (PARAMS): Remove macro.
114605         (strstr): Use ANSI C function declarations.
114607 2002-11-14  Karl Berry  <karl@gnu.org>
114609         * config/mkinstalldirs: `do' on separate line, instead of
114610         `for var; do'.
114612 2002-11-06  Bruno Haible  <bruno@clisp.org>
114614         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114615         * lib/gcd.c (gcd): Likewise.
114617 2002-11-05  Bruno Haible  <bruno@clisp.org>
114619         * lib/gcd.h: New file, from gettext-0.11.5.
114620         * lib/gcd.c: New file, from gettext-0.11.5.
114622 2002-11-05  Bruno Haible  <bruno@clisp.org>
114624         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114625         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114626         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114627         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114629         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114630         <libintl.h>.
114631         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114632         <libintl.h>.
114634         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114635         * lib/human.c: Include gettext.h instead of <libintl.h>.
114636         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114637         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114638         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114639         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114640         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114641         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114642         (textdomain): Remove definition.
114643         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114645         * lib/long-options.c: Remove include of <libintl.h> and definition of
114646         _.
114647         * lib/same.c: Remove include of <libintl.h> and definition of _.
114649 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114651         * lib/config.charset: A few additions for Solaris.
114653 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114655         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114656         * lib/localcharset.c (locale_charset): Declare as extern "C".
114658 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114660         * lib/config.charset: msdos in uk_UA uses CP1125.
114662 2002-11-04  Bruno Haible  <bruno@clisp.org>
114664         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114665         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114666         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114667         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114668         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114670 2002-11-04  Bruno Haible  <bruno@clisp.org>
114672         * lib/localcharset.c (locale_charset): Don't return an empty string.
114674 2002-11-04  Bruno Haible  <bruno@clisp.org>
114676         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114677         aliases.
114679 2002-11-04  Bruno Haible  <bruno@clisp.org>
114681         * lib/config.charset: Update for newest glibc. Add canonical names
114682         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114684 2002-11-04  Bruno Haible  <bruno@clisp.org>
114686         * lib/config.charset: Add support for NetBSD.
114688 2002-11-04  Bruno Haible  <bruno@clisp.org>
114690         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114692 2002-11-01  Bruno Haible  <bruno@clisp.org>
114694         * configure.in: Add AC_CONFIG_AUX_DIR call.
114695         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114696         test/Makefile.
114697         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114699 2002-09-28  Karl Berry  <karl@gnu.org>
114701         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114702         installed automake until the next release, since changes have been
114703         made.
114705 2002-09-25  Karl Berry  <karl@gnu.org>
114707         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114708         * lib/getopt*: copy from libc/posix.
114709         * lib/gettext.h: copy from gettext.
114710         * lib/.cppi-disable: add strdup.c, gettext.h.
114712 2002-09-25  Karl Berry  <karl@gnu.org>
114714         * config/srclist.txt: enable gettext.h check.
114715         * config/config.{guess,sub}: update from prep.
114716         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114717                 from automake 1.6.3.
114718         See srclist*.
114720 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114722         * regex.c (PATFETCH): Remove the translating fetch.
114723         (PATFETCH_RAW): Rename to PATFETCH.
114724         (set_image_of_range): New fun.
114725         (SET_RANGE_TABLE_WORK_AREA): Use it.
114726         (regex_compile): Don't translate the pattern chars so eagerly.
114727         Only do it when inserting an `exactn' bytecode or when handling
114728         a char-range.
114729         (mutually_exclusive_p): Avoid empty statement.
114731 2002-07-06  Jim Meyering  <meyering@lucent.com>
114733         * m4/README: Don't mention Makefile.am.in.
114734         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114736 2002-07-01  Jim Meyering  <meyering@lucent.com>
114738         * lib/c-stack.c: Include sys/time.h.
114739         From Volker Borchert.
114741 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114743         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114745 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114747         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114748         New macro.  Use it uniformly instead of
114749         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114750         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114751         reported by Vin Shelton.
114753 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114755         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114756         Do not assume SA_SIGINFO behavior.
114757         Bug reported by Jim Meyering on NetBSD 1.5.2.
114759 2002-06-22  Jim Meyering  <meyering@lucent.com>
114761         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114762         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114764         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114765         now that configure.ac uses AC_GNU_SOURCE.
114766         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114767         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114769         Update to latest tools.  Suggestions from Paul Eggert.
114770         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114771         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114772         * m4/fnmatch.m4: Likewise.
114773         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114774         to AC_HEADER_STDBOOL
114776 2002-06-22  Jim Meyering  <meyering@lucent.com>
114778         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114779         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114781 2002-06-22  Jim Meyering  <meyering@lucent.com>
114783         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114785         * lib/exitfail.c, exitfail.h: Likewise.
114786         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114788         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114789         of fnmatch.h.
114790         (EXTRA_DIST): Add fnmatch_loop.c.
114791         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114793         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114794         * lib/fnmatch.c: Update from diffutils-2.8.2.
114795         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114796         * lib/fnmatch.h: Remove file.
114798 2002-06-21  Jim Meyering  <meyering@lucent.com>
114800         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114801         * m4/mbrtowc.m4: Likewise.
114803         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114804         * m4/mbswidth.m4: Reflect name change:
114805         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114806         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114808         * m4/lib-link.m4: Update from gettext-0.11.2.
114809         * m4/gettext.m4: Likewise.
114811         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114812         From Alfred M. Szmidt.
114814 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114816         * lib/file-type.h: Report an error if neither S_ISREG nor
114817         S_IFREG is defined, instead of using a test specific to glibc
114818         2.2.  This should be safe, since POSIX requires S_ISREG and
114819         Unix Version 7 had S_IFREG.  We don't need to check for
114820         <sys/types.h> since we don't use any symbols that it defines.
114822 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114824         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114825         $@-t, so that each temporary file name is unique and valid in the first
114826         8 characters, for operation under DOS.
114828 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114832 2002-06-15  Jim Meyering  <meyering@lucent.com>
114834         Work even with DJGPP 2.03, which lacks support for symlinks.
114835         From Richard Dawe.
114836         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114837         is defined.
114838         * lib/lchown.c (S_ISLNK): Likewise.
114840 2002-06-15  Jim Meyering  <meyering@lucent.com>
114842         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114843         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114844         have been included before this file.
114846 2002-06-14  Jim Meyering  <meyering@lucent.com>
114848         * lib/file-type.h: Use the version from diffutils-2.8.2.
114849         * lib/file-type.c: Likewise.
114851 2002-06-07  Jim Meyering  <meyering@lucent.com>
114853         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114854         They're needed at least for NetBSD 1.5.2.
114855         ($statxfs_includes): Include those same headers.
114856         ($statxfs_includes): Include sys/vfs.h if available.
114857         ($statxfs_includes): Likewise for sys/statvfs.h.
114858         Check for the following members in both structs statfs and statvfs:
114859         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114861 2002-06-01  Jim Meyering  <meyering@lucent.com>
114863         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114864         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114866 2002-05-28  Jim Meyering  <meyering@lucent.com>
114868         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114869         Reported by Volker Borchert.
114871 2002-05-27  Jim Meyering  <meyering@lucent.com>
114873         Fix a problem seen only on nonconforming systems whereby ls.c's
114874         use of localtime, and then of gettimeofday would cause trouble:
114875         the localtime call used to initialize rpl_gettimeofday's save
114876         mechanism would clobber ls's current local time information so
114877         that in any long listing the first file would always be listed
114878         with date 1970-01-01.  Analysis by Volker Borchert.
114880         * lib/gettimeofday.c (localtime): Undefine.
114881         (rpl_localtime): New function.
114883 2002-05-27  Jim Meyering  <meyering@lucent.com>
114885         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114886         localtime.
114888         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114889         use the replacement function; it wouldn't resolve at link time.
114890         Reported by Volker Borchert.
114892 2002-05-22  Jim Meyering  <meyering@lucent.com>
114894         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114895         file-type.h.
114896         * lib/file-type.h: New file.
114897         * lib/file-type.c (file_type): New file/function.  Extracted from
114898         diffutils.
114900 2002-04-30  Jim Meyering  <meyering@lucent.com>
114902         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114904 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114906         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114908 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114910         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114911         Do not check for alloca.h (no longer used) or stdbool.h (was never
114912         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114914 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114916         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114918 2002-04-29  Jim Meyering  <meyering@lucent.com>
114920         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114921         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114922         Use AC_FUNC_STRNLEN here instead.
114924         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114925         With autoconf-2.53a, it's part of AC_PROG_CC.
114927 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114929         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114930         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114932 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114934         * lib/sig2str.h, lib/sig2str.c: New files.
114935         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114937 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114939         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114940         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114941         of 127, since 64 is the largest conceivable number for ancient
114942         nonstandard hosts.
114943         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114945 2002-04-28  Jim Meyering  <meyering@lucent.com>
114947         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114949 2002-04-24  Jim Meyering  <meyering@lucent.com>
114951         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114952         (jm_PREREQ): Use it.
114954         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114955         mach/mach.h fcntl.h.
114956         Check for this function: setlocale.
114958 2002-04-24  Jim Meyering  <meyering@lucent.com>
114960         * lib/gettext.h: New file, from Gettext.
114961         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114962         (libfetish_a_SOURCES): Add gettext.h.
114964 2002-04-16  Jim Meyering  <meyering@lucent.com>
114966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114967         ut_pid, ut_id, ut_exit.
114969 2002-04-16  Jim Meyering  <meyering@lucent.com>
114971         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114972         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114973         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114975 2002-04-12  Jim Meyering  <meyering@lucent.com>
114977         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114978         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114979         existence of the getmntinfo function.  Needed for Darwin 5.3.
114981         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114982         This is necessary at least on Darwin 5.3.
114984         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114985         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114986         strnlen.o in the library, and that makes some versions of ranlib
114987         object.
114989 2002-04-12  Jim Meyering  <meyering@lucent.com>
114991         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114993 2002-04-09  Jim Meyering  <meyering@lucent.com>
114995         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114996         to be more precise.  Rather than saying we're checking whether the
114997         function `works', say what we're testing.
114998         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114999         Reported by Bruno Haible.
115001 2002-03-10  Jim Meyering  <meyering@lucent.com>
115003         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
115004         Suggestion from Santiago Vila.
115006 2002-03-08  Jim Meyering  <meyering@lucent.com>
115008         * lib/rename.c: Mention that this wrapper is needed also on
115009         mips-dec-ultrix4.4 systems.
115011 2002-03-02  Jim Meyering  <meyering@lucent.com>
115013         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
115014         not HAVE_CLOCK_SETTIME.
115016 2002-02-27  Paul Eggert  <eggert@twinsun.com>
115018         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
115019         Check for clock_settime.
115021 2002-02-27  Paul Eggert  <eggert@twinsun.com>
115023         * lib/nanosleep.h: Rename to....
115024         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
115026         * lib/gettime.c: New file.
115027         * lib/settime.c: New file.
115028         * lib/stime.c: Remove.
115030         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
115031         timespec.h.  Remove nanosleep.h.
115033 2002-02-25  Paul Eggert  <eggert@twinsun.com>
115035         * m4/acl.m4: New file.
115036         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
115037         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
115039 2002-02-25  Paul Eggert  <eggert@twinsun.com>
115041         * lib/acl.c, lib/acl.h: New files.
115042         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
115044 2002-02-24  Jim Meyering  <meyering@lucent.com>
115046         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
115047         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
115048         cause trouble.  Reported by Nelson Beebe.
115050 2002-02-23  Paul Eggert  <eggert@twinsun.com>
115052         * lib/path-concat.c (xpath_concat): Reorder code to pacify
115053         compilers that don't know that xalloc_die never returns.
115055 2002-02-20  Jim Meyering  <meyering@lucent.com>
115057         * lib/getdate.c: Regenerate using bison-1.33.
115059 2002-02-17  Jim Meyering  <meyering@lucent.com>
115061         * config/config.guess (main): Don't use `head -1'; it's no longer
115062         portable. Use `sed 1q' instead.
115064 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
115066         * m4/codeset.m4: Upgrade to gettext-0.11.
115067         * m4/gettext.m4: Upgrade to gettext-0.11.
115068         * m4/glibc21.m4: Upgrade to gettext-0.11.
115069         * m4/iconv.m4: Upgrade to gettext-0.11.
115070         * m4/isc-posix.m4: Upgrade to gettext-0.11.
115071         * m4/lcmessage.m4: Upgrade to gettext-0.11.
115072         * m4/lib-ld.m4: New file, from gettext-0.11.
115073         * m4/lib-link.m4: New file, from gettext-0.11.
115074         * m4/lib-prefix.m4: New file, from gettext-0.11.
115075         * m4/progtest.m4: Upgrade to gettext-0.11.
115077 2002-02-15  Paul Eggert  <eggert@twinsun.com>
115079         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
115080         (jm_PREREQ): Use it.
115082 2002-02-15  Paul Eggert  <eggert@twinsun.com>
115084         * lib/posixver.c, lib/posixver.h: New files.
115085         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
115087 2002-02-02  Paul Eggert  <eggert@twinsun.com>
115088             Bruno Haible  <bruno@clisp.org>
115090         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
115091         (fwrite_success_callback): New declaration.
115092         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
115093         print_unicode_char. Call failure callback instead of error.
115094         (fwrite_success_callback): New function.
115095         (exit_failure_callback): New function.
115096         (fallback_failure_callback): New function.
115097         (print_unicode_char): Call unicode_to_mb.
115099 2002-01-26  Jim Meyering  <meyering@lucent.com>
115101         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
115102         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
115104 2002-01-26  Jim Meyering  <meyering@lucent.com>
115106         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
115108 2002-01-22  Paul Eggert  <eggert@twinsun.com>
115110         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
115112 2002-01-22  Jim Meyering  <meyering@lucent.com>
115114         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
115115         Otherwise, some versions of automake would omit the rule that makes
115116         Makefile from Makefile.in.
115118 2002-01-21  Paul Eggert  <eggert@twinsun.com>
115120         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
115121         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
115122         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
115123         (memcoll): Set errno to zero if there is no error.
115125         * lib/quotearg.c (quotearg_buffer_restyled):
115126         Fix bug with quoting buffers containing NUL when backslashing escapes.
115127         This bug was exposed by the other changes in this patch.
115128         (quotearg_n_options): New arg ARGSIZE.
115129         All callers changed.
115130         (quoting_options_from_style): New function.
115131         (quotearg_n_style): Use it.
115132         (quotearg_n_style_mem): New function.
115134         * lib/quotearg.h (quotearg_n_style_mem): New function.
115136 2002-01-19  Jim Meyering  <meyering@lucent.com>
115138         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
115139         Remove useless quotes: DF_PROG="df".
115140         * m4/strnlen.m4: New file.
115142 2002-01-16  Paul Eggert  <eggert@twinsun.com>
115144         * lib/backupfile.c (ISDIGIT): Comment fix.
115145         * lib/getdate.y (ISDIGIT): Likewise.
115146         * lib/posixtm.c (ISDIGIT, year): Likewise.
115147         * lib/strverscmp.c (ISDIGIT): Likewise.
115148         * lib/userspec.c (ISDIGIT): Likewise.
115150 2002-01-16  Jim Meyering  <meyering@lucent.com>
115152         * lib/getdate.y: Add three semicolons, each just before a closing
115153         brace. Bison (as of version 1.31) no longer papers over that mistake.
115155 2002-01-05  Jim Meyering  <meyering@lucent.com>
115157         * lib/version-etc.c (version_etc_copyright): Update copyright year.
115159 2001-12-19  Paul Eggert  <eggert@twinsun.com>
115161         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
115162         not silently exit merely because the output buffer happens to
115163         have nothing pending.
115165 2001-12-18  Paul Eggert  <eggert@twinsun.com>
115167         See the big note in ../ChangeLog.
115168         * lib/human.c (suffixes): Prefer K to k for 1024.
115169         (generate_suffix_backwards): New function.
115170         (human_readable_inexact): Use it.
115171         * lib/xstrtol.c (__xstrtol): If there is no number but there
115172         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
115173         Accept 'K' as well as 'k'.
115175 2001-12-15  Jim Meyering  <meyering@lucent.com>
115177         * lib/regex.h (__restrict_arr): Update from libc.
115179         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
115180         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
115181         (STREQ): Define.
115183 2001-12-14  Jim Meyering  <meyering@lucent.com>
115185         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
115186         Suggestion from Bruno Haible.
115188 2001-12-10  Jim Meyering  <meyering@lucent.com>
115190         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
115191         xrealloc, Instead, include "xalloc.h".
115192         (initbuffer): Don't cast xmalloc return value to char*.
115193         (readline): Reword comment.
115194         Don't cast xrealloc return value to char*
115195         Return NULL, not 0.
115197 2001-12-09  Jim Meyering  <meyering@lucent.com>
115199         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
115200         about `signed and unsigned type in conditional expression'.
115201         * lib/posixtm.c (posix_time_parse): Likewise.
115203         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
115205         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
115206         to avoid a pedantic warning.
115208         * lib/getstr.c: Don't include assert.h.
115209         (getstr): Remove warning-evoking assertions.
115210         Return -1 if offset parameter is out of bounds.
115211         Change the type of a local from int to size_t.
115213         * lib/strftime.c (my_strftime_localtime_r): Include this function
115214         definition in the `#if ! HAVE_TM_GMTOFF' block.
115216         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
115217         Include xalloc.h instead.
115219 2001-12-02  Jim Meyering  <meyering@lucent.com>
115221         * lib/tempname.c: Don't declare getenv, thus reverting the change of
115222         2001-11-18.  It's no longer necessary, now that stdlib.h is always
115223         included.
115225         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
115226         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
115228 2001-11-30  Akim Demaille  <akim@epita.fr>
115230         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
115231         before being defined.
115233 2001-11-27  Paul Eggert  <eggert@twinsun.com>
115235         * lib/quotearg.h (quotearg_n, quotearg_n_style):
115236         First arg is int, not unsigned.
115237         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
115238         (SIZE_MAX, UINT_MAX): New macros.
115239         (quotearg_n_options): Abort if N is negative.
115240         Avoid overflow check on hosts where size_t is 64 bits and int
115241         is 32 bits, as overflow is impossible there.
115242         Fix off-by-one typo that caused unnecessary reallocation.
115244 2001-11-27  Jim Meyering  <meyering@lucent.com>
115246         * lib/tempname.c: Merge with version from libc.
115247         * lib/regex.c: Likewise.
115249         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
115250         systems for which STDC_HEADERS is 0, it was not included, resulting in
115251         a warning about an integer-to-pointer conversion problem with getenv.
115252         Reported by Volker Borchert.
115254 2001-11-26  Jim Meyering  <meyering@lucent.com>
115256         * lib/gtod.h: Remove file.
115257         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
115258         * lib/gettimeofday.c: Don't include gtod.h.
115259         (GTOD_init): Remove function.
115260         (rpl_gettimeofday): Do its job here instead, rather than aborting.
115261         Suggestion from Volker Borchert.
115263 2001-11-23  Jim Meyering  <meyering@lucent.com>
115265         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
115266         it.
115267         * lib/hash.c (struct hash_table): Define it here instead.
115269 2001-11-22  Jim Meyering  <meyering@lucent.com>
115271         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
115273 2001-11-20  Jim Meyering  <meyering@lucent.com>
115275         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
115276         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
115278 2001-11-19  Jim Meyering  <meyering@lucent.com>
115280         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
115281         directory.  Use "conftestXXXXXX" as the template.
115282         Suggestion from Paul Eggert.
115284         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
115285         immediately, so the test doesn't mistakenly hit the max-open-files
115286         limit.
115288 2001-11-18  Paul Eggert  <eggert@twinsun.com>
115290         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
115291         (TEMPORARIES): New macro.
115292         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
115293         removes an artificial limitation (e.g. HP-UX 10.20, where
115294         TMP_MAX is 17576).
115296 2001-11-18  Jim Meyering  <meyering@lucent.com>
115298         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
115300 2001-11-18  Jim Meyering  <meyering@lucent.com>
115302         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
115303         on SunOS 4.
115305         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
115306         files will be created before anything else.
115308 2001-11-17  Paul Eggert  <eggert@twinsun.com>
115310         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
115311         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
115313 2001-11-17  Jim Meyering  <meyering@lucent.com>
115315         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
115316         Prompted by a report from Bob Proulx.
115318         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
115319         Instead, require UTILS_FUNC_MKSTEMP.
115321 2001-11-17  Jim Meyering  <meyering@lucent.com>
115323         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
115324         Now, that's done as part of AC_FUNC_STRTOD.
115326 2001-11-17  Jim Meyering  <meyering@lucent.com>
115328         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
115329         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115330         rather than group writable.  Patch by Juan F. Codagnone.
115332         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115333         xrealloc, Instead, include "xalloc.h".
115335         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115336         Remove explicit declarations of xmalloc, xrealloc,
115337         and xstrdup.  Instead, include "xalloc.h".
115339         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115340         unlocked-io.h.
115341         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115342         Likewise.
115343         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115345         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115346         Reported by Padraig Brady.
115348         * lib/mkstemp.c: #undef mkstemp.
115349         Include config.h.
115350         (rpl_mkstemp): Rename from mkstemp.
115351         Protoize.
115353 2001-11-16  Jim Meyering  <meyering@lucent.com>
115355         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115356         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115357         determine the amount of total physical memory, use pstat_getstatic.
115358         HPUX-11 doesn't define _SC_PHYS_PAGES.
115359         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115360         If sysconf couldn't be used to determine the amount of available
115361         physical memory, use both pstat_getstatic and pstat_getdynamic.
115362         Based on a patch from Bob Proulx.
115364 2001-11-10  Jim Meyering  <meyering@lucent.com>
115366         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115367         (jm_PREREQ): Use it.
115369 2001-11-09  Jim Meyering  <meyering@lucent.com>
115371         * m4/jm-macros.m4: Require autoconf-2.52f.
115372         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115373         Use these AC_-prefixed names, not the AM_-prefixed ones.
115375         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115377 2001-11-05  Jim Meyering  <meyering@lucent.com>
115379         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115381 2001-11-04  Jim Meyering  <meyering@lucent.com>
115383         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115384         $DEFS.
115386 2001-11-03  Jim Meyering  <meyering@lucent.com>
115388         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115389         of AC_DEFUN.
115391         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115392         know the name of the variable in the macro definition.
115394 2001-11-03  Jim Meyering  <meyering@lucent.com>
115396         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115397         in argmatch_to_argument call.
115399         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115400         argument.
115402         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115403         e.g., a fault due to an attempt to free a NULL pointer.
115405 2001-11-01  Jim Meyering  <meyering@lucent.com>
115407         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115408         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115410 2001-11-01  Jim Meyering  <meyering@lucent.com>
115412         * lib/dirfd.c, lib/dirfd.h: New files.
115413         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115415         * lib/hash.c (hash_print) [TESTING]: Clean up.
115417 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115419         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115420         to avoid a warning if -Wall.
115422 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115424         * README: New file
115425         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115426         (per RMS's instructions, this is now the canonical source)
115427         * lgpl/, gpl/: New directories.
115429 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115431         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115433 2001-10-21  Jim Meyering  <meyering@lucent.com>
115435         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115436         this code would end up calling gettext even in packages built
115437         with --disable-nls.
115438         * lib/getopt.c (_): Likewise.
115439         * lib/regex.c (_): Likewise.
115441 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115443         * m4/error.m4 (jm_PREREQ_ERROR):
115444         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115445         AC_FUNC_STRERROR_R does that.
115446         Check for strerror declaration.
115448         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115449         are supposed to have them these days.
115450         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115451         Merge changes from latest Autoconf CVS.
115452         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115453         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115454         POSIX decided to standardize on the int flavor of strerror_r.
115456 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115458         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115459         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115460         Use strerror_r that is only a macro, even if it is not a function.
115461         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115462         (private_strerror): Use prototypes, not old-style function definition.
115463         (print_errno_message): New function.
115464         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115465         char*-flavored one.
115466         (error_tail, error, error_at_line): Use it.
115468 2001-10-11  Jim Meyering  <meyering@lucent.com>
115470         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115471         and quote_n (1, ... to avoid clobbering a buffer.
115473 2001-10-05  Jim Meyering  <meyering@lucent.com>
115475         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115476         hash-pjw.h.
115477         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115478         * lib/hash-pjw.h: New file.
115480 2001-09-30  Jim Meyering  <meyering@lucent.com>
115482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115483         `struct fsstat' has the `f_fstypename' member.
115484         Use that to define FS_TYPE, which is now used to make
115485         the getfsstat link test tighter.
115487 2001-09-30  Jim Meyering  <meyering@lucent.com>
115489         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115490         Include <sys/ucred.h>, for Apple Darwin.
115491         Include sys/mount.h and sys/fs_types.h only if available.
115492         (FS_TYPE): Define.
115493         (read_filesystem_list): Use FS_TYPE.
115495 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115497         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115498         a boolean context.
115500 2001-09-29  Jim Meyering  <meyering@lucent.com>
115502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115503         [one-argument getmntent function]): Include stdio.h before mntent.h.
115504         SunOS 4.1.x needs it for the declaration of `FILE'.
115505         Patch by Volker Borchert.
115507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115508         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115509         sys/fs_types.h, and make the link-test for getfsstat guard #include
115510         directives with appropriate #if HAVE_*_H tests so that we can
115511         detect getfsstat on Apple Darwin1.3.7 systems.
115512         Reported by Nelson Beebe.
115513         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115515 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115517         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115518         #defines strtoimax.  Also treat the other strto* functions
115519         like strtoimax.
115521         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115522         Check for strtoul and strtoumax,
115523         as those declarations are made even in the signed case.
115524         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115525         Likewise, for strtol and strtoimax.
115527 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115529         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115530         #defines strtoimax.  Also treat the other strto* functions
115531         like strtoimax.
115533         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115534         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115535         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115537 2001-09-26  Jim Meyering  <meyering@lucent.com>
115539         Most macros in unlocked-io.h had the wrong number of arguments.
115540         * lib/gen-uio: New script.
115541         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115542         * lib/unlocked-io.hin: Remove file.
115543         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115544         rather than trying to embed it here.
115545         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115546         Reported by Padraig Brady.
115548 2001-09-25  Volker Borchert  <bt@teknon.de>
115550         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115551         `result'.
115553 2001-09-24  Jim Meyering  <meyering@lucent.com>
115555         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115557 2001-09-23  Jim Meyering  <meyering@lucent.com>
115559         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115560         instead of the mere test for existence of mntent.h.  The latter
115561         would get a false-positive on AIX 3.4 systems.
115562         In the outer getmntent if-block, don't die if neither of the getmntent
115563         tests succeeds.  Instead, just fall through and continue with the
115564         remaining tests.
115566 2001-09-23  Jim Meyering  <meyering@lucent.com>
115568         * lib/mountlist.c: Remove useless parentheses in #if directives.
115569         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115570         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115572 2001-09-22  Jim Meyering  <meyering@lucent.com>
115574         * m4/gettext.m4: New file.  From gettext.
115575         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115576         * m4/progtest.m4: Likewise
115577         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115578         * m4/glibc21.m4: Likewise.
115580         * m4/libintl.m4: Remove.  No longer used.
115582 2001-09-22  Jim Meyering  <meyering@lucent.com>
115584         * lib/localcharset.c: Update from latest gettext.
115585         * lib/config.charset: Likewise.
115587 2001-09-20  Jim Meyering  <meyering@lucent.com>
115589         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115590         strtoimax.
115591         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115592         strtoumax.
115594 2001-09-20  Jim Meyering  <meyering@lucent.com>
115596         * lib/xstrtol.c (strtoimax): Guard declaration with
115597         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115598         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115599         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115600         (strtoumax): Likewise, for completeness (it wasn't necessary).
115602 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115604         * lib/strtoimax.c (HAVE_LONG_LONG):
115605         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115606         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115607         to work around bug in IBM C compiler.
115609 2001-09-17  Jim Meyering  <meyering@lucent.com>
115611         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115612         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115613         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115614         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115615         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115616         whenever the right hand side need not be expanded by the shell.
115618 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115620         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115621         library.  It's not correct, as some older glibcs are buggy.
115622         fnmatch wasn't fixed until glibc 2.2.
115624         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115625         special shell magic here.
115627 2001-09-16  Jim Meyering  <meyering@lucent.com>
115629         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115630         * m4/jm-macros.m4: Require it.
115632 2001-09-16  Jim Meyering  <meyering@lucent.com>
115634         * lib/mkdir.c: New file.
115636 2001-09-15  Jim Meyering  <meyering@lucent.com>
115638         * m4/jm-macros.m4: Check for help2man.
115640 2001-09-11  Jim Meyering  <meyering@lucent.com>
115642         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115643         The body, by Paul Eggert, was moved here from configure.in.
115644         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115646 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115648         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115649         (jm_PREREQ): Use it.
115651 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115653         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115654         Use ssize_t, not int, to store result of readlink.
115655         Check for ssize_t overflow as well as size_t overflow,
115656         as POSIX says the result of readlink is implementation-defined
115657         when ssize_t overflows.
115658         Remove unnecessary cast to char*.
115659         Use free+malloc instead of realloc, as the storage doesn't need
115660         to be preserved and it's clearer and can be more efficient that way.
115661         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115662         * lib/xreadlink.h (xreadlink): Update prototype.
115664 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115666         * lib/xgetcwd.c: Revert some of the previous change; intead,
115667         fix the HAVE_GETCWD_NULL code to behave more like the
115668         !HAVE_GETCWD_NULL code used to.
115670         Include "xalloc.h".
115671         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115672         invoke xalloc_die.
115674 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115676         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115677         sys/param.h, as pathmax.h includes them.
115679 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115681         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115682         (jm_PREREQ_XGETCWD): New macro.
115684         * m4/getcwd.m4: New file.
115686 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115688         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115689         like the HAVE_GETCWD_NULL code.
115690         Include pathmax.h if not HAVE_GETCWD.
115691         Do not include xalloc.h.
115692         (INITIAL_BUFFER_SIZE): New symbol.
115693         Do not use xmalloc / xrealloc, since the caller is responsible for
115694         handling errors.  Preserve errno around `free' during failure.
115695         Do not overrun buffer when using getwd.
115697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115699         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115700         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115701         getcwd (NULL, 0).
115703 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115705         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115706         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115707         spotted by Jim Meyering.
115709 2001-09-03  Jim Meyering  <meyering@lucent.com>
115711         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115712         failure.
115714 2001-09-02  Jim Meyering  <meyering@lucent.com>
115716         * lib/error.c: Update from GNU libc.
115718 2001-09-01  Jim Meyering  <meyering@lucent.com>
115720         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115721         Used by df.
115723 2001-09-01  Jim Meyering  <meyering@lucent.com>
115725         * lib/xreadlink.c: New file.
115726         * lib/xreadlink.h: New file.
115727         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115728         xreadlink.h.
115730         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115731         doesn't conflict with sparc Solaris 7's definition in
115732         /usr/include/sys/int_types.h.
115734         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115735         files.
115736         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115737         and strncasecmp as r-values.  Unixware didn't have declarations.
115739 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115741         * lib/xstrtol.h: Add copyright notice.
115742         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115743         LONGINT_INVALID_SUFFIX_CHAR.
115745 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115747         * lib/xstrtol.c (strtoimax): New decl.
115749 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115751         * lib/xgetcwd.c: Don't include pathmax.h.
115752         Include stdlib.h and unistd.h if available.
115753         Include xalloc.h.
115754         (xmalloc, xstrdup, free): Remove decls.
115755         (xgetcwd): Don't assume sizes fit in unsigned.
115756         Check for overflow when computing sizes.
115757         Simplify reallocation code.
115759 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115761         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115762         a directory's st_size can have an arbitrary value, so the old
115763         usage could waste an arbitrary amount of memory.  All uses
115764         changed.
115765         * lib/savedir.h: Update prototype.
115767 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115769         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115771         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115772         old strtoimax.c.
115774         Also, make the following further changes to make this file's
115775         configuration more similar to that of strtol.c:
115776         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115777         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115778         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115779         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115780         changed to signed values.
115782         And make the following changes as well:
115783         Fix copyright notice, as 1999 was missing.
115784         (verify): New macro.
115785         (strtoimax): Check sizes at compile-time, not run-time.
115786         Prefer strtol to strtoll if both work.
115787         (main): Remove; it was not that useful and was a pain to maintain.
115789         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115791 2001-08-31  Jim Meyering  <meyering@lucent.com>
115793         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115794         Use an initial, malloc'd, buffer of length 128 rather than
115795         a statically allocated one of length 1024.
115797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115799         Simplify code, partly by assuming autoconf 2.52 semantics.
115801         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115803         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115804         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115805         All uses removed.
115806         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115807         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115808         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115809         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115810         jm_AC_HEADER_INTTYPES_H.
115811         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115813         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115815         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115816         Quote first arg of AC_DEFUN.
115817         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115818         since they are needed to parse the include file even if we need
115819         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115820         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115821         but with opposite signedness.
115823 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115825         Merge 'exclude' changes from tar 1.13.22.
115826         This fixes one or two unlikely storage allocation overflow bugs,
115827         but doesn't change user-visible behavior otherwise.
115829 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115831         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115832         (jm_PREREQ_EXCLUDE): New macro.
115834 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115836         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115837         tm to be declared.
115839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115841         * lib/hash.c: Remove '2001' from copyright notice.
115843 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115845         * lib/full-write.h: New file.
115846         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115847         * lib/full-write.c: Correct credits, as cccp.c no longer
115848         exists and anyway it was so heavily changed from the old cccp
115849         code as to be unrecognizable.  Include full-write.h.
115850         (full_write): Return size_t, with short writes meaning failure.
115851         All callers changed.  This fixes a bug with large buffers
115852         on 64-bit hosts.
115853         * lib/utime.c: Include full-write.h.
115855 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115857         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115858         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115859         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115860         Include if available.
115861         (<xalloc.h>): Include
115862         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115863         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115864         collide with FNM macros.
115865         (struct patopts): New struct.
115866         (struct exclude): Use it, as exclude patterns now come with options.
115867         (new_exclude): Support above changes.
115868         (new_exclude, add_exclude_file):
115869         Initial size must now be a power of two to simplify overflow checking.
115870         (free_exclude, fnmatch_no_wildcards): New function.
115871         (excluded_filename): No longer requires options arg, as the options
115872         are determined by add_exclude.  Now returns bool, not int.
115873         (excluded_filename, add_exclude):
115874         Add support for the fancy new exclusion options.
115875         (add_exclude, add_exclude_file): Now takes int options arg.
115876         Check for arithmetic overflow when computing sizes.
115877         (add_exclude_file): xrealloc might modify errno, so don't
115878         realloc until after errno might be used.
115880         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115881         New macros.
115882         (free_exclude): New decl.
115883         (add_exclude, add_exclude_file): Now takes int options arg.
115884         (excluded_filename): No longer requires options arg, as the options
115885         are determined by add_exclude.  Now returns bool, not int.
115887 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115889         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115891 2001-08-27  Jim Meyering  <meyering@lucent.com>
115893         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115895         * lib/version-etc.c (N_): Remove definition.
115896         Revert most of last change.
115897         Instead, simply don't mark the `Copyright...' string for translation.
115898         Based on advice from Paul Eggert.
115900         * lib/strtoxmax.c: Tweak comment.
115902 2001-08-26  Jim Meyering  <meyering@lucent.com>
115904         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115906         * m4/xstrtoimax.m4: New file.
115907         * m4/xstrtoumax.m4: Add comments explaining why we
115908         AC_REPLACE_FUNCS(strtol).
115910 2001-08-26  Jim Meyering  <meyering@lucent.com>
115912         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115913         of copyright with `%s' so translators don't get an untranslated
115914         message in 2002.
115915         (COPYRIGHT_YEAR): Define.
115916         (version_etc): Use fprintf rather than fputs.
115917         Suggestion from Ulrich Drepper.
115919         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115921         * lib/strtoll.c: New file, from GNU libc.
115922         * lib/xstrtoimax.c: New file.
115924         * lib/xstrtol.h: Add xstrtoimax.
115925         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115926         * lib/strtoimax.c: New file.  Likewise, but first define
115927         STRTOUXMAX_SIGNED.
115929         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115930         ...
115931         * lib/strtoxmax.c: ... then renamed to this.
115933 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115935         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115936         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115937         (jm_AC_TYPE_INTMAX_T): New macro.
115938         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115940         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115942         * m4/longlong.m4: Renamed from ulonglong.m4.
115943         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115944         * m4/uintmax_t.m4: Removed.
115946 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115948         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115949         Port to Solaris 8, where 'sed' requires a space after the 'r'
115950         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115951         Redirect output to $tmp just once.
115953 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115955         * lib/addext.c (<errno.h>): Include.
115956         (errno): Declare if not defined.
115957         (addext): Work correctly when pathconf returns -1 and leaves
115958         errno alone because there is no limit.  Also, work even if
115959         pathconf returns a value greater than SIZE_MAX.
115961 2001-08-12  Jim Meyering  <meyering@lucent.com>
115963         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115964         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115965         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115966         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115967         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115968         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115969         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115970         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115971         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115972         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115973         utime.m4, utimes.m4, xstrtoumax.m4:
115974         Quote the first argument in each use of AC_DEFUN.
115976 2001-08-12  Jim Meyering  <meyering@lucent.com>
115978         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115979         Simply `return getcwd (NULL, 0);'.
115980         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115981         Use 1300 as initial value for length, not PATH_MAX.
115983         * lib/pathmax.h: Clean up cpp syntax.
115985 2001-08-12  Jim Meyering  <meyering@lucent.com>
115987         * lib/gettimeofday.c: New file.
115988         * lib/gtod.h: New file.
115989         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115991 2001-08-05  Jim Meyering  <meyering@lucent.com>
115993         * m4/jm-macros.m4: Require autoconf-2.52.
115995 2001-08-04  Jim Meyering  <meyering@lucent.com>
115997         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115998         stmt, to get in sync with glibc.
116000 2001-08-03  Paul Eggert  <eggert@twinsun.com>
116002         The following changes are from gettext 0.10.39 as maintained by
116003         Bruno Haible.
116005         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
116006         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
116007         with inverted sense.  All uses changed.
116009         * lib/mbswidth.c: Don't include <limits.h>.
116010         Include <stdlib.h> and <string.h> unconditionally.
116011         (iswcntrl, mbsinit, ISCNTRL): New macros.
116012         (mbsnwidth): Use K&R style function declarations.
116013         Don't bother checking for MB_LEN_MAX == 1, since the compiler
116014         can optimize it when MB_CUR_MAX == 1.
116015         The width of control characters is zero, not 1.
116017 2001-08-03  Paul Eggert  <eggert@twinsun.com>
116019         The following changes are from gettext 0.10.39 as maintained by
116020         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
116022         * m4/codeset.m4: Upgrade to serial AM1.
116023         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
116024         all uses changed.  Quote first arg of AC_DEFUN.
116025         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
116027         * m4/iconv.m4: Upgrade to serial AM2.
116028         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
116029         Add --with-libconv-prefix.
116030         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
116031         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
116032         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
116033         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
116034         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
116036         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
116037         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
116038         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
116039         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
116040         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
116041         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
116042         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
116043         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
116044         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116046         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
116047         string.h any more.
116049         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
116050         not the default value.
116052         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
116053         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
116054         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
116055         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
116056         Also check for iswcntrl, used for wcwidth fallback.
116057         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
116058         to Autoconf 2.13.
116060 2001-08-03  Jim Meyering  <meyering@lucent.com>
116062         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
116063         as it was in the original.  Reported by Paul Eggert.
116065 2001-07-16  Jim Meyering  <meyering@lucent.com>
116067         * m4/gettimeofday.m4: New file.
116068         Prompted by a report from Bernhard Baehr.
116070 2001-07-15  Jim Meyering  <meyering@lucent.com>
116072         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
116073         stuff. Now it's in ../Makefile.cfg.
116075 2001-07-15  Jim Meyering  <meyering@lucent.com>
116077         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
116078         (BUILT_SOURCES): Add unlocked-io.h.
116079         (io_functions): Define.
116080         (unlocked-io.h): New rule.
116081         (DISTCLEANFILES): Add unlocked-io.h.
116082         (all-local): Depend on unlocked-io.h, to ensure it is created.
116084         * lib/unlocked-io.hin: New file
116086         * lib/regex.c: Update from glibc.
116088 2001-07-05  Jim Meyering  <meyering@lucent.com>
116090         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
116091         recommendation.
116092         (libfetish_a_SOURCES): Put all .h files here instead.
116093         Remove a thus-exposed (better checks in automake) duplicate and
116094         two unnecessary .h files.
116096 2001-07-04  Jim Meyering  <meyering@lucent.com>
116098         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
116099         that generates jm-glibc-io.m4 so that it doesn't trigger any make
116100         distcheck failure.
116102 2001-07-02  Jim Meyering  <meyering@lucent.com>
116104         The following changes were prompted by suggestions from Bruno Haible.
116106         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
116107         is now generated.
116108         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
116109         definition of EXTRA_DIST.
116110         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
116111         ensure that the generated file is created/updated whenever the list
116112         of $(unlocked_functions) is changed.
116113         (jm-glibc-io.m4): New rule.
116114         (unlocked-io.h): New rule -- currently unused.
116116 2001-06-24  Jim Meyering  <meyering@lucent.com>
116118         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
116119         unmatched right bracket, rather than kludging it with an extra,
116120         falsely-matching quote in a comment.  Patch by Akim Demaille.
116122 2001-06-11  Jim Meyering  <meyering@lucent.com>
116124         * lib/regex.c: Update from GNU libc.
116126 2001-05-27  Jim Meyering  <meyering@lucent.com>
116128         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
116129         Check for ut_type in struct utmp.
116131 2001-05-27  Jim Meyering  <meyering@lucent.com>
116133         * lib/readutmp.h (UT_TYPE): Define.
116135 2001-05-24  Jim Meyering  <meyering@lucent.com>
116137         * lib/argmatch.c: Include "quote.h".
116138         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
116139         quote function.  Reported by Göran Uddeborg.
116141 2001-05-22  Jim Meyering  <meyering@lucent.com>
116143         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
116144         now that we use the package-supplied version unconditionally.
116145         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
116147 2001-05-21  Jim Meyering  <meyering@lucent.com>
116149         * m4/regex.m4: Change a couple backticks to single quotes to avoid
116150         shell syntax errors.
116152 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116154         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
116156 2001-05-20  Paul Eggert  <eggert@twinsun.com>
116158         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
116159         Don't bother to check library strftime, since
116160         we'll be using our own my_strftime function anyway.
116161         Define my_strftime instead of strftime.
116163 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
116165         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
116166         which is not yet declared.
116168 2001-05-15  Jim Meyering  <meyering@lucent.com>
116170         * m4/regex.m4: Use proper quoting so brackets appear in the test
116171         program.
116172         Reported by, and with help from, Bruno Haible.
116174 2001-05-13  Jim Meyering  <meyering@lucent.com>
116176         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
116177         undefined.
116179 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116181         dirname code cleanup.  base_name now behaves more compatibly
116182         with POSIX basename when given file names that have trailing
116183         slashes, and similarly for dir_name.  Add new primitives
116184         base_len and dir_len.  Put the directory-name-related decls
116185         into dirname.h.
116187         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
116188         * lib/backupfile.c (base_name): Likewise.
116189         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
116190         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
116191         * lib/makepath.c (strip_trailing_slashes): Likewise.
116192         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
116193         ISSLASH): Likewise.
116194         * lib/rename.c (strip_trailing_slashes): Likewise.
116195         * lib/same.c (base_name): Likewise.
116196         * lib/stripslash.c (ISSLASH): Likewise.
116198         * lib/addext.c: Include <dirname.h> after size_t is defined.
116199         * lib/backupfile.c: Likewise.
116201         * lib/addext.c (addext): Use base_len to trim redundant
116202         trailing slashes instead of doing it ourselves.
116203         But do not trim the last slash if it is not redundant.
116205         * lib/backupfile.c (find_backup_file_name,
116206         max_backup_version): Use base_len instead of rolling it ourselves.
116207         Handle the case of "" and (on DOS) "C:" correctly.
116209         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
116210         needed. Include <string.h>, <dirname.h>.
116211         (base_name): Allow file names ending in slashes, other than names
116212         that are all slashes.  In this case, return the basename followed
116213         by the slashes.  This is more general, and can be used in places
116214         where the original base_name purposely had an assertion failure.
116215         (base_len): New function.
116217         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
116218         Do not include <assert.h>; no longer needed.
116219         Include xalloc.h.
116220         (memrchr): Remove decl.
116221         (dir_name_r): Remove.
116222         (dir_len): Renamed from dirlen.  All callers changed.
116223         Rewrite in terms of base_name, for simplicity and consistency.
116224         (dir_name): Never return NULL.  All callers changed.
116225         Do not include <stdlib.h> in test program; no longer needed.
116226         return 0; is fine for test program.
116228         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
116229         New macros.
116230         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
116232         * lib/path-concat.c (path_concat): Use base_len to compute
116233         base length, not strlen; this means we cannot rely on memcpy
116234         to null-terminate.
116236         * lib/same.c (STREQ): Remove.
116237         (same_name): Handle the case where the basename ends in trailing '/'.
116239         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
116240         a slash was stripped.  Do not strip the last slash after a
116241         file system prefix.
116243 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116245         * lib/Makefile.am (libfetish_a_SOURCES):
116246         Add strftime.c, since we now compile it on all hosts.
116248         * lib/strftime.c (my_strftime):
116249         Define to nstrftime if emacs, but only if my_strftime is not defined.
116250         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
116251         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
116252         Add one more extra argument: a nanoseconds value.
116253         All uses changed.
116254         (ns): New macro.
116255         (my_strftime function): Add %N format.
116256         (emacs_strftimeu): Renamed from emacs_strftime,
116257         with extra ut argument.
116259 2001-05-09  Paul Eggert  <eggert@twinsun.com>
116261         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
116263 2001-04-21  Jim Meyering  <meyering@lucent.com>
116265         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
116266         doesn't interfere.
116268 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116270         * m4/ftruncate.m4: Check for chsize.
116271         Link with ftruncate.o unconditionally if ftruncate is missing.
116272         This was required when cross-compiling to i586-mingw32msvc.
116274 2001-04-08  Jim Meyering  <meyering@lucent.com>
116276         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
116277         recomputed; that's necessary when the offset spans a DST transition.
116278         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
116280 2001-04-02  Jim Meyering  <meyering@lucent.com>
116282         * lib/regex.h, regex.c: Update from GNU libc.
116284 2001-03-24  Jim Meyering  <meyering@lucent.com>
116286         * m4/jm-macros.m4: Require autoconf-2.49d.
116288 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
116290         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
116292 2001-03-19  Paul Eggert  <eggert@twinsun.com>
116294         * lib/version-etc.c (version_etc_copyright): Update to 2001.
116296 2001-03-17  Jim Meyering  <meyering@lucent.com>
116298         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
116299         now that the version in autoconf is equivalent.
116300         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
116302         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
116303         Suggestion from Akim Demaille.
116305         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
116306         (jm_PREREQ_TEMPNAME): New function.
116308 2001-03-16  Paul Eggert  <eggert@twinsun.com>
116310         * lib/tempname.c (uint64_t): Define to uintmax_t if
116311         not defined, and if UINT64_MAX is not defined.
116312         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
116313         Reported by John David Anglin.
116315 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
116317         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
116318         resolve alias if codeset is empty.
116319         * lib/config.charset (BeOS): Use wildcard syntax.
116321 2001-03-13  Jim Meyering  <meyering@lucent.com>
116323         * lib/path-concat.c (path_concat)
116324         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
116325         concatenating e.g., `C:' and `foo'.
116326         From Bruno Haible.
116328 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116330         * lib/localcharset.c (locale_charset): Don't use
116331         setlocale(LC_CTYPE,NULL). Don't return NULL.
116332         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116334 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116336         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116337         support for DOS/DJGPP.
116339 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116341         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116342         lacks mkstemp.  Compile our own tempname.c if we compile our own
116343         mkstemp.c, as mkstemp relies on tempname.
116345 2001-03-01  Jim Meyering  <meyering@lucent.com>
116347         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116348         AH_VERBATIM really does output its argument verbatim.
116350 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116352         * lib/Makefile.am (libfetish_a_SOURCES):
116353         Add dup-safer.c, fopen-safer.c.
116354         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116356         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116357         * lib/unistd-safer.h: New files.
116359 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116361         The mkstemp replacement is taken from glibc 2.2.2, with some
116362         portability fixes for use outside glibc, as follows:
116364         * lib/tempname.c (struct_stat64): New macro.
116365         (direxists, __gen_tempname): Use it.
116366         This avoids a portability problem with Solaris 8.
116368         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116369         (<stddef.h>, <stdint.h>, <string.h>):
116370         Include only if STDC_HEADERS || _LIBC.
116371         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116372         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116373         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116374         (__set_errno): Define this macro if <errno.h> doesn't.
116375         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116376         Define these macros if <stdio.h> doesn't.
116377         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116378         Define these macros if <sys/stat.h>
116379         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116380         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116381         __xstat64): Define if not _LIBC.
116382         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116383         (__gen_tempname): Invoke gettimeofday only if
116384         HAVE_GETTIMEOFDAY || _LIBC;
116385         otherwise, fall back on plain "time".
116386         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116388         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116390         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116392 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116394         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116396 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116398         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116399         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116400         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116401         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116403 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116405         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116406         Remove workaround macros for hosts that have mbrtowc but not
116407         mbstate_t, as we now insist on proper declarations for both
116408         before using mbrtowc.
116410 2001-02-17  Jim Meyering  <meyering@lucent.com>
116412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116413         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116414         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116415         UnixWare 7.1.1.
116417         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116418         rather than AC_CACHE_VAL.
116420 2001-02-17  Jim Meyering  <meyering@lucent.com>
116422         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116423         around included file name.
116425         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116427         * lib/strftime.c: Update from GNU libc (the only changes were to
116428         comments).
116430 2001-02-17  Jim Meyering  <meyering@lucent.com>
116432         * lib/regex.c: Update from libc.
116434 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116436         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116437         clash.
116439 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116441         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116442         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116443         Reported by Mark Hounschell via Paul Eggert.
116445 2001-02-07  Jim Meyering  <meyering@lucent.com>
116447         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116449 2001-02-05  Jim Meyering  <meyering@lucent.com>
116451         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116452         it includes the patch required for `large file' support with at least
116453         HP-UX's 10.20 /bin/cc.
116455 2001-02-03  Jim Meyering  <meyering@lucent.com>
116457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116458         AS_IF, now that it works once again (mysteriously).
116459         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116461 2001-01-30  Jim Meyering  <meyering@lucent.com>
116463         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116464         * m4/chown.m4: Rename conftestchown to conftest.chown.
116465         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116466         s/conftestdir2/conftest.d2/.
116467         * m4/utimes.m4: s/conftestdata/conftest.data/
116468         Inspired by Pavel Roskin's change in autoconf.
116470 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116472         * lib/config.charset: Update for FreeBSD 4.2.
116474 2001-01-27  Jim Meyering  <meyering@lucent.com>
116476         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116477         a use of AS_IF.
116478         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116480 2001-01-26  Jim Meyering  <meyering@lucent.com>
116482         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116483         quotearg.c includes it.
116485 2001-01-26  Jim Meyering  <meyering@lucent.com>
116487         * lib/quotearg.c: Include stddef.h.
116488         * lib/quote.c: Include stddef.h.
116489         Reported by Axel Kittenberger.
116491         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116492         line in double quotes so that it evokes a better diagnostic.
116493         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116494         Reported by Axel Kittenberger.
116496 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116498         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116499         as if it was a `charset'.
116501 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116503         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116504         has const.
116506 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116508         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116509         to avoid a warning.  Add back 'const' to inptr.
116511 2001-01-20  Jim Meyering  <meyering@lucent.com>
116513         Be sure that headers are checked before used in code compiled
116514         for the type checks.
116515         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116516         In place of that, invoke jm_CHECK_ALL_TYPES.
116517         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116518         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116519         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116520         The check for ssize_t was mistakenly run before the test for unistd.h.
116522         The configure-time check for stdbool.h was missing.
116523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116524         (jm_PREREQ_HASH): New function.
116526 2001-01-17  Jim Meyering  <meyering@lucent.com>
116528         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116529         for autoconf-2.49c.
116530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116532 2001-01-16  Jim Meyering  <meyering@lucent.com>
116534         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116535         From Bruno Haible.
116537 2001-01-14  Jim Meyering  <meyering@lucent.com>
116539         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116540         foo and bar.  Create conftestdir/ in the script, not in the C code.
116541         Remove directories in the script, not in the C code.
116542         Remove conftestdir{,2} before trying to create the directory.
116543         Make the entire configure script fail if the mkdir fails.
116545 2001-01-14  Jim Meyering  <meyering@lucent.com>
116547         * lib/rename.c: New file.  From Volker Borchert.
116548         Include stdlib.h, string.h or strings.h, and xalloc.h.
116549         Use strip_trailing_slashes rather than open-coding it.
116551 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116553         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116555 2001-01-03  Jim Meyering  <meyering@lucent.com>
116557         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116558         of local `inptr' to avoid warning with some system declarations of
116559         iconv.
116561 2001-01-02  Volker Borchert  <bt@teknon.de>
116563         * m4/rename.m4: New file.
116564         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116566 2001-01-01  Jim Meyering  <meyering@lucent.com>
116568         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116569         even on systems with utmpx.h.  It's necessary for the declaration of
116570         utmp's ut_user member.  Reported by Andreas Jaeger.
116572         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116573         available. They are required for the declarations of getgrgid and
116574         getpwuid resp.
116575         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116576         Reported by Andreas Jaeger.
116578 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116580         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116581         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116582         so `make install' also works in VPATH builds.
116584 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116586         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116587         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116588         can be used in subdirectories.
116590 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116592         * lib/modechange.c: Do not assume that mode_t uses the
116593         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116594         the other-execute bit of FOO even if S_IXOTH != 1.
116596         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116597         WOTH, XOTH, ALLM): New macros.
116598         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116599          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116600         Use them.
116601         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116602         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116603         (mode_compile):
116604         No need to use uintmax_t; unsigned long is long enough.
116605         Don't bother to get suffix since we don't use it.
116607 2000-12-26  Jim Meyering  <meyering@lucent.com>
116609         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116610         better with autoheader.
116612 2000-12-24  Jim Meyering  <meyering@lucent.com>
116614         * lib/hash.c (is_prime): Return explicit boolean values.
116615         (hash_get_first): Return NULL to appease Irix5.6's 89.
116616         Reported by Nelson Beebe.
116618 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116620         * lib/localcharset.c (locale_charset): Add support for Win32.
116622 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116624         * lib/physmem.h, lib/physmem.c: New files.
116626         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116627         (noinst_HEADERS): Add physmem.h.
116629         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116630         't' for compatibility with Solaris 8 sort.
116632 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116634         * lib/config.charset: Add support for BeOS.
116636 2000-12-17  Jim Meyering  <meyering@lucent.com>
116638         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116639         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116641 2000-12-16  Jim Meyering  <meyering@lucent.com>
116643         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116644         N and M) would have treated it like `chown N:N FILE'.
116646         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116648 2000-12-16  Jim Meyering  <meyering@lucent.com>
116650         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116651         SHELLS_FILE to a file name that's useful on djgpp systems.
116652         Include stdlib.h.
116653         (ADDITIONAL_DEFAULT_SHELLS): Define.
116654         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116655         Based mostly on a patch from Prashant TR.
116657 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116659         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116660         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116661         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116663 2000-12-08  Andreas Schwab  <schwab@suse.de>
116665         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116666         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116668 2000-12-07  Jim Meyering  <meyering@lucent.com>
116670         * lib/stripslash.c (ISSLASH): Define.
116671         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116672         `/'.
116673         From Prashant TR.
116675         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116676         (dir_name_r): Declare this function as static.
116677         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116678         manifest itself on a name containing a mix of slashes and
116679         backslashes.
116680         Make this function work with names starting with a DOS-style
116681         drive letter and colon prefix.
116682         (dir_name): Append `.' if necessary.
116683         Based mostly on patches from Prashant TR and Eli Zaretskii.
116685         * lib/dirname.h (dir_name_r): Remove prototype.
116687 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116689         * m4/off_t-format.m4: Remove this file.
116690         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116692 2000-12-06  Jim Meyering  <meyering@lucent.com>
116694         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116695         replacement strtoull, we may well need the replacement strtoul, too.
116696         Check for declarations of strtoul and strtoull.
116697         Check for strtol.  Mainly as a cue to cause automake to include
116698         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116699         Check for limits.h -- strtol.c needs it.
116701 2000-12-05  Jim Meyering  <meyering@lucent.com>
116703         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116705 2000-12-04  Jim Meyering  <meyering@lucent.com>
116707         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116708         Also include memory.h, stdlib.h, unistd.h if appropriate.
116709         Reported by Andreas Jaeger (conflicting declaration of malloc).
116711 2000-12-02  Jim Meyering  <meyering@lucent.com>
116713         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116714         * m4/jm-macros.m4 (jm_MACROS): require it.
116716 2000-12-02  Jim Meyering  <meyering@lucent.com>
116718         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116720 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116722         * lib/memrchr.c: Include <config.h> before any system include file.
116724 2000-11-30  Jim Meyering  <meyering@lucent.com>
116726         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116728 2000-11-30  Jim Meyering  <meyering@lucent.com>
116730         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116732 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116734         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116736 2000-11-26  Jim Meyering  <meyering@lucent.com>
116738         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116740 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116742         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116743         size of (size_t) -1; it's not portable.
116745 2000-11-17  Jim Meyering  <meyering@lucent.com>
116747         * lib/strstr.c: Update from GNU libc.
116749 2000-11-17  Akim Demaille  <akim@epita.fr>
116751         * lib/obstack.h: Formatting changes.
116752         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116753         prevent type checking.
116754         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116755         cast the value to (void *): assigning a `foo *' to a `void *'
116756         variable is valid.
116757         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116759 2000-11-16  Jim Meyering  <meyering@lucent.com>
116761         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116763 2000-11-11  Jim Meyering  <meyering@lucent.com>
116765         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116767 2000-11-10  Jim Meyering  <meyering@lucent.com>
116769         * lib/obstack.h: Update from GNU libc.
116770         * lib/obstack.c: Likewise.
116772 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116774         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116776 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116778         * lib/getusershell.c (setusershell): Use rewind rather than
116779         fseek/fseeko, to avoid configuration hassles with fseeko.
116780         Don't bother opening SHELLS_FILE if shellstream is NULL;
116781         it's not necessary.
116783 2000-11-05  Jim Meyering  <meyering@lucent.com>
116785         * lib/makepath.h (make_dir): Declare.
116786         * lib/makepath.c (make_dir): Remove `static' attribute.
116787         Tweak a comment.
116789 2000-11-04  Jim Meyering  <meyering@lucent.com>
116791         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116793 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116795         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116796         last one in a bucket, advance to the next bucket.
116798 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116800         * lib/fnmatch.c: Do not comment out all the code if we are using
116801         the GNU C library, because in some cases we are replacing buggy
116802         code in the GNU C library itself.
116804 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116806         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116807         (regex_compile): Catch bogus \(\1\).
116809 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116811         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116812         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116813         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116815 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116817         * lib/error.h, getline.h, modechange.h:
116818         Remove "2000" from Copyright line, as the file hasn't been
116819         changed this year other than in the copyright notice.
116821         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116822         was changed this year.
116824 2000-10-29  Jim Meyering  <meyering@lucent.com>
116826         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116827         renaming.
116828         * m4/ls-mntd-fs.m4: Likewise
116830 2000-10-29  Jim Meyering  <meyering@lucent.com>
116832         * lib/xstat.in: Fix grammar in comment.
116834 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116836         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116837         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116838         doesn't define __restrict_arr.
116840 2000-10-28  Jim Meyering  <meyering@lucent.com>
116842         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116843         (jm_PREREQ_MEMCHR): New function.
116845 2000-10-28  Jim Meyering  <meyering@lucent.com>
116847         * lib/memchr.c: Update from libc.
116848         Adjust for portability:
116849         [HAVE_STDLIB_H]: Include stdlib.h.
116850         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116851         Undef __memchr, too.
116852         [!weak_alias]: Define __memchr to memchr.
116854         * lib/regex.c: Update from libc.
116855         * lib/regex.h: Likewise.
116856         * lib/getopt1.c: Likewise.
116857         * lib/memcmp.c: Likewise.
116859         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116860         Avoid using fseek, when possible -- it's broken by design.
116861         Patch by Ulrich Drepper.
116863 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116865         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116866         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116867         Giving in to popular pressure to shut up the compiler with casts.
116869 2000-10-26  Jim Meyering  <meyering@lucent.com>
116871         * lib/strftime.c: Update from libc.
116873 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116875         * regex.c: More `unsigned char' -> `re_char' changes.
116876         Also change several `int' into `re_wchar_t'.
116877         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116878         (PUSH_FAILURE_POINTER): Don't cast any more.
116879         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116880         We want GCC to complain, since this piece of code makes
116881         re_match non-reentrant, which *should* be fixed.
116882         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116883         (EXTEND_BUFFER): Use RETALLOC.
116884         (SET_LIST_BIT): Don't cast.
116885         (re_wchar_t): New type.
116886         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116887         that those two functions will always properly return.
116888         (IMMEDIATE_QUIT_CHECK): Cast to void.
116889         (analyse_first): Use recursion rather than an explicit stack.
116890         (re_compile_fastmap): Can't fail anymore.
116891         (re_search_2): Don't check re_compile_fastmap for failure.
116892         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116893         Now also sets the new value (passed in a new argument).
116894         (re_match_2_internal): Use it.
116895         Also, use a new var `reg' of type size_t when looping through regs
116896         rather than reuse the inappropriate `mcnt'.
116898 2000-10-25  Jim Meyering  <meyering@lucent.com>
116900         * lib/obstack.c: Update from libc.
116902 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116904         * regex.c (regex_compile): Change the way of handling a range from
116905         a char less than 256 to a char not less than 256.
116907 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116909         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116910         NT-Emacs only.
116911         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116912         so that re_search functions only quit when callers expect them to.
116914 2000-10-23  Jim Meyering  <meyering@lucent.com>
116916         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116917         wrong.  That set_locale call must not have any side effects.
116918         From Paul Eggert.
116920 2000-10-22  Jim Meyering  <meyering@lucent.com>
116922         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116923         [CYCLIC]: Remove now-unused definition.
116925         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116926         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116927         Suggestion from Ulrich Drepper.
116929 2000-10-21  Jim Meyering  <meyering@lucent.com>
116931         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116932         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116933         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116935 2000-10-21  Jim Meyering  <meyering@lucent.com>
116937         * lib/dirname.c (memrchr): Declare if necessary.
116938         (dir_name): Remove the restriction that there be no
116939         trailing slashes.  Now, this code skips past them, effectively
116940         ignoring them.
116941         [TEST_DIRNAME] (main): New unit tests.
116943         * lib/memrchr.c: New file from GNU libc.
116944         Undef __memrchr, too.
116945         [!weak_alias]: Define __memrchr to memrchr.
116946         Guard weak_alias use with `#ifdef weak_alias'.
116948 2000-10-21  Jim Meyering  <meyering@lucent.com>
116950         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116951         (dir_name): Use dir_name_r.
116952         * lib/dirname.h (dir_name_r): Declare it.
116954 2000-10-17  Jim Meyering  <meyering@lucent.com>
116956         * lib/quote.h (PARAMS): Define and use.
116957         Reported by Akim Demaille.
116959         * lib/getopt.c: Update from libc.
116961 2000-10-16  Jim Meyering  <meyering@lucent.com>
116963         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116964         setlocale.
116965         From Jan Fedak.
116967 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116969         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116971 2000-09-25  Jim Meyering  <meyering@lucent.com>
116973         * lib/md5.h (rol): Define (from GnuPG).
116975         * lib/sha.c: Give credit (GnuPG) where due.
116976         (M): Use rol rather than open-coding it.
116977         Add a FIXME comment.
116979 2000-09-21  Jim Meyering  <meyering@lucent.com>
116981         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116982         Reported by Michael Stone.
116984 2000-09-20  Jim Meyering  <meyering@lucent.com>
116986         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116987         (noinst_HEADERS): Add sha.h.
116988         Based on code from Scott G. Miller and from GnuPG.
116990 2000-09-18  Jim Meyering  <meyering@lucent.com>
116992         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116993         LIBS. Otherwise, everyone ends up linking with -lelf for some
116994         configurations.
116995         Reported by Mike Stone.
116997 2000-09-15  Jim Meyering  <meyering@lucent.com>
116999         * lib/regex.c: Update from libc.
117001 2000-09-10  Jim Meyering  <meyering@lucent.com>
117003         * lib/getopt.c (_getopt_internal): Update from glibc.
117005 2000-09-09  Jim Meyering  <meyering@lucent.com>
117007         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
117008         think it should be used as a general replacement for isascii.
117009         * lib/fnmatch.c: Likewise.
117010         * lib/mbswidth.c: Likewise
117011         * lib/regex.c: Likewise.
117013         Don't use atoi.
117014         * lib/userspec.c: Include sys/param.h and limits.h.
117015         Include xstrtol.h.
117016         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
117017         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
117018         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
117019         UID, GID.  Check range.
117021 2000-09-06  Jim Meyering  <meyering@lucent.com>
117023         * lib/getopt.c (_getopt_internal): Update from glibc.
117025 2000-08-30  Jim Meyering  <meyering@lucent.com>
117027         * lib/strftime.c: Merge in changes from GNU libc.
117029 2000-08-26  Jim Meyering  <meyering@lucent.com>
117031         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
117032         * m4/fpending.m4: New file.
117034 2000-08-26  Jim Meyering  <meyering@lucent.com>
117036         * lib/closeout.c: Include "__fpending.h".
117037         (close_stdout_status): Return right away if there's nothing to flush.
117039         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
117040         * lib/__fpending.c: New file.
117041         * lib/__fpending.h: New file.
117043 2000-08-20  Jim Meyering  <meyering@lucent.com>
117045         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
117046         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
117047         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
117049 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
117051         Improve fileutils installation on systems where running
117052         programs (like install) can't be unlinked.
117053         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
117054         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
117056 2000-08-07  Paul Eggert  <eggert@twinsun.com>
117058         Standardize on "memory exhausted" instead of "Memory exhausted"
117059         or "virtual memory exhausted".
117060         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
117061         "virtual memory exhausted".
117062         * lib/same.c (same_name): Invoke xalloc_die instead of printing
117063         our own message.
117064         * lib/userspec.c (parse_user_spec): Likewise.
117065         * lib/bumpalloc.h: comment fix
117066         * lib/same.c, userspec.c: Include xalloc.h.
117068         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
117069         not char *const and pointing to a constant array.
117070         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
117071         (xrealloc): Comment fix.
117073         * lib/userspec.c (parse_user_spec):
117074         Don't translate a message until just before returning,
117075         to avoid unnecessary translation.
117077 2000-08-07  Jim Meyering  <meyering@lucent.com>
117079         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
117080         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
117081         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
117082         getgroups.c, gethostname.c, getopt.h, group-member.c,
117083         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
117084         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
117085         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
117086         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
117087         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
117088         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
117089         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
117090         yesno.c: Back out Copyright date changes for each file with no change
117091         this year.  This eases coordination with other programs using the same
117092         source code modules.  From Paul Eggert.
117094 2000-08-06  Paul Eggert  <eggert@twinsun.com>
117096         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
117097         not char, for compatibility with glibc 2.1.3 strftime.c.
117099 2000-08-03  Greg McGary  <greg@mcgary.org>
117101         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
117102         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
117103         (EXTEND_BUFFER): Use them.
117105 2000-08-01  Jim Meyering  <meyering@lucent.com>
117107         * lib/dirname.c (ISSLASH): Define.
117108         (BACKSLASH_IS_PATH_SEPARATOR): Define.
117109         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
117110         both `\' and `/' may be use as path separators.
117111         Based on a patch from Prashant TR.
117113 2000-07-31  Paul Eggert  <eggert@twinsun.com>
117115         * lib/quotearg.c (quotearg_n_options): Don't make the initial
117116         slot vector a constant, since it might get modified.
117118 2000-07-31  Jim Meyering  <meyering@lucent.com>
117120         * lib/xmalloc.c: Use `virtual memory exhausted', not
117121         `Memory exhausted'.
117122         * lib/obstack.c (print_and_abort): Likewise.
117124 2000-07-30  Paul Eggert  <eggert@twinsun.com>
117126         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
117127         buffer, so that the caller can always quote one small
117128         component of a "memory exhausted" message in slot 0.
117129         From a suggestion by Jim Meyering.
117131 2000-07-30  Jim Meyering  <meyering@lucent.com>
117133         * lib/makepath.c (make_path): Quote the other instance, too.
117135         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
117136         (STATIC_BUF_SIZE): Define.
117137         (quotearg_n_options): Use only statically allocated storage when
117138         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
117139         than STATIC_BUF_SIZE.
117141 2000-07-29  Jim Meyering  <meyering@lucent.com>
117143         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
117144         * lib/dirname.c (dir_name): Likewise.
117146         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
117147         `/'.
117149         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
117150         (dir_name): Assert that there are no trailing slashes.
117152 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
117154         * lib/mbswidth.h (mbswidth): Add a flags argument.
117155         (mbswidth): New declaration.
117156         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
117157         * lib/mbswidth.c (mbswidth): Add a flags argument.
117158         (mbsnwidth): New function.
117160 2000-07-24  Jim Meyering  <meyering@lucent.com>
117162         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
117164 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117166         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
117168 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117170         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
117171         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
117172         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
117173         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
117174         invoke multibyte primitives.
117176 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117178         * lib/quotearg.c:
117179         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
117180         so that mbstate_t is always defined.
117182         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
117183         be 1 in at least one GCC installation, and this configuration
117184         error is likely to be common.  Ignoring MB_LEN_MAX hurts
117185         performance on hosts that have mbrtowc but have only unibyte
117186         locales, but I assume these hosts are rare.
117188 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117190         * lib/mbswidth.c (_XOPEN_SOURCE):
117191         Don't define; this causes problems on Solaris 7.
117192         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
117194 2000-07-23  Jim Meyering  <meyering@lucent.com>
117196         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
117197         too: getgrgid, getpwuid, getuid.
117199 2000-07-23  Jim Meyering  <meyering@lucent.com>
117201         * lib/basename.c (base_name): Add an assertion.
117203 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
117205         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
117206         shadow its mbsinit function.
117208 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117210         * lib/mbswidth.h: New file.
117211         * lib/mbswidth.c: New file.
117212         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
117213         (noinst_HEADERS): Add mbswidth.h.
117215 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117217         * lib/config.charset: Add support for FreeBSD. Improve support for
117218         HP-UX and IRIX 6.
117220 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
117222         * m4/mbswidth.m4: New file.
117223         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
117225 2000-07-15  Jim Meyering  <meyering@lucent.com>
117227         * lib/makepath.c: Include quote.h.
117228         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
117229         corresponding argument in a `quote (...)' call.
117230         Give better diagnostics.
117232         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
117233         (noinst_HEADERS): Add quote.h.
117235         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
117236         from tar's src/misc.c.
117237         * lib/quote.h: New file.  Prototypes for same.
117239 2000-07-14  Paul Eggert  <eggert@twinsun.com>
117241         From a suggestion by Bruno Haible.
117242         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
117243         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
117244         to decide whether to define the BeOS workaround macro;
117245         this adjusts to the change to AC_MBSTATE_T.
117247 2000-07-14  Jim Meyering  <meyering@lucent.com>
117249         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
117250         jm_AC_TYPE_UINTMAX_T.
117252 2000-07-13  Paul Eggert  <eggert@twinsun.com>
117254         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
117256         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
117257         quotearg_buffer_restyled): Add support for
117258         clocale_quoting_style.  Undo previous change to
117259         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
117260         and "{RIGHT QUOTATION MARK}" msgids.
117262 2000-07-10  Paul Eggert  <eggert@twinsun.com>
117264         From a suggestion by Bruno Haible.
117265         * m4/mbstate_t.m4 (AC_MBSTATE_T):
117266         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
117267         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
117268         and mbstate_t, to a single-part test that simply defines mbstate_t.
117269         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
117270         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
117272 2000-07-10  Jim Meyering  <meyering@lucent.com>
117274         * m4/strerror_r.m4: Mirror the correction made in autoconf.
117276         * m4/gnu-source.m4: Output to confdefs.h directly.
117277         Suggestion from Akim Demaille.
117279 2000-07-09  Paul Eggert  <eggert@twinsun.com>
117281         The old behavior of quoting `like this' doesn't look good with
117282         newer, ISO-style fonts.  See:
117283         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
117285         Instead, quote "like this" by default.  Let the translator
117286         tailor the locale-specific quoting behavior by providing
117287         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
117289         * lib/quotearg.c (N_): New macro.
117290         (gettext_default): New function.
117291         (quotearg_buffer_restyled): Use
117292         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
117293         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
117295 2000-07-09  Jim Meyering  <meyering@lucent.com>
117297         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
117298         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
117300         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
117301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
117303 2000-07-09  Jim Meyering  <meyering@lucent.com>
117305         * lib/Most files: Update copyright dates to include 2000.
117307 2000-07-08  Jim Meyering  <meyering@lucent.com>
117309         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
117310         if not defined.
117311         (xgethostname): Remove now-unnecessary #ifdef.
117312         Move declaration of `err' into loop where it's used.
117314 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117315         and Bruno Haible  <haible@clisp.cons.org>
117317         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
117318         only if the test for an object-type mbstate_t fails.  This
117319         prevents us from mistakenly reporting that mbstate_t is a
117320         system object type after we "#define mbstate_t int" to work
117321         around its lack.
117323 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117324         and Bruno Haible  <haible@clisp.cons.org>
117326         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
117328 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117330         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117331         to strerror_r.
117332         Include <ctype.h> for use of isalpha.
117334 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117336         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117337         by allocating a larger buffer. Test the gethostname return value for
117338         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117339         returns an error and ENAMETOOLONG isn't defined.
117341 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117343         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117344         dimension.
117346 2000-07-04  Jim Meyering  <meyering@lucent.com>
117348         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117349         of the deprecated AC_CHECKING.
117351 2000-07-04  Jim Meyering  <meyering@lucent.com>
117353         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117354         Reported by Bruno Haible.
117356 2000-07-04  Jim Meyering  <meyering@lucent.com>
117358         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117359         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117360         lacks mbrtowc.
117362 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117364         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117365         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117367 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117368         and Bruno Haible  <haible@clisp.cons.org>
117370         * lib/quotearg.c (mbrtowc):
117371         Assign to *pwc, and return 1 only if result is nonzero.
117372         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117374 2000-07-03  Jim Meyering  <meyering@lucent.com>
117376         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117378 2000-07-03  Jim Meyering  <meyering@lucent.com>
117380         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117381         This is necessary to get a definition of e.g., UTMP_FILE on
117382         HP-UX 10.20.
117383         From Bob Proulx.
117385 2000-07-02  Jim Meyering  <meyering@lucent.com>
117387         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117389         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117390         AC_LIBOBJ(function_name).
117391         * m4/chown.m4: Likewise.
117392         * m4/fnmatch.m4: Likewise.
117393         * m4/ftruncate.m4: Likewise.
117394         * m4/getgroups.m4: Likewise.
117395         * m4/getline.m4: Likewise.
117396         * m4/group-member.m4: Likewise.
117397         * m4/jm-macros.m4: Likewise.
117398         * m4/lstat.m4: Likewise.
117399         * m4/malloc.m4: Likewise.
117400         * m4/memcmp.m4: Likewise.
117401         * m4/nanosleep.m4: Likewise.
117402         * m4/putenv.m4: Likewise.
117403         * m4/realloc.m4: Likewise.
117404         * m4/regex.m4: Likewise.
117405         * m4/stat.m4: Likewise.
117406         * m4/strftime.m4: Likewise.
117408 2000-07-02  Jim Meyering  <meyering@lucent.com>
117410         * lib/quotearg.c (mbstate_t): Don't define here.
117412 2000-07-02  Jim Meyering  <meyering@lucent.com>
117414         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117416 2000-07-01  Jim Meyering  <meyering@lucent.com>
117418         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117420 2000-07-01  Jim Meyering  <meyering@lucent.com>
117422         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117423         problem.
117425 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117428         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117430 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117432         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117433         per change in ../m4/ls-mntd-fs.m4.
117434         (read_filesystem_list): Ignore symbolic links.
117436 2000-06-29  Jim Meyering  <meyering@lucent.com>
117438         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117439         for declaration of strcmp.
117441         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117443         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117444         Avoid warning by casting result to `char *' to remove `const'.
117446 2000-06-28  Jim Meyering  <meyering@lucent.com>
117448         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117449         included by quotearg.c, for which we perform this test.  From
117450         Bruno Haible.
117452 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117454         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117455         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117456         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117458 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117460         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117462 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117464         savedir now sets errno on failure and invokes xmalloc to get memory.
117465         Fix a couple of other minor bugs while we're at it.
117467         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117468         (NAMLEN): Remove macro.
117469         (malloc, realloc): Remove decls.
117470         (stpcpy): Likewise.
117471         ("xalloc.h"): Include.
117472         (NAME_SIZE_DEFAULT): New macro.
117473         (savedir): Use xmalloc / xrealloc to allocate memory.
117474         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117475         Skip "" directory entries.
117476         Use strlen to calculate directory entry length, since the old method
117477         is rarely used these days and isn't worth supporting.
117478         Don't use a pointer after freeing it.
117479         Check for integer overflow when calculating allocation size.
117480         Use memcpy to copy entries, instead of stpcpy.
117481         Set errno properly when returning NULL.
117482         Check for readdir error.
117484 2000-06-26  Jim Meyering  <meyering@lucent.com>
117486         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117488 2000-06-25  Jim Meyering  <meyering@lucent.com>
117490         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117491         Linux header bug when _XOPEN_SOURCE is defined to 500.
117493 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117495         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117496         deficiency.
117498 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117500         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117501         Include xalloc.h.
117502         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117504 2000-06-24  Jim Meyering  <meyering@lucent.com>
117506         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117507         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117508         for which strerror does return char*, but which lacks a conveniently
117509         accessible declaration of the function.  If the compile-test says
117510         strerror_r doesn't work, then resort to a `run'-test that works on
117511         BeOS and segfaults on DEC Unix.
117513 2000-06-24  Jim Meyering  <meyering@lucent.com>
117515         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117517 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117519         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117522 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117524         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117525         (mbrtowc, mbstate_t): Define substitutes if
117526         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117527         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117528         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117530 2000-06-23  Jim Meyering  <meyering@lucent.com>
117532         * m4/afs.m4: Add missing AC_MSG_RESULT.
117533         Reported by Bruno Haible.
117535         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117536         Suggestion from Bruno Haible.
117538 2000-06-23  Jim Meyering  <meyering@lucent.com>
117540         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117542 2000-06-21  Jim Meyering  <meyering@lucent.com>
117544         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117546 2000-06-21  Jim Meyering  <meyering@lucent.com>
117548         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117549         (noinst_HEADERS): Add getstr.h.
117551         * lib/getline.c (getstr): Move into a separate file.
117552         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117553         the following changes: new parameter, delim2; both delim[12]
117554         parameters have type `int', not `char'.  The latter would lose
117555         with 8-bit delimiters.
117556         * lib/getstr.h: New file.
117558 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117560         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117561         than 1024, return a memory chunk of least possible size, instead
117562         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117563         Use free/xmalloc instead of xrealloc to avoid copying for very long
117564         paths.
117566 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117568         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117569         the empty string.
117571 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117573         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117574         address, not strdup.  Include <stdlib.h> and don't declare free().
117576 2000-06-19  Jim Meyering  <meyering@lucent.com>
117578         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117580 2000-06-18  Jim Meyering  <meyering@lucent.com>
117582         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117584         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117585         `checking whether...' message to be consistent with that of the
117586         lstat test.
117588 2000-06-18  Jim Meyering  <meyering@lucent.com>
117590         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117591         Besides, these days every porting target provides a mkdir function.
117593         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117594         needed. (this snippet comes from src/system.h).
117596 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117598         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117600 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117602         * lib/human.c (adjust_value): New function.
117603         (human_readable_inexact): Apply rounding style even when
117604         printing approximate values.
117606 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117608         * lib/human.c (human_readable_inexact): Allow an input block
117609         size that is not a multiple of the output block size, and vice versa.
117610         Reported by Piergiorgio Sartor.
117612 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117614         * lib/getdate.y (get_date): Apply relative times after time
117615         zone indicator, not before.  Reported by Todd A. Jacobs.
117617 2000-06-13  Jim Meyering  <meyering@lucent.com>
117619         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117621         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117623 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117625         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117627 2000-06-12  Jim Meyering  <meyering@lucent.com>
117629         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117630         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117631         optional argument.
117632         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117633         the optional argument, `lib'.
117635 2000-06-08  Jim Meyering  <meyering@lucent.com>
117637         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117639 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117641         Rewrite largefile configuration so that we don't need to run
117642         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117643         AC_CANONICAL_HOST in configure.in -- jmm]
117645         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117646         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117647         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117648         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117649         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117650         All uses changed.
117651         Instead of inspecting the output of getconf, try to compile the
117652         test program without and with the macro definition.
117653         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117654         for getconf.  Instead, check for the needed flags by compiling
117655         test programs.
117657 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117659         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117661 2000-06-04  Jim Meyering  <meyering@lucent.com>
117663         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117664         SunOS 4.1.4 for which gid_t is an unsigned type.
117666 2000-06-03  Jim Meyering  <meyering@lucent.com>
117668         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117669         now that autoconf requires that.
117671         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117672         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117673         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117675 2000-06-03  Jim Meyering  <meyering@lucent.com>
117677         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117679 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117681         * m4/glibc21.m4: New file.
117682         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117684 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117686         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117687         newer, don't install charset.alias.
117688         * lib/config.charset: Change the Linux/glibc rules so they become empty
117689         on glibc-2.1 or newer.
117691 2000-06-02  Jim Meyering  <meyering@lucent.com>
117693         * lib/mountlist.c: Back out last change.  Instead, do this...
117694         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117695         me_dummy member using the same `ignore'-testing code.
117696         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117697         fs_type strings.
117698         From Mark D. Roth.
117700 2000-05-29  Jim Meyering  <meyering@lucent.com>
117702         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117703         mounts with the `ignore' attribute.  Based on a patch from
117704         Mark D. Roth.
117706 2000-05-28  Jim Meyering  <meyering@lucent.com>
117708         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117709         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117710         * m4/stat.m4: Likewise.
117711         * m4/lstat.m4: Likewise.
117712         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117714         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117715         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117717 2000-05-26  Jim Meyering  <meyering@lucent.com>
117719         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117721 2000-05-24  Jim Meyering  <meyering@lucent.com>
117723         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117724         autoconf requires that.
117725         * m4/lib-check.m4: Likewise.
117726         * m4/jm-macros.m4: Likewise.
117727         * m4/strftime.m4: Likewise.
117729         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117730         AC_CHECK_DECLS, now that autoconf requires that.
117732 2000-05-22  Jim Meyering  <meyering@lucent.com>
117734         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117735         * m4/lstat.m4: Likewise.
117737 2000-05-22  Jim Meyering  <meyering@lucent.com>
117739         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117741 2000-05-20  Jim Meyering  <meyering@lucent.com>
117743         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117744         (jm_PREREQ): Use it.
117746 2000-05-18  Jim Meyering  <meyering@lucent.com>
117748         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117749         back, too, since it may have been modified by allocate_entry.
117750         (hash_delete): Rewrite to use neither the assignment operator
117751         nor the comma operator in an if-expression.
117753 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117755         * lib/closeout.c:
117756         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117757         Remove; no longer needed.
117758         "quotearg.h": Add include.
117759         (file_name): Do not bother to explicitly initialize to NULL; it's less
117760         efficient on some hosts.
117761         (close_stdout_status): Remove test as to whether stdout was already
117762         closed; it breaks for the case "echo x | sort >&-".
117763         Quote file name colons.
117764         Do not assume that _("write error") lacks format strings.
117766 2000-05-15  Jim Meyering  <meyering@lucent.com>
117768         * lib/version-etc.c (version_etc_copyright): Update the copyright
117769         string used in all --version output.
117771 2000-05-14  Jim Meyering  <meyering@lucent.com>
117773         * lib/closeout.c (close_stdout_set_file_name): New function.
117774         (close_stdout_status): Use new file-scoped global.
117775         Return right away if fstat says the stdout file descriptor is invalid.
117776         * lib/closeout.h (close_stdout_set_file_name): Declare.
117778 2000-05-10  Jim Meyering  <meyering@lucent.com>
117780         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117781         (close_stdout_set_status): New function.
117782         * lib/closeout.h (close_stdout_set_status): Declare.
117784 2000-05-09  Jim Meyering  <meyering@lucent.com>
117786         * m4/gettext.m4: Rename this...
117787         * m4/libintl.m4: ...to this.
117789 2000-05-08  Jim Meyering  <meyering@lucent.com>
117791         * lib/long-options.c: Don't include closeout.h.
117792         (parse_long_options): Don't call close_stdout for --version.
117794 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117796         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117797         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117798         2.1.3 bug.  This avoids a clash when files like regex.c define
117799         _GNU_SOURCE.
117801 2000-05-06  Jim Meyering  <meyering@lucent.com>
117803         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117804         (AC_REPLACE_FUNCS): Add strnlen.
117806         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117807         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117810         AC_SEARCH_LIBS call for nanosleep.
117811         (LIB_NANOSLEEP): Set and AC_SUBST.
117813 2000-05-06  Jim Meyering  <meyering@lucent.com>
117815         * lib/strnlen.c: Undefine __strnlen and strnlen.
117816         [!weak_alias]: Define __strnlen to strnlen.
117818         * lib/atexit.c: New file, from libiberty.
117820 2000-05-06  Jim Meyering  <meyering@lucent.com>
117822         * lib/closeout.c (close_stdout_status): Also check for errors on the
117823         stderr stream.
117825 2000-05-05  Jim Meyering  <meyering@lucent.com>
117827         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117828         AC_SEARCH_LIBS call for clock_gettime.
117829         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117831         * m4/search-libs.m4: Update from autoconf.
117833         su doesn't work on Solaris 2.6.
117834         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117835         <shadow.h>.  Reported by Dragos Harabor.
117837 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117839         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117840         memcpy instead of xmalloc, xrealloc, path_concat.
117841         (locale_charset): Treat empty environment variables as absent.
117842         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117844 2000-05-04  Jim Meyering  <meyering@lucent.com>
117846         * lib/getopt.c: Update from glibc.
117847         * lib/obstack.c: Likewise.
117848         * lib/obstack.h: Likewise.
117849         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117850         file
117852         * lib/regex.h: Likewise.
117853         * lib/strndup.c: Likewise.
117854         * lib/strnlen.c: New file, from glibc.
117856 2000-05-03  Jim Meyering  <meyering@lucent.com>
117858         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117860 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117862         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117863         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117864         compile-time test, rather than inspecting host and OS, to
117865         decide whether to define _LARGEFILE_SOURCE.
117867 2000-05-01  Jim Meyering  <meyering@lucent.com>
117869         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117871         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117872         Based on a patch from Bruno Haible.
117874 2000-05-01  Jim Meyering  <meyering@lucent.com>
117876         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117878 2000-04-29  Jim Meyering  <meyering@lucent.com>
117880         * lib/path-concat.c: Declare strdup only if it's not defined.
117881         * lib/canon-host.c: Likewise.
117883 2000-04-28  Jim Meyering  <meyering@lucent.com>
117885         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117886         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117887         is included first, then limits.h is included by locale.h by libintl.h.
117888         From John David Anglin.
117890 2000-04-25  Jim Meyering  <meyering@lucent.com>
117892         * lib/makepath.c (S_IRWXUGO): Define.
117893         (make_path): Always perform explicit chmod if MODE specifies any
117894         of the `special' permission bits.  Prompted by a bug report against
117895         install from Mate Wierdl and Joost van Baal.
117897 2000-04-18  Jim Meyering  <meyering@lucent.com>
117899         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117900         (jm_PREREQ): Use it.
117902 2000-04-18  Jim Meyering  <meyering@lucent.com>
117904         * lib/README: New file.
117906         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117907         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117909 2000-04-17  Jim Meyering  <meyering@lucent.com>
117911         Get it right :-)
117912         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117913         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117914         Suggestion from Akim Demaille.
117916 2000-04-17  Jim Meyering  <meyering@lucent.com>
117918         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117919         the definition of it to rpl_strftime also defined-away the system's
117920         declaration.
117922 2000-04-15  Jim Meyering  <meyering@lucent.com>
117924         Use `C' to denote so-called `contiguous' files, the same way
117925         that tar does.
117926         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117927         (ftypelet): Use S_ISCTG.
117928         From Michael Deutschmann.
117930 2000-04-14  Jim Meyering  <meyering@lucent.com>
117932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117933         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117934         clobbered.
117936 2000-04-14  Jim Meyering  <meyering@lucent.com>
117938         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117940 2000-04-13  Jim Meyering  <meyering@lucent.com>
117942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117943         AH_VERBATIM to insert required #ifndef into config.h.in.
117944         Suggestion from Akim Demaille.
117946 2000-04-12  Jim Meyering  <meyering@lucent.com>
117948         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117949         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117950         Christian Krackowizer.
117952         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117953         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117954         (AC_SYS_LARGEFILE): Require.
117955         (AM_C_PROTOTYPES): Require.
117957 2000-04-08  Jim Meyering  <meyering@lucent.com>
117959         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117960         names don't conflict.  Reported by Eli Zaretskii.
117962 2000-04-07  Jim Meyering  <meyering@lucent.com>
117964         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117965         sys/types.h, to work around system header problems on AIX 3.2.5.
117966         From Bruno Haible.
117968 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117970         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117971         bug.  Deal with the different error behavior of Irix iconv.
117973 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117975         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117976         IRIX if the installer said otherwise.
117978 2000-04-05  Jim Meyering  <meyering@lucent.com>
117980         Portability tweaks required for ultrix4.3.
117981         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117982         (jm_CHECK_DECLS): Add getutent to the list of functions.
117983         (_jm_DECL_HEADERS): Add utmpx.h.
117984         From John David Anglin.
117986         * m4/strftime.m4: Back out the 2000-04-02 change.
117987         Instead of that change, simply undefine putenv in the test program.
117989 2000-04-05  Jim Meyering  <meyering@lucent.com>
117991         Portability tweaks required for ultrix4.3.
117992         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117993         getutent.
117994         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117995         * lib/canon-host.c: Declare strdup.
117996         * lib/path-concat.c: Likewise.
117997         From John David Anglin.
117999 2000-04-04  Jim Meyering  <meyering@lucent.com>
118001         Be more DOS 8.3-friendly.
118002         * lib/ref-add.sin: Renamed from ref-add.sed.in.
118003         * lib/ref-del.sin: Renamed from ref-del.sed.in.
118004         * lib/Makefile.am: Reflect renaming.
118005         Reported by Eli Zaretskii.
118007         Use a temporary file name that won't clash with `charset.alias'
118008         in the DOS 8.3 name space.
118009         * lib/Makefile.am (charset_tmp): Define.
118010         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
118011         (uninstall-local): Likewise.
118012         Reported by Eli Zaretskii.
118014 2000-04-03  Jim Meyering  <meyering@lucent.com>
118016         * m4/gettext.m4: Fix typo in comment.
118018         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
118019         textutils/configure.in).  Suggestion from Paul Eggert.
118020         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
118022 2000-04-02  Paul Eggert  <eggert@twinsun.com>
118024         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
118025         variable in the shell rather than using putenv, which isn't
118026         portable.  This avoids the configure-time inter-test dependency
118027         on the potentially-renamed putenv function.
118029 2000-03-30  Paul Eggert  <eggert@twinsun.com>
118031         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
118032         before checking struct stat.st_blksize, so that
118033         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
118035 2000-03-29  Paul Eggert  <eggert@twinsun.com>
118037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
118038         since strftime.c uses HAVE_STRFTIME to decide whether to use
118039         the underlying strftime.
118041 2000-03-29  Paul Eggert  <eggert@twinsun.com>
118043         * lib/time/strftime.c (my_strftime): Make sure we call the system
118044         strftime, not ourselves, when invoking the underlying strftime.
118046 2000-03-24  Jim Meyering  <meyering@lucent.com>
118048         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
118049         (charset_alias): Define.
118050         (install-exec-local): Factor out common code.
118051         (uninstall-local): Split lines longer than 80.
118052         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
118053         (SUFFIXES): Define.
118054         (.sed.in.sed): New rule.  Don't redirect directly to $@.
118055         (CLEANFILES): Add ref-add.sed and ref-del.sed.
118057 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
118059         * lib/config.charset: Output a line containing "Packages using this
118060         file".
118061         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
118062         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
118063         ref-del.sed): New rules.
118065 2000-03-17  Jim Meyering  <meyering@lucent.com>
118067         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
118068         Otherwise, include <strings.h>
118070 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
118072         * lib/unicodeio.c (utf8_wctomb): New function.
118073         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
118074         format instead of in UCS-4 with platform dependent endianness.
118076 2000-03-10  Jim Meyering  <meyering@lucent.com>
118078         * m4/lib-check.m4: Look for getspnam in -lgen, too.
118079         From Marco Franzen.
118081 2000-03-07  Paul Eggert  <eggert@twinsun.com>
118083         * lib/savedir.c (savedir): Work even if directory size is
118084         negative; this can happen with some screwy NFS configurations.
118086 2000-03-06  Jim Meyering  <meyering@lucent.com>
118088         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
118089         if it's NULL (because we ran out of memory).  From Bruno Haible.
118091 2000-03-05  Jim Meyering  <meyering@lucent.com>
118093         * lib/localcharset.c ("path-concat.h"): Include.
118094         (get_charset_aliases): Use path_concat instead of ANSI string
118095         concatenation.
118097         * lib/unicodeio.h (PARAMS): Define.
118098         Use it to guard prototype.
118100 2000-03-04  Jim Meyering  <meyering@lucent.com>
118102         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
118103         for lib/localcharset.c.
118105 2000-03-04  Jim Meyering  <meyering@lucent.com>
118107         * lib/Makefile.am (install-exec-local): Create $(libdir) before
118108         installing into it.
118109         (uninstall-local): Uncomment this rule so `make distcheck' works
118110         once again.
118112         * lib/unicodeio.c (<errno.h>): Include it.
118113         (errno): Declare if not defined.
118115         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
118117         * lib/config.charset: New version, incorporating remarks from a linux
118118         i18n mailing list.  From Bruno Haible.
118120 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
118122         * m4/codeset.m4: New file.
118123         * m4/iconv.m4: New file.
118124         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
118126 2000-03-03  Jim Meyering  <meyering@lucent.com>
118128         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
118130 2000-03-02  Jim Meyering  <meyering@lucent.com>
118132         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
118133         the messages come out on separate lines.
118135         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
118136         rather than jm_CHECK_DECLARATIONS.
118137         * m4/decl.m4: Remove now-unused file.
118139         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
118140         geteuid.
118142 2000-03-02  Jim Meyering  <meyering@lucent.com>
118144         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
118146 2000-03-01  Jim Meyering  <meyering@lucent.com>
118148         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
118149         * lib/unicodeio.c: Likewise.
118151 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
118153         * lib/config.charset: New file.
118154         * lib/localcharset.c: New file.
118155         * lib/unicodeio.h, lib/unicodeio.c: New files.
118156         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
118157         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
118158         (noinst_HEADERS): Add unicodeio.h.
118159         (all-local, install-exec-local, charset.alias): New targets.
118161 2000-02-28  Paul Eggert  <eggert@twinsun.com>
118163         * lib/quotearg.c (ALERT_CHAR): New macro.
118164         (quotearg_buffer_restyled): Use it.
118166 2000-02-27  Jim Meyering  <meyering@lucent.com>
118168         * m4/check-decl.m4: Add getenv to the list.
118170 2000-02-27  Jim Meyering  <meyering@lucent.com>
118172         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
118173         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
118175         * lib/backupfile.c: Guard inclusion of stdlib.h with
118176         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
118177         Declare malloc if needed.
118179         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
118180         `#ifndef HAVE_DECL..'
118181         now that autoconf always defines the HAVE_DECL_ symbols.
118182         * lib/human.c: Likewise.
118183         * lib/same.c: Likewise.
118184         * lib/strtoumax.c: Likewise.
118186         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
118187         declaration check was not run.
118188         * lib/hash.c: Likewise.
118189         * lib/human.c: Likewise.
118190         * lib/same.c: Likewise.
118191         * lib/strtoumax.c: Likewise.
118193         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
118194         `.', then first look up the entire `.'-containing string as a login
118195         name.
118197 2000-02-23  Jim Meyering  <meyering@lucent.com>
118199         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
118200         in place of my hack.
118202 2000-02-18  Paul Eggert  <eggert@twinsun.com>
118204         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
118205         (textint): New typedef.
118206         (parser_control): Member year changed from int to textint.
118207         All uses changed.
118208         (YYSTYPE): Removed; replaced by %union with int and textint members.
118209         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
118210         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
118211         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
118212         (tSNUMBER, tUNUMBER): Now of type <textintval>.
118213         (date, number, to_year): Use width of number in digits, not its value,
118214         to determine whether it's a 2-digit year, or a 2-digit time.
118215         (yylex): Store number of digits of numeric tokens.
118216         Reported by John Kendall.
118218         (parser_control): Changed from struct parser_control to typedef (for
118219         consistency).  All uses changed.
118221         (tID): Removed; not used.
118222         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
118224 2000-02-14  Paul Eggert  <eggert@twinsun.com>
118226         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
118227         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
118229 2000-02-12  Jim Meyering  <meyering@lucent.com>
118231         * lib/userspec.c (ISDIGIT): Define it.
118232         (isdigit): Remove definition.
118233         (is_number): Use ISDIGIT, not isdigit.
118234         <libintl.h>: Include.
118235         (_ and N_): Define.
118236         (parse_user_spec): Mark translatable strings.
118238 2000-02-10  Jim Meyering  <meyering@lucent.com>
118240         With these changes, nanosleep.[ch] are finally enough like the other
118241         lib/* replacement files to compile on a few more losing systems.
118243         * lib/nanosleep.h: Don't include config.h.
118244         Remove prototype from declaration of nanosleep.
118245         (PARAMS): Remove now-unneeded definition.
118246         * lib/nanosleep.c: #undef nanosleep.
118247         (rpl_nanosleep): Rename from nanosleep.
118249 2000-02-10  Jim Meyering  <meyering@lucent.com>
118251         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
118252         gnu_nanosleep to rpl_nanosleep.
118254 2000-02-09  Jim Meyering  <meyering@lucent.com>
118256         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
118257         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
118259 2000-02-08  Akim Demaille  <akim@epita.fr>
118261         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
118262         `[' and `]' and remove uses of `changequote'.
118263         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
118264         (AC_SYS_LARGEFILE): Likewise.
118265         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
118266         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
118267         of changequote.
118268         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
118269         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
118270         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
118271         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
118273 2000-02-05  Jim Meyering  <meyering@lucent.com>
118275         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
118276         Remove explicit use of AC_HEADER_TIME.  It is required by
118277         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
118278         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
118279         in autoconf whereby the expansion of the latter ended up preceding
118280         the expansion of its prerequisite, AC_HEADER_TIME.
118281         Reported by Volker Borchert.
118283 2000-02-03  Jim Meyering  <meyering@lucent.com>
118285         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
118287 2000-02-03  Jim Meyering  <meyering@lucent.com>
118289         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
118290         rather than with `#if HAVE_UTMPNAME'.
118292 2000-02-02  Jim Meyering  <meyering@lucent.com>
118294         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
118295         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
118296         Reported by Eli Zaretskii.
118298 2000-02-01  Jim Meyering  <meyering@lucent.com>
118300         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
118302 2000-01-31  Jim Meyering  <meyering@lucent.com>
118304         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
118305         functions.  Add the time.h and sys/time.h headers along with the
118306         AC_REQUIRE'ment of AC_HEADER_TIME.
118308 2000-01-31  Jim Meyering  <meyering@lucent.com>
118310         * lib/nanosleep.h (nanosleep): Guard declaration with
118311         `#if ! HAVE_DECL_NANOSLEEP'.
118312         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
118313         the declaration in that vendor's sys/timers.h.
118314         Reported by Christian Krackowizer.
118316         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
118317         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
118318         (ISPRINT): Likewise.
118319         Reported by Tom Tromey.
118321 2000-01-30  Jim Meyering  <meyering@lucent.com>
118323         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
118325         * m4/prereq.m4 (utmp_includes): Define.
118326         Check for ut_user and ut_name members in both struct utmpx
118327         and struct utmp.
118329 2000-01-30  Jim Meyering  <meyering@lucent.com>
118331         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118332         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118333         header files where only utmpx.ut_user is declared.
118335         * lib/readutmp.h (UT_USER): Define.
118337 2000-01-29  Jim Meyering  <meyering@lucent.com>
118339         * m4/lib-check.m4: New file containing library-related checks from
118340         fileutils and sh-utils (textutils had none).
118342 2000-01-28  Jim Meyering  <meyering@lucent.com>
118344         * m4/perl.m4: Change format of warning message to look more like that
118345         from the missing script.  Suggestion from François Pinard.
118347 2000-01-25  Jim Meyering  <meyering@lucent.com>
118349         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118350         well as time.h in the compile check.
118351         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118352         Fix typo in cross-compiling case: s/yes/no/.
118354 2000-01-23  Jim Meyering  <meyering@lucent.com>
118356         * m4/jm-macros.m4: Move df-related tests here from
118357         fileutils/configure.in
118359         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118360         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118362         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118363         s/space/ac_fsusage_space/.
118364         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118366         * m4/ftruncate.m4: New file (derived from part of
118367         fileutils/configure.in).
118368         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118369         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118371         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118372         AC_SUBST these here, rather than just in sh-util/configure.in, so
118373         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118374         all the same.
118375         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118376         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118377         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118378         (AC_SUBST(POW_LIBM)): Likewise.
118379         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118381 2000-01-23  Jim Meyering  <meyering@lucent.com>
118383         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118384         obstack.c.
118386 2000-01-22  Jim Meyering  <meyering@lucent.com>
118388         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118390         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118392         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118393         configure.in
118394         (AC_CHECK_HEADERS): Likewise for sh-utils.
118395         (AC_CHECK_HEADERS): Likewise for textutils.
118396         Merge the three lists of headers.
118398         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118399         from fileutils' configure.in.
118401         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118402         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118403         check-decl.m4.
118405         * m4/check-decl.m4: Use #if rather than #ifdef.
118406         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118407         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118408         (_jm_DECL_HEADERS): Define new function.
118409         (jm_CHECK_DECLARATIONS): Require it.
118411 2000-01-22  Jim Meyering  <meyering@lucent.com>
118413         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118414         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118415         Required for some AIX systems.  Reported by Christian Krackowizer.
118416         [TESTING] (main): New function.
118418         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118419         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118420         letters.
118422         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118423         iswprint.
118425         * lib/strverscmp.c (ISDIGIT): Define.
118426         (strverscmp): Use ISDIGIT, not isdigit.
118428 2000-01-19  Jim Meyering  <meyering@lucent.com>
118430         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118431         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118432         defines `struct timespec' in <sys/time.h>
118434         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118435         Thanks to Akim for explaining.
118437 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118439         * lib/nanosleep.c (nanosleep):
118440         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118441         POSIX.1 doesn't require SA_INTERRUPT and some systems
118442         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118443         it's been part of POSIX.1 since day 1 (in 1988).
118445 2000-01-17  Jim Meyering  <meyering@lucent.com>
118447         * lib/interlock: Remove unused file.  Reported by François Pinard.
118449 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118451         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118452         alert, backslash, formfeed, and vertical tab unnecessarily in
118453         shell quoting style.
118455 2000-01-16  Jim Meyering  <meyering@lucent.com>
118457         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118458         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118459         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118460         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118462 2000-01-16  Jim Meyering  <meyering@lucent.com>
118464         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118465         because the latter didn't work.
118467 2000-01-15  Jim Meyering  <meyering@lucent.com>
118469         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118470         (AC_REPLACE_FUNCS): Add memcpy and memset.
118471         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118472         Add strpbrk.
118473         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118475 2000-01-12  Jim Meyering  <meyering@lucent.com>
118477         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118478         (jm_PREREQ): Use it.
118479         (jm_PREREQ_READUTMP): New macro.
118480         (jm_PREREQ): Use it.
118482 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118484         Quote multibyte characters correctly.
118485         * m4/c-bs-a.m4: New file.
118486         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118487         (jm_PREREQ): Use it.
118489 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118491         * m4/uintmax_t.m4: Port to autoconf 2.13.
118493 2000-01-08  Jim Meyering  <meyering@ascend.com>
118495         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118496         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118498 2000-01-04  Jim Meyering  <meyering@ascend.com>
118500         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118501         jm_STRUCT_DIRENT_D_TYPE.
118502         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118503         jm_STRUCT_DIRENT_D_INO.
118504         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118505         jm_STRUCT_UTIMBUF.
118506         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118507         renamings.
118508         * m4/utime.m4: Likewise.
118510         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118511         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118513 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118515         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118516         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118518 2000-01-02  Jim Meyering  <meyering@ascend.com>
118520         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118521         remember if this is necessary.
118523 1999-12-26  Jim Meyering  <meyering@ascend.com>
118525         * m4/jm-macros.m4: Use it here.
118526         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118528 1999-12-23  Jim Meyering  <meyering@ascend.com>
118530         * m4/jm-macros.m4: Check for clock_gettime (moved from
118531         fileutils/configure.in)
118532         Check for gettimeofday.
118534 1999-12-20  Jim Meyering  <meyering@ascend.com>
118536         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118537         autoconf-2.14a-1999-12-20.
118539 1999-12-19  Jim Meyering  <meyering@ascend.com>
118541         * m4/lstat-slash.m4: New file.
118542         * m4/jm-macros.m4: Use the new macro:
118543         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118545 1999-12-07  Jim Meyering  <meyering@ascend.com>
118547         * m4/perl.m4: Require that File::Compare be available, too.
118548         Too many systems seem to lack it.
118550         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118551         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118553 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118555         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118556         problem with the QNX 4.25 shell, which doesn't propagate exit
118557         status of failed commands inside shell assignments.
118559 1999-11-17  Jim Meyering  <meyering@ascend.com>
118561         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118563 1999-11-07  Jim Meyering  <meyering@ascend.com>
118565         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118567 1999-11-06  Jim Meyering  <meyering@ascend.com>
118569         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118570         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118572 1999-11-05  Jim Meyering  <meyering@ascend.com>
118574         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118575         configure.in of textutils, fileutils, and sh-utils into this one
118576         (shared between those packages) file.
118577         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118578         AC_STRUCT_ST_BLKSIZE.
118580 1999-11-03  Jim Meyering  <meyering@ascend.com>
118582         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118583         of AC_CHECK_TYPE checks includes unistd.h.
118584         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118585         Suggestion from Akim Demaille.
118587 1999-10-30  Jim Meyering  <meyering@ascend.com>
118589         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118590         m4-quoted string.
118591         * m4/ls-mntd-fs.m4: Likewise.
118592         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118593         * m4/jm-winsz1.m4: Likewise.
118595         * m4/const.m4: Remove file, since the fix made it into the experimental
118596         version of autoconf.
118597         * m4/mktime.m4: Likewise.
118599         * m4/check-type.m4: Remove file, now that the latest version of
118600         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118602         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118603         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118604         AC_CHECK_TYPE.
118606 1999-10-04  Jim Meyering  <meyering@ascend.com>
118608         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118610 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118612         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118613         2.95.1 bug with HP-UX 10.20.
118615 1999-09-17  Jim Meyering  <meyering@ascend.com>
118617         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118618         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118619         due to missing strdup (against sh-utils-2.0).
118621 1999-08-29  Jim Meyering  <meyering@ascend.com>
118623         * m4/jm-macros.m4: Require jm_BISON.
118624         * m4/bison.m4: New file.
118626 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118628         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118629         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118631 1999-08-05  Jim Meyering  <meyering@ascend.com>
118633         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118634         to avoid conflicts with `conftest' on 8+3 filesystems.
118635         Suggestion from Eli Zaretskii.
118637 1999-08-04  Jim Meyering  <meyering@ascend.com>
118639         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118640         fileutils and sh-utils (textutils's getline test was inadequate).
118641         (AM_FUNC_GETLINE): Run this test.
118642         (AC_CHECK_FUNCS): Check for getdelim.
118643         Reported by Bob Proulx.
118645 1999-08-02  Jim Meyering  <meyering@ascend.com>
118647         * m4/jm-macros.m4: Add a comment.
118649 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118651         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118652         <inttypes.h> defines strtoumax as a macro (and not as a
118653         function).
118655 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118657         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118658         that we can shift, multiply and divide unsigned long long
118659         values; Ultrix cc can't do it.
118661 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118663         * m4/mktime.m4: New file, which is a preview of what should appear
118664         in the next public autoconf release.
118666 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118668         * m4/lfs.m4: Remove this file.
118669         * m4/largefile.m4: New file.  It contains the old contents of
118670         lfs.m4, except that all names with prefix AC_LFS have been
118671         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118672         compatible with future autoconf versions.  Also, some minor m4
118673         quoting problems have been fixed.
118675 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118677         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118678         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118679         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118680         and simplify the shell code.
118682 1999-08-01  Jim Meyering  <meyering@ascend.com>
118684         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118685         m4.
118687 1999-07-20  Jim Meyering  <meyering@ascend.com>
118689         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118691 1999-07-15  Jim Meyering  <meyering@ascend.com>
118693         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118695 1999-05-22  Jim Meyering  <meyering@ascend.com>
118697         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118699 1999-05-20  Jim Meyering  <meyering@ascend.com>
118701         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118702         Add a colon after each `then' in case $4 is empty.
118704 1999-05-16  Jim Meyering  <meyering@ascend.com>
118706         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118708 1999-05-10  Jim Meyering  <meyering@ascend.com>
118710         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118712         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118713         AC_FUNC_MKTIME.
118715 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118717         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118719 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118721         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118722         not CPPFLAGS, so that linking works correctly in IRIX.
118724 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118726         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118728 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118730         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118731         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118733         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118734         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118736         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118738 1999-04-20  Jim Meyering  <meyering@ascend.com>
118740         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118741         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118742         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118744 1999-04-18  Jim Meyering  <meyering@ascend.com>
118746         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118747         * m4/jm-macros.m4: Use it.
118749 1999-04-06  Jim Meyering  <meyering@ascend.com>
118751         * m4/strftime.m4: Remove test for %f.
118753 1999-03-29  Jim Meyering  <meyering@ascend.com>
118755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118756         superset of the AC_TYPE_* checks in the textutils, fileutils,
118757         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118758         AC_TYPE_PID_T.
118760 1999-03-28  Jim Meyering  <meyering@ascend.com>
118762         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118763         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118764         replaced e.g., in the *.sh files of the sh-utils.
118766 1999-03-20  Jim Meyering  <meyering@ascend.com>
118768         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118769         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118770         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118772 1999-03-19  Jim Meyering  <meyering@ascend.com>
118774         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118776 1999-03-12  Jim Meyering  <meyering@ascend.com>
118778         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118780 1999-03-07  Jim Meyering  <meyering@ascend.com>
118782         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118783         declared.
118785 1999-02-17  Jim Meyering  <meyering@ascend.com>
118787         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118788         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118790 1999-02-07  Jim Meyering  <meyering@ascend.com>
118792         * m4/group-member.m4: New file -- extracted from sh-utils'
118793         configure.in.
118795         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118796         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118798 1999-02-06  Jim Meyering  <meyering@ascend.com>
118800         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118801         * m4/fnmatch.m4: Likewise.
118802         * m4/getgroups.m4: Likewise.
118803         * m4/lstat.m4: Likewise.
118804         * m4/malloc.m4: Likewise.
118805         * m4/putenv.m4: Likewise.
118806         * m4/realloc.m4: Likewise.
118807         * m4/regex.m4: Likewise.
118808         * m4/stat.m4: Likewise.
118809         * m4/strftime.m4: Likewise.
118810         Suggestion from Alain Magloire.
118812         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118813         * m4/fnmatch.m4: Likewise.
118814         * m4/getgroups.m4: Likewise.
118815         * m4/getline.m4: Likewise.
118816         * m4/lstat.m4: Likewise.
118817         * m4/malloc.m4: Likewise.
118818         * m4/memcmp.m4: Likewise.
118819         * m4/putenv.m4: Likewise.
118820         * m4/realloc.m4: Likewise.
118821         * m4/regex.m4: Likewise.
118822         * m4/stat.m4: Likewise.
118823         * m4/strftime.m4: Likewise.
118824         Suggestion from Alain Magloire.
118826         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118827         an argument.
118829         * m4/regex.m4: Add a run-time Test for proper operation of
118830         re_compile_pattern.
118832 1999-01-31  Jim Meyering  <meyering@ascend.com>
118834         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118836 1999-01-30  Jim Meyering  <meyering@ascend.com>
118838         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118840         * m4/jm-mktime.m4: Make this a wrapper around the official
118841         AM_FUNC_MKTIME rather than my private copy, now that the official one
118842         is up to date.
118843         * m4/mktime.m4: Remove file.
118845         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118846         * m4/uptime.m4: Likewise.
118847         * m4/uintmax_t.m4: Likewise.
118849 1999-01-28  Jim Meyering  <meyering@ascend.com>
118851         * m4/jm-macros.m4: Use jm_AFS.
118852         * m4/afs.m4: New file (from fileutils' configure.in).
118854         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118855         * m4/chown.m4: Likewise.
118856         * m4/d-ino.m4: Likewise.
118857         * m4/d-type.m4: Likewise.
118858         * m4/fnmatch.m4: Likewise.
118859         * m4/getgroups.m4: Likewise.
118860         * m4/gettext.m4: Likewise.
118861         * m4/jm-mktime.m4: Likewise.
118862         * m4/jm-winsz2.m4: Likewise.
118863         * m4/lcmessage.m4: Likewise.
118864         * m4/ls-mntd-fs.m4: Likewise.
118865         * m4/malloc.m4: Likewise.
118866         * m4/memcmp.m4: Likewise.
118867         * m4/putenv.m4: Likewise.
118868         * m4/realloc.m4: Likewise.
118869         * m4/st_mtim.m4: Likewise.
118870         * m4/strftime.m4: Likewise.
118872 1999-01-16  Jim Meyering  <meyering@ascend.com>
118874         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118875         (ARGMATCH_DIE_DECL): Define.
118877 1999-01-12  Jim Meyering  <meyering@ascend.com>
118879         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118880         Reported by Lars Hecking.
118882 1999-01-10  Jim Meyering  <meyering@ascend.com>
118884         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118885         gross kludge.
118886         * m4/inttypes_h.m4: Likewise.
118887         * m4/lstat.m4: Likewise.
118888         * m4/malloc.m4: Likewise.
118889         * m4/readdir.m4: Likewise.
118890         * m4/realloc.m4: Likewise.
118891         * m4/st_dm_mode.m4: Likewise.
118892         * m4/stat.m4: Likewise.
118893         * m4/utimbuf.m4: Likewise.
118894         * m4/utimes.m4: Likewise.
118896         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118897         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118898         comments in config.h.in are meaningful.
118900         * m4/jm-macros.m4: Require autoconf-2.13 here.
118902         * m4/regex.m4: By default, don't use the included regex.c on systems
118903         with glibc 2.  Suggestion from Uli Drepper.
118905 1999-01-02  Jim Meyering  <meyering@ascend.com>
118907         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118909 1998-12-18  Jim Meyering  <meyering@ascend.com>
118911         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118912         Based on a suggestion from Lars Hecking.
118914 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118916         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118918 1998-11-16  Jim Meyering  <meyering@ascend.com>
118920         * m4/lfs.m4: Double-quote the `uname...` expression.
118922 1998-11-14  Jim Meyering  <meyering@ascend.com>
118924         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118925         * m4/stat.m4: Likewise.
118927 1998-11-03  Jim Meyering  <meyering@ascend.com>
118929         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118930         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118932 1998-10-18  Jim Meyering  <meyering@ascend.com>
118934         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118936 1998-10-17  Jim Meyering  <meyering@ascend.com>
118938         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118939         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118940         calls for those previously hard-coded headers.  Instead, take a new
118941         parameter.
118942         (jm_CHECK_DECLARATIONS): Reflect interface change.
118943         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118944         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118946         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118948 1998-10-14  Jim Meyering  <meyering@ascend.com>
118950         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118951         instead of "TZ=America/Vancouver".  From Paul Eggert.
118953 1998-10-11  Jim Meyering  <meyering@ascend.com>
118955         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118956         This adds a test for a recently added compatibility fix for mktime.c.
118957         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118959 1998-09-27  Jim Meyering  <meyering@ascend.com>
118961         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118963         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118964         ../configure.in, including a change from Gordon Matzigkeit to allow
118965         cross-compiling for the Hurd.
118967         * m4/glibc.m4: New file/macro to test for the GNU C Library
118968         versions 1 and 2.  From Gordon Matzigkeit.
118969         Indent.
118971 1998-09-21  Jim Meyering  <meyering@ascend.com>
118973         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118975 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118977         Port nanosecond-resolution times to UnixWare 2.1.2 and
118978         pedantic Solaris 2.6.
118980         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118981         AC_STRUCT_ST_MTIM.
118982         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118983         Generate name of ns member, instead of just 1 or undef.
118984         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118986 1998-08-15  Jim Meyering  <meyering@ascend.com>
118988         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118989         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118990         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118991         instead of jm_TYPE_SSIZE_T.
118993 1998-08-12  Jim Meyering  <meyering@ascend.com>
118995         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118997 1998-08-02  Jim Meyering  <meyering@ascend.com>
118999         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
119000         in acconfig.h manually.
119002 1998-07-31  Paul Eggert  <eggert@twinsun.com>
119004         * m4/st_mtim.m4: New file.
119006 1998-07-28  Jim Meyering  <meyering@ascend.com>
119008         * m4/utimes.m4: Undef stat.
119010 1998-07-25  Jim Meyering  <meyering@ascend.com>
119012         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
119013         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
119015 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
119017         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
119018         uid and gid actually remain unchanged.
119020 1998-07-07  Jim Meyering  <meyering@ascend.com>
119022         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
119024 1998-07-04  Jim Meyering  <meyering@ascend.com>
119026         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
119027         to prove that this macro can be used in packages without regex.c.
119029 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
119031         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
119032         is to be used.
119034 1998-07-03  Jim Meyering  <meyering@ascend.com>
119036         * m4/gettext.m4: Add -lintl if it's found to be necessary.
119038         * m4/gettext.m4: New file -- from gettext-0.10.35.
119039         * m4/lcmessage.m4: Likewise.
119040         * m4/progtest.m4: Likewise.
119042         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
119043         * m4/jm-macros.m4: Require the new macro.
119045 1998-06-29  Jim Meyering  <meyering@ascend.com>
119047         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
119048         for the definition of NGROUPS (used in a system header included
119049         by sys/mount.h).
119051 1998-06-28  Jim Meyering  <meyering@ascend.com>
119053         * m4/ls-mntd-fs.m4: New file.
119054         * m4/fstypename.m4: New file.
119056         * m4/jm-macros.m4: Require the new macro.
119057         * m4/jm-glibc-io.m4: New file.
119059 1998-05-19  Jim Meyering  <meyering@ascend.com>
119061         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
119062         * m4/lchown.m4: New file.
119064         * m4/Makefile.am.in: New file.
119065         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
119067 1998-05-14  Jim Meyering  <meyering@ascend.com>
119069         * m4/Makefile.am (EXTRA_DIST): Add them.
119070         * m4/jm-macros.m4: New file.
119071         * m4/utimbuf.m4: New file.
119073 1998-05-12  Jim Meyering  <meyering@ascend.com>
119075         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
119077 1998-05-11  Jim Meyering  <meyering@ascend.com>
119079         * m4/isc-posix.m4: New file.
119081 1998-05-10  Jim Meyering  <meyering@ascend.com>
119083         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
119085 1998-05-09  Jim Meyering  <meyering@ascend.com>
119087         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
119088         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
119089         with automake.
119091         * m4/ssize_t.m4: New file.
119092         * m4/mktime.m4: Remove file -- the new automake has this now.
119094 1998-04-26  Jim Meyering  <meyering@ascend.com>
119096         * m4/assert.m4: New file.
119097         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
119099 1998-04-05  Jim Meyering  <meyering@ascend.com>
119101         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
119102         (jm_PREREQ): Use it here.
119104 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
119106         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
119107         in acconfig.h.
119109 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
119111         * m4/prereq.m4: New file.
119112         * m4/error.m4: New file.
119113         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
119115 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
119117         * m4/getline.m4: Don't set am_cv_func_working_getline before the
119118         cache-check for the same variable -- that defeated the purpose of
119119         the test; the test program was never run.  This was a problem only
119120         on systems with losing getline functions -- HP-UX 10.20 is one.
119121         Reported by Bjorn Helgaas.
119123 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
119125         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
119127 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
119129         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
119131         * m4/const.m4: New file.  Use an initializer in this declaration
119132         typedef int charset[2]; const charset x;
119133         Reported by Bob Glickstein.
119135 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
119137         * m4/chown.m4: Fix reversed types on -1 args to chown.
119138         From Kaveh Ghazi.
119140 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
119142         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
119143         Add lseek and memchr.
119145         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
119146         T.E.Dickey <dickey@clark.net> said that some older preprocessors
119147         have a 20-character limit on names.
119149 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
119151         * m4/inttypes_h.m4: New file.
119152         * m4/uintmax_t.m4: New file.
119153         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
119156         -----
119158         Local Variables:
119159         coding: utf-8
119160         End:
119162         Copyright (C) 1997-2019 Free Software Foundation, Inc.
119164         Copying and distribution of this file, with or without
119165         modification, are permitted provided the copyright notice
119166         and this notice are preserved.